Searched refs:DPB (Results 1 - 14 of 14) sorted by relevance
/third_party/ffmpeg/libavcodec/ |
H A D | hevc_refs.c | 71 for (i = 0; i < FF_ARRAY_ELEMS(s->DPB); i++) in ff_hevc_clear_refs() 72 ff_hevc_unref_frame(s, &s->DPB[i], in ff_hevc_clear_refs() 80 for (i = 0; i < FF_ARRAY_ELEMS(s->DPB); i++) in ff_hevc_flush_dpb() 81 ff_hevc_unref_frame(s, &s->DPB[i], ~0); in ff_hevc_flush_dpb() 87 for (i = 0; i < FF_ARRAY_ELEMS(s->DPB); i++) { in alloc_frame() 88 HEVCFrame *frame = &s->DPB[i]; in alloc_frame() 133 av_log(s->avctx, AV_LOG_ERROR, "Error allocating frame, DPB full.\n"); in alloc_frame() 143 for (i = 0; i < FF_ARRAY_ELEMS(s->DPB); i++) { in ff_hevc_set_new_ref() 144 HEVCFrame *frame = &s->DPB[i]; in ff_hevc_set_new_ref() 184 for (i = 0; i < FF_ARRAY_ELEMS(s->DPB); in ff_hevc_output_frame() [all...] |
H A D | cavsdec.c | 1005 if (!h->DPB[0].f->data[0] || in decode_pic() 1006 (!h->DPB[1].f->data[0] && h->cur.f->pict_type == AV_PICTURE_TYPE_B)) in decode_pic() 1041 h->dist[0] = (h->cur.poc - h->DPB[0].poc) & 511; in decode_pic() 1043 h->dist[0] = (h->DPB[0].poc - h->cur.poc) & 511; in decode_pic() 1045 h->dist[1] = (h->cur.poc - h->DPB[1].poc) & 511; in decode_pic() 1160 av_frame_unref(h->DPB[1].f); in decode_pic() 1161 FFSWAP(AVSFrame, h->cur, h->DPB[1]); in decode_pic() 1162 FFSWAP(AVSFrame, h->DPB[0], h->DPB[1]); in decode_pic() 1247 if (!h->low_delay && h->DPB[ in cavs_decode_frame() [all...] |
H A D | dxva2_hevc.c | 163 // fill RefPicList from the DPB in fill_picture_parameters() 166 while (!frame && j < FF_ARRAY_ELEMS(h->DPB)) { in fill_picture_parameters() 167 if (&h->DPB[j] != current_picture && (h->DPB[j].flags & (HEVC_FRAME_FLAG_LONG_REF | HEVC_FRAME_FLAG_SHORT_REF))) in fill_picture_parameters() 168 frame = &h->DPB[j]; in fill_picture_parameters()
|
H A D | vaapi_h264.c | 81 /** Decoded Picture Buffer (DPB). */ 82 typedef struct DPB { struct 83 int size; ///< Current number of reference frames in the DPB 86 } DPB; typedef 94 static int dpb_add(DPB *dpb, const H264Picture *pic) in dpb_add() 128 DPB dpb; in fill_vaapi_ReferenceFrames()
|
H A D | cavs.c | 475 AVFrame *ref = h->DPB[mv->ref].f; in mc_part_std() 485 AVFrame *ref = h->DPB[0].f; in mc_part_std() 809 h->DPB[0].f = av_frame_alloc(); in ff_cavs_init() 810 h->DPB[1].f = av_frame_alloc(); in ff_cavs_init() 811 if (!h->cur.f || !h->DPB[0].f || !h->DPB[1].f) in ff_cavs_init() 841 av_frame_free(&h->DPB[0].f); in ff_cavs_end() 842 av_frame_free(&h->DPB[1].f); in ff_cavs_end()
|
H A D | vaapi_hevc.c | 102 while (!frame && j < FF_ARRAY_ELEMS(h->DPB)) { in fill_vaapi_reference_frames() 103 if (&h->DPB[j] != current_picture && (h->DPB[j].flags & (HEVC_FRAME_FLAG_LONG_REF | HEVC_FRAME_FLAG_SHORT_REF))) in fill_vaapi_reference_frames() 104 frame = &h->DPB[j]; in fill_vaapi_reference_frames()
|
H A D | h264_slice.c | 124 if (h->DPB[i].f->buf[0] && !h->DPB[i].reference && in release_unused_pictures() 125 (remove_current || &h->DPB[i] != h->cur_pic_ptr)) { in release_unused_pictures() 126 ff_h264_unref_picture(h, &h->DPB[i]); in release_unused_pictures() 278 if (!h->DPB[i].f->buf[0]) in find_unused_picture() 288 (((pic) && (pic) >= (old_ctx)->DPB && \ 289 (pic) < (old_ctx)->DPB + H264_MAX_PICTURE_COUNT) ? \ 290 &(new_ctx)->DPB[(pic) - (old_ctx)->DPB] : NULL) 301 IN_RANGE(from[i], old_base->DPB, H264_MAX_PICTURE_COUN in copy_picture_range() [all...] |
H A D | cavs.h | 174 AVSFrame DPB[2]; ///< reference frames member
|
H A D | nvdec_hevc.c | 226 for (i = 0; i < FF_ARRAY_ELEMS(s->DPB); i++) { in nvdec_hevc_start_frame() 227 const HEVCFrame *ref = &s->DPB[i]; in nvdec_hevc_start_frame()
|
H A D | vdpau_hevc.c | 239 for (size_t i = 0, j = 0; i < FF_ARRAY_ELEMS(h->DPB); i++) { in vdpau_hevc_start_frame() 240 const HEVCFrame *frame = &h->DPB[i]; in vdpau_hevc_start_frame() 245 "VDPAU only supports up to 16 references in the DPB. " in vdpau_hevc_start_frame()
|
H A D | h264dec.c | 316 if ((ret = h264_init_pic(&h->DPB[i])) < 0) in h264_init_context() 348 h264_free_pic(h, &h->DPB[i]); in h264_decode_end() 481 ff_h264_unref_picture(h, &h->DPB[i]); in h264_decode_flush()
|
H A D | hevcdec.c | 3617 for (i = 0; i < FF_ARRAY_ELEMS(s->DPB); i++) { in hevc_decode_free() 3618 ff_hevc_unref_frame(s, &s->DPB[i], ~0); in hevc_decode_free() 3619 av_frame_free(&s->DPB[i].frame); in hevc_decode_free() 3620 av_frame_free(&s->DPB[i].frame_grain); in hevc_decode_free() 3669 for (i = 0; i < FF_ARRAY_ELEMS(s->DPB); i++) { in hevc_init_context() 3670 s->DPB[i].frame = av_frame_alloc(); in hevc_init_context() 3671 if (!s->DPB[i].frame) in hevc_init_context() 3673 s->DPB[i].tf.f = s->DPB[i].frame; in hevc_init_context() 3675 s->DPB[ in hevc_init_context() [all...] |
H A D | hevcdec.h | 509 HEVCFrame DPB[32]; member 578 * Mark all frames in DPB as unused for reference. 583 * Drop all frames currently in DPB.
|
H A D | h264dec.h | 339 H264Picture DPB[H264_MAX_PICTURE_COUNT]; member
|
Completed in 21 milliseconds