Lines Matching refs:cx_frame
268 static void coded_frame_add(void *list, struct FrameListData *cx_frame) in coded_frame_add() argument
274 *p = cx_frame; in coded_frame_add()
275 cx_frame->next = NULL; in coded_frame_add()
278 static av_cold void free_coded_frame(struct FrameListData *cx_frame) in free_coded_frame() argument
280 av_freep(&cx_frame->buf); in free_coded_frame()
281 av_freep(&cx_frame); in free_coded_frame()
965 static int storeframe(AVCodecContext *avctx, struct FrameListData *cx_frame, in storeframe() argument
970 int ret = ff_alloc_packet2(avctx, pkt, cx_frame->sz, 0); in storeframe()
973 "Error getting output packet of size %"SIZE_SPECIFIER".\n", cx_frame->sz); in storeframe()
976 memcpy(pkt->data, cx_frame->buf, pkt->size); in storeframe()
977 pkt->pts = pkt->dts = cx_frame->pts; in storeframe()
979 if (!!(cx_frame->flags & AOM_FRAME_IS_KEY)) { in storeframe()
983 } else if (cx_frame->flags & AOM_FRAME_IS_INTRAONLY) { in storeframe()
989 ff_side_data_set_encoder_stats(pkt, 0, cx_frame->sse + 1, in storeframe()
990 cx_frame->have_sse ? 3 : 0, pict_type); in storeframe()
992 if (cx_frame->have_sse) { in storeframe()
995 avctx->error[i] += cx_frame->sse[i + 1]; in storeframe()
997 cx_frame->have_sse = 0; in storeframe()
1035 struct FrameListData *cx_frame = ctx->coded_frame_list; in queue_frames() local
1037 size = storeframe(avctx, cx_frame, pkt_out); in queue_frames()
1040 ctx->coded_frame_list = cx_frame->next; in queue_frames()
1041 free_coded_frame(cx_frame); in queue_frames()
1050 struct FrameListData cx_frame; in queue_frames() local
1055 cx_pktcpy(ctx, &cx_frame, pkt); in queue_frames()
1056 size = storeframe(avctx, &cx_frame, pkt_out); in queue_frames()
1060 struct FrameListData *cx_frame = in queue_frames() local
1063 if (!cx_frame) { in queue_frames()
1068 cx_pktcpy(ctx, cx_frame, pkt); in queue_frames()
1069 cx_frame->buf = av_malloc(cx_frame->sz); in queue_frames()
1071 if (!cx_frame->buf) { in queue_frames()
1074 cx_frame->sz); in queue_frames()
1075 av_freep(&cx_frame); in queue_frames()
1078 memcpy(cx_frame->buf, pkt->data.frame.buf, pkt->data.frame.sz); in queue_frames()
1079 coded_frame_add(&ctx->coded_frame_list, cx_frame); in queue_frames()