omxil/omxilcomponentcommon/src/common/omxilclientclockport.cpp
branchOpenMAX-IL_SHAI
changeset 16 eedf2dcd43c6
parent 0 40261b775718
equal deleted inserted replaced
15:c1e808730d6c 16:eedf2dcd43c6
    96 	
    96 	
    97 	return ETrue;
    97 	return ETrue;
    98 	}
    98 	}
    99 
    99 
   100 
   100 
   101 EXPORT_C OMX_ERRORTYPE COmxILClientClockPort::GetMediaTime(OMX_TICKS& aMediaTime) const
   101 OMX_ERRORTYPE COmxILClientClockPort::GetMediaTime(OMX_TICKS& aMediaTime) const
   102 	{
   102 	{
   103 	DEBUG_PRINTF(_L8("COmxILClientClockPort::GetMediaTime"));
   103 	DEBUG_PRINTF(_L8("COmxILClientClockPort::GetMediaTime"));
   104 	return GetTime(aMediaTime, OMX_IndexConfigTimeCurrentMediaTime);
   104 	return GetTime(aMediaTime, OMX_IndexConfigTimeCurrentMediaTime);
   105 	}
   105 	}
   106 
   106 
   107 
   107 
   108 EXPORT_C OMX_ERRORTYPE COmxILClientClockPort::GetWallTime(OMX_TICKS& aWallTime) const
   108 OMX_ERRORTYPE COmxILClientClockPort::GetWallTime(OMX_TICKS& aWallTime) const
   109 	{
   109 	{
   110 	DEBUG_PRINTF(_L8("COmxILClientClockPort::GetWallTime"));
   110 	DEBUG_PRINTF(_L8("COmxILClientClockPort::GetWallTime"));
   111 	return GetTime(aWallTime, OMX_IndexConfigTimeCurrentWallTime);
   111 	return GetTime(aWallTime, OMX_IndexConfigTimeCurrentWallTime);
   112 	}
   112 	}
   113 
   113 
   114 
   114 
   115 EXPORT_C OMX_ERRORTYPE COmxILClientClockPort::GetClockState(OMX_TIME_CONFIG_CLOCKSTATETYPE& aClockState) const
   115 OMX_ERRORTYPE COmxILClientClockPort::GetClockState(OMX_TIME_CONFIG_CLOCKSTATETYPE& aClockState) const
   116 	{
   116 	{
   117 	DEBUG_PRINTF(_L8("COmxILClientClockPort::GetClockState"));
   117 	DEBUG_PRINTF(_L8("COmxILClientClockPort::GetClockState"));
   118 
   118 
   119 	if (IsClockComponentAvailable())
   119 	if (IsClockComponentAvailable())
   120 		{
   120 		{
   129 
   129 
   130 	return OMX_ErrorIncorrectStateOperation;
   130 	return OMX_ErrorIncorrectStateOperation;
   131 
   131 
   132 	}
   132 	}
   133 
   133 
   134 EXPORT_C OMX_ERRORTYPE COmxILClientClockPort::MediaTimeRequest(const OMX_PTR apPrivate, 
   134 OMX_ERRORTYPE COmxILClientClockPort::MediaTimeRequest(const OMX_PTR apPrivate, 
   135 															const OMX_TICKS aMediaTime,
   135 															const OMX_TICKS aMediaTime,
   136 															const OMX_TICKS aOffset) const
   136 															const OMX_TICKS aOffset) const
   137 	{
   137 	{
   138 	DEBUG_PRINTF(_L8("COmxILClientClockPort::MediaTimeRequest"));
   138 	DEBUG_PRINTF(_L8("COmxILClientClockPort::MediaTimeRequest"));
   139 	OMX_TIME_CONFIG_MEDIATIMEREQUESTTYPE timeInfo;
   139 	OMX_TIME_CONFIG_MEDIATIMEREQUESTTYPE timeInfo;
   151 	
   151 	
   152 	return OMX_ErrorIncorrectStateOperation;
   152 	return OMX_ErrorIncorrectStateOperation;
   153 	}
   153 	}
   154 
   154 
   155 
   155 
   156 EXPORT_C OMX_ERRORTYPE COmxILClientClockPort::SetStartTime(const OMX_TICKS aStartTime) const
   156 OMX_ERRORTYPE COmxILClientClockPort::SetStartTime(const OMX_TICKS aStartTime) const
   157 	{
   157 	{
   158 	DEBUG_PRINTF(_L8("COmxILClientClockPort::SetStartTime"));
   158 	DEBUG_PRINTF(_L8("COmxILClientClockPort::SetStartTime"));
   159 	return SetTime(aStartTime, OMX_IndexConfigTimeClientStartTime);
   159 	return SetTime(aStartTime, OMX_IndexConfigTimeClientStartTime);
   160 	}
   160 	}
   161 
   161 
   162 
   162 
   163 EXPORT_C OMX_ERRORTYPE COmxILClientClockPort::SetVideoReference(const OMX_TICKS aVideoRef) const
   163 OMX_ERRORTYPE COmxILClientClockPort::SetVideoReference(const OMX_TICKS aVideoRef) const
   164 	{
   164 	{
   165 	DEBUG_PRINTF(_L8("COmxILClientClockPort::SetVideoReference"));
   165 	DEBUG_PRINTF(_L8("COmxILClientClockPort::SetVideoReference"));
   166 	return SetTime(aVideoRef, OMX_IndexConfigTimeCurrentVideoReference);
   166 	return SetTime(aVideoRef, OMX_IndexConfigTimeCurrentVideoReference);
   167 	}
   167 	}
   168 
   168 
   169 
   169 
   170 EXPORT_C OMX_ERRORTYPE COmxILClientClockPort::SetAudioReference(const OMX_TICKS aAudioRef) const
   170 OMX_ERRORTYPE COmxILClientClockPort::SetAudioReference(const OMX_TICKS aAudioRef) const
   171 	{
   171 	{
   172 	DEBUG_PRINTF(_L8("COmxILClientClockPort::SetAudioReference"));
   172 	DEBUG_PRINTF(_L8("COmxILClientClockPort::SetAudioReference"));
   173 	return SetTime(aAudioRef, OMX_IndexConfigTimeCurrentAudioReference);
   173 	return SetTime(aAudioRef, OMX_IndexConfigTimeCurrentAudioReference);
   174 	}
   174 	}
   175 
   175 
   176 EXPORT_C OMX_BOOL COmxILClientClockPort::IsClockComponentAvailable() const
   176 OMX_BOOL COmxILClientClockPort::IsClockComponentAvailable() const
   177 {
   177 {
   178 	if (iTunnelledComponent != NULL && iParamPortDefinition.bEnabled)
   178 	if (iTunnelledComponent != NULL && iParamPortDefinition.bEnabled)
   179 		{
   179 		{
   180 		return OMX_TRUE;
   180 		return OMX_TRUE;
   181 		}
   181 		}