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 *
const name[] = {
94 memset(frame, 0,
sizeof(*frame));
150 if (!frame || !*frame)
169 for(i=1; i<=
align; i+=i) {
174 if (!(frame->
linesize[0] & (align-1)))
178 for (i = 0; i < 4 && frame->
linesize[i]; i++)
182 for (i = 0; i < 4 && frame->
linesize[i]; i++) {
184 if (i == 1 || i == 2)
220 planes = planar ? channels : 1;
247 if (!frame->
buf[i]) {
399 memset(src, 0,
sizeof(*src));
431 memset(&tmp, 0,
sizeof(tmp));
477 #if FF_API_AVFRAME_LAVC
547 if (plane < 0 || plane >= planes || !frame->
extended_data[plane])
619 for (i = 0; i < planes; i++)
623 memcpy(src_data, src->
data,
sizeof(src_data));
635 int planes = planar ? channels : 1;
645 for (i = 0; i < planes; i++)
674 if (sd->
type == type) {