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:
beveloper
2003-12-14 19:23:16 +00:00
parent 6d59046016
commit 046f31f91f
16 changed files with 757 additions and 127 deletions
+13 -3
View File
@@ -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