Home
last modified time | relevance | path

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

123

/external/flac/libFLAC/
Dbitwriter.c84 #define FLAC__TOTAL_BITS(bw) (FLAC__WORDS_TO_BITS((bw)->words) + (bw)->bits) argument
120 static FLAC__bool bitwriter_grow_(FLAC__BitWriter *bw, unsigned bits_to_add) in bitwriter_grow_() argument
125 FLAC__ASSERT(0 != bw); in bitwriter_grow_()
126 FLAC__ASSERT(0 != bw->buffer); in bitwriter_grow_()
129 …new_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WO… in bitwriter_grow_()
134 if(bw->capacity >= new_capacity) in bitwriter_grow_()
138 if((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT) in bitwriter_grow_()
139 …new_capacity += FLAC__BITWRITER_DEFAULT_INCREMENT - ((new_capacity - bw->capacity) % FLAC__BITWRIT… in bitwriter_grow_()
141 FLAC__ASSERT(0 == (new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT); in bitwriter_grow_()
142 FLAC__ASSERT(new_capacity > bw->capacity); in bitwriter_grow_()
[all …]
Dstream_encoder_framing.c47 static FLAC__bool add_entropy_coding_method_(FLAC__BitWriter *bw, const FLAC__EntropyCodingMethod *…
48 static FLAC__bool add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[],…
50 FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__BitWriter *bw) in FLAC__add_metadata_block() argument
55 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->is_last, FLAC__STREAM_METADATA_IS_LAST_LEN)) in FLAC__add_metadata_block()
58 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/webp/src/enc/
Dbit_writer.c23 static int BitWriterResize(VP8BitWriter* const bw, size_t extra_size) { in BitWriterResize() argument
26 const size_t needed_size = bw->pos_ + extra_size; in BitWriterResize()
27 if (needed_size <= bw->max_pos_) return 1; in BitWriterResize()
28 new_size = 2 * bw->max_pos_; in BitWriterResize()
34 bw->error_ = 1; in BitWriterResize()
37 if (bw->pos_ > 0) memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize()
38 free(bw->buf_); in BitWriterResize()
39 bw->buf_ = new_buf; in BitWriterResize()
40 bw->max_pos_ = new_size; in BitWriterResize()
44 static void kFlush(VP8BitWriter* const bw) { in kFlush() argument
[all …]
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.c80 static void PutSegmentHeader(VP8BitWriter* const bw, in PutSegmentHeader() argument
84 if (VP8PutBitUniform(bw, (hdr->num_segments_ > 1))) { in PutSegmentHeader()
88 VP8PutBitUniform(bw, hdr->update_map_); in PutSegmentHeader()
89 if (VP8PutBitUniform(bw, update_data)) { in PutSegmentHeader()
91 VP8PutBitUniform(bw, 1); // (segment_feature_mode = 1. Paragraph 9.3.) in PutSegmentHeader()
93 VP8PutSignedValue(bw, enc->dqm_[s].quant_, 7); in PutSegmentHeader()
96 VP8PutSignedValue(bw, enc->dqm_[s].fstrength_, 6); in PutSegmentHeader()
101 if (VP8PutBitUniform(bw, (proba->segments_[s] != 255u))) { in PutSegmentHeader()
102 VP8PutValue(bw, proba->segments_[s], 8); in PutSegmentHeader()
110 static void PutFilterHeader(VP8BitWriter* const bw, in PutFilterHeader() argument
[all …]
Dbit_writer.h36 int VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size);
37 uint8_t* VP8BitWriterFinish(VP8BitWriter* const bw);
38 int VP8PutBit(VP8BitWriter* const bw, int bit, int prob);
39 int VP8PutBitUniform(VP8BitWriter* const bw, int bit);
40 void VP8PutValue(VP8BitWriter* const bw, int value, int nb_bits);
41 void VP8PutSignedValue(VP8BitWriter* const bw, int value, int nb_bits);
42 int VP8BitWriterAppend(VP8BitWriter* const bw,
46 static inline uint64_t VP8BitWriterPos(const VP8BitWriter* const bw) { in VP8BitWriterPos() argument
47 return (uint64_t)(bw->pos_ + bw->run_) * 8 + 8 + bw->nb_bits_; in VP8BitWriterPos()
50 static inline uint8_t* VP8BitWriterBuf(const VP8BitWriter* const bw) { in VP8BitWriterBuf() argument
[all …]
Dframe.c317 static int PutCoeffs(VP8BitWriter* const bw, int ctx, const VP8Residual* res) { in PutCoeffs() argument
320 if (!VP8PutBit(bw, res->last >= 0, p[0])) { in PutCoeffs()
328 if (!VP8PutBit(bw, v != 0, p[1])) { in PutCoeffs()
332 if (!VP8PutBit(bw, v > 1, p[2])) { in PutCoeffs()
335 if (!VP8PutBit(bw, v > 4, p[3])) { in PutCoeffs()
336 if (VP8PutBit(bw, v != 2, p[4])) in PutCoeffs()
337 VP8PutBit(bw, v == 4, p[5]); in PutCoeffs()
338 } else if (!VP8PutBit(bw, v > 10, p[6])) { in PutCoeffs()
339 if (!VP8PutBit(bw, v > 6, p[7])) { in PutCoeffs()
340 VP8PutBit(bw, v == 6, 159); in PutCoeffs()
[all …]
/external/flac/libFLAC/include/private/
Dbitwriter.h48 void FLAC__bitwriter_delete(FLAC__BitWriter *bw);
49 FLAC__bool FLAC__bitwriter_init(FLAC__BitWriter *bw);
50 void FLAC__bitwriter_free(FLAC__BitWriter *bw); /* does not 'free(buffer)' */
51 void FLAC__bitwriter_clear(FLAC__BitWriter *bw);
52 void FLAC__bitwriter_dump(const FLAC__BitWriter *bw, FILE *out);
59 FLAC__bool FLAC__bitwriter_get_write_crc16(FLAC__BitWriter *bw, FLAC__uint16 *crc);
60 FLAC__bool FLAC__bitwriter_get_write_crc8(FLAC__BitWriter *bw, FLAC__byte *crc);
65 FLAC__bool FLAC__bitwriter_is_byte_aligned(const FLAC__BitWriter *bw);
66 unsigned FLAC__bitwriter_get_input_bits_unconsumed(const FLAC__BitWriter *bw); /* can be called any…
75 FLAC__bool FLAC__bitwriter_get_buffer(FLAC__BitWriter *bw, const FLAC__byte **buffer, size_t *bytes…
[all …]
Dstream_encoder_framing.h38 FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__BitWriter *bw);
39 FLAC__bool FLAC__frame_add_header(const FLAC__FrameHeader *header, FLAC__BitWriter *bw);
40 …AC__Subframe_Constant *subframe, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
41 …rame, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
42 …rame, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
43 …tim *subframe, unsigned samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
/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/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
DBufferedWriterTest.java30 BufferedWriter bw; field in BufferedWriterTest
41 bw = new BufferedWriter(sw); in test_ConstructorLjava_io_Writer()
85 bw.close(); in test_close()
86 bw.write(testString); in test_close()
95 BufferedWriter bw = new BufferedWriter(mw); in test_close() local
96 bw.write('a'); in test_close()
97 bw.close(); in test_close()
115 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new ByteArrayOutputStream())); in test_close2() local
116 bw.close(); in test_close2()
123 bw.write("This should not cause a flush"); in test_flush()
[all …]
DFileReaderTest.java33 BufferedWriter bw; field in FileReaderTest
43 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_io_File()
44 bw.write(" After test string", 0, 18); in test_ConstructorLjava_io_File()
45 bw.close(); in test_ConstructorLjava_io_File()
58 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_io_FileDescriptor()
59 bw.write(" After test string", 0, 18); in test_ConstructorLjava_io_FileDescriptor()
60 bw.close(); in test_ConstructorLjava_io_FileDescriptor()
75 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_lang_String()
76 bw.write(" After test string", 0, 18); in test_ConstructorLjava_lang_String()
77 bw.close(); in test_ConstructorLjava_lang_String()
[all …]
DFileWriterTest.java37 BufferedWriter bw; field in FileWriterTest
52 bw = new BufferedWriter(new FileWriter(f)); in test_ConstructorLjava_io_File()
53 bw.write(" After test string", 0, 18); in test_ConstructorLjava_io_File()
54 bw.close(); in test_ConstructorLjava_io_File()
125 bw = new BufferedWriter(new FileWriter(f.getPath())); in test_ConstructorLjava_lang_String()
126 bw.write(" After test string", 0, 18); in test_ConstructorLjava_lang_String()
127 bw.close(); in test_ConstructorLjava_lang_String()
143 bw = new BufferedWriter(new FileWriter(f.getPath(), true)); in test_ConstructorLjava_lang_StringZ()
144 bw.write(" After test string", 0, 18); in test_ConstructorLjava_lang_StringZ()
145 bw.close(); in test_ConstructorLjava_lang_StringZ()
[all …]
/external/openssh/
Dmisc.c859 bandwidth_limit_init(struct bwlimit *bw, u_int64_t kbps, size_t buflen) in bandwidth_limit_init() argument
861 bw->buflen = buflen; in bandwidth_limit_init()
862 bw->rate = kbps; in bandwidth_limit_init()
863 bw->thresh = bw->rate; in bandwidth_limit_init()
864 bw->lamt = 0; in bandwidth_limit_init()
865 timerclear(&bw->bwstart); in bandwidth_limit_init()
866 timerclear(&bw->bwend); in bandwidth_limit_init()
871 bandwidth_limit(struct bwlimit *bw, size_t read_len) in bandwidth_limit() argument
876 if (!timerisset(&bw->bwstart)) { in bandwidth_limit()
877 gettimeofday(&bw->bwstart, NULL); in bandwidth_limit()
[all …]
/external/genext2fs/
Dgenext2fs.c958 init_bw(blockwalker *bw) in init_bw() argument
960 bw->bnum = 0; in init_bw()
961 bw->bpdir = EXT2_INIT_BLOCK; in init_bw()
973 walk_bw(filesystem *fs, uint32 nod, blockwalker *bw, int32 *create, uint32 hole) in walk_bw() argument
980 if(bw->bnum >= get_nod(fs, nod)->i_blocks / INOBLK) in walk_bw()
991 if(bw->bpdir == EXT2_INIT_BLOCK) in walk_bw()
993 bkref = &get_nod(fs, nod)->i_block[bw->bpdir = 0]; in walk_bw()
1000 else if(bw->bpdir < EXT2_NDIR_BLOCKS) in walk_bw()
1002 bkref = &get_nod(fs, nod)->i_block[++bw->bpdir]; in walk_bw()
1009 else if(bw->bpdir == EXT2_NDIR_BLOCKS) in walk_bw()
[all …]
/external/skia/src/core/
DSkBlitter_A8.cpp104 static inline void blend_8_pixels(U8CPU bw, uint8_t dst[], U8CPU sa, in blend_8_pixels() argument
106 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); in blend_8_pixels()
107 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); in blend_8_pixels()
108 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); in blend_8_pixels()
109 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); in blend_8_pixels()
110 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); in blend_8_pixels()
111 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); in blend_8_pixels()
112 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)); in blend_8_pixels()
113 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale)); in blend_8_pixels()
/external/kernel-headers/original/asm-x86/
Dio_32.h276 #define __BUILDIO(bwl,bw,type) \ argument
296 #define __BUILDIO(bwl,bw,type) \ argument
306 #define BUILDIO(bwl,bw,type) \ argument
308 __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); \
312 __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); \
324 __BUILDIO(bwl,bw,type) \
/external/llvm/test/CodeGen/ARM/
Dcarry.ll31 %bw = zext i32 %bl to i64
32 %cw = add i64 %aw, %bw
35 %dw = add i64 %ch, %bw
/external/tcpdump/
Dprint-rsvp.c482 } bw; in rsvp_intserv_print() local
520 bw.i = EXTRACT_32BITS(tptr+4); in rsvp_intserv_print()
521 printf("\n\t\tPath b/w estimate: %.10g Mbps", bw.f/125000); in rsvp_intserv_print()
572 bw.i = EXTRACT_32BITS(tptr+4); in rsvp_intserv_print()
573 printf("\n\t\tToken Bucket Rate: %.10g Mbps", bw.f/125000); in rsvp_intserv_print()
574 bw.i = EXTRACT_32BITS(tptr+8); in rsvp_intserv_print()
575 printf("\n\t\tToken Bucket Size: %.10g bytes", bw.f); in rsvp_intserv_print()
576 bw.i = EXTRACT_32BITS(tptr+12); in rsvp_intserv_print()
577 printf("\n\t\tPeak Data Rate: %.10g Mbps", bw.f/125000); in rsvp_intserv_print()
595 bw.i = EXTRACT_32BITS(tptr+4); in rsvp_intserv_print()
[all …]
Dprint-ospf.c263 } bw; in ospf_print_lsa() local
626 bw.i = EXTRACT_32BITS(tptr); in ospf_print_lsa()
627 printf(", %.3f Mbps", bw.f*8/1000000 ); in ospf_print_lsa()
631 bw.i = EXTRACT_32BITS(tptr+te_class*4); in ospf_print_lsa()
634 bw.f*8/1000000 ); in ospf_print_lsa()
643 bw.i = EXTRACT_32BITS(tptr+4+te_class*4); in ospf_print_lsa()
646 bw.f*8/1000000 ); in ospf_print_lsa()
663 bw.i = EXTRACT_32BITS(tptr+4+(priority_level*4)); in ospf_print_lsa()
666 bw.f*8/1000000 ); in ospf_print_lsa()
680 bw.i = EXTRACT_32BITS(tptr); in ospf_print_lsa()
[all …]
Dprint-lmp.c375 } bw; in lmp_print() local
609 bw.i = EXTRACT_32BITS(obj_tptr+offset+4); in lmp_print()
611 bw.f*8/1000000); in lmp_print()
612 bw.i = EXTRACT_32BITS(obj_tptr+offset+8); in lmp_print()
614 bw.f*8/1000000); in lmp_print()
655 bw.i = EXTRACT_32BITS(obj_tptr+12); in lmp_print()
656 printf("\n\t Transmission Rate: %.3f Mbps",bw.f*8/1000000); in lmp_print()
/external/aac/libSBRdec/src/
Dlpp_tran.cpp244 FIXP_SGL bw = FL2FXCONST_SGL(0.0f); in lppTransposer() local
632 bw = FX_DBL2FX_SGL(bwVector[bwIndex[patch]]); in lppTransposer()
634 a0r = FX_DBL2FX_SGL(fMult(bw,alphar[0])); /* Apply current bandwidth expansion factor */ in lppTransposer()
638 a0i = FX_DBL2FX_SGL(fMult(bw,alphai[0])); in lppTransposer()
639 bw = FX_DBL2FX_SGL(fPow2(bw)); in lppTransposer()
640 a1r = FX_DBL2FX_SGL(fMult(bw,alphar[1])); in lppTransposer()
642 a1i = FX_DBL2FX_SGL(fMult(bw,alphai[1])); in lppTransposer()
650 if ( bw <= FL2FXCONST_SGL(0.0f) ) { in lppTransposer()
/external/skia/gm/
Dgammatext.cpp19 const SkColor bw[] = { SK_ColorBLACK, SK_ColorWHITE }; in make_heatGradient() local
21 return SkGradientShader::CreateLinear(pts, bw, NULL, in make_heatGradient()
22 SK_ARRAY_COUNT(bw), in make_heatGradient()
/external/skia/tests/
DReadPixelsTest.cpp171 int bw = bitmap.width(); in checkRead() local
174 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bw, bh); in checkRead()
183 for (int bx = 0; bx < bw; ++bx) { in checkRead()
201 REPORTER_ASSERT(reporter, getBitmapColor(bx, by, bw, bh) == pixel); in checkRead()
202 if (getBitmapColor(bx, by, bw, bh) != pixel) { in checkRead()
/external/qemu/distrib/sdl-1.2.12/src/video/
DSDL_bmp.c410 const int bw = surface->w*surface->format->BytesPerPixel; in SDL_SaveBMP_RW() local
484 pad = ((bw%4) ? (4-(bw%4)) : 0); in SDL_SaveBMP_RW()
487 if ( SDL_RWwrite(dst, bits, 1, bw) != bw) { in SDL_SaveBMP_RW()

123