Home | History | Annotate | Download | only in src

Lines Matching refs:layout

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