Home
last modified time | relevance | path

Searched refs:bitpos (Results 1 – 20 of 20) sorted by relevance

/external/pdfium/core/fxcodec/codec/
Dfx_codec_fax.cpp131 inline bool NextBit(const uint8_t* src_buf, int* bitpos) { in NextBit() argument
132 int pos = (*bitpos)++; in NextBit()
253 int* bitpos, in FaxGetRun() argument
262 if (*bitpos >= bitsize) in FaxGetRun()
266 if (src_buf[*bitpos / 8] & (1 << (7 - *bitpos % 8))) in FaxGetRun()
269 ++(*bitpos); in FaxGetRun()
280 int* bitpos, in FaxG4GetRow() argument
287 if (*bitpos >= bitsize) in FaxG4GetRow()
297 if (!NextBit(src_buf, bitpos)) { in FaxG4GetRow()
298 if (*bitpos >= bitsize) in FaxG4GetRow()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dblkmap64_ba.c331 unsigned long bitpos = start - bitmap->start; in ba_find_first_zero() local
338 while ((bitpos & 0x7) != 0 && count > 0) { in ba_find_first_zero()
339 if (!ext2fs_test_bit64(bitpos, bp->bitarray)) { in ba_find_first_zero()
340 *out = bitpos + bitmap->start; in ba_find_first_zero()
343 bitpos++; in ba_find_first_zero()
350 pos = ((unsigned char *)bp->bitarray) + (bitpos >> 3); in ba_find_first_zero()
359 bitpos += 8; in ba_find_first_zero()
372 bitpos += 64 * (max_loop_count - i); in ba_find_first_zero()
385 bitpos += 8 * (max_loop_count - i); in ba_find_first_zero()
390 if (!ext2fs_test_bit64(bitpos, bp->bitarray)) { in ba_find_first_zero()
[all …]
/external/toybox/lib/
Ddeflate.c35 int fd, bitpos, len, max; member
54 int pos = bb->bitpos + bits, len = bb->len << 3; in bitbuf_skip()
61 bb->bitpos = pos; in bitbuf_skip()
67 int bufpos = bb->bitpos>>3; in bitbuf_bit()
74 return (bb->buf[bufpos]>>(bb->bitpos++&7))&1; in bitbuf_bit()
83 int click = bb->bitpos >> 3, blow, blen; in bitbuf_get()
89 blow = bb->bitpos & 7; in bitbuf_get()
95 bb->bitpos += blen; in bitbuf_get()
103 if (!bb->bitpos) return; in bitbuf_flush()
105 xwrite(bb->fd, bb->buf, (bb->bitpos+7)>>3); in bitbuf_flush()
[all …]
Dpassword.c31 int bitpos = i*6, bits = bitpos/8; in get_salt() local
33 bits = ((libbuf[i]+(libbuf[i+1]<<8)) >> (bitpos&7)) & 0x3f; in get_salt()
/external/pdfium/core/fxcrt/
Dfx_extension_unittest.cpp10 uint32_t ReferenceGetBits32(const uint8_t* pData, int bitpos, int nbits) { in ReferenceGetBits32() argument
13 if (pData[(bitpos + i) / 8] & (1 << (7 - (bitpos + i) % 8))) in ReferenceGetBits32()
109 for (int bitpos = 0; bitpos < (int)sizeof(data) * 8 - nbits; ++bitpos) { in TEST() local
110 EXPECT_EQ(ReferenceGetBits32(data, bitpos, nbits), in TEST()
111 GetBits32(data, bitpos, nbits)); in TEST()
Dfx_extension.cpp125 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits) { in GetBits32() argument
127 const uint8_t* dataPtr = &pData[bitpos / 8]; in GetBits32()
131 int bitCount = bitpos & 0x07; in GetBits32()
Dfx_extension.h89 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits);
/external/libhevc/encoder/
Dihevce_entropy_structs.h73 #define EXTRACT_BIT(val, x, bitpos) \ argument
75 val = ((((x) >> (bitpos)) & 0x1)); \
83 #define INSERT_BIT(x, bitpos, y) ((x) |= ((y) << (bitpos))) argument
90 #define SET_BITS(x, bitpos, n) ((x) |= (((1 << (n)) - 1) << (bitpos))) argument
97 #define CLEAR_BITS(x, bitpos, n) ((x) &= (~(((1 << (n)) - 1) << (bitpos)))) argument
Dihevce_common_utils.h116 #define SET_BIT(x, bitpos) ((x) | (1 << (bitpos))) argument
118 #define CLEAR_BIT(x, bitpos) ((x) & (~(1 << (bitpos)))) argument
/external/pdfium/core/fpdfapi/page/
Dcpdf_sampledfunc.cpp117 FX_SAFE_INT32 bitpos = pos; in v_Call() local
118 bitpos *= bits_to_output.ValueOrDie(); in v_Call()
119 if (!bitpos.IsValid()) in v_Call()
122 FX_SAFE_INT32 range_check = bitpos; in v_Call()
131 for (uint32_t j = 0; j < m_nOutputs; j++, bitpos += m_nBitsPerSample) { in v_Call()
133 GetBits32(pSampleData, bitpos.ValueOrDie(), m_nBitsPerSample); in v_Call()
/external/u-boot/drivers/rtc/
Dds1306.c218 unsigned char bitpos; /* bit position to receive */ in soft_spi_send() local
222 bitpos = 0x80; in soft_spi_send()
228 if (n & bitpos) in soft_spi_send()
237 bitpos >>= 1; /* Shift for next bit position */ in soft_spi_send()
249 unsigned char bitpos; /* bit position to receive */ in soft_spi_read() local
253 bitpos = 0x80; in soft_spi_read()
260 spi_byte |= bitpos; /* Set data accordingly */ in soft_spi_read()
263 bitpos >>= 1; /* Shift for next bit position */ in soft_spi_read()
/external/nanopb-c/
Dpb_decode.c208 uint_fast8_t bitpos = 7; in pb_decode_varint32_eof() local
216 if (bitpos >= 32) in pb_decode_varint32_eof()
219 uint8_t sign_extension = (bitpos < 63) ? 0xFF : 0x01; in pb_decode_varint32_eof()
228 result |= (uint32_t)(byte & 0x7F) << bitpos; in pb_decode_varint32_eof()
230 bitpos = (uint_fast8_t)(bitpos + 7); in pb_decode_varint32_eof()
233 if (bitpos == 35 && (byte & 0x70) != 0) in pb_decode_varint32_eof()
253 uint_fast8_t bitpos = 0; in pb_decode_varint() local
258 if (bitpos >= 64) in pb_decode_varint()
264 result |= (uint64_t)(byte & 0x7F) << bitpos; in pb_decode_varint()
265 bitpos = (uint_fast8_t)(bitpos + 7); in pb_decode_varint()
/external/grpc-grpc/third_party/nanopb/
Dpb_decode.c188 uint_fast8_t bitpos = 7; in pb_decode_varint32() local
193 if (bitpos >= 32) in pb_decode_varint32()
199 result |= (uint32_t)(byte & 0x7F) << bitpos; in pb_decode_varint32()
200 bitpos = (uint_fast8_t)(bitpos + 7); in pb_decode_varint32()
211 uint_fast8_t bitpos = 0; in pb_decode_varint() local
216 if (bitpos >= 64) in pb_decode_varint()
222 result |= (uint64_t)(byte & 0x7F) << bitpos; in pb_decode_varint()
223 bitpos = (uint_fast8_t)(bitpos + 7); in pb_decode_varint()
/external/pdfium/core/fpdfapi/render/
Dcpdf_dibsource.cpp38 unsigned int GetBits8(const uint8_t* pData, uint64_t bitpos, size_t nbits) { in GetBits8() argument
40 ASSERT((bitpos & (nbits - 1)) == 0); in GetBits8()
41 unsigned int byte = pData[bitpos / 8]; in GetBits8()
46 return byte * 256 + pData[bitpos / 8 + 1]; in GetBits8()
48 return (byte >> (8 - nbits - (bitpos % 8))) & ((1 << nbits) - 1); in GetBits8()
/external/pdfium/third_party/libopenjpeg20/
Dt1.c69 static OPJ_INT16 opj_t1_getnmsedec_sig(OPJ_UINT32 x, OPJ_UINT32 bitpos);
70 static OPJ_INT16 opj_t1_getnmsedec_ref(OPJ_UINT32 x, OPJ_UINT32 bitpos);
275 static OPJ_INT16 opj_t1_getnmsedec_sig(OPJ_UINT32 x, OPJ_UINT32 bitpos) in opj_t1_getnmsedec_sig() argument
277 if (bitpos > 0) { in opj_t1_getnmsedec_sig()
278 return lut_nmsedec_sig[(x >> (bitpos)) & ((1 << T1_NMSEDEC_BITS) - 1)]; in opj_t1_getnmsedec_sig()
284 static OPJ_INT16 opj_t1_getnmsedec_ref(OPJ_UINT32 x, OPJ_UINT32 bitpos) in opj_t1_getnmsedec_ref() argument
286 if (bitpos > 0) { in opj_t1_getnmsedec_ref()
287 return lut_nmsedec_ref[(x >> (bitpos)) & ((1 << T1_NMSEDEC_BITS) - 1)]; in opj_t1_getnmsedec_ref()
/external/pdfium/core/fxcodec/jbig2/
DJBig2_GrdProc.cpp718 int bitpos, i; in Start_decode_MMR() local
725 bitpos = static_cast<int>(pStream->getBitPos()); in Start_decode_MMR()
726 FaxG4Decode(pStream->getBuf(), pStream->getLength(), &bitpos, image->data(), in Start_decode_MMR()
728 pStream->setBitPos(bitpos); in Start_decode_MMR()
/external/brotli/c/enc/
Dcompress_fragment_two_pass.c542 const size_t bitpos = new_storage_ix & 7; in RewindBitPosition() local
543 const size_t mask = (1u << bitpos) - 1; in RewindBitPosition()
Dcompress_fragment.c366 const size_t bitpos = new_storage_ix & 7; in RewindBitPosition() local
367 const size_t mask = (1u << bitpos) - 1; in RewindBitPosition()
/external/protobuf/php/ext/google/protobuf/
Dupb.c7835 int bitpos; in upb_pbdecoder_decode_varint_slow() local
7837 for(bitpos = 0; bitpos < 70 && (byte & 0x80); bitpos += 7) { in upb_pbdecoder_decode_varint_slow()
7840 *u64 |= (uint64_t)(byte & 0x7F) << bitpos; in upb_pbdecoder_decode_varint_slow()
7842 if(bitpos == 70 && (byte & 0x80)) { in upb_pbdecoder_decode_varint_slow()
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c8547 int bitpos; in upb_pbdecoder_decode_varint_slow() local
8549 for(bitpos = 0; bitpos < 70 && (byte & 0x80); bitpos += 7) { in upb_pbdecoder_decode_varint_slow()
8551 *u64 |= (uint64_t)(byte & 0x7F) << bitpos; in upb_pbdecoder_decode_varint_slow()
8553 if(bitpos == 70 && (byte & 0x80)) { in upb_pbdecoder_decode_varint_slow()