/third_party/node/deps/brotli/c/dec/ |
H A D | bit_reader.h | 51 BROTLI_INTERNAL void BrotliInitBitReader(BrotliBitReader* const br); 58 BROTLI_INTERNAL BROTLI_BOOL BrotliWarmupBitReader(BrotliBitReader* const br); 64 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val); 83 const BrotliBitReader* br) { in BrotliGetAvailableBits() 84 return (BROTLI_64_BITS ? 64 : 32) - br->bit_pos_; in BrotliGetAvailableBits() 88 BrotliInput, including whole bytes in br->val_. Result is capped with 90 static BROTLI_INLINE size_t BrotliGetRemainingBytes(BrotliBitReader* br) { in BrotliGetRemainingBytes() argument 92 if (br->avail_in > kCap) return kCap; in BrotliGetRemainingBytes() 93 return br->avail_in + (BrotliGetAvailableBits(br) >> in BrotliGetRemainingBytes() 82 BrotliGetAvailableBits( const BrotliBitReader* br) BrotliGetAvailableBits() argument 98 BrotliCheckInputAmount( BrotliBitReader* const br, size_t num) BrotliCheckInputAmount() argument 107 BrotliFillBitWindow( BrotliBitReader* const br, uint32_t n_bits) BrotliFillBitWindow() argument 159 BrotliFillBitWindow16(BrotliBitReader* const br) BrotliFillBitWindow16() argument 165 BrotliPullByte(BrotliBitReader* const br) BrotliPullByte() argument 183 BrotliGetBitsUnmasked( BrotliBitReader* const br) BrotliGetBitsUnmasked() argument 190 BrotliGet16BitsUnmasked( BrotliBitReader* const br) BrotliGet16BitsUnmasked() argument 198 BrotliGetBits( BrotliBitReader* const br, uint32_t n_bits) BrotliGetBits() argument 206 BrotliSafeGetBits( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) BrotliSafeGetBits() argument 218 BrotliDropBits( BrotliBitReader* const br, uint32_t n_bits) BrotliDropBits() argument 223 BrotliBitReaderUnload(BrotliBitReader* br) BrotliBitReaderUnload() argument 238 BrotliTakeBits( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) BrotliTakeBits() argument 249 BrotliReadBits24( BrotliBitReader* const br, uint32_t n_bits) BrotliReadBits24() argument 269 BrotliReadBits32( BrotliBitReader* const br, uint32_t n_bits) BrotliReadBits32() argument 291 BrotliSafeReadBits( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) BrotliSafeReadBits() argument 304 BrotliSafeReadBits32( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) BrotliSafeReadBits32() argument 322 BrotliJumpToByteBoundary(BrotliBitReader* br) BrotliJumpToByteBoundary() argument 334 BrotliCopyBytes(uint8_t* dest, BrotliBitReader* br, size_t num) BrotliCopyBytes() argument [all...] |
H A D | bit_reader.c | 29 void BrotliInitBitReader(BrotliBitReader* const br) { in BrotliInitBitReader() argument 30 br->val_ = 0; in BrotliInitBitReader() 31 br->bit_pos_ = sizeof(br->val_) << 3; in BrotliInitBitReader() 34 BROTLI_BOOL BrotliWarmupBitReader(BrotliBitReader* const br) { in BrotliWarmupBitReader() argument 35 size_t aligned_read_mask = (sizeof(br->val_) >> 1) - 1; in BrotliWarmupBitReader() 42 if (BrotliGetAvailableBits(br) == 0) { in BrotliWarmupBitReader() 43 if (!BrotliPullByte(br)) { in BrotliWarmupBitReader() 48 while ((((size_t)br->next_in) & aligned_read_mask) != 0) { in BrotliWarmupBitReader() 49 if (!BrotliPullByte(br)) { in BrotliWarmupBitReader() 57 BrotliSafeReadBits32Slow(BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) BrotliSafeReadBits32Slow() argument [all...] |
H A D | decode.c | 135 BrotliBitReader* br) { in DecodeWindowBits() 139 BrotliTakeBits(br, 1, &n); in DecodeWindowBits() 144 BrotliTakeBits(br, 3, &n); in DecodeWindowBits() 149 BrotliTakeBits(br, 3, &n); in DecodeWindowBits() 152 BrotliTakeBits(br, 1, &n); in DecodeWindowBits() 182 BrotliDecoderState* s, BrotliBitReader* br, uint32_t* value) { in DecodeVarLenUint8() 186 if (BROTLI_PREDICT_FALSE(!BrotliSafeReadBits(br, 1, &bits))) { in DecodeVarLenUint8() 196 if (BROTLI_PREDICT_FALSE(!BrotliSafeReadBits(br, 3, &bits))) { in DecodeVarLenUint8() 210 if (BROTLI_PREDICT_FALSE(!BrotliSafeReadBits(br, *value, &bits))) { in DecodeVarLenUint8() 226 BrotliDecoderState* s, BrotliBitReader* br) { in DecodeMetaBlockLength() 134 DecodeWindowBits(BrotliDecoderState* s, BrotliBitReader* br) DecodeWindowBits() argument 181 DecodeVarLenUint8( BrotliDecoderState* s, BrotliBitReader* br, uint32_t* value) DecodeVarLenUint8() argument 225 DecodeMetaBlockLength( BrotliDecoderState* s, BrotliBitReader* br) DecodeMetaBlockLength() argument 350 DecodeSymbol(uint32_t bits, const HuffmanCode* table, BrotliBitReader* br) DecodeSymbol() argument 368 ReadSymbol(const HuffmanCode* table, BrotliBitReader* br) ReadSymbol() argument 375 SafeDecodeSymbol( const HuffmanCode* table, BrotliBitReader* br, uint32_t* result) SafeDecodeSymbol() argument 415 SafeReadSymbol( const HuffmanCode* table, BrotliBitReader* br, uint32_t* result) SafeReadSymbol() argument 426 PreloadSymbol(int safe, const HuffmanCode* table, BrotliBitReader* br, uint32_t* bits, uint32_t* value) PreloadSymbol() argument 442 ReadPreloadedSymbol(const HuffmanCode* table, BrotliBitReader* br, uint32_t* bits, uint32_t* value) ReadPreloadedSymbol() argument 479 BrotliBitReader* br = &s->br; ReadSimpleHuffmanSymbols() local 595 BrotliBitReader* br = &s->br; ReadSymbolCodeLengths() local 645 BrotliBitReader* br = &s->br; SafeReadSymbolCodeLengths() local 693 BrotliBitReader* br = &s->br; ReadCodeLengthCodeLengths() local 753 BrotliBitReader* br = &s->br; ReadHuffmanCode() local 873 ReadBlockLength(const HuffmanCode* table, BrotliBitReader* br) ReadBlockLength() argument 884 SafeReadBlockLength( BrotliDecoderState* s, uint32_t* result, const HuffmanCode* table, BrotliBitReader* br) SafeReadBlockLength() argument 995 BrotliBitReader* br = &s->br; DecodeContextMap() local 1127 BrotliBitReader* br = &s->br; DecodeBlockTypeAndLength() local 1453 BrotliBitReader* br = &s->br; ReadContextModes() local 1496 SafeReadBits( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) SafeReadBits() argument 1506 SafeReadBits32( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) SafeReadBits32() argument 1618 ReadDistanceInternal( int safe, BrotliDecoderState* s, BrotliBitReader* br) ReadDistanceInternal() argument 1656 ReadDistance( BrotliDecoderState* s, BrotliBitReader* br) ReadDistance() argument 1661 SafeReadDistance( BrotliDecoderState* s, BrotliBitReader* br) SafeReadDistance() argument 1666 ReadCommandInternal( int safe, BrotliDecoderState* s, BrotliBitReader* br, int* insert_length) ReadCommandInternal() argument 1704 ReadCommand( BrotliDecoderState* s, BrotliBitReader* br, int* insert_length) ReadCommand() argument 1709 SafeReadCommand( BrotliDecoderState* s, BrotliBitReader* br, int* insert_length) SafeReadCommand() argument 1714 CheckInputAmount( int safe, BrotliBitReader* const br, size_t num) CheckInputAmount() argument 1739 BrotliBitReader* br = &s->br; ProcessCommandsInternal() local 2073 BrotliBitReader* br = &s->br; BrotliDecoderDecompressStream() local [all...] |
/third_party/skia/third_party/externals/brotli/c/dec/ |
H A D | bit_reader.h | 51 BROTLI_INTERNAL void BrotliInitBitReader(BrotliBitReader* const br); 58 BROTLI_INTERNAL BROTLI_BOOL BrotliWarmupBitReader(BrotliBitReader* const br); 64 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val); 83 const BrotliBitReader* br) { in BrotliGetAvailableBits() 84 return (BROTLI_64_BITS ? 64 : 32) - br->bit_pos_; in BrotliGetAvailableBits() 88 BrotliInput, including whole bytes in br->val_. Result is capped with 90 static BROTLI_INLINE size_t BrotliGetRemainingBytes(BrotliBitReader* br) { in BrotliGetRemainingBytes() argument 92 if (br->avail_in > kCap) return kCap; in BrotliGetRemainingBytes() 93 return br->avail_in + (BrotliGetAvailableBits(br) >> in BrotliGetRemainingBytes() 82 BrotliGetAvailableBits( const BrotliBitReader* br) BrotliGetAvailableBits() argument 98 BrotliCheckInputAmount( BrotliBitReader* const br, size_t num) BrotliCheckInputAmount() argument 107 BrotliFillBitWindow( BrotliBitReader* const br, uint32_t n_bits) BrotliFillBitWindow() argument 159 BrotliFillBitWindow16(BrotliBitReader* const br) BrotliFillBitWindow16() argument 165 BrotliPullByte(BrotliBitReader* const br) BrotliPullByte() argument 183 BrotliGetBitsUnmasked( BrotliBitReader* const br) BrotliGetBitsUnmasked() argument 190 BrotliGet16BitsUnmasked( BrotliBitReader* const br) BrotliGet16BitsUnmasked() argument 198 BrotliGetBits( BrotliBitReader* const br, uint32_t n_bits) BrotliGetBits() argument 206 BrotliSafeGetBits( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) BrotliSafeGetBits() argument 218 BrotliDropBits( BrotliBitReader* const br, uint32_t n_bits) BrotliDropBits() argument 223 BrotliBitReaderUnload(BrotliBitReader* br) BrotliBitReaderUnload() argument 238 BrotliTakeBits( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) BrotliTakeBits() argument 249 BrotliReadBits24( BrotliBitReader* const br, uint32_t n_bits) BrotliReadBits24() argument 269 BrotliReadBits32( BrotliBitReader* const br, uint32_t n_bits) BrotliReadBits32() argument 291 BrotliSafeReadBits( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) BrotliSafeReadBits() argument 304 BrotliSafeReadBits32( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) BrotliSafeReadBits32() argument 322 BrotliJumpToByteBoundary(BrotliBitReader* br) BrotliJumpToByteBoundary() argument 334 BrotliCopyBytes(uint8_t* dest, BrotliBitReader* br, size_t num) BrotliCopyBytes() argument [all...] |
H A D | bit_reader.c | 29 void BrotliInitBitReader(BrotliBitReader* const br) { in BrotliInitBitReader() argument 30 br->val_ = 0; in BrotliInitBitReader() 31 br->bit_pos_ = sizeof(br->val_) << 3; in BrotliInitBitReader() 34 BROTLI_BOOL BrotliWarmupBitReader(BrotliBitReader* const br) { in BrotliWarmupBitReader() argument 35 size_t aligned_read_mask = (sizeof(br->val_) >> 1) - 1; in BrotliWarmupBitReader() 42 if (BrotliGetAvailableBits(br) == 0) { in BrotliWarmupBitReader() 43 if (!BrotliPullByte(br)) { in BrotliWarmupBitReader() 48 while ((((size_t)br->next_in) & aligned_read_mask) != 0) { in BrotliWarmupBitReader() 49 if (!BrotliPullByte(br)) { in BrotliWarmupBitReader() 57 BrotliSafeReadBits32Slow(BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) BrotliSafeReadBits32Slow() argument [all...] |
H A D | decode.c | 135 BrotliBitReader* br) { in DecodeWindowBits() 139 BrotliTakeBits(br, 1, &n); in DecodeWindowBits() 144 BrotliTakeBits(br, 3, &n); in DecodeWindowBits() 149 BrotliTakeBits(br, 3, &n); in DecodeWindowBits() 152 BrotliTakeBits(br, 1, &n); in DecodeWindowBits() 182 BrotliDecoderState* s, BrotliBitReader* br, uint32_t* value) { in DecodeVarLenUint8() 186 if (BROTLI_PREDICT_FALSE(!BrotliSafeReadBits(br, 1, &bits))) { in DecodeVarLenUint8() 196 if (BROTLI_PREDICT_FALSE(!BrotliSafeReadBits(br, 3, &bits))) { in DecodeVarLenUint8() 210 if (BROTLI_PREDICT_FALSE(!BrotliSafeReadBits(br, *value, &bits))) { in DecodeVarLenUint8() 226 BrotliDecoderState* s, BrotliBitReader* br) { in DecodeMetaBlockLength() 134 DecodeWindowBits(BrotliDecoderState* s, BrotliBitReader* br) DecodeWindowBits() argument 181 DecodeVarLenUint8( BrotliDecoderState* s, BrotliBitReader* br, uint32_t* value) DecodeVarLenUint8() argument 225 DecodeMetaBlockLength( BrotliDecoderState* s, BrotliBitReader* br) DecodeMetaBlockLength() argument 350 DecodeSymbol(uint32_t bits, const HuffmanCode* table, BrotliBitReader* br) DecodeSymbol() argument 368 ReadSymbol(const HuffmanCode* table, BrotliBitReader* br) ReadSymbol() argument 375 SafeDecodeSymbol( const HuffmanCode* table, BrotliBitReader* br, uint32_t* result) SafeDecodeSymbol() argument 415 SafeReadSymbol( const HuffmanCode* table, BrotliBitReader* br, uint32_t* result) SafeReadSymbol() argument 426 PreloadSymbol(int safe, const HuffmanCode* table, BrotliBitReader* br, uint32_t* bits, uint32_t* value) PreloadSymbol() argument 442 ReadPreloadedSymbol(const HuffmanCode* table, BrotliBitReader* br, uint32_t* bits, uint32_t* value) ReadPreloadedSymbol() argument 479 BrotliBitReader* br = &s->br; ReadSimpleHuffmanSymbols() local 595 BrotliBitReader* br = &s->br; ReadSymbolCodeLengths() local 645 BrotliBitReader* br = &s->br; SafeReadSymbolCodeLengths() local 693 BrotliBitReader* br = &s->br; ReadCodeLengthCodeLengths() local 753 BrotliBitReader* br = &s->br; ReadHuffmanCode() local 873 ReadBlockLength(const HuffmanCode* table, BrotliBitReader* br) ReadBlockLength() argument 884 SafeReadBlockLength( BrotliDecoderState* s, uint32_t* result, const HuffmanCode* table, BrotliBitReader* br) SafeReadBlockLength() argument 995 BrotliBitReader* br = &s->br; DecodeContextMap() local 1127 BrotliBitReader* br = &s->br; DecodeBlockTypeAndLength() local 1453 BrotliBitReader* br = &s->br; ReadContextModes() local 1496 SafeReadBits( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) SafeReadBits() argument 1506 SafeReadBits32( BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) SafeReadBits32() argument 1618 ReadDistanceInternal( int safe, BrotliDecoderState* s, BrotliBitReader* br) ReadDistanceInternal() argument 1656 ReadDistance( BrotliDecoderState* s, BrotliBitReader* br) ReadDistance() argument 1661 SafeReadDistance( BrotliDecoderState* s, BrotliBitReader* br) SafeReadDistance() argument 1666 ReadCommandInternal( int safe, BrotliDecoderState* s, BrotliBitReader* br, int* insert_length) ReadCommandInternal() argument 1704 ReadCommand( BrotliDecoderState* s, BrotliBitReader* br, int* insert_length) ReadCommand() argument 1709 SafeReadCommand( BrotliDecoderState* s, BrotliBitReader* br, int* insert_length) SafeReadCommand() argument 1714 CheckInputAmount( int safe, BrotliBitReader* const br, size_t num) CheckInputAmount() argument 1739 BrotliBitReader* br = &s->br; ProcessCommandsInternal() local 2073 BrotliBitReader* br = &s->br; BrotliDecoderDecompressStream() local [all...] |
/third_party/skia/third_party/externals/brotli/csharp/org/brotli/dec/ |
H A D | BitReader.cs | 55 internal static void ReadMoreInput(Org.Brotli.Dec.BitReader br)
in ReadMoreInput() argument 58 if (br.intOffset <= Capacity - 9)
in ReadMoreInput() 62 if (br.endOfStreamReached)
in ReadMoreInput() 64 if (IntAvailable(br) >= -2)
in ReadMoreInput() 70 int readOffset = br.intOffset << 2;
in ReadMoreInput() 72 System.Array.Copy(br.byteBuffer, readOffset, br.byteBuffer, 0, bytesRead);
in ReadMoreInput() 73 br.intOffset = 0;
in ReadMoreInput() 78 int len = br.input.Read(br in ReadMoreInput() 97 CheckHealth(Org.Brotli.Dec.BitReader br, bool endOfStream) CheckHealth() argument 115 FillBitWindow(Org.Brotli.Dec.BitReader br) FillBitWindow() argument 125 ReadBits(Org.Brotli.Dec.BitReader br, int n) ReadBits() argument 141 Init(Org.Brotli.Dec.BitReader br, System.IO.Stream input) Init() argument 156 Prepare(Org.Brotli.Dec.BitReader br) Prepare() argument 164 Reload(Org.Brotli.Dec.BitReader br) Reload() argument 173 Close(Org.Brotli.Dec.BitReader br) Close() argument 183 JumpToByteBoundary(Org.Brotli.Dec.BitReader br) JumpToByteBoundary() argument 196 IntAvailable(Org.Brotli.Dec.BitReader br) IntAvailable() argument 206 CopyBytes(Org.Brotli.Dec.BitReader br, byte[] data, int offset, int length) CopyBytes() argument [all...] |
H A D | Decode.cs | 45 private static int DecodeVarLenUnsignedByte(Org.Brotli.Dec.BitReader br)
in DecodeVarLenUnsignedByte() argument 47 if (Org.Brotli.Dec.BitReader.ReadBits(br, 1) != 0)
in DecodeVarLenUnsignedByte() 49 int n = Org.Brotli.Dec.BitReader.ReadBits(br, 3);
in DecodeVarLenUnsignedByte() 56 return Org.Brotli.Dec.BitReader.ReadBits(br, n) + (1 << n);
in DecodeVarLenUnsignedByte() 62 private static void DecodeMetaBlockLength(Org.Brotli.Dec.BitReader br, Org.Brotli.Dec.State state)
in DecodeMetaBlockLength() argument 64 state.inputEnd = Org.Brotli.Dec.BitReader.ReadBits(br, 1) == 1;
in DecodeMetaBlockLength() 68 if (state.inputEnd && Org.Brotli.Dec.BitReader.ReadBits(br, 1) != 0)
in DecodeMetaBlockLength() 72 int sizeNibbles = Org.Brotli.Dec.BitReader.ReadBits(br, 2) + 4;
in DecodeMetaBlockLength() 76 if (Org.Brotli.Dec.BitReader.ReadBits(br, 1) != 0)
in DecodeMetaBlockLength() 80 int sizeBytes = Org.Brotli.Dec.BitReader.ReadBits(br, in DecodeMetaBlockLength() 115 ReadSymbol(int[] table, int offset, Org.Brotli.Dec.BitReader br) ReadSymbol() argument 133 ReadBlockLength(int[] table, int offset, Org.Brotli.Dec.BitReader br) ReadBlockLength() argument 180 ReadHuffmanCodeLengths(int[] codeLengthCodeLengths, int numSymbols, int[] codeLengths, Org.Brotli.Dec.BitReader br) ReadHuffmanCodeLengths() argument 252 ReadHuffmanCode(int alphabetSize, int[] table, int offset, Org.Brotli.Dec.BitReader br) ReadHuffmanCode() argument 349 DecodeContextMap(int contextMapSize, byte[] contextMap, Org.Brotli.Dec.BitReader br) DecodeContextMap() argument [all...] |
/third_party/skia/third_party/externals/libwebp/src/utils/ |
H A D | bit_reader_utils.c | 24 void VP8BitReaderSetBuffer(VP8BitReader* const br, in VP8BitReaderSetBuffer() argument 27 br->buf_ = start; in VP8BitReaderSetBuffer() 28 br->buf_end_ = start + size; in VP8BitReaderSetBuffer() 29 br->buf_max_ = in VP8BitReaderSetBuffer() 34 void VP8InitBitReader(VP8BitReader* const br, in VP8InitBitReader() argument 36 assert(br != NULL); in VP8InitBitReader() 39 br->range_ = 255 - 1; in VP8InitBitReader() 40 br->value_ = 0; in VP8InitBitReader() 41 br->bits_ = -8; // to load the very first 8bits in VP8InitBitReader() 42 br in VP8InitBitReader() 47 VP8RemapBitReader(VP8BitReader* const br, ptrdiff_t offset) VP8RemapBitReader() argument 87 VP8LoadFinalBytes(VP8BitReader* const br) VP8LoadFinalBytes() argument 105 VP8GetValue(VP8BitReader* const br, int bits, const char label[]) VP8GetValue() argument 113 VP8GetSignedValue(VP8BitReader* const br, int bits, const char label[]) VP8GetSignedValue() argument 140 VP8LInitBitReader(VP8LBitReader* const br, const uint8_t* const start, size_t length) VP8LInitBitReader() argument 164 VP8LBitReaderSetBuffer(VP8LBitReader* const br, const uint8_t* const buf, size_t len) VP8LBitReaderSetBuffer() argument 175 VP8LSetEndOfStream(VP8LBitReader* const br) VP8LSetEndOfStream() argument 181 ShiftBytes(VP8LBitReader* const br) ShiftBytes() argument 193 VP8LDoFillBitWindow(VP8LBitReader* const br) VP8LDoFillBitWindow() argument 208 VP8LReadBits(VP8LBitReader* const br, int n_bits) VP8LReadBits() argument 269 BitTrace(const struct VP8BitReader* const br, const char label[]) BitTrace() argument [all...] |
H A D | bit_reader_inl_utils.h | 51 void VP8LoadFinalBytes(VP8BitReader* const br); 56 // makes sure br->value_ has at least BITS bits worth of data 58 void VP8LoadNewBytes(VP8BitReader* WEBP_RESTRICT const br) { in VP8LoadNewBytes() argument 59 assert(br != NULL && br->buf_ != NULL); in VP8LoadNewBytes() 61 if (br->buf_ < br->buf_max_) { in VP8LoadNewBytes() 67 lbit_t* p_buf_ = (lbit_t*)br->buf_; in VP8LoadNewBytes() 80 memcpy(&in_bits, br->buf_, sizeof(in_bits)); in VP8LoadNewBytes() 82 br in VP8LoadNewBytes() 107 VP8GetBit(VP8BitReader* WEBP_RESTRICT const br, int prob, const char label[]) VP8GetBit() argument 140 VP8GetSigned(VP8BitReader* WEBP_RESTRICT const br, int v, const char label[]) VP8GetSigned() argument 159 VP8GetBitAlt(VP8BitReader* WEBP_RESTRICT const br, int prob, const char label[]) VP8GetBitAlt() argument [all...] |
H A D | bit_reader_utils.h | 31 extern void BitTrace(const struct VP8BitReader* const br, const char label[]); 32 #define BT_TRACK(br) BitTrace(br, label) 35 #define BT_TRACK(br) 105 void VP8InitBitReader(VP8BitReader* const br, 108 void VP8BitReaderSetBuffer(VP8BitReader* const br, 113 void VP8RemapBitReader(VP8BitReader* const br, ptrdiff_t offset); 116 uint32_t VP8GetValue(VP8BitReader* const br, int num_bits, const char label[]); 119 int32_t VP8GetSignedValue(VP8BitReader* const br, int num_bits, 123 // static WEBP_INLINE int VP8GetBit(VP8BitReader* const br, in 164 VP8LPrefetchBits(VP8LBitReader* const br) VP8LPrefetchBits() argument 170 VP8LIsEndOfStream(const VP8LBitReader* const br) VP8LIsEndOfStream() argument 179 VP8LSetBitPos(VP8LBitReader* const br, int val) VP8LSetBitPos() argument 186 VP8LFillBitWindow(VP8LBitReader* const br) VP8LFillBitWindow() argument [all...] |
/third_party/curl/lib/ |
H A D | bufref.c | 38 void Curl_bufref_init(struct bufref *br) in Curl_bufref_init() argument 40 DEBUGASSERT(br); in Curl_bufref_init() 41 br->dtor = NULL; in Curl_bufref_init() 42 br->ptr = NULL; in Curl_bufref_init() 43 br->len = 0; in Curl_bufref_init() 46 br->signature = SIGNATURE; in Curl_bufref_init() 55 void Curl_bufref_free(struct bufref *br) in Curl_bufref_free() argument 57 DEBUGASSERT(br); in Curl_bufref_free() 58 DEBUGASSERT(br->signature == SIGNATURE); in Curl_bufref_free() 59 DEBUGASSERT(br in Curl_bufref_free() 73 Curl_bufref_set(struct bufref *br, const void *ptr, size_t len, void (*dtor)(void *)) Curl_bufref_set() argument 88 Curl_bufref_ptr(const struct bufref *br) Curl_bufref_ptr() argument 100 Curl_bufref_len(const struct bufref *br) Curl_bufref_len() argument 109 Curl_bufref_memdup(struct bufref *br, const void *ptr, size_t len) Curl_bufref_memdup() argument [all...] |
H A D | bufref.h | 40 void Curl_bufref_init(struct bufref *br); 41 void Curl_bufref_set(struct bufref *br, const void *ptr, size_t len, 43 const unsigned char *Curl_bufref_ptr(const struct bufref *br); 44 size_t Curl_bufref_len(const struct bufref *br); 45 CURLcode Curl_bufref_memdup(struct bufref *br, const void *ptr, size_t len); 46 void Curl_bufref_free(struct bufref *br);
|
/third_party/lwip/src/netif/ |
H A D | bridgeif.c | 138 bridgeif_private_t *br; in bridgeif_fdb_add() local 141 br = (bridgeif_private_t *)bridgeif->state; in bridgeif_fdb_add() 142 LWIP_ASSERT("invalid state", br != NULL); in bridgeif_fdb_add() 145 for (i = 0; i < br->max_fdbs_entries; i++) { in bridgeif_fdb_add() 146 if (!br->fdbs[i].used) { in bridgeif_fdb_add() 148 if (!br->fdbs[i].used) { in bridgeif_fdb_add() 149 br->fdbs[i].used = 1; in bridgeif_fdb_add() 150 br->fdbs[i].dst_ports = ports; in bridgeif_fdb_add() 151 memcpy(&br->fdbs[i].addr, addr, sizeof(struct eth_addr)); in bridgeif_fdb_add() 171 bridgeif_private_t *br; in bridgeif_fdb_remove() local 196 bridgeif_find_dst_ports(bridgeif_private_t *br, struct eth_addr *dst_addr) bridgeif_find_dst_ports() argument 226 bridgeif_is_local_mac(bridgeif_private_t *br, struct eth_addr *addr) bridgeif_is_local_mac() argument 249 bridgeif_send_to_port(bridgeif_private_t *br, struct pbuf *p, u8_t dstport_idx) bridgeif_send_to_port() argument 274 bridgeif_send_to_ports(bridgeif_private_t *br, struct pbuf *p, bridgeif_portmask_t dstports) bridgeif_send_to_ports() argument 301 bridgeif_private_t *br = (bridgeif_private_t *)netif->state; bridgeif_output() local 331 bridgeif_private_t *br; bridgeif_input() local 416 bridgeif_private_t *br; bridgeif_init() local 526 bridgeif_private_t *br; bridgeif_add_port() local [all...] |
/third_party/skia/third_party/externals/libwebp/src/dec/ |
H A D | tree_dec.c | 289 static void ParseIntraMode(VP8BitReader* const br, in ParseIntraMode() argument 299 block->segment_ = !VP8GetBit(br, dec->proba_.segments_[0], "segments") in ParseIntraMode() 300 ? VP8GetBit(br, dec->proba_.segments_[1], "segments") in ParseIntraMode() 301 : VP8GetBit(br, dec->proba_.segments_[2], "segments") + 2; in ParseIntraMode() 305 if (dec->use_skip_proba_) block->skip_ = VP8GetBit(br, dec->skip_p_, "skip"); in ParseIntraMode() 307 block->is_i4x4_ = !VP8GetBit(br, 145, "block-size"); in ParseIntraMode() 311 VP8GetBit(br, 156, "pred-modes") ? in ParseIntraMode() 312 (VP8GetBit(br, 128, "pred-modes") ? TM_PRED : H_PRED) : in ParseIntraMode() 313 (VP8GetBit(br, 163, "pred-modes") ? V_PRED : DC_PRED); in ParseIntraMode() 327 int i = kYModesIntra4[VP8GetBit(br, pro in ParseIntraMode() 360 VP8ParseIntraModeRow(VP8BitReader* const br, VP8Decoder* const dec) VP8ParseIntraModeRow() argument 514 VP8ParseProba(VP8BitReader* const br, VP8Decoder* const dec) VP8ParseProba() argument [all...] |
H A D | vp8_dec.c | 32 typedef int (*GetCoeffsFunc)(VP8BitReader* const br, 160 static int ParseSegmentHeader(VP8BitReader* br, in ParseSegmentHeader() argument 162 assert(br != NULL); in ParseSegmentHeader() 164 hdr->use_segment_ = VP8Get(br, "global-header"); in ParseSegmentHeader() 166 hdr->update_map_ = VP8Get(br, "global-header"); in ParseSegmentHeader() 167 if (VP8Get(br, "global-header")) { // update data in ParseSegmentHeader() 169 hdr->absolute_delta_ = VP8Get(br, "global-header"); in ParseSegmentHeader() 171 hdr->quantizer_[s] = VP8Get(br, "global-header") ? in ParseSegmentHeader() 172 VP8GetSignedValue(br, 7, "global-header") : 0; in ParseSegmentHeader() 175 hdr->filter_strength_[s] = VP8Get(br, "globa in ParseSegmentHeader() 203 VP8BitReader* const br = &dec->br_; ParsePartitions() local 233 ParseFilterHeader(VP8BitReader* br, VP8Decoder* const dec) ParseFilterHeader() argument 264 VP8BitReader* br; VP8GetHeaders() local 407 GetLargeValue(VP8BitReader* const br, const uint8_t* const p) GetLargeValue() argument 439 GetCoeffsFast(VP8BitReader* const br, const VP8BandProbas* const prob[], int ctx, const quant_t dq, int n, int16_t* out) GetCoeffsFast() argument 469 GetCoeffsAlt(VP8BitReader* const br, const VP8BandProbas* const prob[], int ctx, const quant_t dq, int n, int16_t* out) GetCoeffsAlt() argument [all...] |
H A D | quant_dec.c | 63 VP8BitReader* const br = &dec->br_; in VP8ParseQuant() local 64 const int base_q0 = VP8GetValue(br, 7, "global-header"); in VP8ParseQuant() 65 const int dqy1_dc = VP8Get(br, "global-header") ? in VP8ParseQuant() 66 VP8GetSignedValue(br, 4, "global-header") : 0; in VP8ParseQuant() 67 const int dqy2_dc = VP8Get(br, "global-header") ? in VP8ParseQuant() 68 VP8GetSignedValue(br, 4, "global-header") : 0; in VP8ParseQuant() 69 const int dqy2_ac = VP8Get(br, "global-header") ? in VP8ParseQuant() 70 VP8GetSignedValue(br, 4, "global-header") : 0; in VP8ParseQuant() 71 const int dquv_dc = VP8Get(br, "global-header") ? in VP8ParseQuant() 72 VP8GetSignedValue(br, in VP8ParseQuant() [all...] |
H A D | vp8l_dec.c | 117 static int ReadImageInfo(VP8LBitReader* const br, in ReadImageInfo() argument 120 if (VP8LReadBits(br, 8) != VP8L_MAGIC_BYTE) return 0; in ReadImageInfo() 121 *width = VP8LReadBits(br, VP8L_IMAGE_SIZE_BITS) + 1; in ReadImageInfo() 122 *height = VP8LReadBits(br, VP8L_IMAGE_SIZE_BITS) + 1; in ReadImageInfo() 123 *has_alpha = VP8LReadBits(br, 1); in ReadImageInfo() 124 if (VP8LReadBits(br, VP8L_VERSION_BITS) != 0) return 0; in ReadImageInfo() 125 return !br->eos_; in ReadImageInfo() 136 VP8LBitReader br; in VP8LGetInfo() local 137 VP8LInitBitReader(&br, data, data_size); in VP8LGetInfo() 138 if (!ReadImageInfo(&br, in VP8LGetInfo() 150 GetCopyDistance(int distance_symbol, VP8LBitReader* const br) GetCopyDistance() argument 161 GetCopyLength(int length_symbol, VP8LBitReader* const br) GetCopyLength() argument 183 ReadSymbol(const HuffmanCode* table, VP8LBitReader* const br) ReadSymbol() argument 202 ReadPackedSymbols(const HTreeGroup* group, VP8LBitReader* const br, uint32_t* const dst) ReadPackedSymbols() argument 252 VP8LBitReader* const br = &dec->br_; ReadHuffmanCodeLengths() local 315 VP8LBitReader* const br = &dec->br_; ReadHuffmanCode() local 363 VP8LBitReader* const br = &dec->br_; ReadHuffmanCodes() local 1018 VP8LBitReader* const br = &dec->br_; DecodeAlphaData() local 1123 VP8LBitReader* const br = &dec->br_; DecodeImageData() local 1303 VP8LBitReader* const br = &dec->br_; ReadTransform() local 1429 VP8LBitReader* const br = &dec->br_; DecodeImageStream() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | moflex.c | 41 BitReader br; member 44 static int pop(BitReader *br, AVIOContext *pb) in pop() argument 49 if ((br->pos & 7) == 0) in pop() 50 br->last = (unsigned)avio_r8(pb) << 24U; in pop() 52 br->last <<= 1; in pop() 54 br->pos++; in pop() 55 return !!(br->last & 0x80000000); in pop() 58 static int pop_int(BitReader *br, AVIOContext *pb, int n) in pop_int() argument 63 int ret = pop(br, pb); in pop_int() 75 static int pop_length(BitReader *br, AVIOContex argument 267 BitReader *br = &m->br; moflex_read_packet() local [all...] |
H A D | xwma.c | 90 int br = st->codecpar->bit_rate; in xwma_read_header() local 93 if (sr == 22050 && (br==48000 || br==192000)) in xwma_read_header() 94 br = 20000; in xwma_read_header() 95 else if (sr == 32000 && (br==48000 || br==192000)) in xwma_read_header() 96 br = 20000; in xwma_read_header() 97 else if (sr == 44100 && (br==96000 || br==192000)) in xwma_read_header() 98 br in xwma_read_header() [all...] |
/third_party/skia/dm/ |
H A D | DMJsonWriter.cpp | 121 BitmapResult br; in ReadJson() local 126 br.name = key["name"].as<StringValue>().begin(); in ReadJson() 127 br.config = key["config"].as<StringValue>().begin(); in ReadJson() 128 br.sourceType = key["source_type"].as<StringValue>().begin(); in ReadJson() 129 br.ext = options["ext"].as<StringValue>().begin(); in ReadJson() 130 br.gamut = options["gamut"].as<StringValue>().begin(); in ReadJson() 131 br.transferFn = options["transfer_fn"].as<StringValue>().begin(); in ReadJson() 132 br.colorType = options["color_type"].as<StringValue>().begin(); in ReadJson() 133 br.alphaType = options["alpha_type"].as<StringValue>().begin(); in ReadJson() 134 br in ReadJson() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_compositor_gfx.c | 473 struct vertex2f tl, tr, br, bl; in gen_rect_verts() local 481 tr.x = layer->dst.br.x; in gen_rect_verts() 483 br = layer->dst.br; in gen_rect_verts() 485 bl.y = layer->dst.br.y; in gen_rect_verts() 488 tl.x = layer->dst.br.x; in gen_rect_verts() 490 tr = layer->dst.br; in gen_rect_verts() 491 br.x = layer->dst.tl.x; in gen_rect_verts() 492 br.y = layer->dst.br in gen_rect_verts() 557 struct vertex2f tl, br; calc_drawn_area() local [all...] |
/third_party/ntfs-3g/libntfs-3g/ |
H A D | bitmap.c | 118 s64 bufsize, br; in ntfs_bitmap_set_bits_in_run() local 150 br = ntfs_attr_pread(na, start_bit >> 3, 1, buf); in ntfs_bitmap_set_bits_in_run() 151 if (br != 1) { in ntfs_bitmap_set_bits_in_run() 152 if (br >= 0) in ntfs_bitmap_set_bits_in_run() 187 br = ntfs_attr_pread(na, (start_bit + count) >> in ntfs_bitmap_set_bits_in_run() 189 if (br != 1) { in ntfs_bitmap_set_bits_in_run() 191 if (br >= 0) in ntfs_bitmap_set_bits_in_run() 195 "metadata", (long long)br); in ntfs_bitmap_set_bits_in_run() 214 br = ntfs_attr_pwrite(na, tmp, bufsize, buf); in ntfs_bitmap_set_bits_in_run() 215 if (br ! in ntfs_bitmap_set_bits_in_run() [all...] |
/third_party/node/deps/openssl/openssl/crypto/ |
H A D | ia64cpuid.S | 20 { .mib; br.ret.sptk.many b0 };; 27 br.ret.sptk.many b0 };; 46 (p6) br.dpnt .Lspin };; 49 br.ret.sptk.many b0 };; 86 br.ctop.sptk .L_wipe_top };; 139 br.ret.sptk b0 };; 147 (p6) br.ret.spnt b0 };; 150 (p6) br.cond.dptk .Lot };; 156 (p6) br.cond.dptk .Little 157 (p7) br [all...] |
/third_party/openssl/crypto/ |
H A D | ia64cpuid.S | 20 { .mib; br.ret.sptk.many b0 };; 27 br.ret.sptk.many b0 };; 46 (p6) br.dpnt .Lspin };; 49 br.ret.sptk.many b0 };; 86 br.ctop.sptk .L_wipe_top };; 139 br.ret.sptk b0 };; 147 (p6) br.ret.spnt b0 };; 150 (p6) br.cond.dptk .Lot };; 156 (p6) br.cond.dptk .Little 157 (p7) br [all...] |