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)
188 int planes = planar ? channels : 1;
216 if (!frame->
buf[i]) {
378 memset(src, 0,
sizeof(*src));
410 memset(&tmp, 0,
sizeof(tmp));
460 #if FF_API_AVFRAME_LAVC
527 if (plane < 0 || plane >= planes || !frame->
extended_data[plane])
533 if (data >= buf->
data && data < buf->data + buf->
size)
538 if (data >= buf->
data && data < buf->data + buf->
size)