/external/webp/src/enc/ |
bit_writer.c | 23 static int BitWriterResize(VP8BitWriter* const bw, size_t extra_size) { 26 const size_t needed_size = bw->pos_ + extra_size; 27 if (needed_size <= bw->max_pos_) return 1; 28 new_size = 2 * bw->max_pos_; 34 bw->error_ = 1; 37 if (bw->pos_ > 0) memcpy(new_buf, bw->buf_, bw->pos_); 38 free(bw->buf_); 39 bw->buf_ = new_buf [all...] |
bit_writer.h | 36 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) { 47 return (uint64_t)(bw->pos_ + bw->run_) * 8 + 8 + bw->nb_bits_ [all...] |
tree.c | 270 static int PutI4Mode(VP8BitWriter* const bw, int mode, 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, mode != B_HD_PRED, prob[8]) 314 VP8BitWriter* const bw = &enc->bw_; local [all...] |
syntax.c | 80 static void PutSegmentHeader(VP8BitWriter* const bw, 84 if (VP8PutBitUniform(bw, (hdr->num_segments_ > 1))) { 88 VP8PutBitUniform(bw, hdr->update_map_); 89 if (VP8PutBitUniform(bw, update_data)) { 91 VP8PutBitUniform(bw, 1); // (segment_feature_mode = 1. Paragraph 9.3.) 93 VP8PutSignedValue(bw, enc->dqm_[s].quant_, 7); 96 VP8PutSignedValue(bw, enc->dqm_[s].fstrength_, 6); 101 if (VP8PutBitUniform(bw, (proba->segments_[s] != 255u))) { 102 VP8PutValue(bw, proba->segments_[s], 8); 110 static void PutFilterHeader(VP8BitWriter* const bw, 171 VP8BitWriter* const bw = &enc->bw_; local 206 VP8BitWriter* const bw = &enc->bw_; local 251 VP8BitWriter* const bw = &enc->bw_; local [all...] |
frame.c | 317 static int PutCoeffs(VP8BitWriter* const bw, int ctx, const VP8Residual* res) { 320 if (!VP8PutBit(bw, res->last >= 0, p[0])) { 328 if (!VP8PutBit(bw, v != 0, p[1])) { 332 if (!VP8PutBit(bw, v > 1, p[2])) { 335 if (!VP8PutBit(bw, v > 4, p[3])) { 336 if (VP8PutBit(bw, v != 2, p[4])) 337 VP8PutBit(bw, v == 4, p[5]); 338 } else if (!VP8PutBit(bw, v > 10, p[6])) { 339 if (!VP8PutBit(bw, v > 6, p[7])) { 340 VP8PutBit(bw, v == 6, 159) [all...] |
/external/flac/libFLAC/include/private/ |
bitwriter.h | 48 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); 57 * non-const *bw because they have to cal FLAC__bitwriter_get_buffer() 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 anytime, returns total # of bits unconsumed * [all...] |
stream_encoder_framing.h | 38 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 FLAC__bool FLAC__subframe_add_constant(const FLAC__Subframe_Constant *subframe, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw); 41 FLAC__bool FLAC__subframe_add_fixed(const FLAC__Subframe_Fixed *subframe, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw); 42 FLAC__bool FLAC__subframe_add_lpc(const FLAC__Subframe_LPC *subframe, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw); 43 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/ |
bitwriter.c | 84 #define FLAC__TOTAL_BITS(bw) (FLAC__WORDS_TO_BITS((bw)->words) + (bw)->bits) 120 static FLAC__bool bitwriter_grow_(FLAC__BitWriter *bw, unsigned bits_to_add) 125 FLAC__ASSERT(0 != bw); 126 FLAC__ASSERT(0 != bw->buffer); 129 new_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WORD); 134 if(bw->capacity >= new_capacity) 138 if((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT 162 FLAC__BitWriter *bw = (FLAC__BitWriter*)calloc(1, sizeof(FLAC__BitWriter)); local [all...] |
stream_encoder_framing.c | 47 static FLAC__bool add_entropy_coding_method_(FLAC__BitWriter *bw, const FLAC__EntropyCodingMethod *method); 48 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); 50 FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__BitWriter *bw) 55 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->is_last, FLAC__STREAM_METADATA_IS_LAST_LEN)) 58 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->type, FLAC__STREAM_METADATA_TYPE_LEN)) 71 if(!FLAC__bitwriter_write_raw_uint32(bw, i, FLAC__STREAM_METADATA_LENGTH_LEN)) 77 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.min_blocksize, FLAC__STREAM_METADATA_STREAMINFO_MIN_BLOCK_SIZE_LEN)) 80 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.max_blocksize, FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LEN)) 83 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.min_framesize, FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LEN)) 86 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.max_framesize, FLAC__STREAM_METADATA_STREAMINFO_MAX_FRAME_SIZE_LEN) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldBufferedWriterTest.java | 27 BufferedWriter bw; field in class:OldBufferedWriterTest 36 bw = new BufferedWriter(sw); 38 bw.write("Hi", 0, 2); 40 bw.flush(); 49 bw = new BufferedWriter(sw, 0); 55 bw = new BufferedWriter(sw, 10); 57 bw.write("Hi", 0, 2); 59 bw.flush(); 69 bw.close(); 70 bw.write(testString) [all...] |
/external/e2fsprogs/debugfs/ |
icheck.c | 40 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.barray = malloc(sizeof(struct block_info) * argc) [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
FileReaderTest.java | 33 BufferedWriter bw; field in class:FileReaderTest 43 bw = new BufferedWriter(new FileWriter(f.getPath())); 44 bw.write(" After test string", 0, 18); 45 bw.close(); 58 bw = new BufferedWriter(new FileWriter(f.getPath())); 59 bw.write(" After test string", 0, 18); 60 bw.close(); 75 bw = new BufferedWriter(new FileWriter(f.getPath())); 76 bw.write(" After test string", 0, 18); 77 bw.close() [all...] |
BufferedWriterTest.java | 30 BufferedWriter bw; field in class:BufferedWriterTest 41 bw = new BufferedWriter(sw); 85 bw.close(); 86 bw.write(testString); 95 BufferedWriter bw = new BufferedWriter(mw); local 96 bw.write('a'); 97 bw.close(); 115 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new ByteArrayOutputStream())); local 116 bw.close(); 123 bw.write("This should not cause a flush") [all...] |
FileWriterTest.java | 37 BufferedWriter bw; field in class:FileWriterTest 52 bw = new BufferedWriter(new FileWriter(f)); 53 bw.write(" After test string", 0, 18); 54 bw.close(); 125 bw = new BufferedWriter(new FileWriter(f.getPath())); 126 bw.write(" After test string", 0, 18); 127 bw.close(); 143 bw = new BufferedWriter(new FileWriter(f.getPath(), true)); 144 bw.write(" After test string", 0, 18); 145 bw.close() [all...] |
/bionic/libc/kernel/arch-x86/asm/ |
io_32.h | 25 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 26 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/development/ndk/platforms/android-9/arch-x86/include/asm/ |
io_32.h | 25 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 26 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/asm/ |
io_32.h | 25 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 26 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-x86/usr/include/asm/ |
io_32.h | 25 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 26 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/prebuilt/ndk/android-ndk-r6/platforms/android-9/arch-x86/usr/include/asm/ |
io_32.h | 25 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 26 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/external/genext2fs/ |
genext2fs.c | 958 init_bw(blockwalker *bw) 960 bw->bnum = 0; 961 bw->bpdir = EXT2_INIT_BLOCK; 973 walk_bw(filesystem *fs, uint32 nod, blockwalker *bw, int32 *create, uint32 hole) 980 if(bw->bnum >= get_nod(fs, nod)->i_blocks / INOBLK) 991 if(bw->bpdir == EXT2_INIT_BLOCK) 993 bkref = &get_nod(fs, nod)->i_block[bw->bpdir = 0]; 1000 else if(bw->bpdir < EXT2_NDIR_BLOCKS) 1002 bkref = &get_nod(fs, nod)->i_block[++bw->bpdir]; 1009 else if(bw->bpdir == EXT2_NDIR_BLOCKS 1208 blockwalker bw, lbw; local 1250 blockwalker bw; local 1322 blockwalker bw; local 1908 blockwalker bw; local 1942 blockwalker bw; local 2161 blockwalker bw; local 2174 blockwalker bw; local 2187 blockwalker bw; local 2216 blockwalker bw; local [all...] |
/frameworks/base/media/libstagefright/codecs/aacdec/ |
sbr_generate_high_freq.cpp | 707 Int32 bw; local 733 bw = BwVector[bwIndex]; 742 if (bw > 0 && (alphar[0][loBand] | alphar[1][loBand])) 745 a0r = fxp_mul32_Q29(bw, alphar[0][loBand]); 747 bw = fxp_mul32_Q31(bw, bw) << 2; 749 a1r = fxp_mul32_Q28(bw, alphar[1][loBand]); 936 Int32 bw; local 958 bw = BwVector[bwIndex] [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
SystemTest.java | 44 BufferedWriter bw = new BufferedWriter(sw); local 45 bw.newLine(); 46 bw.flush();
|
/external/kernel-headers/original/asm-x86/ |
io_32.h | 276 #define __BUILDIO(bwl,bw,type) \ 296 #define __BUILDIO(bwl,bw,type) \ 306 #define BUILDIO(bwl,bw,type) \ 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/skia/src/core/ |
SkBlitter_A8.cpp | 112 static inline void blend_8_pixels(U8CPU bw, uint8_t dst[], U8CPU sa, 114 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); 115 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); 116 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); 117 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); 118 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); 119 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); 120 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)); 121 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale));
|
/cts/tools/dx-tests/src/dxconvext/ |
ClassFileParser.java | 37 private BufferedWriter bw; // the writer to write the result to. field in class:ClassFileParser 106 bw = new BufferedWriter(w); 238 bw.close(); 252 bw.write(getIndent(cur_indent) + msg); 253 bw.newLine();
|