On Wed, Aug 13, 2014 at 1:34 PM, Anton Khirnov <[email protected]> wrote:
>
> On Wed, 13 Aug 2014 01:52:43 +0100, Vittorio Giovara 
> <[email protected]> wrote:
>> Convert the Matroska stereo format to the Stereo3D format, and add a
>> Stereo3D side data to the stream.
>> ---
>>  libavformat/matroska.c    | 75 
>> +++++++++++++++++++++++++++++++++++++++++++++++
>>  libavformat/matroska.h    |  3 ++
>>  libavformat/matroskadec.c |  8 ++++-
>>  3 files changed, 85 insertions(+), 1 deletion(-)
>>
>> diff --git a/libavformat/matroska.c b/libavformat/matroska.c
>> index 9628abc..e5cd61d 100644
>> --- a/libavformat/matroska.c
>> +++ b/libavformat/matroska.c
>> @@ -19,6 +19,8 @@
>>   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 
>> USA
>>   */
>>
>> +#include "libavutil/stereo3d.h"
>> +
>>  #include "matroska.h"
>>
>>  const CodecTags ff_mkv_codec_tags[]={
>> @@ -103,3 +105,76 @@ const AVMetadataConv ff_mkv_metadata_conv[] = {
>>      { "PART_NUMBER"   , "track"  },
>>      { 0 }
>>  };
>> +
>> +int ff_mkv_stereo3d_conv(AVStream *st, MatroskaVideoStereoModeType 
>> stereo_mode)
>
> Why is this here and not in matroskadec? This does not look like code you 
> could
> share with the muxer or anything that's not matroska.

Because the encoder parses the tag "stereo_mode" if it set by some
users and converts it to stream side data before using it.
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to