Searched refs:bw (Results 1 - 25 of 110) sorted by relevance

12345

/external/webp/src/utils/
H A Dbit_writer.c26 static int BitWriterResize(VP8BitWriter* const bw, size_t extra_size) { argument
29 const uint64_t needed_size_64b = (uint64_t)bw->pos_ + extra_size;
32 bw->error_ = 1;
35 if (needed_size <= bw->max_pos_) return 1;
37 new_size = 2 * bw->max_pos_;
42 bw->error_ = 1;
45 if (bw->pos_ > 0) {
46 assert(bw->buf_ != NULL);
47 memcpy(new_buf, bw->buf_, bw
55 Flush(VP8BitWriter* const bw) argument
108 VP8PutBit(VP8BitWriter* const bw, int bit, int prob) argument
126 VP8PutBitUniform(VP8BitWriter* const bw, int bit) argument
143 VP8PutValue(VP8BitWriter* const bw, int value, int nb_bits) argument
149 VP8PutSignedValue(VP8BitWriter* const bw, int value, int nb_bits) argument
161 VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size) argument
173 VP8BitWriterFinish(VP8BitWriter* const bw) argument
180 VP8BitWriterAppend(VP8BitWriter* const bw, const uint8_t* data, size_t size) argument
190 VP8BitWriterWipeOut(VP8BitWriter* const bw) argument
209 VP8LBitWriterResize(VP8LBitWriter* const bw, size_t extra_size) argument
240 VP8LBitWriterInit(VP8LBitWriter* const bw, size_t expected_size) argument
245 VP8LBitWriterDestroy(VP8LBitWriter* const bw) argument
252 VP8LWriteBits(VP8LBitWriter* const bw, int n_bits, uint32_t bits) argument
294 VP8LBitWriterFinish(VP8LBitWriter* const bw) argument
[all...]
H A 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 VP8PutValue(VP8BitWriter* const bw, int value, int nb_bits);
49 void VP8PutSignedValue(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) { argument
57 return (uint64_t)(bw
61 VP8BitWriterBuf(const VP8BitWriter* const bw) argument
65 VP8BitWriterSize(const VP8BitWriter* const bw) argument
96 VP8LBitWriterNumBytes(VP8LBitWriter* const bw) argument
[all...]
/external/flac/libFLAC/include/private/
H A 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);
58 * non-const *bw because they have to cal FLAC__bitwriter_get_buffer()
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); /* ca
[all...]
H A 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 FLAC__bool FLAC__subframe_add_constant(const FLAC__Subframe_Constant *subframe, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
42 FLAC__bool FLAC__subframe_add_fixed(const FLAC__Subframe_Fixed *subframe, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
43 FLAC__bool FLAC__subframe_add_lpc(const FLAC__Subframe_LPC *subframe, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
44 FLAC__bool FLAC__subframe_add_verbatim(const FLAC__Subframe_Verbatim *subframe, unsigned samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
/external/flac/libFLAC/
H A Dbitwriter.c71 #define FLAC__TOTAL_BITS(bw) (FLAC__WORDS_TO_BITS((bw)->words) + (bw)->bits)
85 FLAC__bool bitwriter_grow_(FLAC__BitWriter *bw, unsigned bits_to_add) argument
90 FLAC__ASSERT(0 != bw);
91 FLAC__ASSERT(0 != bw->buffer);
94 new_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WORD);
99 if(bw->capacity >= new_capacity)
103 if((new_capacity - bw
127 FLAC__BitWriter *bw = calloc(1, sizeof(FLAC__BitWriter)); local
132 FLAC__bitwriter_delete(FLAC__BitWriter *bw) argument
146 FLAC__bitwriter_init(FLAC__BitWriter *bw) argument
159 FLAC__bitwriter_free(FLAC__BitWriter *bw) argument
170 FLAC__bitwriter_clear(FLAC__BitWriter *bw) argument
175 FLAC__bitwriter_dump(const FLAC__BitWriter *bw, FILE *out) argument
199 FLAC__bitwriter_get_write_crc16(FLAC__BitWriter *bw, FLAC__uint16 *crc) argument
214 FLAC__bitwriter_get_write_crc8(FLAC__BitWriter *bw, FLAC__byte *crc) argument
229 FLAC__bitwriter_is_byte_aligned(const FLAC__BitWriter *bw) argument
234 FLAC__bitwriter_get_input_bits_unconsumed(const FLAC__BitWriter *bw) argument
239 FLAC__bitwriter_get_buffer(FLAC__BitWriter *bw, const FLAC__byte **buffer, size_t *bytes) argument
259 FLAC__bitwriter_release_buffer(FLAC__BitWriter *bw) argument
267 FLAC__bitwriter_write_zeroes(FLAC__BitWriter *bw, unsigned bits) argument
305 FLAC__bitwriter_write_raw_uint32(FLAC__BitWriter *bw, FLAC__uint32 val, unsigned bits) argument
344 FLAC__bitwriter_write_raw_int32(FLAC__BitWriter *bw, FLAC__int32 val, unsigned bits) argument
353 FLAC__bitwriter_write_raw_uint64(FLAC__BitWriter *bw, FLAC__uint64 val, unsigned bits) argument
365 FLAC__bitwriter_write_raw_uint32_little_endian(FLAC__BitWriter *bw, FLAC__uint32 val) argument
381 FLAC__bitwriter_write_byte_block(FLAC__BitWriter *bw, const FLAC__byte vals[], unsigned nvals) argument
394 FLAC__bitwriter_write_unary_unsigned(FLAC__BitWriter *bw, unsigned val) argument
480 FLAC__bitwriter_write_rice_signed(FLAC__BitWriter *bw, FLAC__int32 val, unsigned parameter) argument
506 FLAC__bitwriter_write_rice_signed_block(FLAC__BitWriter *bw, const FLAC__int32 *vals, unsigned nvals, unsigned parameter) argument
721 FLAC__bitwriter_write_utf8_uint32(FLAC__BitWriter *bw, FLAC__uint32 val) argument
767 FLAC__bitwriter_write_utf8_uint64(FLAC__BitWriter *bw, FLAC__uint64 val) argument
822 FLAC__bitwriter_zero_pad_to_byte_boundary(FLAC__BitWriter *bw) argument
[all...]
H A Dstream_encoder_framing.c43 static FLAC__bool add_entropy_coding_method_(FLAC__BitWriter *bw, const FLAC__EntropyCodingMethod *method);
44 static FLAC__bool add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[], const unsigned residual_samples, const unsigned predictor_order, const unsigned rice_parameters[], const unsigned raw_bits[], const unsigned partition_order, const FLAC__bool is_extended);
46 FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__BitWriter *bw) argument
51 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->is_last, FLAC__STREAM_METADATA_IS_LAST_LEN))
54 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->type, FLAC__STREAM_METADATA_TYPE_LEN))
67 if(!FLAC__bitwriter_write_raw_uint32(bw, i, FLAC__STREAM_METADATA_LENGTH_LEN))
73 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.min_blocksize, FLAC__STREAM_METADATA_STREAMINFO_MIN_BLOCK_SIZE_LEN))
76 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.max_blocksize, FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LEN))
79 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.min_framesize, FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LEN))
82 if(!FLAC__bitwriter_write_raw_uint32(bw, metadat
215 FLAC__frame_add_header(const FLAC__FrameHeader *header, FLAC__BitWriter *bw) argument
362 FLAC__subframe_add_constant(const FLAC__Subframe_Constant *subframe, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw) argument
375 FLAC__subframe_add_fixed(const FLAC__Subframe_Fixed *subframe, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw) argument
413 FLAC__subframe_add_lpc(const FLAC__Subframe_LPC *subframe, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw) argument
459 FLAC__subframe_add_verbatim(const FLAC__Subframe_Verbatim *subframe, unsigned samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw) argument
477 add_entropy_coding_method_(FLAC__BitWriter *bw, const FLAC__EntropyCodingMethod *method) argument
493 add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[], const unsigned residual_samples, const unsigned predictor_order, const unsigned rice_parameters[], const unsigned raw_bits[], const unsigned partition_order, const FLAC__bool is_extended) argument
[all...]
/external/webp/src/enc/
H A Dtree.c270 static int PutI4Mode(VP8BitWriter* const bw, int mode, argument
272 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) {
273 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) {
274 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) {
275 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) {
276 if (VP8PutBit(bw, mode != B_HE_PRED, prob[4])) {
277 VP8PutBit(bw, mode != B_RD_PRED, prob[5]);
280 if (VP8PutBit(bw, mode != B_LD_PRED, prob[6])) {
281 if (VP8PutBit(bw, mode != B_VL_PRED, prob[7])) {
282 VP8PutBit(bw, mod
292 PutI16Mode(VP8BitWriter* const bw, int mode) argument
300 PutUVMode(VP8BitWriter* const bw, int uv_mode) argument
308 PutSegment(VP8BitWriter* const bw, int s, const uint8_t* p) argument
314 VP8BitWriter* const bw = &enc->bw_; local
485 VP8WriteProbas(VP8BitWriter* const bw, const VP8Proba* const probas) argument
[all...]
H A Dsyntax.c187 static void PutSegmentHeader(VP8BitWriter* const bw, argument
191 if (VP8PutBitUniform(bw, (hdr->num_segments_ > 1))) {
195 VP8PutBitUniform(bw, hdr->update_map_);
196 if (VP8PutBitUniform(bw, update_data)) {
198 VP8PutBitUniform(bw, 1); // (segment_feature_mode = 1. Paragraph 9.3.)
200 VP8PutSignedValue(bw, enc->dqm_[s].quant_, 7);
203 VP8PutSignedValue(bw, enc->dqm_[s].fstrength_, 6);
208 if (VP8PutBitUniform(bw, (proba->segments_[s] != 255u))) {
209 VP8PutValue(bw, proba->segments_[s], 8);
217 static void PutFilterHeader(VP8BitWriter* const bw, argument
237 PutQuant(VP8BitWriter* const bw, const VP8Encoder* const enc) argument
267 VP8BitWriter* const bw = &enc->bw_; local
313 VP8BitWriter* const bw = &enc->bw_; local
[all...]
H A Dvp8l.c259 VP8LBitWriter* const bw, const uint8_t* code_length_bitdepth) {
274 VP8LWriteBits(bw, 4, codes_to_store - 4);
276 VP8LWriteBits(bw, 3, code_length_bitdepth[kStorageOrder[i]]);
297 VP8LBitWriter* const bw,
304 VP8LWriteBits(bw, huffman_code->code_lengths[ix], huffman_code->codes[ix]);
307 VP8LWriteBits(bw, 2, extra_bits);
310 VP8LWriteBits(bw, 3, extra_bits);
313 VP8LWriteBits(bw, 7, extra_bits);
320 static void StoreFullHuffmanCode(VP8LBitWriter* const bw, argument
333 VP8LWriteBits(bw,
258 StoreHuffmanTreeOfHuffmanTreeToBitMask( VP8LBitWriter* const bw, const uint8_t* code_length_bitdepth) argument
296 StoreHuffmanTreeToBitMask( VP8LBitWriter* const bw, const HuffmanTreeToken* const tokens, const int num_tokens, const HuffmanTreeCode* const huffman_code) argument
383 StoreHuffmanCode(VP8LBitWriter* const bw, HuffmanTree* const huff_tree, HuffmanTreeToken* const tokens, const HuffmanTreeCode* const huffman_code) argument
422 WriteHuffmanCode(VP8LBitWriter* const bw, const HuffmanTreeCode* const code, int code_index) argument
430 StoreImageToBitMask( VP8LBitWriter* const bw, int width, int histo_bits, VP8LBackwardRefs* const refs, const uint16_t* histogram_symbols, const HuffmanTreeCode* const huffman_codes) argument
481 EncodeImageNoHuffman(VP8LBitWriter* const bw, const uint32_t* const argb, VP8LHashChain* const hash_chain, VP8LBackwardRefs refs_array[2], int width, int height, int quality) argument
555 EncodeImageInternal(VP8LBitWriter* const bw, const uint32_t* const argb, VP8LHashChain* const hash_chain, VP8LBackwardRefs refs_array[2], int width, int height, int quality, int cache_bits, int histogram_bits) argument
701 EvalAndApplySubtractGreen(VP8LEncoder* const enc, int width, int height, VP8LBitWriter* const bw) argument
739 ApplyPredictFilter(const VP8LEncoder* const enc, int width, int height, int quality, VP8LBitWriter* const bw) argument
759 ApplyCrossColorFilter(const VP8LEncoder* const enc, int width, int height, int quality, VP8LBitWriter* const bw) argument
796 WriteImageSize(const WebPPicture* const pic, VP8LBitWriter* const bw) argument
807 WriteRealAlphaAndVersion(VP8LBitWriter* const bw, int has_alpha) argument
813 WriteImage(const WebPPicture* const pic, VP8LBitWriter* const bw, size_t* const coded_size) argument
932 EncodePalette(VP8LBitWriter* const bw, VP8LEncoder* const enc, int quality) argument
1047 VP8LEncodeStream(const WebPConfig* const config, const WebPPicture* const picture, VP8LBitWriter* const bw) argument
1157 VP8LBitWriter bw; local
[all...]
H A Dalpha.c50 VP8LBitWriter* const bw,
86 ok = (VP8LEncodeStream(&config, &picture, bw) == VP8_ENC_OK);
88 ok = ok && !bw->error_;
90 VP8LBitWriterDestroy(bw);
102 VP8BitWriter bw; member in struct:__anon16954
106 // This function always returns an initialized 'bw' object, even upon error.
164 VP8BitWriterInit(&result->bw, ALPHA_HEADER_LEN + output_size);
165 ok = ok && VP8BitWriterAppend(&result->bw, &header, ALPHA_HEADER_LEN);
166 ok = ok && VP8BitWriterAppend(&result->bw, output, output_size);
171 ok = ok && !result->bw
48 EncodeLossless(const uint8_t* const data, int width, int height, int effort_level, VP8LBitWriter* const bw, WebPAuxStats* const stats) argument
[all...]
H A Dvp8li.h69 VP8LBitWriter* const bw);
H A Dframe.c227 static int PutCoeffs(VP8BitWriter* const bw, int ctx, const VP8Residual* res) { argument
231 if (!VP8PutBit(bw, res->last >= 0, p[0])) {
239 if (!VP8PutBit(bw, v != 0, p[1])) {
243 if (!VP8PutBit(bw, v > 1, p[2])) {
246 if (!VP8PutBit(bw, v > 4, p[3])) {
247 if (VP8PutBit(bw, v != 2, p[4]))
248 VP8PutBit(bw, v == 4, p[5]);
249 } else if (!VP8PutBit(bw, v > 10, p[6])) {
250 if (!VP8PutBit(bw, v > 6, p[7])) {
251 VP8PutBit(bw,
299 CodeResiduals(VP8BitWriter* const bw, VP8EncIterator* const it, const VP8ModeScore* const rd) argument
[all...]
/external/e2fsprogs/debugfs/
H A Dicheck.c40 struct block_walk_struct *bw = (struct block_walk_struct *) private; variable in typeref:struct:block_walk_struct
43 for (i=0; i < bw->num_blocks; i++) {
44 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) {
45 bw->barray[i].ino = bw->inode;
46 bw->blocks_left--;
49 if (!bw->blocks_left)
57 struct block_walk_struct bw; local
73 bw
[all...]
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Dintel_tex_format.c58 GLuint bw, bh; local
62 _mesa_get_format_block_size(mesaFormat, &bw, &bh);
64 return block_size / bw;
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dintel_tex_format.c58 GLuint bw, bh; local
62 _mesa_get_format_block_size(mesaFormat, &bw, &bh);
64 return block_size / bw;
/external/mesa3d/src/mesa/drivers/dri/intel/
H A Dintel_tex_format.c58 GLuint bw, bh; local
62 _mesa_get_format_block_size(mesaFormat, &bw, &bh);
64 return block_size / bw;
/external/toybox/toys/other/
H A Dbzcat.c131 * 32 bits : bw->headerCRC
144 static int read_block_header(struct bunzip_data *bd, struct bwdata *bw) argument
153 bw->headerCRC = get_bits(bd,32);
163 if ((bw->origPtr = get_bits(bd,24)) > bd->dbufSize) return RETVAL_DATA_ERROR;
302 static int read_huffman_data(struct bunzip_data *bd, struct bwdata *bw) argument
307 unsigned int *dbuf = bw->dbuf;
315 byteCount = bw->byteCount;
418 if (bw->origPtr >= (bw->writeCount = dbufCount)) return RETVAL_DATA_ERROR;
433 void burrows_wheeler_prep(struct bunzip_data *bd, struct bwdata *bw) argument
496 write_bunzip_data(struct bunzip_data *bd, struct bwdata *bw, int out_fd, char *outbuf, int len) argument
[all...]
/external/libvpx/libvpx/test/
H A Dvp9_boolcoder_test.cc52 vpx_writer bw; local
54 vpx_start_encode(&bw, bw_buffer);
63 vpx_write(&bw, bit, static_cast<int>(probas[i]));
66 vpx_stop_encode(&bw);
H A Dvp8_boolcoder_test.cc80 BOOL_CODER bw; local
82 vp8_start_encode(&bw, bw_buffer, bw_buffer + kBufferSize);
91 vp8_encode_bool(&bw, bit, static_cast<int>(probas[i]));
94 vp8_stop_encode(&bw);
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_format_etc.c28 const unsigned bw = 4, bh = 4, bs = 8, comps = 4; local
35 for (x = 0; x < width; x+= bw) {
42 for (i = 0; i < bw; i++) {
68 const unsigned bw = 4, bh = 4; local
72 assert(i < bw && j < bh);
H A Du_format_rgtc.c53 const unsigned bw = 4, bh = 4, comps = 4; local
59 for(x = 0; x < width; x += bw) {
61 for(i = 0; i < bw; ++i) {
79 const unsigned bw = 4, bh = 4, bytes_per_block = 8; local
84 for(x = 0; x < width; x += bw) {
85 uint8_t tmp[4][4]; /* [bh][bw][comps] */
87 for(i = 0; i < bw; ++i) {
126 const unsigned bw = 4, bh = 4, bytes_per_block = 8; local
131 for(x = 0; x < width; x += bw) {
132 uint8_t tmp[4][4]; /* [bh][bw][comp
177 const unsigned bw = 4, bh = 4, bytes_per_block = 8; local
245 const unsigned bw = 4, bh = 4, comps = 4; local
270 const unsigned bw = 4, bh = 4, bytes_per_block = 16; local
295 const unsigned bw = 4, bh = 4, bytes_per_block = 16; local
409 const unsigned bw = 4, bh = 4, bytes_per_block = 16; local
[all...]
/external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/src/gl-matrix/
H A 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
[all...]
/external/openssh/
H A Dmisc.c909 bandwidth_limit_init(struct bwlimit *bw, u_int64_t kbps, size_t buflen) argument
911 bw->buflen = buflen;
912 bw->rate = kbps;
913 bw->thresh = bw->rate;
914 bw->lamt = 0;
915 timerclear(&bw->bwstart);
916 timerclear(&bw->bwend);
921 bandwidth_limit(struct bwlimit *bw, size_t read_len) argument
926 if (!timerisset(&bw
[all...]
/external/mesa3d/src/mesa/main/
H A Dtexcompress.c451 GLuint bw, bh; local
454 _mesa_get_format_block_size(mesaFormat, &bw, &bh);
456 ASSERT(col % bw == 0);
459 offset = ((width + bw - 1) / bw) * (row / bh) + col / bw;
480 GLuint bytes, bw, bh; local
483 _mesa_get_format_block_size(format, &bw, &bh);
/external/fio/tools/plot/samples/
H A DMakefile10 ./fio2gnuplot.py -p 'm2sw1-128k-*-read-para*bw.log' -g
18 rm -rf m2sw1-128k-read-para-bw m2sw1-128k-read-para-iops

Completed in 1623 milliseconds

12345