Lines Matching defs:ybf

107 void vp8_yv12_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf) {
108 const int uv_border = ybf->border / 2;
110 assert(ybf->border % 2 == 0);
111 assert(ybf->y_height - ybf->y_crop_height < 16);
112 assert(ybf->y_width - ybf->y_crop_width < 16);
113 assert(ybf->y_height - ybf->y_crop_height >= 0);
114 assert(ybf->y_width - ybf->y_crop_width >= 0);
117 if (ybf->flags & YV12_FLAG_HIGHBITDEPTH) {
119 ybf->y_buffer, ybf->y_stride,
120 ybf->y_crop_width, ybf->y_crop_height,
121 ybf->border, ybf->border,
122 ybf->border + ybf->y_height - ybf->y_crop_height,
123 ybf->border + ybf->y_width - ybf->y_crop_width);
126 ybf->u_buffer, ybf->uv_stride,
127 ybf->uv_crop_width, ybf->uv_crop_height,
129 uv_border + ybf->uv_height - ybf->uv_crop_height,
130 uv_border + ybf->uv_width - ybf->uv_crop_width);
133 ybf->v_buffer, ybf->uv_stride,
134 ybf->uv_crop_width, ybf->uv_crop_height,
136 uv_border + ybf->uv_height - ybf->uv_crop_height,
137 uv_border + ybf->uv_width - ybf->uv_crop_width);
141 extend_plane(ybf->y_buffer, ybf->y_stride,
142 ybf->y_crop_width, ybf->y_crop_height,
143 ybf->border, ybf->border,
144 ybf->border + ybf->y_height - ybf->y_crop_height,
145 ybf->border + ybf->y_width - ybf->y_crop_width);
147 extend_plane(ybf->u_buffer, ybf->uv_stride,
148 ybf->uv_crop_width, ybf->uv_crop_height,
150 uv_border + ybf->uv_height - ybf->uv_crop_height,
151 uv_border + ybf->uv_width - ybf->uv_crop_width);
153 extend_plane(ybf->v_buffer, ybf->uv_stride,
154 ybf->uv_crop_width, ybf->uv_crop_height,
156 uv_border + ybf->uv_height - ybf->uv_crop_height,
157 uv_border + ybf->uv_width - ybf->uv_crop_width);
161 static void extend_frame(YV12_BUFFER_CONFIG *const ybf, int ext_size) {
162 const int c_w = ybf->uv_crop_width;
163 const int c_h = ybf->uv_crop_height;
164 const int ss_x = ybf->uv_width < ybf->y_width;
165 const int ss_y = ybf->uv_height < ybf->y_height;
168 const int c_eb = c_et + ybf->uv_height - ybf->uv_crop_height;
169 const int c_er = c_el + ybf->uv_width - ybf->uv_crop_width;
171 assert(ybf->y_height - ybf->y_crop_height < 16);
172 assert(ybf->y_width - ybf->y_crop_width < 16);
173 assert(ybf->y_height - ybf->y_crop_height >= 0);
174 assert(ybf->y_width - ybf->y_crop_width >= 0);
177 if (ybf->flags & YV12_FLAG_HIGHBITDEPTH) {
178 extend_plane_high(ybf->y_buffer, ybf->y_stride,
179 ybf->y_crop_width, ybf->y_crop_height,
181 ext_size + ybf->y_height - ybf->y_crop_height,
182 ext_size + ybf->y_width - ybf->y_crop_width);
183 extend_plane_high(ybf->u_buffer, ybf->uv_stride,
185 extend_plane_high(ybf->v_buffer, ybf->uv_stride,
190 extend_plane(ybf->y_buffer, ybf->y_stride,
191 ybf->y_crop_width, ybf->y_crop_height,
193 ext_size + ybf->y_height - ybf->y_crop_height,
194 ext_size + ybf->y_width - ybf->y_crop_width);
196 extend_plane(ybf->u_buffer, ybf->uv_stride,
199 extend_plane(ybf->v_buffer, ybf->uv_stride,
203 void vpx_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf) {
204 extend_frame(ybf, ybf->border);
207 void vpx_extend_frame_inner_borders_c(YV12_BUFFER_CONFIG *ybf) {
208 const int inner_bw = (ybf->border > VP9INNERBORDERINPIXELS) ?
209 VP9INNERBORDERINPIXELS : ybf->border;
210 extend_frame(ybf, inner_bw);