From a5ffced80a46900ed2cb356e735331b49c11a257 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 17 Feb 2010 18:02:17 -0800 Subject: [PATCH] add support for YCbCr (as opposed to YCrCb) to copybit --- libcopybit/copybit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp index 8bf65aa..08a650b 100644 --- a/libcopybit/copybit.cpp +++ b/libcopybit/copybit.cpp @@ -126,6 +126,8 @@ static int get_format(int format) { case COPYBIT_FORMAT_BGRA_8888: return MDP_BGRA_8888; case COPYBIT_FORMAT_YCrCb_422_SP: return MDP_Y_CBCR_H2V1; case COPYBIT_FORMAT_YCrCb_420_SP: return MDP_Y_CBCR_H2V2; + case COPYBIT_FORMAT_YCbCr_422_SP: return MDP_Y_CRCB_H2V1; + case COPYBIT_FORMAT_YCbCr_420_SP: return MDP_Y_CRCB_H2V2; } return -1; }