Lines Matching defs:frame_size
44 int frame_size; /* size of the frame in bytes */
212 context->frame_size = av_image_get_buffer_size(avctx->pix_fmt,
216 context->frame_size = av_image_get_buffer_size(avctx->pix_fmt,
221 context->frame_size = av_image_get_buffer_size(avctx->pix_fmt, avctx->width,
224 if (context->frame_size < 0)
225 return context->frame_size;
248 frame->buf[0] = av_buffer_alloc(FFMAX(context->frame_size, buf_size));
258 buf_size = context->frame_size - (context->is_pal8 ? AVPALETTE_SIZE : 0);
346 buf += buf_size - context->frame_size;
348 len = context->frame_size - (avctx->pix_fmt==AV_PIX_FMT_PAL8 ? AVPALETTE_SIZE : 0);
350 av_log(avctx, AV_LOG_ERROR, "Invalid buffer size, packet size %d < expected frame_size %d\n", buf_size, len);
412 if (avctx->pix_fmt == AV_PIX_FMT_PAL8 && buf_size < context->frame_size) {