Lines Matching refs:pBufHdr
274 static int (*Read_Buffer)(OMX_BUFFERHEADERTYPE *pBufHdr );
335 int overlay_fb(struct OMX_BUFFERHEADERTYPE *pBufHdr);
338 void render_fb(struct OMX_BUFFERHEADERTYPE *pBufHdr);
416 static int Read_Buffer_From_DAT_File(OMX_BUFFERHEADERTYPE *pBufHdr );
417 static int Read_Buffer_From_H264_Start_Code_File(OMX_BUFFERHEADERTYPE *pBufHdr);
418 static int Read_Buffer_ArbitraryBytes(OMX_BUFFERHEADERTYPE *pBufHdr);
419 static int Read_Buffer_From_Vop_Start_Code_File(OMX_BUFFERHEADERTYPE *pBufHdr);
420 static int Read_Buffer_From_Mpeg2_Start_Code(OMX_BUFFERHEADERTYPE *pBufHdr);
421 static int Read_Buffer_From_Size_Nal(OMX_BUFFERHEADERTYPE *pBufHdr);
422 static int Read_Buffer_From_RCV_File_Seq_Layer(OMX_BUFFERHEADERTYPE *pBufHdr);
423 static int Read_Buffer_From_RCV_File(OMX_BUFFERHEADERTYPE *pBufHdr);
425 static int Read_Buffer_From_VP8_File(OMX_BUFFERHEADERTYPE *pBufHdr);
427 static int Read_Buffer_From_VC1_File(OMX_BUFFERHEADERTYPE *pBufHdr);
428 static int Read_Buffer_From_DivX_4_5_6_File(OMX_BUFFERHEADERTYPE *pBufHdr);
429 static int Read_Buffer_From_DivX_311_File(OMX_BUFFERHEADERTYPE *pBufHdr);
2315 //pBufHdr[bufCnt]->pAppPrivate = this;
2694 static int Read_Buffer_From_DAT_File(OMX_BUFFERHEADERTYPE *pBufHdr)
2721 pBufHdr->nFilledLen = 0;
2725 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, frameSize);
2736 pBufHdr->nTimeStamp = timeStampLfile;
2741 static int Read_Buffer_From_H264_Start_Code_File(OMX_BUFFERHEADERTYPE *pBufHdr)
2748 char *dataptr = (char *)pBufHdr->pBuffer;
2804 pBufHdr->nTimeStamp = 0;
2806 pBufHdr->nTimeStamp = LLONG_MAX;
2808 pBufHdr->nTimeStamp = timeStampLfile;
2815 static int Read_Buffer_ArbitraryBytes(OMX_BUFFERHEADERTYPE *pBufHdr)
2819 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, NUMBER_OF_ARBITRARYBYTES_READ);
2828 pBufHdr->nTimeStamp = 0;
2830 pBufHdr->nTimeStamp = LLONG_MAX;
2832 pBufHdr->nTimeStamp = timeStampLfile;
2838 static int Read_Buffer_From_Vop_Start_Code_File(OMX_BUFFERHEADERTYPE *pBufHdr)
2843 pBufHdr->nFilledLen = 0;
2850 bytes_read = read(inputBufferFileFd, &pBufHdr->pBuffer[readOffset], 1);
2856 code |= (0x000000FF & pBufHdr->pBuffer[readOffset]);
2880 pBufHdr->nTimeStamp = timeStampLfile;
2884 static int Read_Buffer_From_Mpeg2_Start_Code(OMX_BUFFERHEADERTYPE *pBufHdr)
2889 pBufHdr->nFilledLen = 0;
2901 bytesRead = read(inputBufferFileFd, &pBufHdr->pBuffer[readOffset], 1);
2910 code |= (0x000000FF & pBufHdr->pBuffer[readOffset]);
2961 pBufHdr->nTimeStamp = timeStampLfile;
2967 static int Read_Buffer_From_Size_Nal(OMX_BUFFERHEADERTYPE *pBufHdr)
2977 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer + pBufHdr->nOffset, nalSize);
2989 temp_size[SIZE_NAL_FIELD_MAX - 1 - i] = pBufHdr->pBuffer[pBufHdr->nOffset + j];
2994 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer + pBufHdr->nOffset + nalSize, size);
2999 pBufHdr->nTimeStamp = timeStampLfile;
3005 static int Read_Buffer_From_RCV_File_Seq_Layer(OMX_BUFFERHEADERTYPE *pBufHdr)
3009 pBufHdr->nFilledLen = 0;
3011 pBufHdr->nFlags |= OMX_BUFFERFLAG_CODECCONFIG;
3013 pBufHdr->nFlags = 0;
3031 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer, size_struct_C);
3034 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer, VC1_SEQ_LAYER_SIZE_WITHOUT_STRUCTC + size_struct_C);
3043 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer, size_struct_C);
3046 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer, VC1_SEQ_LAYER_SIZE_V1_WITHOUT_STRUCTC + size_struct_C);
3058 printf("0x%.2x ", pBufHdr->pBuffer[i]);
3069 static int Read_Buffer_From_RCV_File(OMX_BUFFERHEADERTYPE *pBufHdr)
3076 DEBUG_PRINT("Read_Buffer_From_RCV_File - nOffset %d\n", pBufHdr->nOffset);
3097 readOffset = read(inputBufferFileFd, &pBufHdr->nTimeStamp, 4);
3098 DEBUG_PRINT("Read_Buffer_From_RCV_File - timeStamp %d\n", pBufHdr->nTimeStamp);
3099 pBufHdr->nTimeStamp *= 1000;
3101 pBufHdr->nTimeStamp = timeStampLfile;
3105 if (len > pBufHdr->nAllocLen) {
3106 DEBUG_PRINT_ERROR("Error in sufficient buffer framesize %d, allocalen %d noffset %d\n",len,pBufHdr->nAllocLen, pBufHdr->nOffset);
3107 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer+pBufHdr->nOffset,
3108 pBufHdr->nAllocLen - pBufHdr->nOffset);
3114 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer+pBufHdr->nOffset, len);
3126 printf("0x%.2x ", pBufHdr->pBuffer[i]);
3138 static int Read_Buffer_From_VC1_File(OMX_BUFFERHEADERTYPE *pBufHdr)
3141 OMX_U8 *pBuffer = pBufHdr->pBuffer + pBufHdr->nOffset;
3155 if (total_bytes == pBufHdr->nAllocLen) {
3168 code |= (0x000000FF & pBufHdr->pBuffer[readOffset]);
3200 while (pBufHdr->pBuffer[readOffset-1] == 0)
3212 pBufHdr->nTimeStamp = timeStampLfile;
3220 printf("0x%.2x ", pBufHdr->pBuffer[i]);
3232 static int Read_Buffer_From_DivX_4_5_6_File(OMX_BUFFERHEADERTYPE *pBufHdr)
3254 p_buffer = (char *)pBufHdr->pBuffer + byte_pos;
3357 pBufHdr->nFilledLen = offset_array[pckt_end_idx];
3358 pBufHdr->nTimeStamp = timeStampLfile;
3361 total_bytes += pBufHdr->nFilledLen;
3363 pckt_type, pBufHdr->nFilledLen, pBufHdr->nTimeStamp,
3366 return pBufHdr->nFilledLen;
3369 static int Read_Buffer_From_DivX_311_File(OMX_BUFFERHEADERTYPE *pBufHdr)
3379 unsigned int n_offset = pBufHdr->nOffset;
3383 pBufHdr->nTimeStamp = timeStampLfile;
3385 if (pBufHdr != NULL) {
3386 p_buffer = (char *)pBufHdr->pBuffer + pBufHdr->nOffset;
3388 DEBUG_PRINT("\n ERROR:Read_Buffer_From_DivX_311_File: pBufHdr is NULL\n");
3405 pBufHdr->nTimeStamp = timeStampLfile;
3411 (long int)pBufHdr->nTimeStamp,
3417 static int Read_Buffer_From_VP8_File(OMX_BUFFERHEADERTYPE *pBufHdr)
3428 unsigned int n_offset = pBufHdr->nOffset;
3431 if (pBufHdr != NULL) {
3432 p_buffer = (char *)pBufHdr->pBuffer + pBufHdr->nOffset;
3434 DEBUG_PRINT("\n ERROR:Read_Buffer_From_DivX_311_File: pBufHdr is NULL\n");
3456 pBufHdr->nTimeStamp = time_stamp;
3665 int overlay_fb(struct OMX_BUFFERHEADERTYPE *pBufHdr)
3676 if (pBufHdr->pPlatformPrivate == NULL) {
3682 pBufHdr->pPlatformPrivate)->entryList->entry;
3724 void render_fb(struct OMX_BUFFERHEADERTYPE *pBufHdr)
3735 unsigned int end = (unsigned int)(pBufHdr->pBuffer + pBufHdr->nAllocLen);
3752 addr = (unsigned int)(pBufHdr->pBuffer + pBufHdr->nFilledLen);
3771 pBufHdr->pPlatformPrivate)->entryList->entry;