1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp8/common/setupintrarecon.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +/* 1.5 + * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license 1.8 + * that can be found in the LICENSE file in the root of the source 1.9 + * tree. An additional intellectual property rights grant can be found 1.10 + * in the file PATENTS. All contributing project authors may 1.11 + * be found in the AUTHORS file in the root of the source tree. 1.12 + */ 1.13 + 1.14 +#ifndef SETUPINTRARECON_H 1.15 +#define SETUPINTRARECON_H 1.16 + 1.17 +#include "vpx_scale/yv12config.h" 1.18 +extern void vp8_setup_intra_recon(YV12_BUFFER_CONFIG *ybf); 1.19 +extern void vp8_setup_intra_recon_top_line(YV12_BUFFER_CONFIG *ybf); 1.20 + 1.21 +static 1.22 +void setup_intra_recon_left(unsigned char *y_buffer, 1.23 + unsigned char *u_buffer, 1.24 + unsigned char *v_buffer, 1.25 + int y_stride, 1.26 + int uv_stride) 1.27 +{ 1.28 + int i; 1.29 + 1.30 + for (i = 0; i < 16; i++) 1.31 + y_buffer[y_stride *i] = (unsigned char) 129; 1.32 + 1.33 + for (i = 0; i < 8; i++) 1.34 + u_buffer[uv_stride *i] = (unsigned char) 129; 1.35 + 1.36 + for (i = 0; i < 8; i++) 1.37 + v_buffer[uv_stride *i] = (unsigned char) 129; 1.38 +} 1.39 + 1.40 +#endif