Lines Matching refs:ybf
103 static void extend_frame(YV12_BUFFER_CONFIG *const ybf, int ext_size) {
104 const int c_w = ybf->uv_crop_width;
105 const int c_h = ybf->uv_crop_height;
106 const int ss_x = ybf->uv_width < ybf->y_width;
107 const int ss_y = ybf->uv_height < ybf->y_height;
110 const int c_eb = c_et + ybf->uv_height - ybf->uv_crop_height;
111 const int c_er = c_el + ybf->uv_width - ybf->uv_crop_width;
113 assert(ybf->y_height - ybf->y_crop_height < 16);
114 assert(ybf->y_width - ybf->y_crop_width < 16);
115 assert(ybf->y_height - ybf->y_crop_height >= 0);
116 assert(ybf->y_width - ybf->y_crop_width >= 0);
118 extend_plane(ybf->y_buffer, ybf->y_stride, ybf->y_crop_width,
119 ybf->y_crop_height, ext_size, ext_size,
120 ext_size + ybf->y_height - ybf->y_crop_height,
121 ext_size + ybf->y_width - ybf->y_crop_width);
123 extend_plane(ybf->u_buffer, ybf->uv_stride, c_w, c_h, c_et, c_el, c_eb, c_er);
125 extend_plane(ybf->v_buffer, ybf->uv_stride, c_w, c_h, c_et, c_el, c_eb, c_er);
128 void vpx_extend_frame_borders_dspr2(YV12_BUFFER_CONFIG *ybf) {
129 extend_frame(ybf, ybf->border);
132 void vpx_extend_frame_inner_borders_dspr2(YV12_BUFFER_CONFIG *ybf) {
133 const int inner_bw = (ybf->border > VP9INNERBORDERINPIXELS)
135 : ybf->border;
136 extend_frame(ybf, inner_bw);