Home
last modified time | relevance | path

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

12345678910>>...12

/external/webp/src/utils/
Dbit_writer.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.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 return (uint64_t)(bw->pos_ + bw->run_) * 8 + 8 + bw->nb_bits_; in VP8BitWriterPos()
[all …]
/external/flac/libFLAC/
Dbitwriter.c71 #define FLAC__TOTAL_BITS(bw) (FLAC__WORDS_TO_BITS((bw)->words) + (bw)->bits) argument
85 FLAC__bool bitwriter_grow_(FLAC__BitWriter *bw, unsigned bits_to_add) in bitwriter_grow_() argument
90 FLAC__ASSERT(0 != bw); in bitwriter_grow_()
91 FLAC__ASSERT(0 != bw->buffer); in bitwriter_grow_()
94 …new_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WO… in bitwriter_grow_()
99 if(bw->capacity >= new_capacity) in bitwriter_grow_()
103 if((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT) in bitwriter_grow_()
104 …new_capacity += FLAC__BITWRITER_DEFAULT_INCREMENT - ((new_capacity - bw->capacity) % FLAC__BITWRIT… in bitwriter_grow_()
106 FLAC__ASSERT(0 == (new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT); in bitwriter_grow_()
107 FLAC__ASSERT(new_capacity > bw->capacity); in bitwriter_grow_()
[all …]
Dstream_encoder_framing.c43 static FLAC__bool add_entropy_coding_method_(FLAC__BitWriter *bw, const FLAC__EntropyCodingMethod *…
44 static FLAC__bool add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[],…
46 FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__BitWriter *bw) in FLAC__add_metadata_block() argument
51 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->is_last, FLAC__STREAM_METADATA_IS_LAST_LEN)) in FLAC__add_metadata_block()
54 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->type, FLAC__STREAM_METADATA_TYPE_LEN)) in FLAC__add_metadata_block()
67 if(!FLAC__bitwriter_write_raw_uint32(bw, i, FLAC__STREAM_METADATA_LENGTH_LEN)) in FLAC__add_metadata_block()
73 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.min_blocksize, FLAC__STREAM_ME… in FLAC__add_metadata_block()
76 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.max_blocksize, FLAC__STREAM_ME… in FLAC__add_metadata_block()
79 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.min_framesize, FLAC__STREAM_ME… in FLAC__add_metadata_block()
82 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.max_framesize, FLAC__STREAM_ME… in FLAC__add_metadata_block()
[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 …]
Dstream_encoder_framing.h39 FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__BitWriter *bw);
40 FLAC__bool FLAC__frame_add_header(const FLAC__FrameHeader *header, FLAC__BitWriter *bw);
41 …AC__Subframe_Constant *subframe, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
42 …rame, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
43 …rame, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
44 …tim *subframe, unsigned samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
/external/webp/src/enc/
Dtree.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.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.c497 VP8LBitWriter* const bw, const uint8_t* code_length_bitdepth) { in StoreHuffmanTreeOfHuffmanTreeToBitMask() argument
512 VP8LPutBits(bw, codes_to_store - 4, 4); in StoreHuffmanTreeOfHuffmanTreeToBitMask()
514 VP8LPutBits(bw, code_length_bitdepth[kStorageOrder[i]], 3); in StoreHuffmanTreeOfHuffmanTreeToBitMask()
535 VP8LBitWriter* const bw, in StoreHuffmanTreeToBitMask() argument
542 VP8LPutBits(bw, huffman_code->codes[ix], huffman_code->code_lengths[ix]); in StoreHuffmanTreeToBitMask()
545 VP8LPutBits(bw, extra_bits, 2); in StoreHuffmanTreeToBitMask()
548 VP8LPutBits(bw, extra_bits, 3); in StoreHuffmanTreeToBitMask()
551 VP8LPutBits(bw, extra_bits, 7); in StoreHuffmanTreeToBitMask()
558 static void StoreFullHuffmanCode(VP8LBitWriter* const bw, in StoreFullHuffmanCode() argument
571 VP8LPutBits(bw, 0, 1); in StoreFullHuffmanCode()
[all …]
Dalpha.c51 VP8LBitWriter* const bw, in EncodeLossless() argument
82 ok = (VP8LEncodeStream(&config, &picture, bw) == VP8_ENC_OK); in EncodeLossless()
84 ok = ok && !bw->error_; in EncodeLossless()
86 VP8LBitWriterWipeOut(bw); in EncodeLossless()
97 VP8BitWriter bw; member
159 VP8BitWriterInit(&result->bw, ALPHA_HEADER_LEN + output_size); in EncodeAlphaInternal()
160 ok = ok && VP8BitWriterAppend(&result->bw, &header, ALPHA_HEADER_LEN); in EncodeAlphaInternal()
161 ok = ok && VP8BitWriterAppend(&result->bw, output, output_size); in EncodeAlphaInternal()
166 ok = ok && !result->bw.error_; in EncodeAlphaInternal()
167 result->score = VP8BitWriterSize(&result->bw); in EncodeAlphaInternal()
[all …]
Dframe.c223 static int PutCoeffs(VP8BitWriter* const bw, int ctx, const VP8Residual* res) { in PutCoeffs() argument
227 if (!VP8PutBit(bw, res->last >= 0, p[0])) { in PutCoeffs()
235 if (!VP8PutBit(bw, v != 0, p[1])) { in PutCoeffs()
239 if (!VP8PutBit(bw, v > 1, p[2])) { in PutCoeffs()
242 if (!VP8PutBit(bw, v > 4, p[3])) { in PutCoeffs()
243 if (VP8PutBit(bw, v != 2, p[4])) in PutCoeffs()
244 VP8PutBit(bw, v == 4, p[5]); in PutCoeffs()
245 } else if (!VP8PutBit(bw, v > 10, p[6])) { in PutCoeffs()
246 if (!VP8PutBit(bw, v > 6, p[7])) { in PutCoeffs()
247 VP8PutBit(bw, v == 6, 159); in PutCoeffs()
[all …]
/external/e2fsprogs/debugfs/
Dicheck.c40 struct block_walk_struct *bw = (struct block_walk_struct *) private; in icheck_proc() local
43 for (i=0; i < bw->num_blocks; i++) { in icheck_proc()
44 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) { in icheck_proc()
45 bw->barray[i].ino = bw->inode; in icheck_proc()
46 bw->blocks_left--; in icheck_proc()
49 if (!bw->blocks_left) in icheck_proc()
57 struct block_walk_struct bw; in do_icheck() local
73 bw.barray = malloc(sizeof(struct block_info) * argc); in do_icheck()
74 if (!bw.barray) { in do_icheck()
79 memset(bw.barray, 0, sizeof(struct block_info) * argc); in do_icheck()
[all …]
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DCheckAPI.java625 BufferedWriter bw = null; in run() local
628 bw = new BufferedWriter(osw); in run()
632 bw.write(String.valueOf(DATA_FILE_VERSION) + SEP); // header version in run()
633 bw.write(srcName + SEP); // source name in run()
634 bw.newLine(); in run()
635 writeResults(results, bw, true, false, false); in run()
670 bw.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"); in run()
671 bw.newLine(); in run()
672 bw.write("<html>"); in run()
673 bw.newLine(); in run()
[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 int *dbuf = bw->dbuf; in read_huffman_data()
332 byteCount = bw->byteCount; in read_huffman_data()
435 if (bw->origPtr >= (bw->writeCount = dbufCount)) return RETVAL_DATA_ERROR; in read_huffman_data()
450 static void burrows_wheeler_prep(struct bunzip_data *bd, struct bwdata *bw) in burrows_wheeler_prep() argument
453 unsigned int *dbuf = bw->dbuf; in burrows_wheeler_prep()
454 int *byteCount = bw->byteCount; in burrows_wheeler_prep()
[all …]
/external/chromium-trace/catapult/tracing/third_party/gl-matrix/src/gl-matrix/
Dquat.js216 bx = b[0], by = b[1], bz = b[2], bw = b[3];
218 out[0] = ax * bw + aw * bx + ay * bz - az * by;
219 out[1] = ay * bw + aw * by + az * bx - ax * bz;
220 out[2] = az * bw + aw * bz + ax * by - ay * bx;
221 out[3] = aw * bw - ax * bx - ay * by - az * bz;
254 bx = Math.sin(rad), bw = Math.cos(rad);
256 out[0] = ax * bw + aw * bx;
257 out[1] = ay * bw + az * bx;
258 out[2] = az * bw - ay * bx;
259 out[3] = aw * bw - ax * bx;
[all …]
/external/openssh/
Dmisc.c909 bandwidth_limit_init(struct bwlimit *bw, u_int64_t kbps, size_t buflen) in bandwidth_limit_init() argument
911 bw->buflen = buflen; in bandwidth_limit_init()
912 bw->rate = kbps; in bandwidth_limit_init()
913 bw->thresh = bw->rate; in bandwidth_limit_init()
914 bw->lamt = 0; in bandwidth_limit_init()
915 timerclear(&bw->bwstart); in bandwidth_limit_init()
916 timerclear(&bw->bwend); in bandwidth_limit_init()
921 bandwidth_limit(struct bwlimit *bw, size_t read_len) in bandwidth_limit() argument
926 if (!timerisset(&bw->bwstart)) { in bandwidth_limit()
927 gettimeofday(&bw->bwstart, NULL); in bandwidth_limit()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_format_rgtc.c53 const unsigned bw = 4, bh = 4, comps = 4; in util_format_rgtc1_unorm_unpack_rgba_8unorm() local
59 for(x = 0; x < width; x += bw) { in util_format_rgtc1_unorm_unpack_rgba_8unorm()
61 for(i = 0; i < bw; ++i) { in util_format_rgtc1_unorm_unpack_rgba_8unorm()
79 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_unorm_pack_rgba_8unorm() local
84 for(x = 0; x < width; x += bw) { in util_format_rgtc1_unorm_pack_rgba_8unorm()
87 for(i = 0; i < bw; ++i) { in util_format_rgtc1_unorm_pack_rgba_8unorm()
126 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_unorm_pack_rgba_float() local
131 for(x = 0; x < width; x += bw) { in util_format_rgtc1_unorm_pack_rgba_float()
134 for(i = 0; i < bw; ++i) { in util_format_rgtc1_unorm_pack_rgba_float()
177 const unsigned bw = 4, bh = 4, bytes_per_block = 8; in util_format_rgtc1_snorm_pack_rgba_float() local
[all …]
Du_format_etc.c28 const unsigned bw = 4, bh = 4, bs = 8, comps = 4; in util_format_etc1_rgb8_unpack_rgba_float() local
35 for (x = 0; x < width; x+= bw) { in util_format_etc1_rgb8_unpack_rgba_float()
42 for (i = 0; i < bw; i++) { in util_format_etc1_rgb8_unpack_rgba_float()
68 const unsigned bw = 4, bh = 4; in util_format_etc1_rgb8_fetch_rgba_float() local
72 assert(i < bw && j < bh); in util_format_etc1_rgb8_fetch_rgba_float()
/external/mesa3d/src/mesa/main/
Dtexcompress.c451 GLuint bw, bh; in _mesa_compressed_image_address() local
454 _mesa_get_format_block_size(mesaFormat, &bw, &bh); in _mesa_compressed_image_address()
456 ASSERT(col % bw == 0); in _mesa_compressed_image_address()
459 offset = ((width + bw - 1) / bw) * (row / bh) + col / bw; in _mesa_compressed_image_address()
480 GLuint bytes, bw, bh; in _mesa_decompress_image() local
483 _mesa_get_format_block_size(format, &bw, &bh); in _mesa_decompress_image()
/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/
Dproxyshaper.py118 bw = int(match.group(1))
120 bw *= 1000
122 bw *= 1000000
124 bw *= 8
125 return bw
/external/llvm/test/CodeGen/X86/
Dcoff-comdat.ll76 ; CHECK: .section .bss,"bw",associative,_f1
78 ; CHECK: .section .bss,"bw",associative,_f2
80 ; CHECK: .section .bss,"bw",associative,_f3
82 ; CHECK: .section .bss,"bw",associative,_f4
84 ; CHECK: .section .bss,"bw",associative,_f5
86 ; CHECK: .section .bss,"bw",associative,_f6
88 ; CHECK: .section .bss,"bw",same_size,_f6
/external/libvpx/libvpx/test/
Dvp9_boolcoder_test.cc52 vpx_writer bw; in TEST() local
54 vpx_start_encode(&bw, bw_buffer); in TEST()
63 vpx_write(&bw, bit, static_cast<int>(probas[i])); in TEST()
66 vpx_stop_encode(&bw); in TEST()
/external/autotest/client/site_tests/hardware_MemoryThroughput/
Dhardware_MemoryThroughput.py51 bw = float(s[1])
52 if bw <= 0:
53 raise error.TestFail('invalid throughput %f' % bw)
57 self._results[key] = bw
/external/autotest/client/site_tests/platform_CryptohomeFio/
Dcontrol.stress22 'boot': 'bw',
23 'login': 'bw',
24 'seq_read': 'bw',
25 'seq_write': 'bw',
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tex_format.c58 GLuint bw, bh; in intel_compressed_num_bytes() local
62 _mesa_get_format_block_size(mesaFormat, &bw, &bh); in intel_compressed_num_bytes()
64 return block_size / bw; in intel_compressed_num_bytes()

12345678910>>...12