Home | History | Annotate | Download | only in encoder

Lines Matching refs:src

18 static void copy_and_extend_plane(const uint8_t *src, int src_pitch,
25 const uint8_t *src_ptr1 = src;
26 const uint8_t *src_ptr2 = src + w - 1;
65 uint16_t *src = CONVERT_TO_SHORTPTR(src8);
69 const uint16_t *src_ptr1 = src;
70 const uint16_t *src_ptr2 = src + w - 1;
104 void vp9_copy_and_extend_frame(const YV12_BUFFER_CONFIG *src,
106 // Extend src frame in buffer
110 // Motion estimation may use src block variance with the block size up
114 VPXMAX(src->y_width + 16, ALIGN_POWER_OF_TWO(src->y_width, 6)) -
115 src->y_crop_width;
117 VPXMAX(src->y_height + 16, ALIGN_POWER_OF_TWO(src->y_height, 6)) -
118 src->y_crop_height;
119 const int uv_width_subsampling = (src->uv_width != src->y_width);
120 const int uv_height_subsampling = (src->uv_height != src->y_height);
127 if (src->flags & YV12_FLAG_HIGHBITDEPTH) {
128 highbd_copy_and_extend_plane(src->y_buffer, src->y_stride, dst->y_buffer,
129 dst->y_stride, src->y_crop_width,
130 src->y_crop_height, et_y, el_y, eb_y, er_y);
133 src->u_buffer, src->uv_stride, dst->u_buffer, dst->uv_stride,
134 src->uv_crop_width, src->uv_crop_height, et_uv, el_uv, eb_uv, er_uv);
137 src->v_buffer, src->uv_stride, dst->v_buffer, dst->uv_stride,
138 src->uv_crop_width, src->uv_crop_height, et_uv, el_uv, eb_uv, er_uv);
143 copy_and_extend_plane(src->y_buffer, src->y_stride, dst->y_buffer,
144 dst->y_stride, src->y_crop_width, src->y_crop_height,
147 copy_and_extend_plane(src->u_buffer, src->uv_stride, dst->u_buffer,
148 dst->uv_stride, src->uv_crop_width, src->uv_crop_height,
151 copy_and_extend_plane(src->v_buffer, src->uv_stride, dst->v_buffer,
152 dst->uv_stride, src->uv_crop_width, src->uv_crop_height,
156 void vp9_copy_and_extend_frame_with_rect(const YV12_BUFFER_CONFIG *src,
162 const int eb_y = srcy + srch != src->y_height
164 : dst->border + dst->y_height - src->y_height;
165 const int er_y = srcx + srcw != src->y_width
167 : dst->border + dst->y_width - src->y_width;
168 const int src_y_offset = srcy * src->y_stride + srcx;
175 const int src_uv_offset = ((srcy * src->uv_stride) >> 1) + (srcx >> 1);
180 copy_and_extend_plane(src->y_buffer + src_y_offset, src->y_stride,
184 copy_and_extend_plane(src->u_buffer + src_uv_offset, src->uv_stride,
188 copy_and_extend_plane(src->v_buffer + src_uv_offset, src->uv_stride,