Lines Matching refs:readOffset
2840 unsigned int readOffset = 0;
2850 bytes_read = read(inputBufferFileFd, &pBufHdr->pBuffer[readOffset], 1);
2856 code |= (0x000000FF & pBufHdr->pBuffer[readOffset]);
2858 if (readOffset>3) {
2869 readOffset-=3;
2874 readOffset-=3;
2878 readOffset++;
2882 return readOffset;
2886 unsigned int readOffset = 0;
2901 bytesRead = read(inputBufferFileFd, &pBufHdr->pBuffer[readOffset], 1);
2910 code |= (0x000000FF & pBufHdr->pBuffer[readOffset]);
2915 if (readOffset >= 3) {
2928 readOffset -= 3;
2941 readOffset -= 3;
2952 readOffset -= 3;
2958 readOffset++;
2963 return readOffset;
3007 unsigned int readOffset = 0, size_struct_C = 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);
3056 printf("Read_Buffer_From_RCV_File, length %d readOffset %d\n", readOffset, readOffset);
3066 return readOffset;
3071 unsigned int readOffset = 0;
3080 readOffset = read(inputBufferFileFd, &len, 4);
3085 readOffset = read(inputBufferFileFd, &len, 3);
3088 readOffset = read(inputBufferFileFd, &key, 1);
3097 readOffset = read(inputBufferFileFd, &pBufHdr->nTimeStamp, 4);
3107 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer+pBufHdr->nOffset,
3110 loff_t off = (len - readOffset)*1LL;
3112 return readOffset;
3114 readOffset = read(inputBufferFileFd, pBufHdr->pBuffer+pBufHdr->nOffset, len);
3116 if (readOffset != len) {
3117 DEBUG_PRINT("EOS reach or Reading error %d, %s \n", readOffset, strerror( errno ));
3124 printf("Read_Buffer_From_RCV_File, length %d readOffset %d\n", len, readOffset);
3135 return readOffset;
3143 unsigned int readOffset = 0;
3160 bytes_read = read(inputBufferFileFd, &pBuffer[readOffset],1 );
3168 code |= (0x000000FF & pBufHdr->pBuffer[readOffset]);
3193 readOffset -= (SEQbytes+3);
3197 readOffset-=3;
3200 while (pBufHdr->pBuffer[readOffset-1] == 0)
3201 readOffset--;
3206 readOffset++;
3218 printf("Read_Buffer_From_VC1_File, readOffset %d\n", readOffset);
3229 return readOffset;