Loading media/libstagefright/codecs/on2/h264dec/SoftAVC.cpp +10 −8 Original line number Diff line number Diff line Loading @@ -49,6 +49,8 @@ SoftAVC::SoftAVC( mPictureSize(mWidth * mHeight * 3 / 2), mCropLeft(0), mCropTop(0), mCropWidth(mWidth), mCropHeight(mHeight), mFirstPicture(NULL), mFirstPictureId(-1), mPicId(0), Loading Loading @@ -230,8 +232,8 @@ OMX_ERRORTYPE SoftAVC::getConfig( rectParams->nLeft = mCropLeft; rectParams->nTop = mCropTop; rectParams->nWidth = mWidth; rectParams->nHeight = mHeight; rectParams->nWidth = mCropWidth; rectParams->nHeight = mCropHeight; return OMX_ErrorNone; } Loading Loading @@ -367,6 +369,8 @@ bool SoftAVC::handlePortSettingChangeEvent(const H264SwDecInfo *info) { mWidth = info->picWidth; mHeight = info->picHeight; mPictureSize = mWidth * mHeight * 3 / 2; mCropWidth = mWidth; mCropHeight = mHeight; updatePortDefinitions(); notify(OMX_EventPortSettingsChanged, 1, 0, NULL); mOutputPortSettingsChange = AWAITING_DISABLED; Loading @@ -379,14 +383,12 @@ bool SoftAVC::handlePortSettingChangeEvent(const H264SwDecInfo *info) { bool SoftAVC::handleCropRectEvent(const CropParams *crop) { if (mCropLeft != crop->cropLeftOffset || mCropTop != crop->cropTopOffset || mWidth != crop->cropOutWidth || mHeight != crop->cropOutHeight) { mCropWidth != crop->cropOutWidth || mCropHeight != crop->cropOutHeight) { mCropLeft = crop->cropLeftOffset; mCropTop = crop->cropTopOffset; mWidth = crop->cropOutWidth; mHeight = crop->cropOutHeight; mPictureSize = mWidth * mHeight * 3 / 2; mCropWidth = crop->cropOutWidth; mCropHeight = crop->cropOutHeight; notify(OMX_EventPortSettingsChanged, 1, OMX_IndexConfigCommonOutputCrop, NULL); Loading media/libstagefright/codecs/on2/h264dec/SoftAVC.h +1 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,7 @@ private: uint32_t mWidth, mHeight, mPictureSize; uint32_t mCropLeft, mCropTop; uint32_t mCropWidth, mCropHeight; uint8_t *mFirstPicture; int32_t mFirstPictureId; Loading Loading
media/libstagefright/codecs/on2/h264dec/SoftAVC.cpp +10 −8 Original line number Diff line number Diff line Loading @@ -49,6 +49,8 @@ SoftAVC::SoftAVC( mPictureSize(mWidth * mHeight * 3 / 2), mCropLeft(0), mCropTop(0), mCropWidth(mWidth), mCropHeight(mHeight), mFirstPicture(NULL), mFirstPictureId(-1), mPicId(0), Loading Loading @@ -230,8 +232,8 @@ OMX_ERRORTYPE SoftAVC::getConfig( rectParams->nLeft = mCropLeft; rectParams->nTop = mCropTop; rectParams->nWidth = mWidth; rectParams->nHeight = mHeight; rectParams->nWidth = mCropWidth; rectParams->nHeight = mCropHeight; return OMX_ErrorNone; } Loading Loading @@ -367,6 +369,8 @@ bool SoftAVC::handlePortSettingChangeEvent(const H264SwDecInfo *info) { mWidth = info->picWidth; mHeight = info->picHeight; mPictureSize = mWidth * mHeight * 3 / 2; mCropWidth = mWidth; mCropHeight = mHeight; updatePortDefinitions(); notify(OMX_EventPortSettingsChanged, 1, 0, NULL); mOutputPortSettingsChange = AWAITING_DISABLED; Loading @@ -379,14 +383,12 @@ bool SoftAVC::handlePortSettingChangeEvent(const H264SwDecInfo *info) { bool SoftAVC::handleCropRectEvent(const CropParams *crop) { if (mCropLeft != crop->cropLeftOffset || mCropTop != crop->cropTopOffset || mWidth != crop->cropOutWidth || mHeight != crop->cropOutHeight) { mCropWidth != crop->cropOutWidth || mCropHeight != crop->cropOutHeight) { mCropLeft = crop->cropLeftOffset; mCropTop = crop->cropTopOffset; mWidth = crop->cropOutWidth; mHeight = crop->cropOutHeight; mPictureSize = mWidth * mHeight * 3 / 2; mCropWidth = crop->cropOutWidth; mCropHeight = crop->cropOutHeight; notify(OMX_EventPortSettingsChanged, 1, OMX_IndexConfigCommonOutputCrop, NULL); Loading
media/libstagefright/codecs/on2/h264dec/SoftAVC.h +1 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,7 @@ private: uint32_t mWidth, mHeight, mPictureSize; uint32_t mCropLeft, mCropTop; uint32_t mCropWidth, mCropHeight; uint8_t *mFirstPicture; int32_t mFirstPictureId; Loading