media/libvpx/vpx_scale/yv12config.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libvpx/vpx_scale/yv12config.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,76 @@
     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 YV12_CONFIG_H
    1.15 +#define YV12_CONFIG_H
    1.16 +
    1.17 +#ifdef __cplusplus
    1.18 +extern "C" {
    1.19 +#endif
    1.20 +
    1.21 +#include "vpx/vpx_integer.h"
    1.22 +
    1.23 +#define VP8BORDERINPIXELS       32
    1.24 +#define VP9INNERBORDERINPIXELS  96
    1.25 +#define VP9BORDERINPIXELS      160
    1.26 +#define VP9_INTERP_EXTEND        4
    1.27 +
    1.28 +  typedef struct yv12_buffer_config {
    1.29 +    int   y_width;
    1.30 +    int   y_height;
    1.31 +    int   y_crop_width;
    1.32 +    int   y_crop_height;
    1.33 +    int   y_stride;
    1.34 +    /*    int   yinternal_width; */
    1.35 +
    1.36 +    int   uv_width;
    1.37 +    int   uv_height;
    1.38 +    int   uv_crop_width;
    1.39 +    int   uv_crop_height;
    1.40 +    int   uv_stride;
    1.41 +    /*    int   uvinternal_width; */
    1.42 +
    1.43 +    int   alpha_width;
    1.44 +    int   alpha_height;
    1.45 +    int   alpha_stride;
    1.46 +
    1.47 +    uint8_t *y_buffer;
    1.48 +    uint8_t *u_buffer;
    1.49 +    uint8_t *v_buffer;
    1.50 +    uint8_t *alpha_buffer;
    1.51 +
    1.52 +    uint8_t *buffer_alloc;
    1.53 +    int buffer_alloc_sz;
    1.54 +    int border;
    1.55 +    int frame_size;
    1.56 +
    1.57 +    int corrupted;
    1.58 +    int flags;
    1.59 +  } YV12_BUFFER_CONFIG;
    1.60 +
    1.61 +  int vp8_yv12_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
    1.62 +                                  int width, int height, int border);
    1.63 +  int vp8_yv12_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
    1.64 +                                    int width, int height, int border);
    1.65 +  int vp8_yv12_de_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf);
    1.66 +
    1.67 +  int vp9_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
    1.68 +                             int width, int height, int ss_x, int ss_y,
    1.69 +                             int border);
    1.70 +  int vp9_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
    1.71 +                               int width, int height, int ss_x, int ss_y,
    1.72 +                               int border);
    1.73 +  int vp9_free_frame_buffer(YV12_BUFFER_CONFIG *ybf);
    1.74 +
    1.75 +#ifdef __cplusplus
    1.76 +}
    1.77 +#endif
    1.78 +
    1.79 +#endif  // YV12_CONFIG_H

mercurial