Lines Matching refs:ybf
105 void vp8_yv12_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf) { in vp8_yv12_extend_frame_borders_c() argument
106 const int uv_border = ybf->border / 2; in vp8_yv12_extend_frame_borders_c()
108 assert(ybf->border % 2 == 0); in vp8_yv12_extend_frame_borders_c()
109 assert(ybf->y_height - ybf->y_crop_height < 16); in vp8_yv12_extend_frame_borders_c()
110 assert(ybf->y_width - ybf->y_crop_width < 16); in vp8_yv12_extend_frame_borders_c()
111 assert(ybf->y_height - ybf->y_crop_height >= 0); in vp8_yv12_extend_frame_borders_c()
112 assert(ybf->y_width - ybf->y_crop_width >= 0); in vp8_yv12_extend_frame_borders_c()
114 extend_plane(ybf->y_buffer, ybf->y_stride, ybf->y_crop_width, in vp8_yv12_extend_frame_borders_c()
115 ybf->y_crop_height, ybf->border, ybf->border, in vp8_yv12_extend_frame_borders_c()
116 ybf->border + ybf->y_height - ybf->y_crop_height, in vp8_yv12_extend_frame_borders_c()
117 ybf->border + ybf->y_width - ybf->y_crop_width); in vp8_yv12_extend_frame_borders_c()
119 extend_plane(ybf->u_buffer, ybf->uv_stride, ybf->uv_crop_width, in vp8_yv12_extend_frame_borders_c()
120 ybf->uv_crop_height, uv_border, uv_border, in vp8_yv12_extend_frame_borders_c()
121 uv_border + ybf->uv_height - ybf->uv_crop_height, in vp8_yv12_extend_frame_borders_c()
122 uv_border + ybf->uv_width - ybf->uv_crop_width); in vp8_yv12_extend_frame_borders_c()
124 extend_plane(ybf->v_buffer, ybf->uv_stride, ybf->uv_crop_width, in vp8_yv12_extend_frame_borders_c()
125 ybf->uv_crop_height, uv_border, uv_border, in vp8_yv12_extend_frame_borders_c()
126 uv_border + ybf->uv_height - ybf->uv_crop_height, in vp8_yv12_extend_frame_borders_c()
127 uv_border + ybf->uv_width - ybf->uv_crop_width); in vp8_yv12_extend_frame_borders_c()
131 static void extend_frame(YV12_BUFFER_CONFIG *const ybf, int ext_size) { in extend_frame() argument
132 const int c_w = ybf->uv_crop_width; in extend_frame()
133 const int c_h = ybf->uv_crop_height; in extend_frame()
134 const int ss_x = ybf->uv_width < ybf->y_width; in extend_frame()
135 const int ss_y = ybf->uv_height < ybf->y_height; in extend_frame()
138 const int c_eb = c_et + ybf->uv_height - ybf->uv_crop_height; in extend_frame()
139 const int c_er = c_el + ybf->uv_width - ybf->uv_crop_width; in extend_frame()
141 assert(ybf->y_height - ybf->y_crop_height < 16); in extend_frame()
142 assert(ybf->y_width - ybf->y_crop_width < 16); in extend_frame()
143 assert(ybf->y_height - ybf->y_crop_height >= 0); in extend_frame()
144 assert(ybf->y_width - ybf->y_crop_width >= 0); in extend_frame()
147 if (ybf->flags & YV12_FLAG_HIGHBITDEPTH) { in extend_frame()
148 extend_plane_high(ybf->y_buffer, ybf->y_stride, ybf->y_crop_width, in extend_frame()
149 ybf->y_crop_height, ext_size, ext_size, in extend_frame()
150 ext_size + ybf->y_height - ybf->y_crop_height, in extend_frame()
151 ext_size + ybf->y_width - ybf->y_crop_width); in extend_frame()
152 extend_plane_high(ybf->u_buffer, ybf->uv_stride, c_w, c_h, c_et, c_el, c_eb, in extend_frame()
154 extend_plane_high(ybf->v_buffer, ybf->uv_stride, c_w, c_h, c_et, c_el, c_eb, in extend_frame()
159 extend_plane(ybf->y_buffer, ybf->y_stride, ybf->y_crop_width, in extend_frame()
160 ybf->y_crop_height, ext_size, ext_size, in extend_frame()
161 ext_size + ybf->y_height - ybf->y_crop_height, in extend_frame()
162 ext_size + ybf->y_width - ybf->y_crop_width); in extend_frame()
164 extend_plane(ybf->u_buffer, ybf->uv_stride, c_w, c_h, c_et, c_el, c_eb, c_er); in extend_frame()
166 extend_plane(ybf->v_buffer, ybf->uv_stride, c_w, c_h, c_et, c_el, c_eb, c_er); in extend_frame()
169 void vpx_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf) { in vpx_extend_frame_borders_c() argument
170 extend_frame(ybf, ybf->border); in vpx_extend_frame_borders_c()
173 void vpx_extend_frame_inner_borders_c(YV12_BUFFER_CONFIG *ybf) { in vpx_extend_frame_inner_borders_c() argument
174 const int inner_bw = (ybf->border > VP9INNERBORDERINPIXELS) in vpx_extend_frame_inner_borders_c()
176 : ybf->border; in vpx_extend_frame_inner_borders_c()
177 extend_frame(ybf, inner_bw); in vpx_extend_frame_inner_borders_c()