Lines Matching refs:pBufHdr
189 static int (*Read_Buffer)(OMX_BUFFERHEADERTYPE *pBufHdr );
245 int overlay_fb(struct OMX_BUFFERHEADERTYPE *pBufHdr);
248 void render_fb(struct OMX_BUFFERHEADERTYPE *pBufHdr);
323 static int Read_Buffer_From_DAT_File(OMX_BUFFERHEADERTYPE *pBufHdr );
324 static int Read_Buffer_ArbitraryBytes(OMX_BUFFERHEADERTYPE *pBufHdr);
325 static int Read_Buffer_From_Vop_Start_Code_File(OMX_BUFFERHEADERTYPE *pBufHdr);
326 static int Read_Buffer_From_Mpeg2_Start_Code(OMX_BUFFERHEADERTYPE *pBufHdr);
327 static int Read_Buffer_From_Size_Nal(OMX_BUFFERHEADERTYPE *pBufHdr);
328 static int Read_Buffer_From_RCV_File_Seq_Layer(OMX_BUFFERHEADERTYPE *pBufHdr);
329 static int Read_Buffer_From_RCV_File(OMX_BUFFERHEADERTYPE *pBufHdr);
330 static int Read_Buffer_From_VC1_File(OMX_BUFFERHEADERTYPE *pBufHdr);
331 static int Read_Buffer_From_DivX_4_5_6_File(OMX_BUFFERHEADERTYPE *pBufHdr);
332 static int Read_Buffer_From_DivX_311_File(OMX_BUFFERHEADERTYPE *pBufHdr);
2187 //pBufHdr[bufCnt]->pAppPrivate = this;
2589 static int Read_Buffer_From_DAT_File(OMX_BUFFERHEADERTYPE *pBufHdr)
2615 pBufHdr->nFilledLen = 0;
2619 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, frameSize);
2630 pBufHdr->nTimeStamp = timeStampLfile;
2635 static int Read_Buffer_ArbitraryBytes(OMX_BUFFERHEADERTYPE *pBufHdr)
2639 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, NUMBER_OF_ARBITRARYBYTES_READ);
2648 pBufHdr->nTimeStamp = 0;
2650 pBufHdr->nTimeStamp = LLONG_MAX;
2652 pBufHdr->nTimeStamp = timeStampLfile;
2658 static int Read_Buffer_From_Vop_Start_Code_File(OMX_BUFFERHEADERTYPE *pBufHdr)
2663 pBufHdr->nFilledLen = 0;
2671 bytes_read = read(inputBufferFileFd, &pBufHdr->pBuffer[readOffset], 1);
2678 code |= (0x000000FF & pBufHdr->pBuffer[readOffset]);
2709 pBufHdr->nTimeStamp = timeStampLfile;
2713 static int Read_Buffer_From_Mpeg2_Start_Code(OMX_BUFFERHEADERTYPE *pBufHdr)
2718 pBufHdr->nFilledLen = 0;
2730 bytesRead = read(inputBufferFileFd, &pBufHdr->pBuffer[readOffset], 1);
2739 code |= (0x000000FF & pBufHdr->pBuffer[readOffset]);
2790 pBufHdr->nTimeStamp = timeStampLfile;
2796 static int Read_Buffer_From_Size_Nal(OMX_BUFFERHEADERTYPE *pBufHdr)
2806 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer + pBufHdr->nOffset, nalSize);
2821 temp_size[SIZE_NAL_FIELD_MAX - 1 - i] = pBufHdr->pBuffer[pBufHdr->nOffset + j];
2826 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer + pBufHdr->nOffset + nalSize, size);
2832 pBufHdr->nTimeStamp = timeStampLfile;
2838 static int Read_Buffer_From_RCV_File_Seq_Layer(OMX_BUFFERHEADERTYPE *pBufHdr)
2842 pBufHdr->nFilledLen = 0;
2843 pBufHdr->nFlags = 0;
2860 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer, VC1_SEQ_LAYER_SIZE_WITHOUT_STRUCTC + size_struct_C);
2871 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer, VC1_SEQ_LAYER_SIZE_V1_WITHOUT_STRUCTC + size_struct_C);
2885 printf("0x%.2x ", pBufHdr->pBuffer[i]);
2896 static int Read_Buffer_From_RCV_File(OMX_BUFFERHEADERTYPE *pBufHdr)
2903 DEBUG_PRINT("Read_Buffer_From_RCV_File - nOffset %d\n", pBufHdr->nOffset);
2929 readOffset = read(inputBufferFileFd, &pBufHdr->nTimeStamp, 4);
2930 DEBUG_PRINT("Read_Buffer_From_RCV_File - timeStamp %d\n", pBufHdr->nTimeStamp);
2931 pBufHdr->nTimeStamp *= 1000;
2935 pBufHdr->nTimeStamp = timeStampLfile;
2939 if(len > pBufHdr->nAllocLen)
2941 DEBUG_PRINT_ERROR("Error in sufficient buffer framesize %d, allocalen %d noffset %d\n",len,pBufHdr->nAllocLen, pBufHdr->nOffset);
2942 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer+pBufHdr->nOffset,
2943 pBufHdr->nAllocLen - pBufHdr->nOffset);
2950 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer+pBufHdr->nOffset, len);
2964 printf("0x%.2x ", pBufHdr->pBuffer[i]);
2976 static int Read_Buffer_From_VC1_File(OMX_BUFFERHEADERTYPE *pBufHdr)
2979 OMX_U8 *pBuffer = pBufHdr->pBuffer + pBufHdr->nOffset;
2994 if (total_bytes == pBufHdr->nAllocLen)
3009 code |= (0x000000FF & pBufHdr->pBuffer[readOffset]);
3046 while(pBufHdr->pBuffer[readOffset-1] == 0)
3058 pBufHdr->nTimeStamp = timeStampLfile;
3067 printf("0x%.2x ", pBufHdr->pBuffer[i]);
3079 static int Read_Buffer_From_DivX_4_5_6_File(OMX_BUFFERHEADERTYPE *pBufHdr)
3101 p_buffer = (char *)pBufHdr->pBuffer + byte_pos;
3200 pBufHdr->nFilledLen = offset_array[pckt_end_idx];
3201 pBufHdr->nTimeStamp = timeStampLfile;
3204 total_bytes += pBufHdr->nFilledLen;
3206 pckt_type, pBufHdr->nFilledLen, pBufHdr->nTimeStamp,
3209 return pBufHdr->nFilledLen;
3212 static int Read_Buffer_From_DivX_311_File(OMX_BUFFERHEADERTYPE *pBufHdr)
3222 unsigned int n_offset = pBufHdr->nOffset;
3226 pBufHdr->nTimeStamp = timeStampLfile;
3228 if (pBufHdr != NULL)
3230 p_buffer = (char *)pBufHdr->pBuffer + pBufHdr->nOffset;
3234 DEBUG_PRINT("\n ERROR:Read_Buffer_From_DivX_311_File: pBufHdr is NULL\n");
3252 pBufHdr->nTimeStamp = timeStampLfile;
3258 (long int)pBufHdr->nTimeStamp,
3414 int overlay_fb(struct OMX_BUFFERHEADERTYPE *pBufHdr)
3425 if (pBufHdr->pPlatformPrivate == NULL)
3432 pBufHdr->pPlatformPrivate)->entryList->entry;
3471 void render_fb(struct OMX_BUFFERHEADERTYPE *pBufHdr)
3482 unsigned int end = (unsigned int)(pBufHdr->pBuffer + pBufHdr->nAllocLen);
3500 addr = (unsigned int)(pBufHdr->pBuffer + pBufHdr->nFilledLen);
3521 pBufHdr->pPlatformPrivate)->entryList->entry;