Lines Matching defs:layout
121 #define PICK_REORDER(layout)\
123 case FORMAT_I8: s->reorder_func = alsa_reorder_int8_out_ ##layout; break;\
124 case FORMAT_I16: s->reorder_func = alsa_reorder_int16_out_ ##layout; break;\
125 case FORMAT_I32: s->reorder_func = alsa_reorder_int32_out_ ##layout; break;\
126 case FORMAT_F32: s->reorder_func = alsa_reorder_f32_out_ ##layout; break;\
129 static av_cold int find_reorder_func(AlsaData *s, int codec_id, AVChannelLayout *layout, int out)
137 /* reordering is not needed for QUAD or 2_2 layout */
138 if (!av_channel_layout_compare(layout, &(AVChannelLayout)AV_CHANNEL_LAYOUT_QUAD) ||
139 !av_channel_layout_compare(layout, &(AVChannelLayout)AV_CHANNEL_LAYOUT_2_2))
160 if (!av_channel_layout_compare(layout, &(AVChannelLayout)AV_CHANNEL_LAYOUT_5POINT0_BACK) ||
161 !av_channel_layout_compare(layout, &(AVChannelLayout)AV_CHANNEL_LAYOUT_5POINT0))
163 else if (!av_channel_layout_compare(layout, &(AVChannelLayout)AV_CHANNEL_LAYOUT_5POINT1_BACK) ||
164 !av_channel_layout_compare(layout, &(AVChannelLayout)AV_CHANNEL_LAYOUT_5POINT1))
166 else if (!av_channel_layout_compare(layout, &(AVChannelLayout)AV_CHANNEL_LAYOUT_7POINT1))
177 AVChannelLayout *layout = &ctx->streams[0]->codecpar->ch_layout;
279 if (channels > 2 && layout->order != AV_CHANNEL_ORDER_UNSPEC) {
280 if (find_reorder_func(s, *codec_id, layout, mode == SND_PCM_STREAM_PLAYBACK) < 0) {
282 av_channel_layout_describe(layout, name, sizeof(name));
283 av_log(ctx, AV_LOG_WARNING, "ALSA channel layout unknown or unimplemented for %s %s.\n",