summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2014-10-02 09:33:54 -0700
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2014-10-02 09:33:54 -0700
commit6a0976dc3cdef7886bcd7523a8b7262bf07c4577 (patch)
treedc3318342ccb0151ed6dce9f8afe711184edea37 /vp9
parenta50c8bbaf5116bf202813a2f3f563734503af187 (diff)
parentd32a0c29a2f6a03f05816d142e1440ba9348935d (diff)
downloadlibvpx-6a0976dc3cdef7886bcd7523a8b7262bf07c4577.tar
libvpx-6a0976dc3cdef7886bcd7523a8b7262bf07c4577.tar.gz
libvpx-6a0976dc3cdef7886bcd7523a8b7262bf07c4577.tar.bz2
libvpx-6a0976dc3cdef7886bcd7523a8b7262bf07c4577.zip
Merge "Adds some missing I440 checks"
Diffstat (limited to 'vp9')
-rw-r--r--vp9/vp9_cx_iface.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/vp9/vp9_cx_iface.c b/vp9/vp9_cx_iface.c
index 473166cb7..041ba27da 100644
--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -303,16 +303,18 @@ static vpx_codec_err_t validate_img(vpx_codec_alg_priv_t *ctx,
break;
case VPX_IMG_FMT_I422:
case VPX_IMG_FMT_I444:
+ case VPX_IMG_FMT_I440:
if (ctx->cfg.g_profile != (unsigned int)PROFILE_1) {
- ERROR("Invalid image format. I422, I444 images are "
+ ERROR("Invalid image format. I422, I444, I440 images are "
"not supported in profile.");
}
break;
case VPX_IMG_FMT_I42216:
case VPX_IMG_FMT_I44416:
+ case VPX_IMG_FMT_I44016:
if (ctx->cfg.g_profile != (unsigned int)PROFILE_1 &&
ctx->cfg.g_profile != (unsigned int)PROFILE_3) {
- ERROR("Invalid image format. 16-bit I422, I444 images are "
+ ERROR("Invalid image format. 16-bit I422, I444, I440 images are "
"not supported in profile.");
}
break;
@@ -334,9 +336,11 @@ static int get_image_bps(const vpx_image_t *img) {
case VPX_IMG_FMT_I420: return 12;
case VPX_IMG_FMT_I422: return 16;
case VPX_IMG_FMT_I444: return 24;
+ case VPX_IMG_FMT_I440: return 16;
case VPX_IMG_FMT_I42016: return 24;
case VPX_IMG_FMT_I42216: return 32;
case VPX_IMG_FMT_I44416: return 48;
+ case VPX_IMG_FMT_I44016: return 32;
default: assert(0 && "Invalid image format"); break;
}
return 0;