42 #define CHECK_CHANNELS_CONSISTENCY(frame) \
43 av_assert2(!(frame)->channel_layout || \
44 (frame)->channels == \
45 av_get_channel_layout_nb_channels((frame)->channel_layout))
75 static const char *
name[] = {
94 memset(frame, 0,
sizeof(*frame));
125 if (!frame || !*frame)
144 for(i=1; i<=
align; i+=i) {
149 if (!(frame->
linesize[0] & (align-1)))
153 for (i = 0; i < 4 && frame->
linesize[i]; i++)
157 for (i = 0; i < 4 && frame->
linesize[i]; i++) {
159 if (i == 1 || i == 2)
195 planes = planar ? channels : 1;
222 if (!frame->
buf[i]) {
379 memset(src, 0,
sizeof(*src));
411 memset(&tmp, 0,
sizeof(tmp));
457 #if FF_API_AVFRAME_LAVC
525 if (plane < 0 || plane >= planes || !frame->
extended_data[plane])
597 for (i = 0; i < planes; i++)
601 memcpy(src_data, src->
data,
sizeof(src_data));
613 int planes = planar ? channels : 1;
623 for (i = 0; i < planes; i++)