2010-05-18 17:58:33 +02:00
|
|
|
/*
|
2010-09-09 14:16:39 +02:00
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 17:58:33 +02:00
|
|
|
*
|
2010-06-18 18:39:21 +02:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-04 22:19:40 +02:00
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
2010-06-18 18:39:21 +02:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-04 22:19:40 +02:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 17:58:33 +02:00
|
|
|
*/
|
|
|
|
|
2013-02-06 23:22:17 +01:00
|
|
|
#include <assert.h>
|
2013-05-09 01:18:44 +02:00
|
|
|
#include "./vpx_config.h"
|
2015-05-15 04:50:56 +02:00
|
|
|
#include "./vpx_scale_rtcd.h"
|
2013-08-23 04:49:24 +02:00
|
|
|
#include "vpx/vpx_integer.h"
|
2010-05-18 17:58:33 +02:00
|
|
|
#include "vpx_mem/vpx_mem.h"
|
2015-05-12 04:09:22 +02:00
|
|
|
#include "vpx_ports/mem.h"
|
2013-08-23 04:49:24 +02:00
|
|
|
#include "vpx_scale/yv12config.h"
|
2015-08-14 21:16:07 +02:00
|
|
|
#if CONFIG_VP9_HIGHBITDEPTH
|
2014-08-26 21:35:15 +02:00
|
|
|
#include "vp9/common/vp9_common.h"
|
|
|
|
#endif
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2016-07-25 23:32:36 +02:00
|
|
|
static void extend_plane(uint8_t *const src, int src_stride, int width,
|
|
|
|
int height, int extend_top, int extend_left,
|
2013-08-23 04:49:24 +02:00
|
|
|
int extend_bottom, int extend_right) {
|
2012-07-14 00:21:29 +02:00
|
|
|
int i;
|
2013-08-23 04:49:24 +02:00
|
|
|
const int linesize = extend_left + extend_right + width;
|
2012-07-14 00:21:29 +02:00
|
|
|
|
|
|
|
/* copy the left and right most columns out */
|
2013-08-23 04:49:24 +02:00
|
|
|
uint8_t *src_ptr1 = src;
|
|
|
|
uint8_t *src_ptr2 = src + width - 1;
|
|
|
|
uint8_t *dst_ptr1 = src - extend_left;
|
|
|
|
uint8_t *dst_ptr2 = src + width;
|
|
|
|
|
|
|
|
for (i = 0; i < height; ++i) {
|
2015-04-24 05:47:40 +02:00
|
|
|
memset(dst_ptr1, src_ptr1[0], extend_left);
|
|
|
|
memset(dst_ptr2, src_ptr2[0], extend_right);
|
2013-08-23 04:49:24 +02:00
|
|
|
src_ptr1 += src_stride;
|
|
|
|
src_ptr2 += src_stride;
|
|
|
|
dst_ptr1 += src_stride;
|
|
|
|
dst_ptr2 += src_stride;
|
2012-07-14 00:21:29 +02:00
|
|
|
}
|
|
|
|
|
2013-03-14 01:09:05 +01:00
|
|
|
/* Now copy the top and bottom lines into each line of the respective
|
|
|
|
* borders
|
|
|
|
*/
|
2013-08-23 04:49:24 +02:00
|
|
|
src_ptr1 = src - extend_left;
|
|
|
|
src_ptr2 = src + src_stride * (height - 1) - extend_left;
|
|
|
|
dst_ptr1 = src + src_stride * -extend_top - extend_left;
|
|
|
|
dst_ptr2 = src + src_stride * height - extend_left;
|
|
|
|
|
|
|
|
for (i = 0; i < extend_top; ++i) {
|
2015-04-24 05:42:19 +02:00
|
|
|
memcpy(dst_ptr1, src_ptr1, linesize);
|
2013-08-23 04:49:24 +02:00
|
|
|
dst_ptr1 += src_stride;
|
2012-07-14 00:21:29 +02:00
|
|
|
}
|
|
|
|
|
2013-08-23 04:49:24 +02:00
|
|
|
for (i = 0; i < extend_bottom; ++i) {
|
2015-04-24 05:42:19 +02:00
|
|
|
memcpy(dst_ptr2, src_ptr2, linesize);
|
2013-08-23 04:49:24 +02:00
|
|
|
dst_ptr2 += src_stride;
|
2012-07-14 00:21:29 +02:00
|
|
|
}
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2015-08-14 21:16:07 +02:00
|
|
|
#if CONFIG_VP9_HIGHBITDEPTH
|
2016-07-25 23:32:36 +02:00
|
|
|
static void extend_plane_high(uint8_t *const src8, int src_stride, int width,
|
|
|
|
int height, int extend_top, int extend_left,
|
2014-08-26 21:35:15 +02:00
|
|
|
int extend_bottom, int extend_right) {
|
|
|
|
int i;
|
|
|
|
const int linesize = extend_left + extend_right + width;
|
|
|
|
uint16_t *src = CONVERT_TO_SHORTPTR(src8);
|
|
|
|
|
|
|
|
/* copy the left and right most columns out */
|
|
|
|
uint16_t *src_ptr1 = src;
|
|
|
|
uint16_t *src_ptr2 = src + width - 1;
|
|
|
|
uint16_t *dst_ptr1 = src - extend_left;
|
|
|
|
uint16_t *dst_ptr2 = src + width;
|
|
|
|
|
|
|
|
for (i = 0; i < height; ++i) {
|
|
|
|
vpx_memset16(dst_ptr1, src_ptr1[0], extend_left);
|
|
|
|
vpx_memset16(dst_ptr2, src_ptr2[0], extend_right);
|
|
|
|
src_ptr1 += src_stride;
|
|
|
|
src_ptr2 += src_stride;
|
|
|
|
dst_ptr1 += src_stride;
|
|
|
|
dst_ptr2 += src_stride;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Now copy the top and bottom lines into each line of the respective
|
|
|
|
* borders
|
|
|
|
*/
|
|
|
|
src_ptr1 = src - extend_left;
|
|
|
|
src_ptr2 = src + src_stride * (height - 1) - extend_left;
|
|
|
|
dst_ptr1 = src + src_stride * -extend_top - extend_left;
|
|
|
|
dst_ptr2 = src + src_stride * height - extend_left;
|
|
|
|
|
|
|
|
for (i = 0; i < extend_top; ++i) {
|
2015-04-24 05:42:19 +02:00
|
|
|
memcpy(dst_ptr1, src_ptr1, linesize * sizeof(uint16_t));
|
2014-08-26 21:35:15 +02:00
|
|
|
dst_ptr1 += src_stride;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < extend_bottom; ++i) {
|
2015-04-24 05:42:19 +02:00
|
|
|
memcpy(dst_ptr2, src_ptr2, linesize * sizeof(uint16_t));
|
2014-08-26 21:35:15 +02:00
|
|
|
dst_ptr2 += src_stride;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-08-23 04:49:24 +02:00
|
|
|
void vp8_yv12_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf) {
|
2014-07-16 11:30:21 +02:00
|
|
|
const int uv_border = ybf->border / 2;
|
|
|
|
|
|
|
|
assert(ybf->border % 2 == 0);
|
2013-03-14 01:09:05 +01:00
|
|
|
assert(ybf->y_height - ybf->y_crop_height < 16);
|
|
|
|
assert(ybf->y_width - ybf->y_crop_width < 16);
|
|
|
|
assert(ybf->y_height - ybf->y_crop_height >= 0);
|
|
|
|
assert(ybf->y_width - ybf->y_crop_width >= 0);
|
|
|
|
|
2016-07-25 23:32:36 +02:00
|
|
|
extend_plane(ybf->y_buffer, ybf->y_stride, ybf->y_crop_width,
|
|
|
|
ybf->y_crop_height, ybf->border, ybf->border,
|
2013-03-14 01:09:05 +01:00
|
|
|
ybf->border + ybf->y_height - ybf->y_crop_height,
|
|
|
|
ybf->border + ybf->y_width - ybf->y_crop_width);
|
|
|
|
|
2016-07-25 23:32:36 +02:00
|
|
|
extend_plane(ybf->u_buffer, ybf->uv_stride, ybf->uv_crop_width,
|
|
|
|
ybf->uv_crop_height, uv_border, uv_border,
|
2014-07-16 11:30:21 +02:00
|
|
|
uv_border + ybf->uv_height - ybf->uv_crop_height,
|
|
|
|
uv_border + ybf->uv_width - ybf->uv_crop_width);
|
2013-03-14 01:09:05 +01:00
|
|
|
|
2016-07-25 23:32:36 +02:00
|
|
|
extend_plane(ybf->v_buffer, ybf->uv_stride, ybf->uv_crop_width,
|
|
|
|
ybf->uv_crop_height, uv_border, uv_border,
|
2014-07-16 11:30:21 +02:00
|
|
|
uv_border + ybf->uv_height - ybf->uv_crop_height,
|
|
|
|
uv_border + ybf->uv_width - ybf->uv_crop_width);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2016-06-18 00:22:11 +02:00
|
|
|
#if CONFIG_VP9
|
2014-03-01 00:34:31 +01:00
|
|
|
static void extend_frame(YV12_BUFFER_CONFIG *const ybf, int ext_size) {
|
2013-11-22 02:19:04 +01:00
|
|
|
const int c_w = ybf->uv_crop_width;
|
|
|
|
const int c_h = ybf->uv_crop_height;
|
2014-06-11 20:54:07 +02:00
|
|
|
const int ss_x = ybf->uv_width < ybf->y_width;
|
|
|
|
const int ss_y = ybf->uv_height < ybf->y_height;
|
|
|
|
const int c_et = ext_size >> ss_y;
|
|
|
|
const int c_el = ext_size >> ss_x;
|
|
|
|
const int c_eb = c_et + ybf->uv_height - ybf->uv_crop_height;
|
|
|
|
const int c_er = c_el + ybf->uv_width - ybf->uv_crop_width;
|
2013-05-09 01:18:44 +02:00
|
|
|
|
|
|
|
assert(ybf->y_height - ybf->y_crop_height < 16);
|
|
|
|
assert(ybf->y_width - ybf->y_crop_width < 16);
|
|
|
|
assert(ybf->y_height - ybf->y_crop_height >= 0);
|
|
|
|
assert(ybf->y_width - ybf->y_crop_width >= 0);
|
|
|
|
|
2014-08-26 21:35:15 +02:00
|
|
|
#if CONFIG_VP9_HIGHBITDEPTH
|
|
|
|
if (ybf->flags & YV12_FLAG_HIGHBITDEPTH) {
|
2016-07-25 23:32:36 +02:00
|
|
|
extend_plane_high(ybf->y_buffer, ybf->y_stride, ybf->y_crop_width,
|
|
|
|
ybf->y_crop_height, ext_size, ext_size,
|
2014-08-26 21:35:15 +02:00
|
|
|
ext_size + ybf->y_height - ybf->y_crop_height,
|
|
|
|
ext_size + ybf->y_width - ybf->y_crop_width);
|
2016-07-25 23:32:36 +02:00
|
|
|
extend_plane_high(ybf->u_buffer, ybf->uv_stride, c_w, c_h, c_et, c_el, c_eb,
|
|
|
|
c_er);
|
|
|
|
extend_plane_high(ybf->v_buffer, ybf->uv_stride, c_w, c_h, c_et, c_el, c_eb,
|
|
|
|
c_er);
|
2014-08-26 21:35:15 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
#endif
|
2016-07-25 23:32:36 +02:00
|
|
|
extend_plane(ybf->y_buffer, ybf->y_stride, ybf->y_crop_width,
|
|
|
|
ybf->y_crop_height, ext_size, ext_size,
|
2013-07-15 23:59:59 +02:00
|
|
|
ext_size + ybf->y_height - ybf->y_crop_height,
|
|
|
|
ext_size + ybf->y_width - ybf->y_crop_width);
|
2013-05-09 01:18:44 +02:00
|
|
|
|
2016-07-25 23:32:36 +02:00
|
|
|
extend_plane(ybf->u_buffer, ybf->uv_stride, c_w, c_h, c_et, c_el, c_eb, c_er);
|
2013-05-09 01:18:44 +02:00
|
|
|
|
2016-07-25 23:32:36 +02:00
|
|
|
extend_plane(ybf->v_buffer, ybf->uv_stride, c_w, c_h, c_et, c_el, c_eb, c_er);
|
2013-05-09 01:18:44 +02:00
|
|
|
}
|
2013-07-15 23:59:59 +02:00
|
|
|
|
2015-08-15 00:27:02 +02:00
|
|
|
void vpx_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf) {
|
2014-03-01 00:34:31 +01:00
|
|
|
extend_frame(ybf, ybf->border);
|
2013-07-15 23:59:59 +02:00
|
|
|
}
|
|
|
|
|
2015-08-15 00:27:02 +02:00
|
|
|
void vpx_extend_frame_inner_borders_c(YV12_BUFFER_CONFIG *ybf) {
|
2016-07-25 23:32:36 +02:00
|
|
|
const int inner_bw = (ybf->border > VP9INNERBORDERINPIXELS)
|
|
|
|
? VP9INNERBORDERINPIXELS
|
|
|
|
: ybf->border;
|
2014-03-01 00:34:31 +01:00
|
|
|
extend_frame(ybf, inner_bw);
|
2013-07-15 23:59:59 +02:00
|
|
|
}
|
2014-08-26 21:35:15 +02:00
|
|
|
|
|
|
|
#if CONFIG_VP9_HIGHBITDEPTH
|
2016-05-03 23:42:14 +02:00
|
|
|
static void memcpy_short_addr(uint8_t *dst8, const uint8_t *src8, int num) {
|
2014-08-26 21:35:15 +02:00
|
|
|
uint16_t *dst = CONVERT_TO_SHORTPTR(dst8);
|
|
|
|
uint16_t *src = CONVERT_TO_SHORTPTR(src8);
|
2015-04-24 05:42:19 +02:00
|
|
|
memcpy(dst, src, num * sizeof(uint16_t));
|
2014-08-26 21:35:15 +02:00
|
|
|
}
|
|
|
|
#endif // CONFIG_VP9_HIGHBITDEPTH
|
2016-06-18 00:22:11 +02:00
|
|
|
#endif // CONFIG_VP9
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2013-08-23 04:49:24 +02:00
|
|
|
// Copies the source image into the destination image and updates the
|
|
|
|
// destination's UMV borders.
|
|
|
|
// Note: The frames are assumed to be identical in size.
|
2017-05-20 02:07:09 +02:00
|
|
|
|
2013-08-24 04:52:33 +02:00
|
|
|
void vp8_yv12_copy_frame_c(const YV12_BUFFER_CONFIG *src_ybc,
|
2013-08-23 04:49:24 +02:00
|
|
|
YV12_BUFFER_CONFIG *dst_ybc) {
|
2012-07-14 00:21:29 +02:00
|
|
|
int row;
|
2013-08-23 04:49:24 +02:00
|
|
|
const uint8_t *src = src_ybc->y_buffer;
|
|
|
|
uint8_t *dst = dst_ybc->y_buffer;
|
2012-07-14 00:21:29 +02:00
|
|
|
|
2017-05-20 02:07:09 +02:00
|
|
|
#if 0
|
|
|
|
/* These assertions are valid in the codec, but the libvpx-tester uses
|
|
|
|
* this code slightly differently.
|
|
|
|
*/
|
|
|
|
assert(src_ybc->y_width == dst_ybc->y_width);
|
|
|
|
assert(src_ybc->y_height == dst_ybc->y_height);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
for (row = 0; row < src_ybc->y_height; ++row) {
|
|
|
|
memcpy(dst, src, src_ybc->y_width);
|
|
|
|
src += src_ybc->y_stride;
|
|
|
|
dst += dst_ybc->y_stride;
|
|
|
|
}
|
|
|
|
|
|
|
|
src = src_ybc->u_buffer;
|
|
|
|
dst = dst_ybc->u_buffer;
|
|
|
|
|
|
|
|
for (row = 0; row < src_ybc->uv_height; ++row) {
|
|
|
|
memcpy(dst, src, src_ybc->uv_width);
|
|
|
|
src += src_ybc->uv_stride;
|
|
|
|
dst += dst_ybc->uv_stride;
|
|
|
|
}
|
|
|
|
|
|
|
|
src = src_ybc->v_buffer;
|
|
|
|
dst = dst_ybc->v_buffer;
|
|
|
|
|
|
|
|
for (row = 0; row < src_ybc->uv_height; ++row) {
|
|
|
|
memcpy(dst, src, src_ybc->uv_width);
|
|
|
|
src += src_ybc->uv_stride;
|
|
|
|
dst += dst_ybc->uv_stride;
|
|
|
|
}
|
|
|
|
|
|
|
|
vp8_yv12_extend_frame_borders_c(dst_ybc);
|
|
|
|
}
|
|
|
|
|
|
|
|
#if CONFIG_VP9
|
|
|
|
void vpx_yv12_copy_frame_c(const YV12_BUFFER_CONFIG *src_ybc,
|
|
|
|
YV12_BUFFER_CONFIG *dst_ybc) {
|
|
|
|
int row;
|
|
|
|
const uint8_t *src = src_ybc->y_buffer;
|
|
|
|
uint8_t *dst = dst_ybc->y_buffer;
|
|
|
|
|
2013-04-03 21:34:05 +02:00
|
|
|
#if 0
|
|
|
|
/* These assertions are valid in the codec, but the libvpx-tester uses
|
|
|
|
* this code slightly differently.
|
|
|
|
*/
|
2013-02-06 23:22:17 +01:00
|
|
|
assert(src_ybc->y_width == dst_ybc->y_width);
|
|
|
|
assert(src_ybc->y_height == dst_ybc->y_height);
|
2013-04-03 21:34:05 +02:00
|
|
|
#endif
|
2013-02-06 23:22:17 +01:00
|
|
|
|
2015-08-14 21:16:07 +02:00
|
|
|
#if CONFIG_VP9_HIGHBITDEPTH
|
2014-08-26 21:35:15 +02:00
|
|
|
if (src_ybc->flags & YV12_FLAG_HIGHBITDEPTH) {
|
|
|
|
assert(dst_ybc->flags & YV12_FLAG_HIGHBITDEPTH);
|
|
|
|
for (row = 0; row < src_ybc->y_height; ++row) {
|
|
|
|
memcpy_short_addr(dst, src, src_ybc->y_width);
|
|
|
|
src += src_ybc->y_stride;
|
|
|
|
dst += dst_ybc->y_stride;
|
|
|
|
}
|
|
|
|
|
|
|
|
src = src_ybc->u_buffer;
|
|
|
|
dst = dst_ybc->u_buffer;
|
|
|
|
|
|
|
|
for (row = 0; row < src_ybc->uv_height; ++row) {
|
|
|
|
memcpy_short_addr(dst, src, src_ybc->uv_width);
|
|
|
|
src += src_ybc->uv_stride;
|
|
|
|
dst += dst_ybc->uv_stride;
|
|
|
|
}
|
|
|
|
|
|
|
|
src = src_ybc->v_buffer;
|
|
|
|
dst = dst_ybc->v_buffer;
|
|
|
|
|
|
|
|
for (row = 0; row < src_ybc->uv_height; ++row) {
|
|
|
|
memcpy_short_addr(dst, src, src_ybc->uv_width);
|
|
|
|
src += src_ybc->uv_stride;
|
|
|
|
dst += dst_ybc->uv_stride;
|
|
|
|
}
|
|
|
|
|
2017-05-20 02:07:09 +02:00
|
|
|
vpx_extend_frame_borders_c(dst_ybc);
|
2014-08-26 21:35:15 +02:00
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
assert(!(dst_ybc->flags & YV12_FLAG_HIGHBITDEPTH));
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-08-23 04:49:24 +02:00
|
|
|
for (row = 0; row < src_ybc->y_height; ++row) {
|
2015-04-24 05:42:19 +02:00
|
|
|
memcpy(dst, src, src_ybc->y_width);
|
2013-08-23 04:49:24 +02:00
|
|
|
src += src_ybc->y_stride;
|
|
|
|
dst += dst_ybc->y_stride;
|
2012-07-14 00:21:29 +02:00
|
|
|
}
|
|
|
|
|
2013-08-23 04:49:24 +02:00
|
|
|
src = src_ybc->u_buffer;
|
|
|
|
dst = dst_ybc->u_buffer;
|
2012-07-14 00:21:29 +02:00
|
|
|
|
2013-08-23 04:49:24 +02:00
|
|
|
for (row = 0; row < src_ybc->uv_height; ++row) {
|
2015-04-24 05:42:19 +02:00
|
|
|
memcpy(dst, src, src_ybc->uv_width);
|
2013-08-23 04:49:24 +02:00
|
|
|
src += src_ybc->uv_stride;
|
|
|
|
dst += dst_ybc->uv_stride;
|
2012-07-14 00:21:29 +02:00
|
|
|
}
|
|
|
|
|
2013-08-23 04:49:24 +02:00
|
|
|
src = src_ybc->v_buffer;
|
|
|
|
dst = dst_ybc->v_buffer;
|
2012-07-14 00:21:29 +02:00
|
|
|
|
2013-08-23 04:49:24 +02:00
|
|
|
for (row = 0; row < src_ybc->uv_height; ++row) {
|
2015-04-24 05:42:19 +02:00
|
|
|
memcpy(dst, src, src_ybc->uv_width);
|
2013-08-23 04:49:24 +02:00
|
|
|
src += src_ybc->uv_stride;
|
|
|
|
dst += dst_ybc->uv_stride;
|
2012-07-14 00:21:29 +02:00
|
|
|
}
|
|
|
|
|
2017-05-20 02:07:09 +02:00
|
|
|
vpx_extend_frame_borders_c(dst_ybc);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
2017-05-20 02:07:09 +02:00
|
|
|
#endif // CONFIG_VP9
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2013-08-24 04:52:33 +02:00
|
|
|
void vpx_yv12_copy_y_c(const YV12_BUFFER_CONFIG *src_ybc,
|
2012-11-02 01:53:44 +01:00
|
|
|
YV12_BUFFER_CONFIG *dst_ybc) {
|
2012-07-14 00:21:29 +02:00
|
|
|
int row;
|
2013-08-23 04:49:24 +02:00
|
|
|
const uint8_t *src = src_ybc->y_buffer;
|
|
|
|
uint8_t *dst = dst_ybc->y_buffer;
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2015-08-14 21:16:07 +02:00
|
|
|
#if CONFIG_VP9_HIGHBITDEPTH
|
2014-08-26 21:35:15 +02:00
|
|
|
if (src_ybc->flags & YV12_FLAG_HIGHBITDEPTH) {
|
|
|
|
const uint16_t *src16 = CONVERT_TO_SHORTPTR(src);
|
|
|
|
uint16_t *dst16 = CONVERT_TO_SHORTPTR(dst);
|
|
|
|
for (row = 0; row < src_ybc->y_height; ++row) {
|
2015-04-24 05:42:19 +02:00
|
|
|
memcpy(dst16, src16, src_ybc->y_width * sizeof(uint16_t));
|
2014-08-26 21:35:15 +02:00
|
|
|
src16 += src_ybc->y_stride;
|
|
|
|
dst16 += dst_ybc->y_stride;
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-08-23 04:49:24 +02:00
|
|
|
for (row = 0; row < src_ybc->y_height; ++row) {
|
2015-04-24 05:42:19 +02:00
|
|
|
memcpy(dst, src, src_ybc->y_width);
|
2013-08-23 04:49:24 +02:00
|
|
|
src += src_ybc->y_stride;
|
|
|
|
dst += dst_ybc->y_stride;
|
2012-07-14 00:21:29 +02:00
|
|
|
}
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|