update to the codec api, docoder assignment is now handled in the server
multiple reader add-ons are probed to recognize a media file FormatManager does the translation from media_format to media_description git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5667 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#include "MediaPlugin.h"
|
||||
#include "MediaExtractor.h"
|
||||
|
||||
class AddOnManager;
|
||||
|
||||
namespace BPrivate { namespace media {
|
||||
|
||||
class Decoder
|
||||
@@ -41,11 +43,19 @@ private:
|
||||
class DecoderPlugin : public MediaPlugin
|
||||
{
|
||||
public:
|
||||
DecoderPlugin();
|
||||
DecoderPlugin();
|
||||
|
||||
virtual Decoder *NewDecoder() = 0;
|
||||
virtual Decoder * NewDecoder() = 0;
|
||||
|
||||
status_t PublishDecoder(const char *meta_description, const char *short_name, const char *pretty_name, const char *default_mapping = 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;
|
||||
};
|
||||
|
||||
} } // namespace BPrivate::media
|
||||
|
||||
Reference in New Issue
Block a user