[FFmpeg-devel] [RFC] Channel layouts
Benjamin Larsson
banan
Fri Aug 29 11:42:01 CEST 2008
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.
MvH
Benjamin Larsson
More information about the ffmpeg-devel
mailing list