Home
last modified time | relevance | path

Searched refs:bw (Results 1 – 25 of 634) sorted by relevance

12345678910>>...26

/external/webp/src/utils/
Dbit_writer_utils.c26 static int BitWriterResize(VP8BitWriter* const bw, size_t extra_size) { in BitWriterResize() argument
29 const uint64_t needed_size_64b = (uint64_t)bw->pos_ + extra_size; in BitWriterResize()
32 bw->error_ = 1; in BitWriterResize()
35 if (needed_size <= bw->max_pos_) return 1; in BitWriterResize()
37 new_size = 2 * bw->max_pos_; in BitWriterResize()
42 bw->error_ = 1; in BitWriterResize()
45 if (bw->pos_ > 0) { in BitWriterResize()
46 assert(bw->buf_ != NULL); in BitWriterResize()
47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize()
49 WebPSafeFree(bw->buf_); in BitWriterResize()
[all …]
Dbit_writer_utils.h39 int VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size);
41 uint8_t* VP8BitWriterFinish(VP8BitWriter* const bw);
44 void VP8BitWriterWipeOut(VP8BitWriter* const bw);
46 int VP8PutBit(VP8BitWriter* const bw, int bit, int prob);
47 int VP8PutBitUniform(VP8BitWriter* const bw, int bit);
48 void VP8PutBits(VP8BitWriter* const bw, uint32_t value, int nb_bits);
49 void VP8PutSignedBits(VP8BitWriter* const bw, int value, int nb_bits);
52 int VP8BitWriterAppend(VP8BitWriter* const bw,
56 static WEBP_INLINE uint64_t VP8BitWriterPos(const VP8BitWriter* const bw) { in VP8BitWriterPos() argument
57 const uint64_t nb_bits = 8 + bw->nb_bits_; // bw->nb_bits_ is <= 0, note in VP8BitWriterPos()
[all …]
/external/flac/libFLAC/
Dbitwriter.c88 #define FLAC__TOTAL_BITS(bw) (FLAC__WORDS_TO_BITS((bw)->words) + (bw)->bits) argument
102 FLAC__bool bitwriter_grow_(FLAC__BitWriter *bw, unsigned bits_to_add) in bitwriter_grow_() argument
107 FLAC__ASSERT(0 != bw); in bitwriter_grow_()
108 FLAC__ASSERT(0 != bw->buffer); in bitwriter_grow_()
111 …new_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WO… in bitwriter_grow_()
116 if(bw->capacity >= new_capacity) in bitwriter_grow_()
120 if((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT) in bitwriter_grow_()
121 …new_capacity += FLAC__BITWRITER_DEFAULT_INCREMENT - ((new_capacity - bw->capacity) % FLAC__BITWRIT… in bitwriter_grow_()
123 FLAC__ASSERT(0 == (new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT); in bitwriter_grow_()
124 FLAC__ASSERT(new_capacity > bw->capacity); in bitwriter_grow_()
[all …]
Dstream_encoder_framing.c44 static FLAC__bool add_entropy_coding_method_(FLAC__BitWriter *bw, const FLAC__EntropyCodingMethod *…
45 static FLAC__bool add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[],…
47 FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__BitWriter *bw) in FLAC__add_metadata_block() argument
52 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->is_last, FLAC__STREAM_METADATA_IS_LAST_LEN)) in FLAC__add_metadata_block()
55 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->type, FLAC__STREAM_METADATA_TYPE_LEN)) in FLAC__add_metadata_block()
71 if(!FLAC__bitwriter_write_raw_uint32(bw, i, FLAC__STREAM_METADATA_LENGTH_LEN)) in FLAC__add_metadata_block()
77 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.min_blocksize, FLAC__STREAM_ME… in FLAC__add_metadata_block()
80 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.max_blocksize, FLAC__STREAM_ME… in FLAC__add_metadata_block()
83 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.min_framesize, FLAC__STREAM_ME… in FLAC__add_metadata_block()
86 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.max_framesize, FLAC__STREAM_ME… in FLAC__add_metadata_block()
[all …]
/external/syzkaller/vendor/google.golang.org/grpc/
Dbalancer_v1_wrapper.go50 bw := &balancerWrapper{
61 cc.UpdateBalancerState(connectivity.Idle, bw)
62 go bw.lbWatcher()
63 return bw
99 func (bw *balancerWrapper) lbWatcher() {
100 <-bw.startCh
101 notifyCh := bw.balancer.Notify()
105 Addr: bw.targetAddr,
108 sc, err := bw.cc.NewSubConn([]resolver.Address{a}, balancer.NewSubConnOptions{})
112 bw.mu.Lock()
[all …]
/external/webp/src/enc/
Dtree_enc.c270 static int PutI4Mode(VP8BitWriter* const bw, int mode, in PutI4Mode() argument
272 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) { in PutI4Mode()
273 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) { in PutI4Mode()
274 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) { in PutI4Mode()
275 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) { in PutI4Mode()
276 if (VP8PutBit(bw, mode != B_HE_PRED, prob[4])) { in PutI4Mode()
277 VP8PutBit(bw, mode != B_RD_PRED, prob[5]); in PutI4Mode()
280 if (VP8PutBit(bw, mode != B_LD_PRED, prob[6])) { in PutI4Mode()
281 if (VP8PutBit(bw, mode != B_VL_PRED, prob[7])) { in PutI4Mode()
282 VP8PutBit(bw, mode != B_HD_PRED, prob[8]); in PutI4Mode()
[all …]
Dsyntax_enc.c187 static void PutSegmentHeader(VP8BitWriter* const bw, in PutSegmentHeader() argument
191 if (VP8PutBitUniform(bw, (hdr->num_segments_ > 1))) { in PutSegmentHeader()
195 VP8PutBitUniform(bw, hdr->update_map_); in PutSegmentHeader()
196 if (VP8PutBitUniform(bw, update_data)) { in PutSegmentHeader()
198 VP8PutBitUniform(bw, 1); // (segment_feature_mode = 1. Paragraph 9.3.) in PutSegmentHeader()
200 VP8PutSignedBits(bw, enc->dqm_[s].quant_, 7); in PutSegmentHeader()
203 VP8PutSignedBits(bw, enc->dqm_[s].fstrength_, 6); in PutSegmentHeader()
208 if (VP8PutBitUniform(bw, (proba->segments_[s] != 255u))) { in PutSegmentHeader()
209 VP8PutBits(bw, proba->segments_[s], 8); in PutSegmentHeader()
217 static void PutFilterHeader(VP8BitWriter* const bw, in PutFilterHeader() argument
[all …]
Dvp8l_enc.c524 VP8LBitWriter* const bw, const uint8_t* code_length_bitdepth) { in StoreHuffmanTreeOfHuffmanTreeToBitMask() argument
539 VP8LPutBits(bw, codes_to_store - 4, 4); in StoreHuffmanTreeOfHuffmanTreeToBitMask()
541 VP8LPutBits(bw, code_length_bitdepth[kStorageOrder[i]], 3); in StoreHuffmanTreeOfHuffmanTreeToBitMask()
562 VP8LBitWriter* const bw, in StoreHuffmanTreeToBitMask() argument
569 VP8LPutBits(bw, huffman_code->codes[ix], huffman_code->code_lengths[ix]); in StoreHuffmanTreeToBitMask()
572 VP8LPutBits(bw, extra_bits, 2); in StoreHuffmanTreeToBitMask()
575 VP8LPutBits(bw, extra_bits, 3); in StoreHuffmanTreeToBitMask()
578 VP8LPutBits(bw, extra_bits, 7); in StoreHuffmanTreeToBitMask()
585 static void StoreFullHuffmanCode(VP8LBitWriter* const bw, in StoreFullHuffmanCode() argument
598 VP8LPutBits(bw, 0, 1); in StoreFullHuffmanCode()
[all …]
/external/flac/libFLAC/include/private/
Dbitwriter.h49 void FLAC__bitwriter_delete(FLAC__BitWriter *bw);
50 FLAC__bool FLAC__bitwriter_init(FLAC__BitWriter *bw);
51 void FLAC__bitwriter_free(FLAC__BitWriter *bw); /* does not 'free(buffer)' */
52 void FLAC__bitwriter_clear(FLAC__BitWriter *bw);
53 void FLAC__bitwriter_dump(const FLAC__BitWriter *bw, FILE *out);
60 FLAC__bool FLAC__bitwriter_get_write_crc16(FLAC__BitWriter *bw, FLAC__uint16 *crc);
61 FLAC__bool FLAC__bitwriter_get_write_crc8(FLAC__BitWriter *bw, FLAC__byte *crc);
66 FLAC__bool FLAC__bitwriter_is_byte_aligned(const FLAC__BitWriter *bw);
67 unsigned FLAC__bitwriter_get_input_bits_unconsumed(const FLAC__BitWriter *bw); /* can be called any…
76 FLAC__bool FLAC__bitwriter_get_buffer(FLAC__BitWriter *bw, const FLAC__byte **buffer, size_t *bytes…
[all …]
/external/e2fsprogs/debugfs/
Dicheck.c41 struct block_walk_struct *bw = (struct block_walk_struct *) private; in icheck_proc() local
44 for (i=0; i < bw->num_blocks; i++) { in icheck_proc()
45 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) { in icheck_proc()
46 bw->barray[i].ino = bw->inode; in icheck_proc()
47 bw->blocks_left--; in icheck_proc()
50 if (!bw->blocks_left) in icheck_proc()
59 struct block_walk_struct bw; in do_icheck() local
75 bw.barray = malloc(sizeof(struct block_info) * argc); in do_icheck()
76 if (!bw.barray) { in do_icheck()
81 memset(bw.barray, 0, sizeof(struct block_info) * argc); in do_icheck()
[all …]
/external/mesa3d/prebuilt-intermediates/isl/
Disl_format_layout.c34 .bw = 1,
54 .bw = 1,
74 .bw = 1,
94 .bw = 1,
114 .bw = 1,
134 .bw = 1,
154 .bw = 1,
174 .bw = 1,
194 .bw = 1,
214 .bw = 1,
[all …]
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DCheckAPI.java627 BufferedWriter bw = null; in run() local
630 bw = new BufferedWriter(osw); in run()
634 bw.write(String.valueOf(DATA_FILE_VERSION) + SEP); // header version in run()
635 bw.write(srcName + SEP); // source name in run()
636 bw.newLine(); in run()
637 writeResults(results, bw, true, false, false); in run()
672 bw.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"); in run()
673 bw.newLine(); in run()
674 bw.write("<html>"); in run()
675 bw.newLine(); in run()
[all …]
/external/libaom/libaom/aom_dsp/
Dintrapred.c23 static INLINE void v_predictor(uint8_t *dst, ptrdiff_t stride, int bw, int bh, in v_predictor() argument
29 memcpy(dst, above, bw); in v_predictor()
34 static INLINE void h_predictor(uint8_t *dst, ptrdiff_t stride, int bw, int bh, in h_predictor() argument
40 memset(dst, left[r], bw); in h_predictor()
60 static INLINE void paeth_predictor(uint8_t *dst, ptrdiff_t stride, int bw, in paeth_predictor() argument
67 for (c = 0; c < bw; c++) in paeth_predictor()
78 assert(weights_scale - weights_w[bw - 1] < weights_scale); \
84 static INLINE void smooth_predictor(uint8_t *dst, ptrdiff_t stride, int bw, in smooth_predictor() argument
88 const uint8_t right_pred = above[bw - 1]; // estimated by top-right pixel in smooth_predictor()
89 const uint8_t *const sm_weights_w = sm_weight_arrays + bw; in smooth_predictor()
[all …]
/external/toybox/toys/other/
Dbzcat.c161 static int read_block_header(struct bunzip_data *bd, struct bwdata *bw) in read_block_header() argument
170 bw->headerCRC = get_bits(bd,32); in read_block_header()
180 if ((bw->origPtr = get_bits(bd,24)) > bd->dbufSize) return RETVAL_DATA_ERROR; in read_block_header()
319 static int read_huffman_data(struct bunzip_data *bd, struct bwdata *bw) in read_huffman_data() argument
324 unsigned hh, *dbuf = bw->dbuf; in read_huffman_data()
332 byteCount = bw->byteCount; in read_huffman_data()
437 if (bw->origPtr >= (bw->writeCount = dbufCount)) return RETVAL_DATA_ERROR; in read_huffman_data()
452 static void burrows_wheeler_prep(struct bunzip_data *bd, struct bwdata *bw) in burrows_wheeler_prep() argument
455 unsigned int *dbuf = bw->dbuf; in burrows_wheeler_prep()
456 int *byteCount = bw->byteCount; in burrows_wheeler_prep()
[all …]
/external/puffin/src/
Dhuffer.cc29 BitWriterInterface* bw) const { in HuffDeflate()
45 TEST_AND_RETURN_FALSE(bw->WriteBits(1, final_bit)); in HuffDeflate()
46 TEST_AND_RETURN_FALSE(bw->WriteBits(2, type)); in HuffDeflate()
49 bw->WriteBoundaryBits(skipped_bits); in HuffDeflate()
54 TEST_AND_RETURN_FALSE(bw->WriteBits(16, pd.length)); in HuffDeflate()
55 TEST_AND_RETURN_FALSE(bw->WriteBits(16, ~pd.length)); in HuffDeflate()
56 TEST_AND_RETURN_FALSE(bw->WriteBytes(pd.length, pd.read_fn)); in HuffDeflate()
61 TEST_AND_RETURN_FALSE(bw->WriteBits(16, 0)); in HuffDeflate()
62 TEST_AND_RETURN_FALSE(bw->WriteBits(16, ~0)); in HuffDeflate()
78 &pd.block_metadata[1], pd.length - 1, bw)); in HuffDeflate()
[all …]
Dbit_io_unittest.cc21 puffin::BufferBitWriter bw(buf, kSize); in TEST() local
22 ASSERT_TRUE(bw.WriteBits(0, 0x05)); in TEST()
23 ASSERT_TRUE(bw.WriteBits(3, 0x05)); in TEST()
24 ASSERT_TRUE(bw.WriteBits(8, 0xFF)); in TEST()
25 ASSERT_TRUE(bw.WriteBoundaryBits(0x0F)); in TEST()
28 ASSERT_TRUE(bw.WriteBytes(2, [&tmp, &index](uint8_t* buffer, size_t count) { in TEST()
34 ASSERT_FALSE(bw.WriteBits(9, 0x1C)); in TEST()
35 ASSERT_TRUE(bw.WriteBits(4, 0x0A)); in TEST()
36 ASSERT_TRUE(bw.WriteBoundaryBits(0xBB)); in TEST()
37 ASSERT_TRUE(bw.Flush()); in TEST()
[all …]
/external/libaom/libaom/test/
Dboolcoder_test.cc55 aom_writer bw; in TEST() local
57 aom_start_encode(&bw, bw_buffer); in TEST()
66 aom_write(&bw, bit, static_cast<int>(probas[i])); in TEST()
69 aom_stop_encode(&bw); in TEST()
72 aom_reader_init(&br, bw_buffer, bw.pos); in TEST()
93 aom_writer bw; in TEST() local
99 aom_start_encode(&bw, bw_buffer); in TEST()
101 aom_write(&bw, 0, p); in TEST()
103 aom_stop_encode(&bw); in TEST()
105 aom_reader_init(&br, bw_buffer, bw.pos); in TEST()
[all …]
Daccounting_test.cc28 aom_writer bw; in TEST() local
30 aom_start_encode(&bw, bw_buffer); in TEST()
32 aom_write(&bw, 0, 32); in TEST()
33 aom_write(&bw, 0, 32); in TEST()
34 aom_write(&bw, 0, 32); in TEST()
36 aom_stop_encode(&bw); in TEST()
38 aom_reader_init(&br, bw_buffer, bw.pos); in TEST()
54 aom_reader_init(&br, bw_buffer, bw.pos); in TEST()
/external/syzkaller/vendor/golang.org/x/net/http2/
Dhttp2.go258 bw *bufio.Writer // non-nil when data is buffered member
280 if w.bw == nil {
283 return w.bw.Available()
287 if w.bw == nil {
288 bw := bufWriterPool.Get().(*bufio.Writer)
289 bw.Reset(w.w)
290 w.bw = bw
292 return w.bw.Write(p)
296 bw := w.bw
297 if bw == nil {
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dop_classes.c163 u8 bw) in verify_channel() argument
169 if (bw == BW40MINUS) { in verify_channel()
173 } else if (bw == BW40PLUS) { in verify_channel()
177 } else if (bw == BW80) { in verify_channel()
184 } else if (bw == BW160) { in verify_channel()
191 } else if (bw == BW80P80) { in verify_channel()
287 if (verify_channel(mode, channels[i], op_class->bw) != in wpas_op_class_supported()
297 return verify_channel(mode, 50, op_class->bw) != NOT_ALLOWED || in wpas_op_class_supported()
298 verify_channel(mode, 114, op_class->bw) != NOT_ALLOWED; in wpas_op_class_supported()
305 if (verify_channel(mode, 42, op_class->bw) != NOT_ALLOWED || in wpas_op_class_supported()
[all …]
/external/openssh/
Dmisc.c1004 bandwidth_limit_init(struct bwlimit *bw, u_int64_t kbps, size_t buflen) in bandwidth_limit_init() argument
1006 bw->buflen = buflen; in bandwidth_limit_init()
1007 bw->rate = kbps; in bandwidth_limit_init()
1008 bw->thresh = bw->rate; in bandwidth_limit_init()
1009 bw->lamt = 0; in bandwidth_limit_init()
1010 timerclear(&bw->bwstart); in bandwidth_limit_init()
1011 timerclear(&bw->bwend); in bandwidth_limit_init()
1016 bandwidth_limit(struct bwlimit *bw, size_t read_len) in bandwidth_limit() argument
1021 if (!timerisset(&bw->bwstart)) { in bandwidth_limit()
1022 gettimeofday(&bw->bwstart, NULL); in bandwidth_limit()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_format_rgtc.c43 const unsigned bw = 4, bh = 4, comps = 4; in util_format_rgtc1_unorm_unpack_rgba_8unorm() local
49 for(x = 0; x < width; x += bw) { in util_format_rgtc1_unorm_unpack_rgba_8unorm()
51 for(i = 0; i < bw; ++i) { in util_format_rgtc1_unorm_unpack_rgba_8unorm()
69 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_unorm_pack_rgba_8unorm() local
74 for(x = 0; x < width; x += bw) { in util_format_rgtc1_unorm_pack_rgba_8unorm()
77 for(i = 0; i < bw; ++i) { in util_format_rgtc1_unorm_pack_rgba_8unorm()
116 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_unorm_pack_rgba_float() local
121 for(x = 0; x < width; x += bw) { in util_format_rgtc1_unorm_pack_rgba_float()
124 for(i = 0; i < bw; ++i) { in util_format_rgtc1_unorm_pack_rgba_float()
172 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_snorm_pack_rgba_float() local
[all …]
/external/epid-sdk/doc/html/
Djquery.js44bw()}}}},isFunction:function(b0){return bF.type(b0)==="function"},isArray:Array.isArray||function(… argument
51bw=by.getText=function(bU){var bS,bT,e=bU.nodeType,bR="";if(e){if(e===1||e===9){if(typeof bU.textC… argument
/external/tinyxml2/docs/
Djquery.js16bw()}}}},isFunction:function(b0){return bF.type(b0)==="function"},isArray:Array.isArray||function(… argument
23bw=by.getText=function(bU){var bS,bT,e=bU.nodeType,bR="";if(e){if(e===1||e===9){if(typeof bU.textC… argument
/external/libaom/libaom/av1/encoder/
Dtpl_model.c52 static void wht_fwd_txfm(int16_t *src_diff, int bw, tran_low_t *coeff, in wht_fwd_txfm() argument
55 case TX_8X8: aom_hadamard_8x8(src_diff, bw, coeff); break; in wht_fwd_txfm()
56 case TX_16X16: aom_hadamard_16x16(src_diff, bw, coeff); break; in wht_fwd_txfm()
57 case TX_32X32: aom_hadamard_32x32(src_diff, bw, coeff); break; in wht_fwd_txfm()
126 const int bw = 4 << mi_size_wide_log2[bsize]; in mode_estimation() local
128 const int pix_num = bw * bh; in mode_estimation()
161 dst_stride = bw; in mode_estimation()
171 aom_highbd_subtract_block(bh, bw, src_diff, bw, src, src_stride, dst, in mode_estimation()
174 aom_subtract_block(bh, bw, src_diff, bw, src, src_stride, dst, in mode_estimation()
178 wht_fwd_txfm(src_diff, bw, coeff, tx_size); in mode_estimation()
[all …]

12345678910>>...26