Home | History | Annotate | Download | only in src

Lines Matching defs:bitstream

100 OSCL_EXPORT_REF AVCDec_Status PVAVCAnnexBGetNALUnit(uint8 *bitstream, uint8 **nal_unit,
107 while (bitstream[i] == 0 && i < *size)
113 *nal_unit = bitstream;
116 else if (bitstream[i] != 0x1)
122 *nal_unit = bitstream + i; /* point to the beginning of the NAL unit */
127 while ((j + 1 < *size) && (bitstream[j] != 0 || bitstream[j+1] != 0)) /* see 2 consecutive zero bytes */
132 while (j + 2 < *size && bitstream[j+2] == 0) /* keep reading for zero byte */
141 if (bitstream[j+2] == 0x1)
160 /* Purpose : Sniff NAL type from the bitstream */
165 OSCL_EXPORT_REF AVCDec_Status PVAVCDecGetNALType(uint8 *bitstream, int size,
171 forbidden_zero_bit = bitstream[0] >> 7;
174 *nal_ref_idc = (bitstream[0] & 0x60) >> 5;
175 *nal_type = bitstream[0] & 0x1F;
197 AVCDecBitstream *bitstream;
232 decvid->bitstream = (AVCDecBitstream *) avcHandle->CBAVC_Malloc(userData, sizeof(AVCDecBitstream), 1/*DEFAULT_ATTR*/);
233 if (decvid->bitstream == NULL)
238 decvid->bitstream->userData = avcHandle->userData; /* callback for more data */
245 bitstream = decvid->bitstream;
261 /* Initialize bitstream structure*/
262 BitstreamInit(bitstream, nal_unit + 1, nal_size - 1);
305 status = DecodeSPS(decvid, bitstream);
394 AVCDecBitstream *bitstream;
402 bitstream = decvid->bitstream;
403 /* 1. Convert EBSP to RBSP. Create bitstream structure */
414 /* 2. Initialize bitstream structure*/
415 BitstreamInit(bitstream, nal_unit + 1, nal_size - 1);
418 status = DecodePPS(decvid, video, bitstream);
451 AVCDecBitstream *bitstream;
460 bitstream = decvid->bitstream;
503 /* Initialize bitstream structure*/
504 BitstreamInit(bitstream, buffer + 1, buf_size - 1);
508 status = DecodeSliceHeader(decvid, video, bitstream);
1025 if (decvid->bitstream != NULL)
1027 avcHandle->CBAVC_Free(userData, (int)decvid->bitstream);