Lines Matching refs:pbi
38 extern void vp8cx_init_de_quantizer(VP8D_COMP *pbi);
56 VP8D_COMP *pbi = vpx_memalign(32, sizeof(VP8D_COMP)); in vp8dx_create_decompressor() local
58 if (!pbi) in vp8dx_create_decompressor()
61 vpx_memset(pbi, 0, sizeof(VP8D_COMP)); in vp8dx_create_decompressor()
63 if (setjmp(pbi->common.error.jmp)) in vp8dx_create_decompressor()
65 pbi->common.error.setjmp = 0; in vp8dx_create_decompressor()
66 vp8dx_remove_decompressor(pbi); in vp8dx_create_decompressor()
70 pbi->common.error.setjmp = 1; in vp8dx_create_decompressor()
73 vp8_create_common(&pbi->common); in vp8dx_create_decompressor()
74 vp8_dmachine_specific_config(pbi); in vp8dx_create_decompressor()
76 pbi->common.current_video_frame = 0; in vp8dx_create_decompressor()
77 pbi->ready_for_new_data = 1; in vp8dx_create_decompressor()
79 pbi->CPUFreq = 0; /*vp8_get_processor_freq();*/ in vp8dx_create_decompressor()
81 pbi->max_threads = oxcf->max_threads; in vp8dx_create_decompressor()
82 vp8_decoder_create_threads(pbi); in vp8dx_create_decompressor()
88 vp8cx_init_de_quantizer(pbi); in vp8dx_create_decompressor()
91 VP8_COMMON *cm = &pbi->common; in vp8dx_create_decompressor()
99 pbi->common.error.setjmp = 0; in vp8dx_create_decompressor()
100 return (VP8D_PTR) pbi; in vp8dx_create_decompressor()
106 VP8D_COMP *pbi = (VP8D_COMP *) ptr; in vp8dx_remove_decompressor() local
108 if (!pbi) in vp8dx_remove_decompressor()
112 if (pbi->b_multithreaded_rd) in vp8dx_remove_decompressor()
113 vp8mt_de_alloc_temp_buffers(pbi, pbi->common.mb_rows); in vp8dx_remove_decompressor()
114 vp8_decoder_remove_threads(pbi); in vp8dx_remove_decompressor()
116 vp8_remove_common(&pbi->common); in vp8dx_remove_decompressor()
117 vpx_free(pbi); in vp8dx_remove_decompressor()
123 VP8D_COMP *pbi = (VP8D_COMP *) ptr; in vp8dx_get_reference() local
124 VP8_COMMON *cm = &pbi->common; in vp8dx_get_reference()
144 VP8D_COMP *pbi = (VP8D_COMP *) ptr; in vp8dx_set_reference() local
145 VP8_COMMON *cm = &pbi->common; in vp8dx_set_reference()
252 VP8D_COMP *pbi = (VP8D_COMP *) ptr; in vp8dx_receive_compressed_data() local
253 VP8_COMMON *cm = &pbi->common; in vp8dx_receive_compressed_data()
265 pbi->common.error.error_code = VPX_CODEC_OK; in vp8dx_receive_compressed_data()
295 if (setjmp(pbi->common.error.jmp)) in vp8dx_receive_compressed_data()
305 pbi->common.error.setjmp = 0; in vp8dx_receive_compressed_data()
318 pbi->common.error.setjmp = 1; in vp8dx_receive_compressed_data()
323 pbi->Source = source; in vp8dx_receive_compressed_data()
324 pbi->source_sz = size; in vp8dx_receive_compressed_data()
326 retcode = vp8_decode_frame(pbi); in vp8dx_receive_compressed_data()
338 pbi->common.error.error_code = VPX_CODEC_ERROR; in vp8dx_receive_compressed_data()
339 pbi->common.error.setjmp = 0; in vp8dx_receive_compressed_data()
346 if (pbi->b_multithreaded_rd && cm->multi_token_partition != ONE_PARTITION) in vp8dx_receive_compressed_data()
358 pbi->common.error.error_code = VPX_CODEC_ERROR; in vp8dx_receive_compressed_data()
359 pbi->common.error.setjmp = 0; in vp8dx_receive_compressed_data()
375 pbi->common.error.error_code = VPX_CODEC_ERROR; in vp8dx_receive_compressed_data()
376 pbi->common.error.setjmp = 0; in vp8dx_receive_compressed_data()
380 if(pbi->common.filter_level) in vp8dx_receive_compressed_data()
386 vp8_loop_filter_frame(cm, &pbi->mb, cm->filter_level); in vp8dx_receive_compressed_data()
389 pbi->time_loop_filtering += vpx_usec_timer_elapsed(&lpftimer); in vp8dx_receive_compressed_data()
402 pbi->decode_microseconds = vpx_usec_timer_elapsed(&timer); in vp8dx_receive_compressed_data()
404 pbi->time_decoding += pbi->decode_microseconds; in vp8dx_receive_compressed_data()
411 pbi->ready_for_new_data = 0; in vp8dx_receive_compressed_data()
412 pbi->last_time_stamp = time_stamp; in vp8dx_receive_compressed_data()
417 INT64 earliest_time = pbi->dr[0].time_stamp; in vp8dx_receive_compressed_data()
418 INT64 latest_time = pbi->dr[0].time_stamp; in vp8dx_receive_compressed_data()
422 pbi->dr[pbi->common.current_video_frame&0xf].size = pbi->bc.pos + pbi->bc2.pos + 4;; in vp8dx_receive_compressed_data()
423 pbi->dr[pbi->common.current_video_frame&0xf].time_stamp = time_stamp; in vp8dx_receive_compressed_data()
428 bytes += pbi->dr[i].size; in vp8dx_receive_compressed_data()
430 if (pbi->dr[i].time_stamp < earliest_time) in vp8dx_receive_compressed_data()
431 earliest_time = pbi->dr[i].time_stamp; in vp8dx_receive_compressed_data()
433 if (pbi->dr[i].time_stamp > latest_time) in vp8dx_receive_compressed_data()
434 latest_time = pbi->dr[i].time_stamp; in vp8dx_receive_compressed_data()
441 pbi->common.bitrate = 80000.00 * bytes / time_diff ; in vp8dx_receive_compressed_data()
442 pbi->common.framerate = 160000000.00 / time_diff ; in vp8dx_receive_compressed_data()
456 pbi->common.error.setjmp = 0; in vp8dx_receive_compressed_data()
462 VP8D_COMP *pbi = (VP8D_COMP *) ptr; in vp8dx_get_raw_frame() local
464 if (pbi->ready_for_new_data == 1) in vp8dx_get_raw_frame()
468 if (pbi->common.show_frame == 0) in vp8dx_get_raw_frame()
471 pbi->ready_for_new_data = 1; in vp8dx_get_raw_frame()
472 *time_stamp = pbi->last_time_stamp; in vp8dx_get_raw_frame()
475 sd->clrtype = pbi->common.clr_type; in vp8dx_get_raw_frame()
477 ret = vp8_post_proc_frame(&pbi->common, sd, flags); in vp8dx_get_raw_frame()
480 if (pbi->common.frame_to_show) in vp8dx_get_raw_frame()
482 *sd = *pbi->common.frame_to_show; in vp8dx_get_raw_frame()
483 sd->y_width = pbi->common.Width; in vp8dx_get_raw_frame()
484 sd->y_height = pbi->common.Height; in vp8dx_get_raw_frame()
485 sd->uv_height = pbi->common.Height / 2; in vp8dx_get_raw_frame()