Searched defs:bitstream (Results 1 - 11 of 11) sorted by relevance

/frameworks/base/media/libstagefright/codecs/avc/dec/src/
H A Davcdec_int.h36 Bitstream structure contains bitstream related parameters such as the pointer
65 AVCDecBitstream *bitstream; /* for current NAL */ member in struct:tagDecObject
H A Davcdec_api.cpp100 OSCL_EXPORT_REF AVCDec_Status PVAVCAnnexBGetNALUnit(uint8 *bitstream, uint8 **nal_unit, argument
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 PVAVCDecGetNALType(uint8 *bitstream, int size, int *nal_type, int *nal_ref_idc) argument
197 AVCDecBitstream *bitstream; local
394 AVCDecBitstream *bitstream; local
451 AVCDecBitstream *bitstream; local
[all...]
H A Dvlc.cpp97 AVCDec_Status ue_v(AVCDecBitstream *bitstream, uint *codeNum) argument
101 BitstreamShowBits(bitstream, 16, &temp);
109 BitstreamFlushBits(bitstream, (leading_zeros << 1) + 1);
113 BitstreamReadBits(bitstream, (leading_zeros << 1) + 1, &temp);
122 AVCDec_Status se_v(AVCDecBitstream *bitstream, int *value) argument
126 BitstreamShowBits(bitstream, 16, &temp);
134 BitstreamFlushBits(bitstream, (leading_zeros << 1) + 1);
138 BitstreamReadBits(bitstream, (leading_zeros << 1) + 1, &temp);
152 AVCDec_Status se_v32bit(AVCDecBitstream *bitstream, int32 *value) argument
158 if (AVCDEC_SUCCESS != GetEGBitstring32bit(bitstream,
172 te_v(AVCDecBitstream *bitstream, uint *value, uint range) argument
190 GetEGBitstring32bit(AVCDecBitstream *bitstream, int *leadingZeros, uint32 *infobits) argument
[all...]
/frameworks/base/media/libstagefright/codecs/avc/enc/src/
H A Dbitstream_io.cpp29 /* Purpose : Populate bitstream structure with bitstream buffer and size */
224 AVCEnc_Status BitstreamTrailingBits(AVCEncBitstream *bitstream, uint *nal_size) argument
229 int bit_left = bitstream->bit_left;
233 /* bitstream->bit_left == 0 cannot happen here since it would have been Saved already */
235 status = BitstreamWriteBits(bitstream, bit_left, trailing_bits[bit_left]);
243 //if(bitstream->bit_left<(WORD_SIZE<<3)) /* in fact, no need to check */
245 status = AVCBitstreamSaveWord(bitstream);
H A Dvlc_encode.cpp22 AVCEnc_Status ue_v(AVCEncBitstream *bitstream, uint codeNum) argument
24 if (AVCENC_SUCCESS != SetEGBitstring(bitstream, codeNum))
32 AVCEnc_Status se_v(AVCEncBitstream *bitstream, int value) argument
46 status = ue_v(bitstream, codeNum);
51 AVCEnc_Status te_v(AVCEncBitstream *bitstream, uint value, uint range) argument
57 return ue_v(bitstream, value);
61 status = BitstreamWrite1Bit(bitstream, 1 - value);
70 AVCEnc_Status SetEGBitstring(AVCEncBitstream *bitstream, uint codeNum) argument
78 status = BitstreamWrite1Bit(bitstream, 1);
91 status = BitstreamWriteBits(bitstream, leadingZero
[all...]
H A Davcenc_api.cpp24 /* Purpose : Sniff NAL type from the bitstream */
29 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncGetNALType(unsigned char *bitstream, int size, argument
35 forbidden_zero_bit = bitstream[0] >> 7;
38 *nal_ref_idc = (bitstream[0] & 0x60) >> 5;
39 *nal_type = bitstream[0] & 0x1F;
95 /* allocate bitstream structure */
96 encvid->bitstream = (AVCEncBitstream*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCEncBitstream), DEFAULT_ATTR);
97 if (encvid->bitstream == NULL)
101 encvid->bitstream->encvid = encvid; /* to point back for reallocation */
380 AVCEncBitstream *bitstream local
532 AVCEncBitstream *bitstream = encvid->bitstream; local
[all...]
H A Davcenc_int.h125 Bitstream structure contains bitstream related parameters such as the pointer
375 AVCEncBitstream *bitstream; /* for current NAL */ member in struct:tagEncObject
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/
H A DM4vH263Decoder.cpp204 uint8_t *bitstream = local
211 mHandle, &bitstream, &timestamp, &bufferSize,
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dbitstream_io.cpp20 /* Change the bitstream parsing algorithm. Use temporary word of 2 or 4 bytes */
21 /* before writing it to the bitstream buffer. */
45 /* Purpose : Create a bitstream to hold one encoded video packet or frame */
47 /* bufferSize : size of the bitstream buffer in bytes */
86 /* Purpose : close a bitstream */
88 stream : the bitstream to be closed */
114 /* stream the bitstream where the bits are put in */
162 /* stream the bitstream where the bits are put in */
200 /* Purpose : save written word into the bitstream buffer. */
202 /* stream the bitstream wher
581 BitstreamRepos(BitstreamEncVideo *bitstream, Int byteCount, Int bitCount) argument
[all...]
H A Dvlc_encode.cpp64 * Description: Functions for writing to bitstream
142 Int PutCoeff_Inter(Int run, Int level, BitstreamEncVideo *bitstream);
143 Int PutCoeff_Inter_Last(Int run, Int level, BitstreamEncVideo *bitstream);
144 Int PutCoeff_Intra(Int run, Int level, BitstreamEncVideo *bitstream);
145 Int PutCoeff_Intra_Last(Int run, Int level, BitstreamEncVideo *bitstream);
146 Int PutCBPY(Int cbpy, Char intra, BitstreamEncVideo *bitstream);
147 Int PutMCBPC_Inter(Int cbpc, Int mode, BitstreamEncVideo *bitstream);
148 Int PutMCBPC_Intra(Int cbpc, Int mode, BitstreamEncVideo *bitstream);
149 Int PutMV(Int mvint, BitstreamEncVideo *bitstream);
150 Int PutDCsize_chrom(Int size, BitstreamEncVideo *bitstream);
182 PutDCsize_lum(Int size, BitstreamEncVideo *bitstream) argument
197 PutDCsize_chrom(Int size, BitstreamEncVideo *bitstream) argument
211 PutMV(Int mvint, BitstreamEncVideo *bitstream) argument
239 PutMCBPC_Intra(Int cbp, Int mode, BitstreamEncVideo *bitstream) argument
254 PutMCBPC_Inter(Int cbp, Int mode, BitstreamEncVideo *bitstream) argument
269 PutCBPY(Int cbpy, Char intra, BitstreamEncVideo *bitstream) argument
291 PutCoeff_Inter(Int run, Int level, BitstreamEncVideo *bitstream) argument
311 PutCoeff_Inter_Last(Int run, Int level, BitstreamEncVideo *bitstream) argument
333 PutCoeff_Intra(Int run, Int level, BitstreamEncVideo *bitstream) argument
365 PutCoeff_Intra_Last(Int run, Int level, BitstreamEncVideo *bitstream) argument
393 PutCoeff_Inter_RVLC(Int run, Int level, BitstreamEncVideo *bitstream) argument
449 PutCoeff_Inter_RVLC_Last(Int run, Int level, BitstreamEncVideo *bitstream) argument
483 PutCoeff_Intra_RVLC(Int run, Int level, BitstreamEncVideo *bitstream) argument
545 PutCoeff_Intra_RVLC_Last(Int run, Int level, BitstreamEncVideo *bitstream) argument
580 PutRunCoeff_Inter(Int run, Int level, BitstreamEncVideo *bitstream) argument
609 PutRunCoeff_Inter_Last(Int run, Int level, BitstreamEncVideo *bitstream) argument
638 PutRunCoeff_Intra(Int run, Int level, BitstreamEncVideo *bitstream) argument
688 PutRunCoeff_Intra_Last(Int run, Int level, BitstreamEncVideo *bitstream) argument
729 PutLevelCoeff_Inter(Int run, Int level, BitstreamEncVideo *bitstream) argument
756 PutLevelCoeff_Inter_Last(Int run, Int level, BitstreamEncVideo *bitstream) argument
783 PutLevelCoeff_Intra(Int run, Int level, BitstreamEncVideo *bitstream) argument
829 PutLevelCoeff_Intra_Last(Int run, Int level, BitstreamEncVideo *bitstream) argument
1944 IntraDC_dpcm(Int val, Int lum, BitstreamEncVideo *bitstream) argument
[all...]
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dmp4lib_int.h90 BitstreamDecVideo *bitstream; /* library bitstream buffer (input buffer) */ member in struct:tagVol
201 BitstreamDecVideo *bitstream; /* library bitstream buffer (input buffer) */ member in struct:tagVideoDecData

Completed in 121 milliseconds