This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[DM8148] omx vfpc Noise Filter function

Hello,

My question is that if the NF could improve the video quality, or it only do downsample video format 422 to 420?

In omx decode_display example, the NF's function is only downsample(I think).

 

capture->encode->decode(420)->scale(422)->NF(420)-> "unknown step" ->display(422).

Please look up steps, If NF could improve the video quality, is there any omx function corresponding to the "unknown step"?

 

The last question is if I can change the H264 encoder quantization parameter.I use the omx "encode"example , and find the encoded picture's minimum quantizaton parmeter is 26.

I want to have better quality,so the quantizaton parmeter equal15 is fine.

My platform is EVM 8148 and the ezsdk version is 5.05.02.

 

Thanks a lot.

 

  • Hi,
    Noise Filter is normally used after capturing and before encoding the video for improving the quality. In decode_display example, NF is being used for downsampling 422 to 420 for SD display(displayId = 2). Only SD display in DM814x/8x supports 420SP format. Hence Scaler output is downscaled using NF.

    To set qp values for encoder, you use below code from your ilClient.

    OMX_VIDEO_CONFIG_DYNAMICPARAMS tDynParams;

    OMX_INIT_PARAM (&tDynParams);

    tDynParams.nPortIndex = OMX_VIDENC_OUTPUT_PORT;

    eError = OMX_GetParameter (pHandle, OMX_TI_IndexParamVideoDynamicParams,
    &tDynParams);

    /* qp setting */
    tDynParams.videoDynamicParams.h264EncDynamicParams.rateControlParams.qpI = x;
    tDynParams.videoDynamicParams.h264EncDynamicParams.rateControlParams.qpP = x;
    tDynParams.videoDynamicParams.h264EncDynamicParams.rateControlParams.qpB = x;
    tDynParams.videoDynamicParams.h264EncDynamicParams.rateControlParams.qpMinI = y;
    tDynParams.videoDynamicParams.h264EncDynamicParams.rateControlParams.qpMinP = y;
    tDynParams.videoDynamicParams.h264EncDynamicParams.rateControlParams.qpMinB = y;
    tDynParams.videoDynamicParams.h264EncDynamicParams.rateControlParams.qpMaxI = z;
    tDynParams.videoDynamicParams.h264EncDynamicParams.rateControlParams.qpMaxP = z;
    tDynParams.videoDynamicParams.h264EncDynamicParams.rateControlParams.qpMaxB = z;

    eError = OMX_SetParameter (pHandle, OMX_TI_IndexParamVideoDynamicParams,
    &tDynParams);

    qp values are int eh range of -1 to 51. Refer H264 Encoder useGuide for valid values. of x,y,z

    Ramprasad
  • OK! Thank you very much!