Lines Matching refs:ybf

58 void vp8_yv12_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf) {
59 assert(ybf->y_height - ybf->y_crop_height < 16);
60 assert(ybf->y_width - ybf->y_crop_width < 16);
61 assert(ybf->y_height - ybf->y_crop_height >= 0);
62 assert(ybf->y_width - ybf->y_crop_width >= 0);
64 extend_plane(ybf->y_buffer, ybf->y_stride,
65 ybf->y_crop_width, ybf->y_crop_height,
66 ybf->border, ybf->border,
67 ybf->border + ybf->y_height - ybf->y_crop_height,
68 ybf->border + ybf->y_width - ybf->y_crop_width);
70 extend_plane(ybf->u_buffer, ybf->uv_stride,
71 (ybf->y_crop_width + 1) / 2, (ybf->y_crop_height + 1) / 2,
72 ybf->border / 2, ybf->border / 2,
73 (ybf->border + ybf->y_height - ybf->y_crop_height + 1) / 2,
74 (ybf->border + ybf->y_width - ybf->y_crop_width + 1) / 2);
76 extend_plane(ybf->v_buffer, ybf->uv_stride,
77 (ybf->y_crop_width + 1) / 2, (ybf->y_crop_height + 1) / 2,
78 ybf->border / 2, ybf->border / 2,
79 (ybf->border + ybf->y_height - ybf->y_crop_height + 1) / 2,
80 (ybf->border + ybf->y_width - ybf->y_crop_width + 1) / 2);
84 static void extend_frame(YV12_BUFFER_CONFIG *const ybf, int ext_size) {
85 const int c_w = ybf->uv_crop_width;
86 const int c_h = ybf->uv_crop_height;
90 const int c_eb = c_ext_size + ybf->uv_height - ybf->uv_crop_height;
91 const int c_er = c_ext_size + ybf->uv_width - ybf->uv_crop_width;
93 assert(ybf->y_height - ybf->y_crop_height < 16);
94 assert(ybf->y_width - ybf->y_crop_width < 16);
95 assert(ybf->y_height - ybf->y_crop_height >= 0);
96 assert(ybf->y_width - ybf->y_crop_width >= 0);
98 extend_plane(ybf->y_buffer, ybf->y_stride,
99 ybf->y_crop_width, ybf->y_crop_height,
101 ext_size + ybf->y_height - ybf->y_crop_height,
102 ext_size + ybf->y_width - ybf->y_crop_width);
104 extend_plane(ybf->u_buffer, ybf->uv_stride,
107 extend_plane(ybf->v_buffer, ybf->uv_stride,
111 void vp9_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf) {
112 extend_frame(ybf, ybf->border);
115 void vp9_extend_frame_inner_borders_c(YV12_BUFFER_CONFIG *ybf) {
116 const int inner_bw = (ybf->border > VP9INNERBORDERINPIXELS) ?
117 VP9INNERBORDERINPIXELS : ybf->border;
118 extend_frame(ybf, inner_bw);