Home | History | Annotate | Download | only in decoder

Lines Matching refs:pbi

114   VP9D_COMP *const pbi = vpx_memalign(32, sizeof(VP9D_COMP));
115 VP9_COMMON *const cm = pbi ? &pbi->common : NULL;
120 vp9_zero(*pbi);
127 vp9_remove_decompressor(pbi);
136 pbi->oxcf = *oxcf;
137 pbi->ready_for_new_data = 1;
148 pbi->decoded_key_frame = 0;
150 vp9_worker_init(&pbi->lf_worker);
152 return pbi;
155 void vp9_remove_decompressor(VP9D_COMP *pbi) {
156 VP9_COMMON *const cm = &pbi->common;
160 vp9_worker_end(&pbi->lf_worker);
161 vpx_free(pbi->lf_worker.data1);
162 for (i = 0; i < pbi->num_tile_workers; ++i) {
163 VP9Worker *const worker = &pbi->tile_workers[i];
168 vpx_free(pbi->tile_workers);
170 if (pbi->num_tile_workers) {
173 vp9_loop_filter_dealloc(&pbi->lf_row_sync, sb_rows);
176 vpx_free(pbi);
185 vpx_codec_err_t vp9_copy_reference_dec(VP9D_COMP *pbi,
188 VP9_COMMON *cm = &pbi->common;
255 int vp9_get_reference_dec(VP9D_COMP *pbi, int index, YV12_BUFFER_CONFIG **fb) {
256 VP9_COMMON *cm = &pbi->common;
266 static void swap_frame_buffers(VP9D_COMP *pbi) {
268 VP9_COMMON *const cm = &pbi->common;
270 for (mask = pbi->refresh_frame_flags; mask; mask >>= 1) {
290 int vp9_receive_compressed_data(VP9D_COMP *pbi,
293 VP9_COMMON *const cm = &pbi->common;
339 retcode = vp9_decode_frame(pbi, source, source + size, psource);
349 swap_frame_buffers(pbi);
360 if (!pbi->do_loopfilter_inline) {
363 if (pbi->num_tile_workers) {
364 vp9_loop_filter_frame_mt(pbi, cm, &pbi->mb, cm->lf.filter_level, 0, 0);
366 vp9_loop_filter_frame(cm, &pbi->mb, cm->lf.filter_level, 0, 0);
399 pbi->ready_for_new_data = 0;
400 pbi->last_time_stamp = time_stamp;
406 int vp9_get_raw_frame(VP9D_COMP *pbi, YV12_BUFFER_CONFIG *sd,
412 if (pbi->ready_for_new_data == 1)
416 if (pbi->common.show_frame == 0)
419 pbi->ready_for_new_data = 1;
420 *time_stamp = pbi->last_time_stamp;
424 ret = vp9_post_proc_frame(&pbi->common, sd, flags);
427 if (pbi->common.frame_to_show) {
428 *sd = *pbi->common.frame_to_show;
429 sd->y_width = pbi->common.width;
430 sd->y_height = pbi->common.height;
431 sd->uv_width = sd->y_width >> pbi->common.subsampling_x;
432 sd->uv_height = sd->y_height >> pbi->common.subsampling_y;