[FFmpeg-devel] [RFC] Channel layouts

Robert Swain robert.swain
Fri Aug 29 10:12:46 CEST 2008


2008/8/29 Andreas ?man <andreas at lonelycoder.com>:
> Robert Swain wrote:
>> Is there any benefit to doing all the bit shifting of the flags or can
>> we just do the usual 0x1, 0x2, 0x4, 0x8, 0x10, 0x20... that we use for
>> other bit mask flags?
>
> Yes, The shift-values (or index) is used in:
>
> +static const char* channel_names[]={
> +    [CHANNEL_FRONT_LEFT]       = "front-left",

Ah, I see. OK. :)

Rob



More information about the ffmpeg-devel mailing list