Lines Matching refs:src_bc
265 void aom_yv12_copy_frame_c(const YV12_BUFFER_CONFIG *src_bc, in aom_yv12_copy_frame_c() argument
267 assert(src_bc->y_width == dst_bc->y_width); in aom_yv12_copy_frame_c()
268 assert(src_bc->y_height == dst_bc->y_height); in aom_yv12_copy_frame_c()
271 assert((src_bc->flags & YV12_FLAG_HIGHBITDEPTH) == in aom_yv12_copy_frame_c()
274 if (src_bc->flags & YV12_FLAG_HIGHBITDEPTH) { in aom_yv12_copy_frame_c()
276 const uint8_t *plane_src = src_bc->buffers[plane]; in aom_yv12_copy_frame_c()
280 for (int row = 0; row < src_bc->heights[is_uv]; ++row) { in aom_yv12_copy_frame_c()
281 memcpy_short_addr(plane_dst, plane_src, src_bc->widths[is_uv]); in aom_yv12_copy_frame_c()
282 plane_src += src_bc->strides[is_uv]; in aom_yv12_copy_frame_c()
291 const uint8_t *plane_src = src_bc->buffers[plane]; in aom_yv12_copy_frame_c()
295 for (int row = 0; row < src_bc->heights[is_uv]; ++row) { in aom_yv12_copy_frame_c()
296 memcpy(plane_dst, plane_src, src_bc->widths[is_uv]); in aom_yv12_copy_frame_c()
297 plane_src += src_bc->strides[is_uv]; in aom_yv12_copy_frame_c()
330 void aom_yv12_copy_u_c(const YV12_BUFFER_CONFIG *src_bc, in aom_yv12_copy_u_c() argument
333 const uint8_t *src = src_bc->u_buffer; in aom_yv12_copy_u_c()
336 if (src_bc->flags & YV12_FLAG_HIGHBITDEPTH) { in aom_yv12_copy_u_c()
339 for (row = 0; row < src_bc->uv_height; ++row) { in aom_yv12_copy_u_c()
340 memcpy(dst16, src16, src_bc->uv_width * sizeof(uint16_t)); in aom_yv12_copy_u_c()
341 src16 += src_bc->uv_stride; in aom_yv12_copy_u_c()
347 for (row = 0; row < src_bc->uv_height; ++row) { in aom_yv12_copy_u_c()
348 memcpy(dst, src, src_bc->uv_width); in aom_yv12_copy_u_c()
349 src += src_bc->uv_stride; in aom_yv12_copy_u_c()
354 void aom_yv12_copy_v_c(const YV12_BUFFER_CONFIG *src_bc, in aom_yv12_copy_v_c() argument
357 const uint8_t *src = src_bc->v_buffer; in aom_yv12_copy_v_c()
360 if (src_bc->flags & YV12_FLAG_HIGHBITDEPTH) { in aom_yv12_copy_v_c()
363 for (row = 0; row < src_bc->uv_height; ++row) { in aom_yv12_copy_v_c()
364 memcpy(dst16, src16, src_bc->uv_width * sizeof(uint16_t)); in aom_yv12_copy_v_c()
365 src16 += src_bc->uv_stride; in aom_yv12_copy_v_c()
371 for (row = 0; row < src_bc->uv_height; ++row) { in aom_yv12_copy_v_c()
372 memcpy(dst, src, src_bc->uv_width); in aom_yv12_copy_v_c()
373 src += src_bc->uv_stride; in aom_yv12_copy_v_c()
417 void aom_yv12_partial_copy_u_c(const YV12_BUFFER_CONFIG *src_bc, int hstart1, in aom_yv12_partial_copy_u_c() argument
422 const uint8_t *src = src_bc->u_buffer; in aom_yv12_partial_copy_u_c()
425 if (src_bc->flags & YV12_FLAG_HIGHBITDEPTH) { in aom_yv12_partial_copy_u_c()
427 CONVERT_TO_SHORTPTR(src + vstart1 * src_bc->uv_stride + hstart1); in aom_yv12_partial_copy_u_c()
432 src16 += src_bc->uv_stride; in aom_yv12_partial_copy_u_c()
438 src = (src + vstart1 * src_bc->uv_stride + hstart1); in aom_yv12_partial_copy_u_c()
443 src += src_bc->uv_stride; in aom_yv12_partial_copy_u_c()
448 void aom_yv12_partial_coloc_copy_u_c(const YV12_BUFFER_CONFIG *src_bc, in aom_yv12_partial_coloc_copy_u_c() argument
451 aom_yv12_partial_copy_u_c(src_bc, hstart, hend, vstart, vend, dst_bc, hstart, in aom_yv12_partial_coloc_copy_u_c()
455 void aom_yv12_partial_copy_v_c(const YV12_BUFFER_CONFIG *src_bc, int hstart1, in aom_yv12_partial_copy_v_c() argument
460 const uint8_t *src = src_bc->v_buffer; in aom_yv12_partial_copy_v_c()
463 if (src_bc->flags & YV12_FLAG_HIGHBITDEPTH) { in aom_yv12_partial_copy_v_c()
465 CONVERT_TO_SHORTPTR(src + vstart1 * src_bc->uv_stride + hstart1); in aom_yv12_partial_copy_v_c()
470 src16 += src_bc->uv_stride; in aom_yv12_partial_copy_v_c()
476 src = (src + vstart1 * src_bc->uv_stride + hstart1); in aom_yv12_partial_copy_v_c()
481 src += src_bc->uv_stride; in aom_yv12_partial_copy_v_c()
486 void aom_yv12_partial_coloc_copy_v_c(const YV12_BUFFER_CONFIG *src_bc, in aom_yv12_partial_coloc_copy_v_c() argument
489 aom_yv12_partial_copy_v_c(src_bc, hstart, hend, vstart, vend, dst_bc, hstart, in aom_yv12_partial_coloc_copy_v_c()