diff options
author | John Koleszar <jkoleszar@google.com> | 2012-11-01 19:14:42 -0700 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2012-11-02 08:46:37 -0700 |
commit | 9e06601db67d226a85ccdfa2afa0fe249f09e0d1 (patch) | |
tree | 8e4b99d5304ce139bd54892bda16682b1a950690 /vpx_scale/yv12config.h | |
parent | 533470c998f53140dff083f9e3f9583dd81a498b (diff) | |
download | libvpx-9e06601db67d226a85ccdfa2afa0fe249f09e0d1.tar libvpx-9e06601db67d226a85ccdfa2afa0fe249f09e0d1.tar.gz libvpx-9e06601db67d226a85ccdfa2afa0fe249f09e0d1.tar.bz2 libvpx-9e06601db67d226a85ccdfa2afa0fe249f09e0d1.zip |
vpx_scale: sync from experimental
Import changes made on the experimental branch in preparation for
merging the two branches.
Change-Id: I7b5b8fb4fca155cb1d72e7ba13eef18e6a94a298
Diffstat (limited to 'vpx_scale/yv12config.h')
-rw-r--r-- | vpx_scale/yv12config.h | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/vpx_scale/yv12config.h b/vpx_scale/yv12config.h index 800f700b3..6a8a1fc52 100644 --- a/vpx_scale/yv12config.h +++ b/vpx_scale/yv12config.h @@ -16,54 +16,54 @@ extern "C" { #endif -#define VP7BORDERINPIXELS 48 #define VP8BORDERINPIXELS 32 +#define VP9BORDERINPIXELS 64 +#define VP9_INTERP_EXTEND 4 - /************************************* - For INT_YUV: + /************************************* + For INT_YUV: - Y = (R+G*2+B)/4; - U = (R-B)/2; - V = (G*2 - R - B)/4; - And - R = Y+U-V; - G = Y+V; - B = Y-U-V; - ************************************/ - typedef enum - { - REG_YUV = 0, /* Regular yuv */ - INT_YUV = 1 /* The type of yuv that can be tranfer to and from RGB through integer transform */ - } - YUV_TYPE; + Y = (R+G*2+B)/4; + U = (R-B)/2; + V = (G*2 - R - B)/4; + And + R = Y+U-V; + G = Y+V; + B = Y-U-V; + ************************************/ + typedef enum + { + REG_YUV = 0, /* Regular yuv */ + INT_YUV = 1 /* The type of yuv that can be tranfer to and from RGB through integer transform */ + } + YUV_TYPE; - typedef struct yv12_buffer_config - { - int y_width; - int y_height; - int y_stride; -/* int yinternal_width; */ + typedef struct yv12_buffer_config { + int y_width; + int y_height; + int y_stride; + /* int yinternal_width; */ - int uv_width; - int uv_height; - int uv_stride; -/* int uvinternal_width; */ + int uv_width; + int uv_height; + int uv_stride; + /* int uvinternal_width; */ - unsigned char *y_buffer; - unsigned char *u_buffer; - unsigned char *v_buffer; + unsigned char *y_buffer; + unsigned char *u_buffer; + unsigned char *v_buffer; - unsigned char *buffer_alloc; - int border; - int frame_size; - YUV_TYPE clrtype; + unsigned char *buffer_alloc; + int border; + int frame_size; + YUV_TYPE clrtype; - int corrupted; - int flags; - } YV12_BUFFER_CONFIG; + int corrupted; + int flags; + } YV12_BUFFER_CONFIG; - int vp8_yv12_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, int width, int height, int border); - int vp8_yv12_de_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf); + int vp8_yv12_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, int width, int height, int border); + int vp8_yv12_de_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf); #ifdef __cplusplus } |