diff options
author | James Dong <jdong@google.com> | 2010-10-13 12:34:04 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-10-13 12:34:47 -0700 |
commit | 11b72e19970f620adfb1aa458b45ff06cec77f10 (patch) | |
tree | fb5165e1e4ee98471b902cd2dd8f33de5750f13a /media/libstagefright/OMXCodec.cpp | |
parent | 43a2b3b5fd4e15ffed4235f348d5eba168e8432c (diff) | |
download | frameworks_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.cpp | 4 |
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; |