media/libvpx/vp8/common/setupintrarecon.c

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libvpx/vp8/common/setupintrarecon.c	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     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 +
    1.15 +#include "setupintrarecon.h"
    1.16 +#include "vpx_mem/vpx_mem.h"
    1.17 +
    1.18 +void vp8_setup_intra_recon(YV12_BUFFER_CONFIG *ybf)
    1.19 +{
    1.20 +    int i;
    1.21 +
    1.22 +    /* set up frame new frame for intra coded blocks */
    1.23 +    vpx_memset(ybf->y_buffer - 1 - ybf->y_stride, 127, ybf->y_width + 5);
    1.24 +    for (i = 0; i < ybf->y_height; i++)
    1.25 +        ybf->y_buffer[ybf->y_stride *i - 1] = (unsigned char) 129;
    1.26 +
    1.27 +    vpx_memset(ybf->u_buffer - 1 - ybf->uv_stride, 127, ybf->uv_width + 5);
    1.28 +    for (i = 0; i < ybf->uv_height; i++)
    1.29 +        ybf->u_buffer[ybf->uv_stride *i - 1] = (unsigned char) 129;
    1.30 +
    1.31 +    vpx_memset(ybf->v_buffer - 1 - ybf->uv_stride, 127, ybf->uv_width + 5);
    1.32 +    for (i = 0; i < ybf->uv_height; i++)
    1.33 +        ybf->v_buffer[ybf->uv_stride *i - 1] = (unsigned char) 129;
    1.34 +
    1.35 +}
    1.36 +
    1.37 +void vp8_setup_intra_recon_top_line(YV12_BUFFER_CONFIG *ybf)
    1.38 +{
    1.39 +    vpx_memset(ybf->y_buffer - 1 - ybf->y_stride, 127, ybf->y_width + 5);
    1.40 +    vpx_memset(ybf->u_buffer - 1 - ybf->uv_stride, 127, ybf->uv_width + 5);
    1.41 +    vpx_memset(ybf->v_buffer - 1 - ybf->uv_stride, 127, ybf->uv_width + 5);
    1.42 +}

mercurial