I have set the variable m_EncoderParams in CH264EncVideoFilter::SetDefaultParams() to:
m_EncoderParams.level_idc = Params::LL_13;
m_EncoderParams.profile_idc = Params::PF_H264_BASELINE;
m_EncoderParams.pc_control = Params::PC_FRAME;
m_EncoderParams.ps_control.GopPicSize = 32;
m_EncoderParams.ps_control.NumSlice = 0; // autoselect
m_EncoderParams.rc_control.rc_method = IConfigureVideoEncoder::Params::RCControl::RC_CQP;
m_EncoderParams.target_usage = MFX_TARGETUSAGE_UNKNOWN;
m_EncoderParams.frame_control.width = 384;
m_EncoderParams.frame_control.height = 216;
and in CopyEncoderToMFXParams() function, I set
pMFXInfo->QPI = 25;
pMFXInfo->QPP = 25;
I also removed the "CodecPreset::VParamsFromPreset()" call in this function.
I tried different QPI and QPP values, and I observed that the bitrate went down as the QPI and QPP was set to higher values. However, the video image quality remained poor all the time(moving part is very vague) with different QP values.
Why didn't the image quality change at all?