/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_decoder.c | 256 ref_buf = &cm->buffer_pool->frame_bufs[idx].buf; in vp9_set_reference_dec() 274 RefCntBuffer *const frame_bufs = cm->buffer_pool->frame_bufs; in swap_frame_buffers() local 279 decrease_ref_count(old_idx, frame_bufs, pool); in swap_frame_buffers() 283 decrease_ref_count(old_idx, frame_bufs, pool); in swap_frame_buffers() 292 decrease_ref_count(old_idx, frame_bufs, pool); in swap_frame_buffers() 298 --frame_bufs[cm->new_fb_idx].ref_count; in swap_frame_buffers() 309 RefCntBuffer *volatile const frame_bufs = cm->buffer_pool->frame_bufs; in release_fb_on_decoder_exit() local 325 decrease_ref_count(old_idx, frame_bufs, pool); in release_fb_on_decoder_exit() 329 decrease_ref_count(old_idx, frame_bufs, pool); in release_fb_on_decoder_exit() 337 decrease_ref_count(old_idx, frame_bufs, pool); in release_fb_on_decoder_exit() [all …]
|
D | vp9_decoder.h | 134 static INLINE void decrease_ref_count(int idx, RefCntBuffer *const frame_bufs, in decrease_ref_count() argument 136 if (idx >= 0 && frame_bufs[idx].ref_count > 0) { in decrease_ref_count() 137 --frame_bufs[idx].ref_count; in decrease_ref_count() 142 if (!frame_bufs[idx].released && frame_bufs[idx].ref_count == 0 && in decrease_ref_count() 143 frame_bufs[idx].raw_frame_buffer.priv) { in decrease_ref_count() 144 pool->release_fb_cb(pool->cb_priv, &frame_bufs[idx].raw_frame_buffer); in decrease_ref_count() 145 frame_bufs[idx].released = 1; in decrease_ref_count()
|
D | vp9_decodeframe.c | 717 RefCntBuffer *const ref_frame_buf = &pool->frame_bufs[idx]; in dec_build_inter_predictors_sb() 1521 &pool->frame_bufs[cm->new_fb_idx].raw_frame_buffer, pool->get_fb_cb, in setup_frame_size() 1527 pool->frame_bufs[cm->new_fb_idx].released = 0; in setup_frame_size() 1528 pool->frame_bufs[cm->new_fb_idx].buf.subsampling_x = cm->subsampling_x; in setup_frame_size() 1529 pool->frame_bufs[cm->new_fb_idx].buf.subsampling_y = cm->subsampling_y; in setup_frame_size() 1530 pool->frame_bufs[cm->new_fb_idx].buf.bit_depth = (unsigned int)cm->bit_depth; in setup_frame_size() 1531 pool->frame_bufs[cm->new_fb_idx].buf.color_space = cm->color_space; in setup_frame_size() 1532 pool->frame_bufs[cm->new_fb_idx].buf.color_range = cm->color_range; in setup_frame_size() 1533 pool->frame_bufs[cm->new_fb_idx].buf.render_width = cm->render_width; in setup_frame_size() 1534 pool->frame_bufs[cm->new_fb_idx].buf.render_height = cm->render_height; in setup_frame_size() [all …]
|
/external/libaom/libaom/av1/common/ |
D | alloccommon.c | 92 if (pool->frame_bufs[i].ref_count > 0 && in av1_free_ref_frame_buffers() 93 pool->frame_bufs[i].raw_frame_buffer.data != NULL) { in av1_free_ref_frame_buffers() 94 pool->release_fb_cb(pool->cb_priv, &pool->frame_bufs[i].raw_frame_buffer); in av1_free_ref_frame_buffers() 95 pool->frame_bufs[i].raw_frame_buffer.data = NULL; in av1_free_ref_frame_buffers() 96 pool->frame_bufs[i].raw_frame_buffer.size = 0; in av1_free_ref_frame_buffers() 97 pool->frame_bufs[i].raw_frame_buffer.priv = NULL; in av1_free_ref_frame_buffers() 98 pool->frame_bufs[i].ref_count = 0; in av1_free_ref_frame_buffers() 100 aom_free(pool->frame_bufs[i].mvs); in av1_free_ref_frame_buffers() 101 pool->frame_bufs[i].mvs = NULL; in av1_free_ref_frame_buffers() 102 aom_free(pool->frame_bufs[i].seg_map); in av1_free_ref_frame_buffers() [all …]
|
D | onyxc_int.h | 179 RefCntBuffer frame_bufs[FRAME_BUFFERS]; member 586 RefCntBuffer *const frame_bufs = cm->buffer_pool->frame_bufs; in get_free_fb() local 591 if (frame_bufs[i].ref_count == 0) break; in get_free_fb() 594 if (frame_bufs[i].buf.use_external_reference_buffers) { in get_free_fb() 598 YV12_BUFFER_CONFIG *ybf = &frame_bufs[i].buf; in get_free_fb() 605 frame_bufs[i].ref_count = 1; in get_free_fb() 629 cm->cur_frame = &cm->buffer_pool->frame_bufs[new_fb_idx]; in assign_cur_frame_new_fb()
|
D | entropymode.c | 1080 cm->buffer_pool->frame_bufs[i].frame_context = *cm->fc; in av1_setup_frame_contexts()
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_alloccommon.c | 68 if (!pool->frame_bufs[i].released && in vp9_free_ref_frame_buffers() 69 pool->frame_bufs[i].raw_frame_buffer.data != NULL) { in vp9_free_ref_frame_buffers() 70 pool->release_fb_cb(pool->cb_priv, &pool->frame_bufs[i].raw_frame_buffer); in vp9_free_ref_frame_buffers() 71 pool->frame_bufs[i].ref_count = 0; in vp9_free_ref_frame_buffers() 72 pool->frame_bufs[i].released = 1; in vp9_free_ref_frame_buffers() 74 vpx_free(pool->frame_bufs[i].mvs); in vp9_free_ref_frame_buffers() 75 pool->frame_bufs[i].mvs = NULL; in vp9_free_ref_frame_buffers() 76 vpx_free_frame_buffer(&pool->frame_bufs[i].buf); in vp9_free_ref_frame_buffers()
|
D | vp9_onyxc_int.h | 84 RefCntBuffer frame_bufs[FRAME_BUFFERS]; member 268 return &cm->buffer_pool->frame_bufs[index].buf; in get_buf_frame() 275 return &cm->buffer_pool->frame_bufs[cm->ref_frame_map[index]].buf; in get_ref_frame() 279 return &cm->buffer_pool->frame_bufs[cm->new_fb_idx].buf; in get_frame_new_buffer() 283 RefCntBuffer *const frame_bufs = cm->buffer_pool->frame_bufs; in get_free_fb() local 287 if (frame_bufs[i].ref_count == 0) break; in get_free_fb() 290 frame_bufs[i].ref_count = 1; in get_free_fb()
|
/external/libvpx/libvpx/vp9/ |
D | vp9_dx_iface.c | 413 RefCntBuffer *const frame_bufs = cm->buffer_pool->frame_bufs; in decoder_get_frame() local 417 ctx->img.fb_priv = frame_bufs[cm->new_fb_idx].raw_frame_buffer.priv; in decoder_get_frame() 536 RefCntBuffer *const frame_bufs = ctx->pbi->common.buffer_pool->frame_bufs; in ctrl_get_frame_corrupted() local 539 *corrupted = frame_bufs[ctx->last_show_frame].buf.corrupted; in ctrl_get_frame_corrupted()
|
/external/libaom/libaom/av1/encoder/ |
D | tpl_model.c | 475 RefCntBuffer *frame_bufs = cm->buffer_pool->frame_bufs; in init_gop_frames() local 483 if (frame_bufs[i].ref_count == 0) { in init_gop_frames() 484 alloc_frame_mvs(cm, &frame_bufs[i]); in init_gop_frames() 486 &frame_bufs[i].buf, cm->width, cm->height, in init_gop_frames() 500 cpi->tpl_recon_frames[i] = &frame_bufs[recon_frame_index[i]].buf; in init_gop_frames()
|
D | encoder.c | 3142 av1_hash_table_destroy(&cm->buffer_pool->frame_bufs[i].hash_table); in av1_remove_compressor() 3394 new_fb = &pool->frame_bufs[new_fb_idx]; in scale_references() 3618 pool->frame_bufs[i].ref_count = 0; in init_ref_frame_bufs() 3622 av1_hash_table_init(&pool->frame_bufs[i].hash_table, &cpi->td.mb); in init_ref_frame_bufs()
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_encoder.c | 3009 ref_cnt_fb(pool->frame_bufs, &cm->ref_frame_map[cpi->gld_fb_idx], 3011 ref_cnt_fb(pool->frame_bufs, &cm->ref_frame_map[cpi->alt_fb_idx], 3024 ref_cnt_fb(pool->frame_bufs, &cm->ref_frame_map[cpi->alt_fb_idx], 3041 ref_cnt_fb(pool->frame_bufs, &cm->ref_frame_map[arf_idx], cm->new_fb_idx); 3050 ref_cnt_fb(pool->frame_bufs, &cm->ref_frame_map[cpi->gld_fb_idx], 3064 ref_cnt_fb(pool->frame_bufs, &cm->ref_frame_map[cpi->lst_fb_idx], 3145 RefCntBuffer *const new_fb_ptr = &cm->buffer_pool->frame_bufs[buffer_idx]; 3185 new_fb_ptr = &pool->frame_bufs[new_fb]; 3210 new_fb_ptr = &pool->frame_bufs[new_fb]; 3231 buf = &pool->frame_bufs[buf_idx]; [all …]
|
D | vp9_encoder.h | 946 return fb_idx != INVALID_IDX ? &cm->buffer_pool->frame_bufs[fb_idx] : NULL; in get_ref_cnt_buffer() 953 return buf_idx != INVALID_IDX ? &cm->buffer_pool->frame_bufs[buf_idx].buf in get_ref_frame_buffer()
|
D | vp9_svc_layercontext.c | 1180 ref_cnt_fb(pool->frame_bufs, &cm->ref_frame_map[i], cm->new_fb_idx); in vp9_svc_update_ref_frame_bypass_mode() 1204 ref_cnt_fb(pool->frame_bufs, &cm->ref_frame_map[i], cm->new_fb_idx); in vp9_svc_update_ref_frame()
|
D | vp9_rd.c | 632 ? &cm->buffer_pool->frame_bufs[scaled_idx].buf in vp9_get_scaled_ref_frame()
|
D | vp9_firstpass.c | 1444 ref_cnt_fb(pool->frame_bufs, &cm->ref_frame_map[cpi->gld_fb_idx], in vp9_first_pass() 1455 ref_cnt_fb(pool->frame_bufs, &cm->ref_frame_map[cpi->lst_fb_idx], in vp9_first_pass() 1461 ref_cnt_fb(pool->frame_bufs, &cm->ref_frame_map[cpi->gld_fb_idx], in vp9_first_pass()
|
/external/libaom/libaom/av1/decoder/ |
D | decodeframe.c | 4820 RefCntBuffer *const frame_bufs = cm->buffer_pool->frame_bufs; in reset_frame_buffers() local 4835 if (frame_bufs[i].ref_count > 0 && &frame_bufs[i] != cm->cur_frame) { in reset_frame_buffers() 4838 frame_bufs[i].order_hint = 0; in reset_frame_buffers() 4839 av1_zero(frame_bufs[i].ref_order_hints); in reset_frame_buffers() 4854 RefCntBuffer *const frame_bufs = pool->frame_bufs; in read_uncompressed_header() local 5133 buf = &frame_bufs[buf_idx]; in read_uncompressed_header()
|