From 11b72e19970f620adfb1aa458b45ff06cec77f10 Mon Sep 17 00:00:00 2001 From: James Dong Date: Wed, 13 Oct 2010 12:34:04 -0700 Subject: Remove hard-coded color format for Nvidia's video encoder o camera would query the color format if camera source is used o if camera source is not used, a MetaData can be passed to do the same. Change-Id: Iff1f802cc4974b286085473e5384bd88e04fa05d --- media/libstagefright/OMXCodec.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'media/libstagefright/OMXCodec.cpp') diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index c532d02..5e70888 100644 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp @@ -903,10 +903,6 @@ void OMXCodec::setVideoInputFormat( OMX_COLOR_FORMATTYPE colorFormat; CHECK_EQ(OK, findTargetColorFormat(meta, &colorFormat)); - if (!strcasecmp("OMX.Nvidia.h264.encoder", mComponentName)) { - colorFormat = OMX_COLOR_FormatYUV420Planar; - } - status_t err; OMX_PARAM_PORTDEFINITIONTYPE def; OMX_VIDEO_PORTDEFINITIONTYPE *video_def = &def.format.video; -- cgit v1.1