From e97aea285bf413a6af1cd293fe41a283d8e36ac6 Mon Sep 17 00:00:00 2001 From: Peter de Rivaz Date: Wed, 30 Apr 2014 16:14:11 +0100 Subject: [PATCH] Added 16bit vpx_img_fmt_t enums Added in preparation for modifications to support high bitdepth operations. Change-Id: I1ad403ea8886cb84020ff06807ae25e2e4bff608 --- vpx/vpx_image.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vpx/vpx_image.h b/vpx/vpx_image.h index 8d0f4ec8c..d45b003c6 100644 --- a/vpx/vpx_image.h +++ b/vpx/vpx_image.h @@ -34,7 +34,7 @@ extern "C" { #define VPX_IMG_FMT_PLANAR 0x100 /**< Image is a planar format */ #define VPX_IMG_FMT_UV_FLIP 0x200 /**< V plane precedes U plane in memory */ #define VPX_IMG_FMT_HAS_ALPHA 0x400 /**< Image has an alpha channel component */ - +#define VPX_IMG_FMT_HIGH 0x800 /**< Image uses 16bit framebuffer */ /*!\brief List of supported image formats */ typedef enum vpx_img_fmt { @@ -58,7 +58,10 @@ extern "C" { VPX_IMG_FMT_VPXI420 = VPX_IMG_FMT_PLANAR | 4, VPX_IMG_FMT_I422 = VPX_IMG_FMT_PLANAR | 5, VPX_IMG_FMT_I444 = VPX_IMG_FMT_PLANAR | 6, - VPX_IMG_FMT_444A = VPX_IMG_FMT_PLANAR | VPX_IMG_FMT_HAS_ALPHA | 7 + VPX_IMG_FMT_444A = VPX_IMG_FMT_PLANAR | VPX_IMG_FMT_HAS_ALPHA | 7, + VPX_IMG_FMT_I42016 = VPX_IMG_FMT_I420 | VPX_IMG_FMT_HIGH, + VPX_IMG_FMT_I42216 = VPX_IMG_FMT_I422 | VPX_IMG_FMT_HIGH, + VPX_IMG_FMT_I44416 = VPX_IMG_FMT_I444 | VPX_IMG_FMT_HIGH } vpx_img_fmt_t; /**< alias for enum vpx_img_fmt */ #if !defined(VPX_CODEC_DISABLE_COMPAT) || !VPX_CODEC_DISABLE_COMPAT