added the new media_meta_description and changed codec API to use it

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5494 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2003-11-28 22:34:14 +00:00
parent de4189ef2b
commit da87cefeb1
8 changed files with 28 additions and 41 deletions
+2 -2
View File
@@ -599,8 +599,8 @@ typedef enum {
B_WAV_FORMAT_FAMILY = 6,
B_AIFF_FORMAT_FAMILY = 7,
B_AVR_FORMAT_FAMILY = 8,
B_MISC_FORMAT_FAMILY = 99999
B_MISC_FORMAT_FAMILY = 99999,
B_META_FORMAT_FAMILY = 100000
} media_format_family;
struct media_file_format {
+5
View File
@@ -118,6 +118,10 @@ typedef struct {
uint32 codec;
} media_misc_description;
typedef struct {
char description[48];
} media_meta_description;
typedef struct _media_format_description {
#if defined(__cplusplus)
_media_format_description();
@@ -137,6 +141,7 @@ typedef struct _media_format_description {
media_aiff_description aiff;
media_misc_description misc;
media_avr_description avr;
media_meta_description meta;
uint32 _reserved_[12];
} u;
} media_format_description;
+1 -2
View File
@@ -44,8 +44,7 @@ public:
virtual Decoder *NewDecoder() = 0;
status_t PublishDecoder(const char *short_name, const char *pretty_name, const media_format_description &fmt_desc, media_type fmt_type);
status_t PublishDecoder(const char *short_name, const char *pretty_name, const media_format &fmt);
status_t PublishDecoder(const char *meta_description, const char *short_name, const char *pretty_name, const char *default_mapping = 0);
};
} } // namespace BPrivate::media