summaryrefslogtreecommitdiff
path: root/msmcobalt/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'msmcobalt/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp')
-rw-r--r--msmcobalt/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/msmcobalt/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp b/msmcobalt/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
index 6c087ff..7dc6968 100644
--- a/msmcobalt/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
+++ b/msmcobalt/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
@@ -44,7 +44,6 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
extern int m_pipe;
static int bframes;
static int entropy;
-static int perfmode;
static int lowlatency;
// factory function executed by the core to create instances
void *get_omx_component_factory_fn(void)
@@ -148,9 +147,6 @@ omx_venc::omx_venc()
property_get("vidc.debug.entropy", property_value, "1");
entropy = !!atoi(property_value);
property_value[0] = '\0';
- property_get("vidc.debug.perf.mode", property_value, "0");
- perfmode = atoi(property_value);
- property_value[0] = '\0';
handle = NULL;
property_get("vidc.debug.lowlatency", property_value, "0");
lowlatency = atoi(property_value);
@@ -608,14 +604,6 @@ OMX_ERRORTYPE omx_venc::component_init(OMX_STRING role)
}
}
- if (perfmode) {
- QOMX_EXTNINDEX_VIDEO_PERFMODE pParam;
- pParam.nPerfMode = perfmode;
- DEBUG_PRINT_LOW("Perfmode = 0x%x", pParam.nPerfMode);
- if (!handle->venc_set_config(&pParam, (OMX_INDEXTYPE)OMX_QcomIndexConfigVideoVencPerfMode))
- DEBUG_PRINT_ERROR("Failed setting PerfMode to %d", pParam.nPerfMode);
- }
-
if (lowlatency)
{
QOMX_ENABLETYPE low_latency;
@@ -1991,17 +1979,6 @@ OMX_ERRORTYPE omx_venc::set_config(OMX_IN OMX_HANDLETYPE hComp,
DEBUG_PRINT_ERROR("ERROR: Set OMX_IndexConfigCommonRotate failed");
return OMX_ErrorUnsupportedSetting;
}
- if (nRotation == 90 || nRotation == 270) {
- OMX_U32 nFrameWidth;
- OMX_U32 nFrameHeight;
-
- DEBUG_PRINT_HIGH("set_config: updating port Dims Rotation angle = %d",
- pParam->nRotation);
- nFrameWidth = m_sOutPortDef.format.video.nFrameWidth;
- nFrameHeight = m_sOutPortDef.format.video.nFrameHeight;
- m_sOutPortDef.format.video.nFrameWidth = nFrameHeight;
- m_sOutPortDef.format.video.nFrameHeight = nFrameWidth;
- }
m_sConfigFrameRotation.nRotation = pParam->nRotation;
break;
}