/external/chromium_org/media/filters/ |
h264_bitstream_buffer_unittest.cc | 21 uint64 num_bits = GetParam(); local 23 ASSERT_LE(num_bits, 64u); 24 uint64 num_bytes = (num_bits + 7) / 8; 26 b.AppendBits(num_bits, kTestPattern); 35 if (num_bits < 64) 36 expected &= ((1ull << num_bits) - 1); 38 while (num_bits > 8) { 40 num_bits -= 8; 41 got <<= (num_bits > 8 ? 8 : num_bits); [all...] |
h264_bitstream_buffer.h | 32 // Append |num_bits| bits to the stream from |val|. 35 void AppendBits(size_t num_bits, T val) { 36 AppendU64(num_bits, static_cast<uint64>(val)); 39 void AppendBits(size_t num_bits, bool val) { 40 DCHECK_EQ(num_bits, 1ul); 80 // Append |num_bits| bits from U64 value |val| (in host endianness). 81 void AppendU64(size_t num_bits, uint64 val);
|
h264_bit_reader.cc | 64 // Read |num_bits| (1 to 31 inclusive) from the stream and return them 66 // (|num_bits| - 1). 67 bool H264BitReader::ReadBits(int num_bits, int* out) { 68 int bits_left = num_bits; 70 DCHECK(num_bits <= 31); 82 *out &= ((1 << num_bits) - 1);
|
h264_bitstream_buffer.cc | 63 void H264BitstreamBuffer::AppendU64(size_t num_bits, uint64 val) { 64 CHECK_LE(num_bits, kRegBitSize); 66 while (num_bits > 0) { 71 num_bits > bits_left_in_reg_ ? bits_left_in_reg_ : num_bits; 72 uint64 val_to_write = (val >> (num_bits - bits_to_write)); 77 num_bits -= bits_to_write;
|
h264_bit_reader.h | 33 // Read |num_bits| next bits from stream and return in |*out|, first bit 34 // from the stream starting at |num_bits| position in |*out|. 35 // |num_bits| may be 1-32, inclusive. 38 bool ReadBits(int num_bits, int* out);
|
/external/chromium_org/media/base/ |
bit_reader_core.cc | 45 int BitReaderCore::PeekBitsMsbAligned(int num_bits, uint64* out) { 46 // Try to have at least |num_bits| in the bit register. 47 if (nbits_ < num_bits) 48 Refill(num_bits); 54 bool BitReaderCore::SkipBitsSmall(int num_bits) { 55 DCHECK_GE(num_bits, 0); 57 while (num_bits >= kRegWidthInBits) { 60 num_bits -= kRegWidthInBits; 62 return ReadBitsInternal(num_bits, &dummy); 65 bool BitReaderCore::SkipBits(int num_bits) { 130 reg_ <<= num_bits; local [all...] |
bit_reader_core.h | 37 bool ReadBits(int num_bits, bool* out) { 38 DCHECK_EQ(num_bits, 1); 42 // Read |num_bits| next bits from stream and return in |*out|, first bit 43 // from the stream starting at |num_bits| position in |*out|, 44 // bits of |*out| whose position is strictly greater than |num_bits| 47 // - |num_bits| cannot be larger than the bits the type can hold. 53 // return false unless |num_bits| is 0. The type |T| has to be a primitive 55 template<typename T> bool ReadBits(int num_bits, T* out) { 56 DCHECK_LE(num_bits, static_cast<int>(sizeof(T) * 8)); 58 bool ret = ReadBitsInternal(num_bits, &temp) [all...] |
bit_reader.h | 24 template<typename T> bool ReadBits(int num_bits, T* out) { 25 return bit_reader_core_.ReadBits(num_bits, out); 32 bool SkipBits(int num_bits) { 33 return bit_reader_core_.SkipBits(num_bits);
|
/external/chromium_org/third_party/libwebp/utils/ |
random.h | 36 // Returns a centered pseudo-random number with 'num_bits' amplitude. 39 static WEBP_INLINE int VP8RandomBits2(VP8Random* const rg, int num_bits, 42 assert(num_bits + VP8_RANDOM_DITHER_FIX <= 31); 49 diff = (int)((uint32_t)diff << 1) >> (32 - num_bits); 51 diff += 1 << (num_bits - 1); // shift back to 0.5-center 55 static WEBP_INLINE int VP8RandomBits(VP8Random* const rg, int num_bits) { 56 return VP8RandomBits2(rg, num_bits, rg->amp_);
|
bit_reader.h | 88 // return the next value made of 'num_bits' bits 89 uint32_t VP8GetValue(VP8BitReader* const br, int num_bits); 95 int32_t VP8GetSignedValue(VP8BitReader* const br, int num_bits);
|
/external/webp/src/utils/ |
random.h | 36 // Returns a centered pseudo-random number with 'num_bits' amplitude. 39 static WEBP_INLINE int VP8RandomBits2(VP8Random* const rg, int num_bits, 42 assert(num_bits + VP8_RANDOM_DITHER_FIX <= 31); 49 diff = (int)((uint32_t)diff << 1) >> (32 - num_bits); 51 diff += 1 << (num_bits - 1); // shift back to 0.5-center 55 static WEBP_INLINE int VP8RandomBits(VP8Random* const rg, int num_bits) { 56 return VP8RandomBits2(rg, num_bits, rg->amp_);
|
bit_reader.h | 88 // return the next value made of 'num_bits' bits 89 uint32_t VP8GetValue(VP8BitReader* const br, int num_bits); 95 int32_t VP8GetSignedValue(VP8BitReader* const br, int num_bits);
|
/external/valgrind/main/memcheck/tests/vbit-test/ |
unary.c | 13 unsigned num_bits = result->vbits.num_bits; local 19 expected_vbits = undefined_vbits(num_bits); 27 expected_vbits = truncate_vbits(opnd->vbits, num_bits); 31 expected_vbits = left_vbits(opnd->vbits, num_bits); 35 assert(num_bits * 2 == opnd->vbits.num_bits); 40 expected_vbits = sextend_vbits(opnd->vbits, num_bits); 44 expected_vbits = zextend_vbits(opnd->vbits, num_bits);
|
vbits.h | 14 unsigned num_bits; member in struct:__anon16769 40 vbits_t undefined_vbits(unsigned num_bits); 41 vbits_t defined_vbits(unsigned num_bits); 43 vbits_t truncate_vbits(vbits_t, unsigned num_bits); 44 vbits_t left_vbits(vbits_t, unsigned num_bits); 49 vbits_t sextend_vbits(vbits_t, unsigned num_bits); 50 vbits_t zextend_vbits(vbits_t, unsigned num_bits); 51 vbits_t onehot_vbits(unsigned bitno, unsigned num_bits);
|
vbits.c | 22 switch (v.num_bits) { 39 switch (v.num_bits) { 75 undefined_vbits(unsigned num_bits) 77 vbits_t new = { .num_bits = num_bits }; 79 switch (num_bits) { 102 defined_vbits(unsigned num_bits) 104 vbits_t new = { .num_bits = num_bits }; 106 switch (num_bits) { [all...] |
binary.c | 13 assert(v1.num_bits == v2.num_bits); 15 vbits_t new = { .num_bits = v2.num_bits }; 18 switch (v2.num_bits) { 28 switch (v2.num_bits) { 59 expected_vbits = defined_vbits(result->vbits.num_bits); 63 expected_vbits = undefined_vbits(result->vbits.num_bits); 69 result->vbits.num_bits); 73 assert(opnd1->vbits.num_bits == opnd2->vbits.num_bits) [all...] |
/system/core/include/cutils/ |
bitops.h | 54 static inline void bitmask_init(unsigned int *bitmask, int num_bits) 56 memset(bitmask, 0, BITS_TO_WORDS(num_bits)*sizeof(unsigned int)); 59 static inline int bitmask_ffz(unsigned int *bitmask, int num_bits) 64 for (i = 0; i < BITS_TO_WORDS(num_bits); i++) { 70 if (result >= num_bits) 78 static inline int bitmask_weight(unsigned int *bitmask, int num_bits) 83 for (i = 0; i < BITS_TO_WORDS(num_bits); i++)
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/vl/ |
vl_vlc.h | 213 * get num_bits from bit buffer without removing them 216 vl_vlc_peekbits(struct vl_vlc *vlc, unsigned num_bits) 218 assert(vl_vlc_valid_bits(vlc) >= num_bits || vlc->data >= vlc->end); 219 return vlc->buffer >> (64 - num_bits); 223 * remove num_bits from bit buffer 226 vl_vlc_eatbits(struct vl_vlc *vlc, unsigned num_bits) 228 assert(vl_vlc_valid_bits(vlc) >= num_bits); 230 vlc->buffer <<= num_bits; 231 vlc->invalid_bits += num_bits; 235 * get num_bits from bit buffer with removing the [all...] |
/external/mesa3d/src/gallium/auxiliary/vl/ |
vl_vlc.h | 213 * get num_bits from bit buffer without removing them 216 vl_vlc_peekbits(struct vl_vlc *vlc, unsigned num_bits) 218 assert(vl_vlc_valid_bits(vlc) >= num_bits || vlc->data >= vlc->end); 219 return vlc->buffer >> (64 - num_bits); 223 * remove num_bits from bit buffer 226 vl_vlc_eatbits(struct vl_vlc *vlc, unsigned num_bits) 228 assert(vl_vlc_valid_bits(vlc) >= num_bits); 230 vlc->buffer <<= num_bits; 231 vlc->invalid_bits += num_bits; 235 * get num_bits from bit buffer with removing the [all...] |
/external/chromium_org/net/disk_cache/blockfile/ |
bitmap.h | 20 Bitmap(int num_bits, bool clear_bits); 23 // has to be valid until this object destruction. |num_bits| is the number of 25 Bitmap(uint32* map, int num_bits, int num_words); 30 // If |num_bits| < Size(), the extra bits will be discarded. 31 // If |num_bits| > Size(), the extra bits will be filled with zeros if 34 void Resize(int num_bits, bool clear_bits); 109 // Returns number of allocated words required for a bitmap of size |num_bits|. 110 static int RequiredArraySize(int num_bits) { 112 if (num_bits <= kIntBits) 115 return (num_bits + kIntBits - 1) >> kLogIntBits [all...] |
bitmap.cc | 43 Bitmap::Bitmap(int num_bits, bool clear_bits) 44 : num_bits_(num_bits), 45 array_size_(RequiredArraySize(num_bits)), 54 Bitmap::Bitmap(uint32* map, int num_bits, int num_words) 56 num_bits_(num_bits), 59 array_size_(std::min(RequiredArraySize(num_bits), num_words)), 68 void Bitmap::Resize(int num_bits, bool clear_bits) { 72 array_size_ = RequiredArraySize(num_bits); 86 num_bits_ = num_bits;
|
/external/srec/srec/include/ |
log_tabl.h | 39 void create_lookup_log(log_table_info *logtab, int num_bits);
|
/external/chromium_org/third_party/boringssl/src/crypto/ecdsa/ |
ecdsa_asn1.c | 81 size_t num_bits; local 100 num_bits = BN_num_bits(order); 101 group_order_size = (num_bits + 7) / 8;
|
/hardware/qcom/media/mm-video-v4l2/vidc/common/inc/ |
extra_data_handler.h | 70 OMX_U32 d_u(OMX_U32 num_bits); 75 OMX_U32 e_u(OMX_U32 symbol, OMX_U32 num_bits);
|
/external/openssl/crypto/bn/ |
bn_recp.c | 67 recp->num_bits=0; 98 recp->num_bits=BN_num_bits(d); 165 j=recp->num_bits<<1; 179 if (!BN_rshift(a,m,recp->num_bits)) goto err; 181 if (!BN_rshift(d,b,i-recp->num_bits)) goto err;
|