Lines Matching refs:frame
54 * One encoded frame returned from the library.
59 int64_t pts; /**< time stamp to show frame
61 unsigned long duration; /**< duration to show frame
63 uint32_t flags; /**< flags for this frame */
97 #define VP8F_AUTO_ALT_REF 0x00000002 ///< Enable automatic alternate reference frame generation
136 * encounter a frame with ROI side data.
484 * 2-layers, 2-frame period.
505 * 3-layers structure with one reference frame.
508 * 3-layers, 4-frame period.
543 * 3-layers, 4-frame period.
1208 dst->pts = src->data.frame.pts;
1209 dst->duration = src->data.frame.duration;
1210 dst->flags = src->data.frame.flags;
1211 dst->sz = src->data.frame.sz;
1212 dst->buf = src->data.frame.buf;
1214 /* For alt-ref frame, don't store PSNR or increment frame_number */
1219 /* associate last-seen SSE to the frame. */
1222 just before the frame it refers to! */
1232 * Store coded frame information in format suitable for return from encode2().
1296 * In cases where vpx_codec_get_cx_data() returns more than 1 frame append
1297 * the frame queue. Return the head frame if available.
1298 * @return Stored frame size
1300 * @return AVERROR(ENOMEM) on coded frame queue data allocation error
1312 /* return the leading frame if we've already begun queueing */
1328 /* avoid storing the frame when the list is empty and we haven't yet
1329 provided a frame for output */
1353 memcpy(cx_frame->buf, pkt->data.frame.buf, pkt->data.frame.sz);
1601 const AVFrame *frame, int *got_packet)
1623 if (frame) {
1624 const AVFrameSideData *sd = av_frame_get_side_data(frame, AV_FRAME_DATA_REGIONS_OF_INTEREST);
1626 rawimg->planes[VPX_PLANE_Y] = frame->data[0];
1627 rawimg->planes[VPX_PLANE_U] = frame->data[1];
1628 rawimg->planes[VPX_PLANE_V] = frame->data[2];
1629 rawimg->stride[VPX_PLANE_Y] = frame->linesize[0];
1630 rawimg->stride[VPX_PLANE_U] = frame->linesize[1];
1631 rawimg->stride[VPX_PLANE_V] = frame->linesize[2];
1634 res = realloc_alpha_uv(avctx, frame->width, frame->height);
1637 rawimg_alpha->planes[VPX_PLANE_Y] = frame->data[3];
1638 rawimg_alpha->stride[VPX_PLANE_Y] = frame->linesize[3];
1640 timestamp = frame->pts;
1642 switch (frame->color_range) {
1651 if (frame->pict_type == AV_PICTURE_TYPE_I)
1653 if (frame->metadata) {
1654 AVDictionaryEntry* en = av_dict_get(frame->metadata, "vp8-flags", NULL, 0);
1661 en = av_dict_get(frame->metadata, "temporal_id", NULL, 0);
1670 en = av_dict_get(frame->metadata, "ref-frame-config", NULL, 0);
1685 "Ignoring ref-frame-config for a non-VP9 codec\n");
1693 vp8_encode_set_roi(avctx, frame->width, frame->height, sd);
1695 vp9_encode_set_roi(avctx, frame->width, frame->height, sd);
1702 hdr10_plus_metadata = av_frame_get_side_data(frame, AV_FRAME_DATA_DYNAMIC_HDR_PLUS);
1706 data.pts = frame->pts;
1758 log_encoder_error(avctx, "Error encoding frame");
1766 log_encoder_error(avctx, "Error encoding alpha frame");
1779 /* return the leading frame if we've already begun queueing */
1790 if (!frame && avctx->flags & AV_CODEC_FLAG_PASS1) {
1814 "alternate reference frame selection", OFFSET(lag_in_frames), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, VE}, \
1815 { "arnr-maxframes", "altref noise reduction max frame count", OFFSET(arnr_max_frames), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, VE}, \
1829 { "max-intra-rate", "Maximum I-frame bitrate (pct) 0=unlimited", OFFSET(max_intra_rate), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, VE}, \
1831 { "partitions", "The frame partitions are independently decodable " \
1849 {"arnr_max_frames", "altref noise reduction max frame count", offsetof(VPxContext, arnr_max_frames), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 15, VE}, \
1852 {"rc_lookahead", "Number of frames to look ahead for alternate reference frame selection", offsetof(VPxContext, lag_in_frames), AV_OPT_TYPE_INT, {.i64 = 25}, 0, 25, VE}, \
1875 { "frame-parallel", "Enable frame parallel decodability features", OFFSET(frame_parallel), AV_OPT_TYPE_BOOL,{.i64 = -1}, -1, 1, VE},