New meta_format structure that is used internally by BMediaFormats and

the FormatManager in the server.
Update the plugin API.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6241 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-01-23 07:24:51 +00:00
parent 6e53563dac
commit c38d73ee4c
4 changed files with 49 additions and 21 deletions
+7 -14
View File
@@ -20,7 +20,9 @@ class Decoder
public:
Decoder();
virtual ~Decoder();
virtual void GetCodecInfo(media_codec_info &codecInfo) = 0;
// Setup get's called with the info data from Reader::GetStreamInfo
virtual status_t Setup(media_format *ioEncodedFormat, const void *infoBuffer, int32 infoSize) = 0;
@@ -44,20 +46,11 @@ private:
class DecoderPlugin : public virtual MediaPlugin
{
public:
DecoderPlugin();
public:
DecoderPlugin();
virtual Decoder * NewDecoder() = 0;
status_t PublishDecoder(const char *meta_description,
const char *short_name,
const char *pretty_name,
const char *default_mapping = 0);
private:
friend class AddOnManager;
void Setup(void *publish_hook);
void * fPublishHook;
virtual Decoder *NewDecoder() = 0;
virtual status_t RegisterDecoder() = 0;
};
} } // namespace BPrivate::media