Lines Matching refs:source

144 int frame_parse::parse_sc_frame ( OMX_BUFFERHEADERTYPE *source,  in parse_sc_frame()  argument
153 if (source == NULL || dest == NULL || partialframe == NULL) { in parse_sc_frame()
159 psource = source->pBuffer + source->nOffset; in parse_sc_frame()
161 source_len = source->nFilledLen; in parse_sc_frame()
168 if (source_len == 0 && (source->nFlags & 0x01)) { in parse_sc_frame()
181 dest->nFlags = source->nFlags; in parse_sc_frame()
182 dest->nTimeStamp = source->nTimeStamp; in parse_sc_frame()
207 while ( source->nFilledLen > 0 && parse_state != A0 in parse_sc_frame()
216 source->nFilledLen--; in parse_sc_frame()
217 source->nOffset++; in parse_sc_frame()
226 source->nFilledLen--; in parse_sc_frame()
227 source->nOffset++; in parse_sc_frame()
273 source->nFilledLen--; in parse_sc_frame()
274 source->nOffset++; in parse_sc_frame()
296 source->nFilledLen--; in parse_sc_frame()
297 source->nOffset++; in parse_sc_frame()
329 psource = source->pBuffer + source->nOffset; in parse_sc_frame()
331 source_len = source->nFilledLen; in parse_sc_frame()
421 psource = source->pBuffer + source->nOffset; in parse_sc_frame()
435 if (source->nFlags & OMX_BUFFERFLAG_EOS) { in parse_sc_frame()
442 if (source->nFlags & OMX_BUFFERFLAG_EOS) { in parse_sc_frame()
449 if (source->nFlags & OMX_BUFFERFLAG_EOS) { in parse_sc_frame()
460 if (source->nFilledLen < parsed_length) { in parse_sc_frame()
470 source->nFilledLen -= parsed_length; in parse_sc_frame()
471 source->nOffset += parsed_length; in parse_sc_frame()
477 int frame_parse::parse_h264_nallength (OMX_BUFFERHEADERTYPE *source, in parse_h264_nallength() argument
484 if (source == NULL || dest == NULL || partialframe == NULL) { in parse_h264_nallength()
490 source_len = source->nFilledLen; in parse_h264_nallength()
499 if (source->nFlags & OMX_BUFFERFLAG_EOS) { in parse_h264_nallength()
507 "flags %u", (unsigned int)source_len, (unsigned int)source->nFlags); in parse_h264_nallength()
514 psource = source->pBuffer + source->nOffset; in parse_h264_nallength()
525 source->nFilledLen--; in parse_h264_nallength()
526 source->nOffset++; in parse_h264_nallength()
543 source_len = source->nFilledLen; in parse_h264_nallength()
546 psource = source->pBuffer + source->nOffset; in parse_h264_nallength()
549 dest->nTimeStamp = source->nTimeStamp; in parse_h264_nallength()
550 dest->nFlags = source->nFlags; in parse_h264_nallength()
557 source->nOffset += temp_len; in parse_h264_nallength()
558 source->nFilledLen -= temp_len; in parse_h264_nallength()
564 source->nOffset += bytes_tobeparsed; in parse_h264_nallength()
565 source->nFilledLen -= bytes_tobeparsed; in parse_h264_nallength()