Exemplo n.º 1
0
Arquivo: omx.c Projeto: Ezio-PS/movian
int64_t
omx_get_media_time(omx_component_t *oc)
{
  OMX_TIME_CONFIG_TIMESTAMPTYPE ts;
  OMX_INIT_STRUCTURE(ts);

  omxchk(OMX_GetConfig(oc->oc_handle,
		       OMX_IndexConfigTimeCurrentMediaTime,
		       &ts));
  return omx_ticks_to_s64(ts.nTimestamp);
 
}
Exemplo n.º 2
0
void mmalil_buffer_header_to_mmal(MMAL_BUFFER_HEADER_T *mmal, OMX_BUFFERHEADERTYPE *omx)
{
   mmal->cmd = 0;
   mmal->data = omx->pBuffer;
   mmal->alloc_size = omx->nAllocLen;
   mmal->length = omx->nFilledLen;
   mmal->offset = omx->nOffset;
   mmal->pts = omx_ticks_to_s64(omx->nTimeStamp);
   if (omx->nFlags & OMX_BUFFERFLAG_TIME_UNKNOWN)
      mmal->pts = MMAL_TIME_UNKNOWN;
   mmal->dts = MMAL_TIME_UNKNOWN;
   mmal->flags = mmalil_buffer_flags_to_mmal(omx->nFlags);
}