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

/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dfile_wrapper_output.cpp34 bool FileWrapperOutput::Write(uint8_t byte) { argument
35 return EOF != fputc(byte, _file);
/frameworks/compile/mclinker/lib/Support/
H A DLEB128.cpp20 ByteType byte = pValue & 0x7f; local
23 byte |= 0x80;
24 *pBuf++ = byte;
72 ByteType byte = pValue & 0x7f; local
75 if (((pValue == 0) && ((byte & 0x40) == 0)) ||
76 ((pValue == -1) && ((byte & 0x40) == 0x40)))
79 byte |= 0x80;
81 *pBuf++ = byte;
118 ByteType byte; local
120 // Start the read from the 4th byte
137 ByteType byte; local
186 ByteType byte; local
207 ByteType byte; local
[all...]
/frameworks/opt/net/lowpan/lowpan_hdlc_adapter/
H A Dhdlc_lite.c67 bool hdlc_byte_needs_escape(uint8_t byte) argument
69 switch(byte)
83 int hdlc_write_byte(uint8_t* out_buffer, uint8_t byte) argument
87 if (hdlc_byte_needs_escape(byte))
91 byte = byte ^ HDLC_ESCAPE_XFORM;
94 *out_buffer = byte;
H A Dlowpan_hdlc_adapter.cpp229 void feedByte(uint8_t byte) { argument
236 } else if (byte == HDLC_BYTE_FLAG) {
254 } else if (byte == HDLC_BYTE_ESC) {
257 } else if (hdlc_byte_needs_escape(byte)) {
262 byte = byte ^ HDLC_ESCAPE_XFORM;
266 mFcs = hdlc_crc16(mFcs, byte);
267 mBuffer[mBufferIndex++] = byte;
/frameworks/av/media/libmediaextractor/
H A DDataSourceBase.cpp29 uint8_t byte[2]; local
30 if (readAt(offset, byte, 2) != 2) {
34 *x = (byte[0] << 8) | byte[1];
42 uint8_t byte[3]; local
43 if (readAt(offset, byte, 3) != 3) {
47 *x = (byte[0] << 16) | (byte[1] << 8) | byte[2];
/frameworks/base/tools/bit/
H A Dadb.cpp90 uint8_t byte; local
91 ssize_t amt = read(fd, &byte, 1);
98 result |= uint64_t(byte & 0x7F) << bits;
99 if ((byte & 0x80) == 0) {
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dbitstream_io.cpp37 1. There is a problem when output the last bits(which can not form a byte yet
38 so when you output, you need to stuff to make sure it is a byte
39 2. I now hard coded byte to be 8 bits*/
265 numbyte = bitused >> 3; /* number of byte fully used */
303 // *ptr = (UChar)((word>>shift)&0xFF); /* need to do it for the last fractional byte */
360 /* Question: in MPEG-4 , short_video_header[0]==0 => even already byte aligned, will still stuff 8 bits
437 if (!offset) /* bitstream1 is byte-aligned */
444 /* since bitstream1 doesn't have to be byte-aligned, we have to process byte by byte */
583 UChar *ptr, byte; local
683 UChar *pSrc, *pDst, byte; local
[all...]
H A Dmotion_est.cpp678 UChar *ptr, byte; local
697 byte = ptr[4];
698 word |= (byte << 8);
699 byte = ptr[8];
700 word |= (byte << 16);
701 byte = ptr[12];
702 word |= (byte << 24);
706 byte = ptr[4];
707 word |= (byte << 8);
708 byte
[all...]
/frameworks/base/libs/protoutil/src/
H A DEncodedBuffer.cpp232 uint8_t byte = readRawByte(); local
233 val |= (UINT64_C(0x7F) & byte) << shift;
234 if ((byte & 0x80) == 0) break;
349 uint8_t byte = next(); local
350 val |= (INT64_C(0x7F) & byte) << shift;
351 if ((byte & 0x80) == 0) break;
H A DProtoOutputStream.cpp523 ProtoOutputStream::writeRawByte(uint8_t byte) argument
525 mBuffer.writeRawByte(byte);
/frameworks/av/media/libstagefright/
H A DMPEG4Writer.cpp170 // @arg value must be in network byte order
188 // @arg value the retrieved value at the position in network byte order.
225 // @arg value must be in network byte order.
717 // Need at least 8-byte padding at the end, otherwise the left-over
2493 static void getNalUnitType(uint8_t byte, uint8_t* type) { argument
2494 ALOGV("getNalUnitType: %d", byte);
2497 *type = (byte & 0x1F);
3568 // When total # of properties is > 127, the properties id becomes 2-byte.
3795 // Make sure all sizes encode to a single byte.
3837 // Make sure all sizes encode to a single byte
[all...]

Completed in 125 milliseconds