2015-04-17 16:11:38 -04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
*/
|
|
|
|
|
2015-05-07 14:26:25 -07:00
|
|
|
#include <string.h>
|
|
|
|
|
2015-05-14 19:41:13 -07:00
|
|
|
#include "./vp8_rtcd.h"
|
2015-04-17 16:11:38 -04:00
|
|
|
#include "vpx/vpx_integer.h"
|
|
|
|
|
|
|
|
/* Copy 2 macroblocks to a buffer */
|
2015-05-14 19:41:13 -07:00
|
|
|
void vp8_copy32xn_c(const unsigned char *src_ptr, int src_stride,
|
2016-07-13 22:26:28 -07:00
|
|
|
unsigned char *dst_ptr, int dst_stride, int height) {
|
|
|
|
int r;
|
2015-05-07 14:26:25 -07:00
|
|
|
|
2016-07-18 06:54:50 -07:00
|
|
|
for (r = 0; r < height; ++r) {
|
2016-07-13 22:26:28 -07:00
|
|
|
memcpy(dst_ptr, src_ptr, 32);
|
2015-04-17 16:11:38 -04:00
|
|
|
|
2016-07-13 22:26:28 -07:00
|
|
|
src_ptr += src_stride;
|
|
|
|
dst_ptr += dst_stride;
|
|
|
|
}
|
2015-04-17 16:11:38 -04:00
|
|
|
}
|