Lines Matching refs:mEncoderParams
28 ,mEncoderParams(NULL)
37 mEncoderParams = new VideoParamsCommon();
38 if (!mEncoderParams) LOGE("OMX_ErrorInsufficientResources");
74 if(mEncoderParams) {
75 delete mEncoderParams;
76 mEncoderParams = NULL;
278 mEncoderParams->resolution.height = paramPortDefinitionInput->format.video.nFrameHeight;
279 mEncoderParams->resolution.width = paramPortDefinitionInput->format.video.nFrameWidth;
282 mEncoderParams->frameRate.frameRateDenom = 1;
284 mEncoderParams->frameRate.frameRateNum = mConfigFramerate.xEncodeFramerate;
286 mEncoderParams->frameRate.frameRateNum = paramPortDefinitionInput->format.video.xFramerate >> 16;
290 if(mEncoderParams->intraPeriod == 0) {
291 OMX_U32 intraPeriod = mEncoderParams->frameRate.frameRateNum / 2;
292 mEncoderParams->intraPeriod = (intraPeriod < 15) ? 15 : intraPeriod; // Limit intra frame period to ensure video quality for low bitrate application.
296 mEncoderParams->rawFormat = RAW_FORMAT_OPAQUE;
298 mEncoderParams->rawFormat = RAW_FORMAT_NV12;
300 LOGV("frameRate.frameRateDenom = %d\n", mEncoderParams->frameRate.frameRateDenom);
301 LOGV("frameRate.frameRateNum = %d\n", mEncoderParams->frameRate.frameRateNum);
302 LOGV("intraPeriod = %d\n ", mEncoderParams->intraPeriod);
303 mEncoderParams->rcParams.initQP = mConfigIntelBitrate.nInitialQP;
304 mEncoderParams->rcParams.minQP = mConfigIntelBitrate.nMinQP;
305 mEncoderParams->rcParams.maxQP = 0;
306 mEncoderParams->rcParams.I_minQP = 0;
307 mEncoderParams->rcParams.I_maxQP = 0;
308 mEncoderParams->rcParams.windowSize = mConfigIntelBitrate.nWindowSize;
309 mEncoderParams->rcParams.targetPercentage = mConfigIntelBitrate.nTargetPercentage;
310 mEncoderParams->rcParams.enableIntraFrameQPControl = 0;
312 mEncoderParams->rcParams.bitRate = mParamBitrate.nTargetBitrate;
316 mEncoderParams->rcMode = RATE_CONTROL_CBR;
320 mEncoderParams->rcMode = RATE_CONTROL_VBR;
323 mEncoderParams->rcMode = RATE_CONTROL_VCM;
325 mEncoderParams->rcParams.bitRate = mConfigIntelBitrate.nMaxEncodeBitrate;
327 mEncoderParams->airParams.airAuto = mConfigIntelAir.bAirAuto;
328 mEncoderParams->airParams.airMBs = mConfigIntelAir.nAirMBs;
329 mEncoderParams->airParams.airThreshold = mConfigIntelAir.nAirThreshold;
330 mEncoderParams->refreshType = VIDEO_ENC_AIR;
332 mEncoderParams->refreshType = VIDEO_ENC_NONIR;
334 LOGV("refreshType = %d\n", mEncoderParams->refreshType);
336 mEncoderParams->rcMode = RATE_CONTROL_NONE;
339 ret = mVideoEncoder->setParameters(mEncoderParams);