summaryrefslogtreecommitdiffstats
path: root/sec_mm/sec_omx/sec_omx_component/common
diff options
context:
space:
mode:
authorSeungBeom Kim <sbcrux.kim@samsung.com>2010-09-29 11:08:19 -0700
committerAndreas Huber <andih@google.com>2010-09-29 15:41:31 -0700
commitccbd21584b7b4f3c9bb4fe9af76add5517a3e0be (patch)
treeb8b04c8b55e0977195dfa2757f406b6d01929c61 /sec_mm/sec_omx/sec_omx_component/common
parent3ceb6909851c661bd8c23c8b62959a4989512d38 (diff)
downloaddevice_samsung_crespo-ccbd21584b7b4f3c9bb4fe9af76add5517a3e0be.zip
device_samsung_crespo-ccbd21584b7b4f3c9bb4fe9af76add5517a3e0be.tar.gz
device_samsung_crespo-ccbd21584b7b4f3c9bb4fe9af76add5517a3e0be.tar.bz2
Upload additional feature for full frame search and error detect
this feature is disabled by default. for using this feature add "#define FULL_FRAME_SEARCH" in SEC_OMX_H264dec.c, SEC_OMX_Mpeg4dec.c Change-Id: I6225f7ab5aff4c66f19893a3048bdae721b095d8 Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
Diffstat (limited to 'sec_mm/sec_omx/sec_omx_component/common')
-rw-r--r--sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Baseport.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Baseport.c b/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Baseport.c
index 091ab5d..8cf4241 100644
--- a/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Baseport.c
+++ b/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Baseport.c
@@ -115,21 +115,21 @@ OMX_ERRORTYPE SEC_OMX_FlushPort(OMX_COMPONENTTYPE *pOMXComponent, OMX_S32 portIn
if (SEC_OSAL_GetElemNum(&pSECPort->bufferQ) != pSECPort->assignedBufferNum)
SEC_OSAL_SetElemNum(&pSECPort->bufferQ, pSECPort->assignedBufferNum);
} else {
- while(1) {
- int cnt;
- SEC_OSAL_Get_SemaphoreCount(pSECComponent->pSECPort[portIndex].bufferSemID, &cnt);
- if (cnt == 0)
- break;
- SEC_OSAL_SemaphoreWait(pSECComponent->pSECPort[portIndex].bufferSemID);
- }
+ while(1) {
+ int cnt;
+ SEC_OSAL_Get_SemaphoreCount(pSECComponent->pSECPort[portIndex].bufferSemID, &cnt);
+ if (cnt == 0)
+ break;
+ SEC_OSAL_SemaphoreWait(pSECComponent->pSECPort[portIndex].bufferSemID);
+ }
SEC_OSAL_SetElemNum(&pSECPort->bufferQ, 0);
}
- pSECComponent->processData[portIndex].dataLen = 0;
+ pSECComponent->processData[portIndex].dataLen = 0;
pSECComponent->processData[portIndex].nFlags = 0;
- pSECComponent->processData[portIndex].remainDataLen = 0;
- pSECComponent->processData[portIndex].timeStamp = 0;
- pSECComponent->processData[portIndex].usedDataLen = 0;
+ pSECComponent->processData[portIndex].remainDataLen = 0;
+ pSECComponent->processData[portIndex].timeStamp = 0;
+ pSECComponent->processData[portIndex].usedDataLen = 0;
EXIT:
FunctionOut();
@@ -196,6 +196,7 @@ OMX_ERRORTYPE SEC_OMX_BufferFlushProcess(OMX_COMPONENTTYPE *pOMXComponent, OMX_S
SEC_OSAL_Memset(pSECComponent->timeStamp, -19771003, sizeof(OMX_TICKS) * MAX_TIMESTAMP);
SEC_OSAL_Memset(pSECComponent->nFlags, 0, sizeof(OMX_U32) * MAX_TIMESTAMP);
pSECComponent->getAllDelayBuffer = OMX_FALSE;
+ pSECComponent->bSaveFlagEOS = OMX_FALSE;
pSECComponent->reInputData = OMX_FALSE;
} else if (portIndex == OUTPUT_PORT_INDEX) {
pSECComponent->remainOutputData = OMX_FALSE;
@@ -266,6 +267,7 @@ OMX_ERRORTYPE SEC_OMX_BufferFlushProcessNoEvent(OMX_COMPONENTTYPE *pOMXComponent
SEC_OSAL_Memset(pSECComponent->timeStamp, -19771003, sizeof(OMX_TICKS) * MAX_TIMESTAMP);
SEC_OSAL_Memset(pSECComponent->nFlags, 0, sizeof(OMX_U32) * MAX_TIMESTAMP);
pSECComponent->getAllDelayBuffer = OMX_FALSE;
+ pSECComponent->bSaveFlagEOS = OMX_FALSE;
pSECComponent->remainOutputData = OMX_FALSE;
pSECComponent->reInputData = OMX_FALSE;
}