michael@0: /* michael@0: * Copyright (c) 2010 The WebM project authors. All Rights Reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: #ifndef SETUPINTRARECON_H michael@0: #define SETUPINTRARECON_H michael@0: michael@0: #include "vpx_scale/yv12config.h" michael@0: extern void vp8_setup_intra_recon(YV12_BUFFER_CONFIG *ybf); michael@0: extern void vp8_setup_intra_recon_top_line(YV12_BUFFER_CONFIG *ybf); michael@0: michael@0: static michael@0: void setup_intra_recon_left(unsigned char *y_buffer, michael@0: unsigned char *u_buffer, michael@0: unsigned char *v_buffer, michael@0: int y_stride, michael@0: int uv_stride) michael@0: { michael@0: int i; michael@0: michael@0: for (i = 0; i < 16; i++) michael@0: y_buffer[y_stride *i] = (unsigned char) 129; michael@0: michael@0: for (i = 0; i < 8; i++) michael@0: u_buffer[uv_stride *i] = (unsigned char) 129; michael@0: michael@0: for (i = 0; i < 8; i++) michael@0: v_buffer[uv_stride *i] = (unsigned char) 129; michael@0: } michael@0: michael@0: #endif