media/libvpx/vp8/common/reconintra4x4.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libvpx/vp8/common/reconintra4x4.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     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 +#ifndef __INC_RECONINTRA4x4_H
    1.16 +#define __INC_RECONINTRA4x4_H
    1.17 +#include "vp8/common/blockd.h"
    1.18 +
    1.19 +static void intra_prediction_down_copy(MACROBLOCKD *xd,
    1.20 +                                             unsigned char *above_right_src)
    1.21 +{
    1.22 +    int dst_stride = xd->dst.y_stride;
    1.23 +    unsigned char *above_right_dst = xd->dst.y_buffer - dst_stride + 16;
    1.24 +
    1.25 +    unsigned int *src_ptr = (unsigned int *)above_right_src;
    1.26 +    unsigned int *dst_ptr0 = (unsigned int *)(above_right_dst + 4 * dst_stride);
    1.27 +    unsigned int *dst_ptr1 = (unsigned int *)(above_right_dst + 8 * dst_stride);
    1.28 +    unsigned int *dst_ptr2 = (unsigned int *)(above_right_dst + 12 * dst_stride);
    1.29 +
    1.30 +    *dst_ptr0 = *src_ptr;
    1.31 +    *dst_ptr1 = *src_ptr;
    1.32 +    *dst_ptr2 = *src_ptr;
    1.33 +}
    1.34 +
    1.35 +#endif

mercurial