Lines Matching refs:source
4 Redistribution and use in source and binary forms, with or without
6 * Redistributions of source code must retain the above copyright
114 int frame_parse::parse_mpeg4_frame ( OMX_BUFFERHEADERTYPE *source,
123 if (source == NULL || dest == NULL || partialframe == NULL)
128 /*Calculate how many bytes are left in source and destination*/
130 psource = source->pBuffer + source->nOffset;
132 source_len = source->nFilledLen;
138 if (source_len == 0 && (source->nFlags & 0x01))
154 update_metadata(source->nTimeStamp,source->nFlags);
164 while ( source->nFilledLen > 0 && parse_state != A0
177 source->nFilledLen--;
178 source->nOffset++;
212 source->nFilledLen--;
213 source->nOffset++;
238 source->nFilledLen--;
239 source->nOffset++;
268 /*Calculate how many bytes are left in source and destination*/
270 psource = source->pBuffer + source->nOffset;
272 source_len = source->nFilledLen;
276 /*Check if entry state machine consumed source or destination*/
353 psource = source->pBuffer + source->nOffset;
391 if (source->nFilledLen < parsed_length)
396 source->nFilledLen -= parsed_length;
397 source->nOffset += parsed_length;
403 int frame_parse::parse_h264_nallength (OMX_BUFFERHEADERTYPE *source,
410 if (source == NULL || dest == NULL || partialframe == NULL)
417 source_len = source->nFilledLen;
421 DEBUG_PRINT_LOW("\n Destination %d source %d nal length %d",\
427 psource = source->pBuffer + source->nOffset;
440 source->nFilledLen--;
441 source->nOffset++;
459 source_len = source->nFilledLen;
462 psource = source->pBuffer + source->nOffset;
472 source->nOffset += temp_len;
473 source->nFilledLen -= temp_len;
481 source->nOffset += bytes_tobeparsed;
482 source->nFilledLen -= bytes_tobeparsed;