Lines Matching refs:layout
41 int validate_layout(const ChannelLayout *layout) in validate_layout() argument
45 max_channel = layout->nb_streams+layout->nb_coupled_streams; in validate_layout()
48 for (i=0;i<layout->nb_channels;i++) in validate_layout()
50 if (layout->mapping[i] >= max_channel && layout->mapping[i] != 255) in validate_layout()
57 int get_left_channel(const ChannelLayout *layout, int stream_id, int prev) in get_left_channel() argument
61 for (;i<layout->nb_channels;i++) in get_left_channel()
63 if (layout->mapping[i]==stream_id*2) in get_left_channel()
69 int get_right_channel(const ChannelLayout *layout, int stream_id, int prev) in get_right_channel() argument
73 for (;i<layout->nb_channels;i++) in get_right_channel()
75 if (layout->mapping[i]==stream_id*2+1) in get_right_channel()
81 int get_mono_channel(const ChannelLayout *layout, int stream_id, int prev) in get_mono_channel() argument
85 for (;i<layout->nb_channels;i++) in get_mono_channel()
87 if (layout->mapping[i]==stream_id+layout->nb_coupled_streams) in get_mono_channel()