Lines Matching refs:source
105 int frame_parse::parse_sc_frame ( OMX_BUFFERHEADERTYPE *source, in parse_sc_frame() argument
114 if (source == NULL || dest == NULL || partialframe == NULL) { in parse_sc_frame()
120 psource = source->pBuffer + source->nOffset; in parse_sc_frame()
122 source_len = source->nFilledLen; in parse_sc_frame()
128 if (source_len == 0 && (source->nFlags & 0x01)) { in parse_sc_frame()
141 dest->nFlags = source->nFlags; in parse_sc_frame()
142 dest->nTimeStamp = source->nTimeStamp; in parse_sc_frame()
158 while ( source->nFilledLen > 0 && parse_state != A0 in parse_sc_frame()
167 source->nFilledLen--; in parse_sc_frame()
168 source->nOffset++; in parse_sc_frame()
177 source->nFilledLen--; in parse_sc_frame()
178 source->nOffset++; in parse_sc_frame()
218 source->nFilledLen--; in parse_sc_frame()
219 source->nOffset++; in parse_sc_frame()
241 source->nFilledLen--; in parse_sc_frame()
242 source->nOffset++; in parse_sc_frame()
274 psource = source->pBuffer + source->nOffset; in parse_sc_frame()
276 source_len = source->nFilledLen; in parse_sc_frame()
360 psource = source->pBuffer + source->nOffset; in parse_sc_frame()
374 if (source->nFlags & OMX_BUFFERFLAG_EOS) { in parse_sc_frame()
381 if (source->nFlags & OMX_BUFFERFLAG_EOS) { in parse_sc_frame()
388 if (source->nFlags & OMX_BUFFERFLAG_EOS) { in parse_sc_frame()
399 if (source->nFilledLen < parsed_length) { in parse_sc_frame()
409 source->nFilledLen -= parsed_length; in parse_sc_frame()
410 source->nOffset += parsed_length; in parse_sc_frame()
416 int frame_parse::parse_h264_nallength (OMX_BUFFERHEADERTYPE *source, in parse_h264_nallength() argument
423 if (source == NULL || dest == NULL || partialframe == NULL) { in parse_h264_nallength()
429 source_len = source->nFilledLen; in parse_h264_nallength()
438 if (source->nFlags & OMX_BUFFERFLAG_EOS) { in parse_h264_nallength()
446 "flags %u", (unsigned int)source_len, (unsigned int)source->nFlags); in parse_h264_nallength()
453 psource = source->pBuffer + source->nOffset; in parse_h264_nallength()
462 source->nFilledLen--; in parse_h264_nallength()
463 source->nOffset++; in parse_h264_nallength()
480 source_len = source->nFilledLen; in parse_h264_nallength()
483 psource = source->pBuffer + source->nOffset; in parse_h264_nallength()
486 dest->nTimeStamp = source->nTimeStamp; in parse_h264_nallength()
487 dest->nFlags = source->nFlags; in parse_h264_nallength()
494 source->nOffset += temp_len; in parse_h264_nallength()
495 source->nFilledLen -= temp_len; in parse_h264_nallength()
501 source->nOffset += bytes_tobeparsed; in parse_h264_nallength()
502 source->nFilledLen -= bytes_tobeparsed; in parse_h264_nallength()