[FFmpeg-devel] [RFC] Channel layouts
Robert Swain
robert.swain
Fri Aug 29 11:51:23 CEST 2008
2008/8/29 Benjamin Larsson <banan at ludd.ltu.se>:
> M?ns Rullg?rd wrote:
>> Benjamin Larsson wrote:
>>
>>> Peter Ross wrote:
>>>
>>>>> permutation table to match the internal FFmpeg channel order. I'm not
>>>>> sure how well that would fit for most decoders. One other option would
>>>>> be to decode in codec native order and then pass a channel permutation
>>>>> table via some means. I'll look into what would work best with dca.
>>>>>
>>>>>
>>>> If that is correct then all decoders and encoder need a channel order
>>>>
>>>> Why not perform the permutation inside the decoder?
>>>>
>>>>
>>> Yeah, the issue I'm hinting at is that you might only know how to
>>> reorder after you decoded the samples and that you would need to do a
>>> memcopy to rearrange the order.
>>>
>>
>> Wouldn't it be as simple as reordering a few pointer, e.g. before
>> passing them to float_to_int16_interleave?
>
> Well codecs will not perform float 2 int by themselfs in the future. But
> in theory yes.
I guess we'll have to consider this in the channel mixing API. It
should probably accept a similar array of pointers to
float_to_int16_interleave().
Regards,
Rob
More information about the ffmpeg-devel
mailing list