30 #define MAKE_ACCESSORS(str, name, type, field) \
31 type av_##name##_get_##field(const str *s) { return s->field; } \
32 void av_##name##_set_##field(str *s, type v) { s->field = v; }
44 #define CHECK_CHANNELS_CONSISTENCY(frame) \
45 av_assert2(!(frame)->channel_layout || \
46 (frame)->channels == \
47 av_get_channel_layout_nb_channels((frame)->channel_layout))
80 memset(frame, 0,
sizeof(*frame));
110 if (!frame || !*frame)
129 for(i=1; i<=
align; i+=i) {
134 if (!(frame->
linesize[0] & (align-1)))
138 for (i = 0; i < 4 && frame->
linesize[i]; i++)
142 for (i = 0; i < 4 && frame->
linesize[i]; i++) {
144 if (i == 1 || i == 2)
173 int planes = planar ? channels : 1;
201 if (!frame->
buf[i]) {
363 memset(src, 0,
sizeof(*src));
395 memset(&tmp, 0,
sizeof(tmp));
445 #if FF_API_AVFRAME_LAVC
510 if (plane < 0 || plane >= planes || !frame->
extended_data[plane])
516 if (data >= buf->
data && data < buf->data + buf->
size)
521 if (data >= buf->
data && data < buf->data + buf->
size)