• Home
  • Raw
  • Download

Lines Matching refs:oci

34 void vp8_de_alloc_frame_buffers(VP8_COMMON *oci)  in vp8_de_alloc_frame_buffers()  argument
39 vp8_yv12_de_alloc_frame_buffer(&oci->yv12_fb[i]); in vp8_de_alloc_frame_buffers()
41 vp8_yv12_de_alloc_frame_buffer(&oci->temp_scale_frame); in vp8_de_alloc_frame_buffers()
42 vp8_yv12_de_alloc_frame_buffer(&oci->post_proc_buffer); in vp8_de_alloc_frame_buffers()
44 vpx_free(oci->above_context); in vp8_de_alloc_frame_buffers()
45 vpx_free(oci->mip); in vp8_de_alloc_frame_buffers()
47 oci->above_context = 0; in vp8_de_alloc_frame_buffers()
48 oci->mip = 0; in vp8_de_alloc_frame_buffers()
52 int vp8_alloc_frame_buffers(VP8_COMMON *oci, int width, int height) in vp8_alloc_frame_buffers() argument
56 vp8_de_alloc_frame_buffers(oci); in vp8_alloc_frame_buffers()
68 oci->fb_idx_ref_cnt[0] = 0; in vp8_alloc_frame_buffers()
70 if (vp8_yv12_alloc_frame_buffer(&oci->yv12_fb[i], width, height, VP8BORDERINPIXELS) < 0) in vp8_alloc_frame_buffers()
72 vp8_de_alloc_frame_buffers(oci); in vp8_alloc_frame_buffers()
77 oci->new_fb_idx = 0; in vp8_alloc_frame_buffers()
78 oci->lst_fb_idx = 1; in vp8_alloc_frame_buffers()
79 oci->gld_fb_idx = 2; in vp8_alloc_frame_buffers()
80 oci->alt_fb_idx = 3; in vp8_alloc_frame_buffers()
82 oci->fb_idx_ref_cnt[0] = 1; in vp8_alloc_frame_buffers()
83 oci->fb_idx_ref_cnt[1] = 1; in vp8_alloc_frame_buffers()
84 oci->fb_idx_ref_cnt[2] = 1; in vp8_alloc_frame_buffers()
85 oci->fb_idx_ref_cnt[3] = 1; in vp8_alloc_frame_buffers()
87 if (vp8_yv12_alloc_frame_buffer(&oci->temp_scale_frame, width, 16, VP8BORDERINPIXELS) < 0) in vp8_alloc_frame_buffers()
89 vp8_de_alloc_frame_buffers(oci); in vp8_alloc_frame_buffers()
93 if (vp8_yv12_alloc_frame_buffer(&oci->post_proc_buffer, width, height, VP8BORDERINPIXELS) < 0) in vp8_alloc_frame_buffers()
95 vp8_de_alloc_frame_buffers(oci); in vp8_alloc_frame_buffers()
99 oci->mb_rows = height >> 4; in vp8_alloc_frame_buffers()
100 oci->mb_cols = width >> 4; in vp8_alloc_frame_buffers()
101 oci->MBs = oci->mb_rows * oci->mb_cols; in vp8_alloc_frame_buffers()
102 oci->mode_info_stride = oci->mb_cols + 1; in vp8_alloc_frame_buffers()
103 oci->mip = vpx_calloc((oci->mb_cols + 1) * (oci->mb_rows + 1), sizeof(MODE_INFO)); in vp8_alloc_frame_buffers()
105 if (!oci->mip) in vp8_alloc_frame_buffers()
107 vp8_de_alloc_frame_buffers(oci); in vp8_alloc_frame_buffers()
111 oci->mi = oci->mip + oci->mode_info_stride + 1; in vp8_alloc_frame_buffers()
114 oci->above_context = vpx_calloc(sizeof(ENTROPY_CONTEXT_PLANES) * oci->mb_cols, 1); in vp8_alloc_frame_buffers()
116 if (!oci->above_context) in vp8_alloc_frame_buffers()
118 vp8_de_alloc_frame_buffers(oci); in vp8_alloc_frame_buffers()
122 update_mode_info_border(oci->mi, oci->mb_rows, oci->mb_cols); in vp8_alloc_frame_buffers()
163 void vp8_create_common(VP8_COMMON *oci) in vp8_create_common() argument
165 vp8_machine_specific_config(oci); in vp8_create_common()
166 vp8_default_coef_probs(oci); in vp8_create_common()
167 vp8_init_mbmode_probs(oci); in vp8_create_common()
168 vp8_default_bmode_probs(oci->fc.bmode_prob); in vp8_create_common()
170 oci->mb_no_coeff_skip = 1; in vp8_create_common()
171 oci->no_lpf = 0; in vp8_create_common()
172 oci->simpler_lpf = 0; in vp8_create_common()
173 oci->use_bilinear_mc_filter = 0; in vp8_create_common()
174 oci->full_pixel = 0; in vp8_create_common()
175 oci->multi_token_partition = ONE_PARTITION; in vp8_create_common()
176 oci->clr_type = REG_YUV; in vp8_create_common()
177 oci->clamp_type = RECON_CLAMP_REQUIRED; in vp8_create_common()
180 vpx_memset(oci->ref_frame_sign_bias, 0, sizeof(oci->ref_frame_sign_bias)); in vp8_create_common()
183 oci->copy_buffer_to_gf = 0; in vp8_create_common()
184 oci->copy_buffer_to_arf = 0; in vp8_create_common()
187 void vp8_remove_common(VP8_COMMON *oci) in vp8_remove_common() argument
189 vp8_de_alloc_frame_buffers(oci); in vp8_remove_common()