summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/OMXCodec.cpp
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-10-13 12:34:04 -0700
committerJames Dong <jdong@google.com>2010-10-13 12:34:47 -0700
commit11b72e19970f620adfb1aa458b45ff06cec77f10 (patch)
treefb5165e1e4ee98471b902cd2dd8f33de5750f13a /media/libstagefright/OMXCodec.cpp
parent43a2b3b5fd4e15ffed4235f348d5eba168e8432c (diff)
downloadframeworks_av-11b72e19970f620adfb1aa458b45ff06cec77f10.zip
frameworks_av-11b72e19970f620adfb1aa458b45ff06cec77f10.tar.gz
frameworks_av-11b72e19970f620adfb1aa458b45ff06cec77f10.tar.bz2
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
Diffstat (limited to 'media/libstagefright/OMXCodec.cpp')
-rw-r--r--media/libstagefright/OMXCodec.cpp4
1 files changed, 0 insertions, 4 deletions
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;