Lines Matching refs:mEncoderParams

29     ,mEncoderParams(NULL)  in OMXVideoEncoderBase()
38 mEncoderParams = new VideoParamsCommon(); in OMXVideoEncoderBase()
39 if (!mEncoderParams) LOGE("OMX_ErrorInsufficientResources"); in OMXVideoEncoderBase()
75 if(mEncoderParams) { in ~OMXVideoEncoderBase()
76 delete mEncoderParams; in ~OMXVideoEncoderBase()
77 mEncoderParams = NULL; in ~OMXVideoEncoderBase()
288 mEncoderParams->resolution.height = paramPortDefinitionInput->format.video.nFrameHeight; in SetVideoEncoderParam()
289 mEncoderParams->resolution.width = paramPortDefinitionInput->format.video.nFrameWidth; in SetVideoEncoderParam()
291 mEncoderParams->frameRate.frameRateDenom = 1; in SetVideoEncoderParam()
293 mEncoderParams->frameRate.frameRateNum = mConfigFramerate.xEncodeFramerate; in SetVideoEncoderParam()
295mEncoderParams->frameRate.frameRateNum = paramPortDefinitionInput->format.video.xFramerate >> 16; in SetVideoEncoderParam()
299 if(mEncoderParams->intraPeriod == 0) { in SetVideoEncoderParam()
300 OMX_U32 intraPeriod = mEncoderParams->frameRate.frameRateNum / 2; in SetVideoEncoderParam()
301mEncoderParams->intraPeriod = (intraPeriod < 15) ? 15 : intraPeriod; // Limit intra frame period… in SetVideoEncoderParam()
305 mEncoderParams->rawFormat = RAW_FORMAT_OPAQUE; in SetVideoEncoderParam()
307 mEncoderParams->rawFormat = RAW_FORMAT_NV12; in SetVideoEncoderParam()
309 LOGV("frameRate.frameRateDenom = %d\n", mEncoderParams->frameRate.frameRateDenom); in SetVideoEncoderParam()
310 LOGV("frameRate.frameRateNum = %d\n", mEncoderParams->frameRate.frameRateNum); in SetVideoEncoderParam()
311 LOGV("intraPeriod = %d\n ", mEncoderParams->intraPeriod); in SetVideoEncoderParam()
312 mEncoderParams->rcParams.initQP = mConfigIntelBitrate.nInitialQP; in SetVideoEncoderParam()
313 mEncoderParams->rcParams.minQP = mConfigIntelBitrate.nMinQP; in SetVideoEncoderParam()
314 mEncoderParams->rcParams.maxQP = 0; in SetVideoEncoderParam()
315 mEncoderParams->rcParams.I_minQP = 0; in SetVideoEncoderParam()
316 mEncoderParams->rcParams.I_maxQP = 0; in SetVideoEncoderParam()
317 mEncoderParams->rcParams.windowSize = mConfigIntelBitrate.nWindowSize; in SetVideoEncoderParam()
318 mEncoderParams->rcParams.targetPercentage = mConfigIntelBitrate.nTargetPercentage; in SetVideoEncoderParam()
319 mEncoderParams->rcParams.enableIntraFrameQPControl = 0; in SetVideoEncoderParam()
321 mEncoderParams->rcParams.bitRate = mParamBitrate.nTargetBitrate; in SetVideoEncoderParam()
325 mEncoderParams->rcMode = RATE_CONTROL_CBR; in SetVideoEncoderParam()
329 mEncoderParams->rcMode = RATE_CONTROL_VBR; in SetVideoEncoderParam()
332 mEncoderParams->rcMode = RATE_CONTROL_VCM; in SetVideoEncoderParam()
334 mEncoderParams->rcParams.bitRate = mConfigIntelBitrate.nMaxEncodeBitrate; in SetVideoEncoderParam()
336 mEncoderParams->airParams.airAuto = mConfigIntelAir.bAirAuto; in SetVideoEncoderParam()
337 mEncoderParams->airParams.airMBs = mConfigIntelAir.nAirMBs; in SetVideoEncoderParam()
338 mEncoderParams->airParams.airThreshold = mConfigIntelAir.nAirThreshold; in SetVideoEncoderParam()
339 mEncoderParams->refreshType = VIDEO_ENC_AIR; in SetVideoEncoderParam()
341 mEncoderParams->refreshType = VIDEO_ENC_NONIR; in SetVideoEncoderParam()
343 LOGV("refreshType = %d\n", mEncoderParams->refreshType); in SetVideoEncoderParam()
345 mEncoderParams->rcMode = RATE_CONTROL_NONE; in SetVideoEncoderParam()
348 ret = mVideoEncoder->setParameters(mEncoderParams); in SetVideoEncoderParam()