Initial implementation of BMediaEncoder

* People interested, please review!
* This is based on the patch from Fredrik Moden which was based on
the Oleg Krysenkov one.
* The original patch has been reworked by myself.
* Adapted the code to work with the new PluginManager API which
differently than before doesn't need to contact the media_server.
This commit is contained in:
Dario Casalinuovo
2015-12-02 16:08:06 +01:00
parent 0df4a177d7
commit 2b51499295
9 changed files with 339 additions and 61 deletions
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2009, Haiku Inc. All rights reserved.
* Copyright 2009-2015, Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT license.
*/
#ifndef _ENCODER_PLUGIN_H
@@ -122,6 +122,9 @@ public:
virtual Encoder* NewEncoder(
const media_codec_info& codecInfo) = 0;
virtual Encoder* NewEncoder(
const media_format& format) = 0;
virtual status_t RegisterNextEncoder(int32* cookie,
media_codec_info* codecInfo,
media_format_family* formatFamily,