Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0349b27b authored by James Dong's avatar James Dong
Browse files

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
parent 2b67ce72
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;