Lines Matching refs:params
1683 M4AIR_Params Params;
1696 /*Initialize AIR Params*/
1697 Params.m_inputCoord.m_x = 0;
1698 Params.m_inputCoord.m_y = 0;
1699 Params.m_inputSize.m_height = pPlaneIn->u_height;
1700 Params.m_inputSize.m_width = pPlaneIn->u_width;
1701 Params.m_outputSize.m_width = pPlaneOut->u_width;
1702 Params.m_outputSize.m_height = pPlaneOut->u_height;
1703 Params.m_bOutputStripe = M4OSA_FALSE;
1704 Params.m_outputOrientation = M4COMMON_kOrientationTopLeft;
1762 if((M4OSA_UInt32)((pPlaneIn->u_height * pPlaneOut->u_width) /pPlaneIn->u_width) <= pPlaneOut->u_height)//Params.m_inputSize.m_height < Params.m_inputSize.m_width)
1765 Params.m_outputSize.m_width = pPlaneOut->u_width;
1766 Params.m_outputSize.m_height = (M4OSA_UInt32)((pPlaneIn->u_height * pPlaneOut->u_width) /pPlaneIn->u_width);
1768 pImagePlanesTemp[0].u_topleft = (M4xVSS_ABS((M4OSA_Int32)(pImagePlanesTemp[0].u_height-Params.m_outputSize.m_height)>>1))*pImagePlanesTemp[0].u_stride;
1769 pImagePlanesTemp[0].u_height = Params.m_outputSize.m_height;
1770 pImagePlanesTemp[1].u_topleft = (M4xVSS_ABS((M4OSA_Int32)(pImagePlanesTemp[1].u_height-(Params.m_outputSize.m_height>>1)))>>1)*pImagePlanesTemp[1].u_stride;
1771 pImagePlanesTemp[1].u_height = Params.m_outputSize.m_height>>1;
1772 pImagePlanesTemp[2].u_topleft = (M4xVSS_ABS((M4OSA_Int32)(pImagePlanesTemp[2].u_height-(Params.m_outputSize.m_height>>1)))>>1)*pImagePlanesTemp[2].u_stride;
1773 pImagePlanesTemp[2].u_height = Params.m_outputSize.m_height>>1;
1778 Params.m_outputSize.m_height = pPlaneOut->u_height;
1779 Params.m_outputSize.m_width = (M4OSA_UInt32)((pPlaneIn->u_width * pPlaneOut->u_height) /pPlaneIn->u_height);
1781 pImagePlanesTemp[0].u_topleft = (M4xVSS_ABS((M4OSA_Int32)(pImagePlanesTemp[0].u_width-Params.m_outputSize.m_width)>>1));
1782 pImagePlanesTemp[0].u_width = Params.m_outputSize.m_width;
1783 pImagePlanesTemp[1].u_topleft = (M4xVSS_ABS((M4OSA_Int32)(pImagePlanesTemp[1].u_width-(Params.m_outputSize.m_width>>1)))>>1);
1784 pImagePlanesTemp[1].u_width = Params.m_outputSize.m_width>>1;
1785 pImagePlanesTemp[2].u_topleft = (M4xVSS_ABS((M4OSA_Int32)(pImagePlanesTemp[2].u_width-(Params.m_outputSize.m_width>>1)))>>1);
1786 pImagePlanesTemp[2].u_width = Params.m_outputSize.m_width>>1;
1790 Params.m_outputSize.m_width = (Params.m_outputSize.m_width>>1)<<1;
1791 Params.m_outputSize.m_height = (Params.m_outputSize.m_height>>1)<<1;
1792 Params.m_inputSize.m_width = (Params.m_inputSize.m_width>>1)<<1;
1793 Params.m_inputSize.m_height = (Params.m_inputSize.m_height>>1)<<1;
1802 if(Params.m_inputSize.m_height == Params.m_outputSize.m_height)
1804 Params.m_inputSize.m_width = Params.m_outputSize.m_width;
1806 else if(Params.m_inputSize.m_width == Params.m_outputSize.m_width)
1808 Params.m_inputSize.m_height = Params.m_outputSize.m_height;
1819 Params.m_outputSize.m_height = pPlaneOut->u_height;
1820 Params.m_outputSize.m_width = pPlaneOut->u_width;
1821 if((Params.m_outputSize.m_height * Params.m_inputSize.m_width) /Params.m_outputSize.m_width<Params.m_inputSize.m_height)
1824 Params.m_inputSize.m_height = (M4OSA_UInt32)((Params.m_outputSize.m_height * Params.m_inputSize.m_width) /Params.m_outputSize.m_width);
1825 Params.m_inputSize.m_height = (Params.m_inputSize.m_height>>1)<<1;
1826 Params.m_inputCoord.m_y = (M4OSA_Int32)((M4OSA_Int32)((pPlaneIn->u_height - Params.m_inputSize.m_height))>>1);
1831 Params.m_inputSize.m_width = (M4OSA_UInt32)((Params.m_outputSize.m_width * Params.m_inputSize.m_height) /Params.m_outputSize.m_height);
1832 Params.m_inputSize.m_width = (Params.m_inputSize.m_width>>1)<<1;
1833 Params.m_inputCoord.m_x = (M4OSA_Int32)((M4OSA_Int32)((pPlaneIn->u_width - Params.m_inputSize.m_width))>>1);
1857 err = M4AIR_configure(m_air_context, &Params);
3272 M4OSA_ERR applyEffectsAndRenderingMode(vePostProcessParams *params,
3284 frameSize = (params->videoWidth*params->videoHeight*3) >> 1;
3296 ((params->videoHeight*params->videoWidth*3)>>1), M4VS, (M4OSA_Char*)("lvpp colorBuffer"));
3308 prepareYUV420ImagePlane(planeIn, params->videoWidth, params->videoHeight,
3309 params->vidBuffer, reportedWidth, reportedHeight);
3312 prepareYUV420ImagePlane(planeOut, params->videoWidth, params->videoHeight,
3313 (M4VIFI_UInt8 *)tempOutputBuffer, params->videoWidth, params->videoHeight);
3320 if(params->currentVideoEffect & VIDEO_EFFECT_BLACKANDWHITE) {
3329 if(params->currentVideoEffect & VIDEO_EFFECT_PINK) {
3338 if(params->currentVideoEffect & VIDEO_EFFECT_GREEN) {
3347 if(params->currentVideoEffect & VIDEO_EFFECT_SEPIA) {
3356 if(params->currentVideoEffect & VIDEO_EFFECT_NEGATIVE) {
3365 if(params->currentVideoEffect & VIDEO_EFFECT_GRADIENT) {
3367 for(i=0;i<params->numberEffects;i++) {
3368 if(params->effectsSettings[i].VideoEffectType ==
3375 params->effectsSettings[i].xVSS.uiRgb16InputColor);
3381 if(params->currentVideoEffect & VIDEO_EFFECT_COLOR_RGB16) {
3383 for(i=0;i<params->numberEffects;i++) {
3384 if(params->effectsSettings[i].VideoEffectType ==
3391 params->effectsSettings[i].xVSS.uiRgb16InputColor);
3397 if(params->currentVideoEffect & VIDEO_EFFECT_FIFTIES) {
3399 for(i=0;i<params->numberEffects;i++) {
3400 if(params->effectsSettings[i].VideoEffectType ==
3404 if(i < params->numberEffects) {
3405 computeProgressForVideoEffect(params->timeMs,
3406 params->effectsSettings[i].uiStartTime,
3407 params->effectsSettings[i].uiDuration, &extProgress);
3409 if(params->isFiftiesEffectStarted) {
3413 1000/params->effectsSettings[i].xVSS.uiFiftiesOutFrameRate;
3442 if(params->currentVideoEffect & VIDEO_EFFECT_FRAMING) {
3446 for(i=0;i<params->numberEffects;i++) {
3447 if(params->effectsSettings[i].VideoEffectType ==
3449 if((params->effectsSettings[i].uiStartTime <= params->timeMs + params->timeOffset) &&
3450 ((params->effectsSettings[i].uiStartTime+
3451 params->effectsSettings[i].uiDuration) >= params->timeMs + params->timeOffset))
3457 if(i < params->numberEffects) {
3458 computeProgressForVideoEffect(params->timeMs,
3459 params->effectsSettings[i].uiStartTime,
3460 params->effectsSettings[i].uiDuration, &extProgress);
3463 params->effectsSettings, i, params->overlayFrameRGBBuffer,
3464 params->overlayFrameYUVBuffer);
3499 if(params->currentVideoEffect & VIDEO_EFFECT_FADEFROMBLACK) {
3501 for(i=0;i<params->numberEffects;i++) {
3502 if(params->effectsSettings[i].VideoEffectType ==
3507 if(i < params->numberEffects) {
3508 computePercentageDone(params->timeMs,
3509 params->effectsSettings[i].uiStartTime,
3510 params->effectsSettings[i].uiDuration, &percentageDone);
3524 if(params->currentVideoEffect & VIDEO_EFFECT_FADETOBLACK) {
3526 for(i=0;i<params->numberEffects;i++) {
3527 if(params->effectsSettings[i].VideoEffectType ==
3531 if(i < params->numberEffects) {
3532 computePercentageDone(params->timeMs,
3533 params->effectsSettings[i].uiStartTime,
3534 params->effectsSettings[i].uiDuration, &percentageDone);
3556 M4OSA_UInt32 yv12PlaneWidth = ((params->outVideoWidth +1)>>1)<<1;
3557 M4OSA_UInt32 yv12PlaneHeight = ((params->outVideoHeight+1)>>1)<<1;
3560 (M4OSA_UInt32)params->outBufferStride, (M4VIFI_UInt8 *)params->pOutBuffer);
3562 err = applyRenderingMode(planeIn, planeOut, params->renderingMode);