Lines Matching defs:diffFrame
799 AVFrame* diffFrame;
818 diffFrame = av_frame_alloc();
819 if (!diffFrame)
822 diffFrame->format = pict->format;
823 diffFrame->width = pict->width;
824 diffFrame->height = pict->height;
825 if ((ret = av_frame_get_buffer(diffFrame, 0)) < 0)
853 diffFrame->width = pict->width;
854 diffFrame->height = pict->height;
855 ret = av_frame_copy(diffFrame, s->last_frame);
861 size_t row_start = diffFrame->linesize[0] * y + bpp * last_fctl_chunk.x_offset;
862 memset(diffFrame->data[0] + row_start, 0, bpp * last_fctl_chunk.width);
869 diffFrame->width = pict->width;
870 diffFrame->height = pict->height;
871 ret = av_frame_copy(diffFrame, s->prev_frame);
877 if (apng_do_inverse_blend(diffFrame, pict, &fctl_chunk, bpp) < 0)
881 ret = encode_frame(avctx, diffFrame);
918 av_frame_free(&diffFrame);