From f238b9e88c44b97e11e04d70f53d4b6bce79c94e Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 16 Feb 2010 19:44:06 -0800 Subject: [PATCH] temporary hack to map the correct yuv format to the current (broken) mdp constants --- libcopybit/copybit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp index fb605fe..8bf65aa 100644 --- a/libcopybit/copybit.cpp +++ b/libcopybit/copybit.cpp @@ -124,8 +124,8 @@ static int get_format(int format) { case COPYBIT_FORMAT_RGB_888: return MDP_RGB_888; case COPYBIT_FORMAT_RGBA_8888: return MDP_RGBA_8888; case COPYBIT_FORMAT_BGRA_8888: return MDP_BGRA_8888; - case COPYBIT_FORMAT_YCbCr_422_SP: return MDP_Y_CBCR_H2V1; - case COPYBIT_FORMAT_YCbCr_420_SP: return MDP_Y_CBCR_H2V2; + case COPYBIT_FORMAT_YCrCb_422_SP: return MDP_Y_CBCR_H2V1; + case COPYBIT_FORMAT_YCrCb_420_SP: return MDP_Y_CBCR_H2V2; } return -1; }