/external/chromium_org/third_party/brotli/src/brotli/dec/ |
D | bit_reader.h | 44 uint8_t buf_[BROTLI_IBUF_SIZE]; member 78 br->val_ |= ((uint64_t)br->buf_[br->pos_ & BROTLI_IBUF_MASK]) << 56; in ShiftBytes() 120 if (dst == br->buf_) { in BrotliReadMoreInput() 123 UNALIGNED_COPY64(br->buf_ + BROTLI_IBUF_SIZE - 32, br->buf_); in BrotliReadMoreInput() 124 UNALIGNED_COPY64(br->buf_ + BROTLI_IBUF_SIZE - 24, br->buf_ + 8); in BrotliReadMoreInput() 125 UNALIGNED_COPY64(br->buf_ + BROTLI_IBUF_SIZE - 16, br->buf_ + 16); in BrotliReadMoreInput() 126 UNALIGNED_COPY64(br->buf_ + BROTLI_IBUF_SIZE - 8, br->buf_ + 24); in BrotliReadMoreInput() 128 memcpy(br->buf_ + (BROTLI_READ_SIZE << 1), br->buf_, 32); in BrotliReadMoreInput() 130 br->buf_ptr_ = br->buf_ + BROTLI_READ_SIZE; in BrotliReadMoreInput() 132 br->buf_ptr_ = br->buf_; in BrotliReadMoreInput() [all …]
|
/external/webp/src/utils/ |
D | bit_writer.c | 46 assert(bw->buf_ != NULL); in BitWriterResize() 47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize() 49 WebPSafeFree(bw->buf_); in BitWriterResize() 50 bw->buf_ = new_buf; in BitWriterResize() 67 if (pos > 0) bw->buf_[pos - 1]++; in kFlush() 71 for (; bw->run_ > 0; --bw->run_) bw->buf_[pos++] = value; in kFlush() 73 bw->buf_[pos++] = bits; in kFlush() 169 bw->buf_ = NULL; in VP8BitWriterInit() 177 return bw->buf_; in VP8BitWriterFinish() 185 memcpy(bw->buf_ + bw->pos_, data, size); in VP8BitWriterAppend() [all …]
|
D | bit_reader.c | 29 br->buf_ = start; in VP8InitBitReader() 38 if (br->buf_ != NULL) { in VP8RemapBitReader() 39 br->buf_ += offset; in VP8RemapBitReader() 77 assert(br != NULL && br->buf_ != NULL); in VP8LoadFinalBytes() 79 if (br->buf_ < br->buf_end_) { in VP8LoadFinalBytes() 81 br->value_ = (bit_t)(*br->buf_++) | (br->value_ << 8); in VP8LoadFinalBytes() 151 br->buf_ = start; in VP8LInitBitReader() 169 br->buf_ = buf; in VP8LBitReaderSetBuffer() 178 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (LBITS - 8); in ShiftBytes() 194 br->val_ |= (vp8l_val_t)*(const uint32_t*)(br->buf_ + br->pos_) << in VP8LFillBitWindow()
|
D | bit_reader_inl.h | 58 assert(br != NULL && br->buf_ != NULL); in VP8LoadNewBytes() 60 if (br->buf_ + sizeof(lbit_t) <= br->buf_end_) { in VP8LoadNewBytes() 65 memcpy(&in_bits, br->buf_, sizeof(in_bits)); in VP8LoadNewBytes() 69 lbit_t* p_buf_ = (lbit_t*)br->buf_; in VP8LoadNewBytes() 81 const lbit_t in_bits = *(const lbit_t*)br->buf_; in VP8LoadNewBytes() 83 br->buf_ += BITS >> 3; in VP8LoadNewBytes()
|
D | bit_writer.h | 32 uint8_t* buf_; // internal buffer. Re-allocated regularly. Not owned. member 62 return bw->buf_; in VP8BitWriterBuf() 85 uint8_t* buf_; // start of buffer member 97 return (bw->cur_ - bw->buf_) + ((bw->used_ + 7) >> 3); in VP8LBitWriterNumBytes()
|
/external/chromium_org/third_party/libwebp/utils/ |
D | bit_writer.c | 46 assert(bw->buf_ != NULL); in BitWriterResize() 47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize() 49 WebPSafeFree(bw->buf_); in BitWriterResize() 50 bw->buf_ = new_buf; in BitWriterResize() 67 if (pos > 0) bw->buf_[pos - 1]++; in kFlush() 71 for (; bw->run_ > 0; --bw->run_) bw->buf_[pos++] = value; in kFlush() 73 bw->buf_[pos++] = bits; in kFlush() 169 bw->buf_ = NULL; in VP8BitWriterInit() 177 return bw->buf_; in VP8BitWriterFinish() 185 memcpy(bw->buf_ + bw->pos_, data, size); in VP8BitWriterAppend() [all …]
|
D | bit_reader.c | 29 br->buf_ = start; in VP8InitBitReader() 38 if (br->buf_ != NULL) { in VP8RemapBitReader() 39 br->buf_ += offset; in VP8RemapBitReader() 77 assert(br != NULL && br->buf_ != NULL); in VP8LoadFinalBytes() 79 if (br->buf_ < br->buf_end_) { in VP8LoadFinalBytes() 81 br->value_ = (bit_t)(*br->buf_++) | (br->value_ << 8); in VP8LoadFinalBytes() 151 br->buf_ = start; in VP8LInitBitReader() 169 br->buf_ = buf; in VP8LBitReaderSetBuffer() 178 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (LBITS - 8); in ShiftBytes() 194 br->val_ |= (vp8l_val_t)*(const uint32_t*)(br->buf_ + br->pos_) << in VP8LFillBitWindow()
|
D | bit_reader_inl.h | 59 assert(br != NULL && br->buf_ != NULL); in VP8LoadNewBytes() 61 if (br->buf_ + sizeof(lbit_t) <= br->buf_end_) { in VP8LoadNewBytes() 66 memcpy(&in_bits, br->buf_, sizeof(in_bits)); in VP8LoadNewBytes() 70 lbit_t* p_buf_ = (lbit_t*)br->buf_; in VP8LoadNewBytes() 82 const lbit_t in_bits = *(const lbit_t*)br->buf_; in VP8LoadNewBytes() 84 br->buf_ += BITS >> 3; in VP8LoadNewBytes()
|
D | bit_writer.h | 32 uint8_t* buf_; // internal buffer. Re-allocated regularly. Not owned. member 62 return bw->buf_; in VP8BitWriterBuf() 85 uint8_t* buf_; // start of buffer member 97 return (bw->cur_ - bw->buf_) + ((bw->used_ + 7) >> 3); in VP8LBitWriterNumBytes()
|
/external/chromium_org/net/url_request/ |
D | url_fetcher_response_writer_unittest.cc | 28 buf_ = new StringIOBuffer(kData); in SetUp() 32 scoped_refptr<StringIOBuffer> buf_; member in net::URLFetcherStringWriterTest 41 rv = writer_->Write(buf_.get(), buf_->size(), callback.callback()); in TEST_F() 42 EXPECT_EQ(buf_->size(), callback.GetResult(rv)); in TEST_F() 62 buf_ = new StringIOBuffer(kData); in SetUp() 68 scoped_refptr<StringIOBuffer> buf_; member in net::URLFetcherFileWriterTest 77 rv = writer_->Write(buf_.get(), buf_->size(), callback.callback()); in TEST_F() 78 EXPECT_EQ(buf_->size(), callback.GetResult(rv)); in TEST_F() 100 rv = writer_->Write(buf_.get(), buf_->size(), callback.callback()); in TEST_F() 101 EXPECT_EQ(buf_->size(), callback.GetResult(rv)); in TEST_F() [all …]
|
/external/chromium_org/content/browser/loader/ |
D | redirect_to_file_resource_handler.cc | 133 buf_(new net::GrowableIOBuffer()), in RedirectToFileResourceHandler() 191 if (buf_->capacity() < next_buffer_size_) in OnWillRead() 192 buf_->SetCapacity(next_buffer_size_); in OnWillRead() 197 *buf = buf_.get(); in OnWillRead() 198 *buf_size = buf_->RemainingCapacity(); in OnWillRead() 210 int new_offset = buf_->offset() + bytes_read; in OnReadCompleted() 211 DCHECK(new_offset <= buf_->capacity()); in OnReadCompleted() 212 buf_->set_offset(new_offset); in OnReadCompleted() 217 if (buf_->capacity() == bytes_read) { in OnReadCompleted() 310 if (write_cursor_ == buf_->offset()) { in WriteMore() [all …]
|
/external/chromium_org/base/files/ |
D | dir_reader_linux.h | 35 memset(buf_, 0, sizeof(buf_)); in DirReaderLinux() 52 linux_dirent* dirent = reinterpret_cast<linux_dirent*>(&buf_[offset_]); in Next() 59 const int r = syscall(__NR_getdents64, fd_, buf_, sizeof(buf_)); in Next() 76 reinterpret_cast<const linux_dirent*>(&buf_[offset_]); in name() 90 unsigned char buf_[512]; variable
|
/external/flac/libFLAC/ |
D | md5.c | 276 FLAC__byte *buf_ = mbuf->p8; in format_input_() local 291 *buf_++ = signal[0][sample]; in format_input_() 296 *buf_++ = signal[0][sample]; in format_input_() 297 *buf_++ = signal[1][sample]; in format_input_() 303 *buf_++ = signal[0][sample]; in format_input_() 304 *buf_++ = signal[1][sample]; in format_input_() 305 *buf_++ = signal[2][sample]; in format_input_() 306 *buf_++ = signal[3][sample]; in format_input_() 312 *buf_++ = signal[0][sample]; in format_input_() 313 *buf_++ = signal[1][sample]; in format_input_() [all …]
|
/external/chromium_org/tools/traceline/traceline/ |
D | assembler.h | 164 memcpy(buf_, x.buf_, sizeof(buf_)); in Operand() 194 buf_[0] = (buf_[0] & ~0x38) | static_cast<char>(reg << 3); in set_reg() 197 char* data() { return buf_; } in data() 274 return ((buf_[0] & 0xF8) == 0xC0) // addressing mode is register only. in is_reg() 275 && ((buf_[0] & 0x07) == reg); // register codes match. in is_reg() 280 buf_[0] = mod << 6 | rm; in set_modrm() 287 buf_[1] = scale << 6 | index << 3 | base; in set_sib() 293 *reinterpret_cast<char*>(&buf_[len_++]) = disp; in set_disp8() 298 *reinterpret_cast<int*>(&buf_[len_]) = disp; in set_dispr() 305 char buf_[6]; variable [all …]
|
D | main.cc | 103 memset(buf_, 0, sizeof(buf_)); in Playground() 126 buf_, in CopyToRemote() 127 sizeof(buf_), in CopyToRemote() 135 buf_, in CopyFromRemote() 136 sizeof(buf_), in CopyFromRemote() 386 CodeBuffer cb(buf_ + kStubOffset); in PatchLoader() 423 CodeBuffer cb(buf_ + kStubOffset); in PatchCreateThread() 465 CodeBuffer cb(buf_ + kStubOffset); in PatchThreadBegin() 490 CodeBuffer cb(buf_ + kStubOffset); in PatchThreadBeginVista() 519 CodeBuffer cb(buf_ + kStubOffset); in PatchSetThreadName() [all …]
|
/external/chromium_org/mojo/public/cpp/bindings/lib/ |
D | message_builder.cc | 19 : buf_(sizeof(MessageHeader) + payload_size) { in MessageBuilder() 21 Allocate(&buf_, &header); in MessageBuilder() 30 uint32_t num_bytes = static_cast<uint32_t>(buf_.size()); in Finish() 31 message->AdoptData(num_bytes, static_cast<MessageData*>(buf_.Leak())); in Finish() 35 : buf_(size) { in MessageBuilder() 44 Allocate(&buf_, &header); in MessageWithRequestIDBuilder()
|
/external/chromium_org/crypto/ |
D | ghash.cc | 90 memset(&buf_[buf_used_], 0, sizeof(buf_)-buf_used_); in UpdateCiphertext() 91 UpdateBlocks(buf_, 1); in UpdateCiphertext() 108 memset(&buf_[buf_used_], 0, sizeof(buf_)-buf_used_); in Finish() 109 UpdateBlocks(buf_, 1); in Finish() 234 const size_t n = std::min(length, sizeof(buf_) - buf_used_); in Update() 235 memcpy(&buf_[buf_used_], data, n); in Update() 240 if (buf_used_ == sizeof(buf_)) { in Update() 241 UpdateBlocks(buf_, 1); in Update() 254 memcpy(buf_, data, length); in Update()
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
D | internal_logging.cc | 74 char buf_[kBufSize]; member in tcmalloc::Logger 80 state.p_ = state.buf_; in Log() 81 state.end_ = state.buf_ + sizeof(state.buf_); in Log() 98 int msglen = state.p_ - state.buf_; in Log() 100 (*log_message_writer)(state.buf_, msglen); in Log() 113 (*log_message_writer)(state.buf_, msglen); in Log() 180 const int r = perftools_vsnprintf(buf_, left_, format, ap); in printf() 190 buf_ += r; in printf()
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
D | internal_logging.cc | 75 char buf_[kBufSize]; member in tcmalloc::Logger 81 state.p_ = state.buf_; in Log() 82 state.end_ = state.buf_ + sizeof(state.buf_); in Log() 99 int msglen = state.p_ - state.buf_; in Log() 101 (*log_message_writer)(state.buf_, msglen); in Log() 114 (*log_message_writer)(state.buf_, msglen); in Log() 181 const int r = perftools_vsnprintf(buf_, left_, format, ap); in printf() 191 buf_ += r; in printf()
|
/external/libcxx/include/ |
D | __sso_allocator | 37 typename aligned_storage<sizeof(_Tp) * _Np>::type buf_; 56 return (pointer)&buf_; 62 if (__p == (pointer)&buf_) 70 bool operator==(__sso_allocator& __a) const {return &buf_ == &__a.buf_;} 72 bool operator!=(__sso_allocator& __a) const {return &buf_ != &__a.buf_;}
|
/external/chromium_org/media/formats/common/ |
D | offset_byte_queue.cc | 12 OffsetByteQueue::OffsetByteQueue() : buf_(NULL), size_(0), head_(0) {} in OffsetByteQueue() 17 buf_ = NULL; in Reset() 29 *buf = size_ > 0 ? buf_ : NULL; in Peek() 46 *buf = &buf_[offset - head()]; in PeekAt() 61 queue_.Peek(&buf_, &size_); in Sync()
|
/external/chromium_org/net/tools/dump_cache/ |
D | simple_cache_dumper.cc | 188 buf_ = new IOBufferWithSize(size); in DoReadHeaders() 189 return src_entry_->ReadData(0, 0, buf_.get(), size, io_callback_); in DoReadHeaders() 202 dst_entry_, 0, 0, buf_.get(), buf_->size(), io_callback_); in DoWriteHeaders() 227 buf_ = new IOBufferWithSize(size); in DoReadBody() 228 return src_entry_->ReadData(1, 0, buf_.get(), size, io_callback_); in DoReadBody() 241 dst_entry_, 1, 0, buf_.get(), buf_->size(), io_callback_); in DoWriteBody()
|
/external/chromium_org/third_party/libvpx/source/libvpx/test/ |
D | webm_video_source.h | 31 buf_(NULL), in WebMVideoSource() 65 const int status = webm_read_frame(webm_ctx_, &buf_, &buf_sz_, &buf_sz_); in FillFrame() 73 return end_of_file_ ? NULL : buf_; in cxdata() 82 uint8_t *buf_; variable
|
/external/webp/src/dec/ |
D | idec.c | 59 uint8_t* buf_; // We don't own this buffer in case WebPIUpdate() member 112 const uint8_t* const new_base = mem->buf_ + mem->start_; in DoRemap() 134 dec->parts_[last_part].buf_end_ = mem->buf_ + mem->end_; in DoRemap() 165 const uint8_t* const old_start = mem->buf_ + mem->start_; in AppendToMemBuffer() 184 WebPSafeFree(mem->buf_); in AppendToMemBuffer() 185 mem->buf_ = new_buf; in AppendToMemBuffer() 191 memcpy(mem->buf_ + mem->end_, data, data_size); in AppendToMemBuffer() 195 DoRemap(idec, mem->buf_ + mem->start_ - old_start); in AppendToMemBuffer() 202 const uint8_t* const old_buf = mem->buf_; in RemapMemBuffer() 208 mem->buf_ = (uint8_t*)data; in RemapMemBuffer() [all …]
|
/external/chromium_org/third_party/libwebp/dec/ |
D | idec.c | 59 uint8_t* buf_; // We don't own this buffer in case WebPIUpdate() member 112 const uint8_t* const new_base = mem->buf_ + mem->start_; in DoRemap() 134 dec->parts_[last_part].buf_end_ = mem->buf_ + mem->end_; in DoRemap() 165 const uint8_t* const old_start = mem->buf_ + mem->start_; in AppendToMemBuffer() 184 WebPSafeFree(mem->buf_); in AppendToMemBuffer() 185 mem->buf_ = new_buf; in AppendToMemBuffer() 191 memcpy(mem->buf_ + mem->end_, data, data_size); in AppendToMemBuffer() 195 DoRemap(idec, mem->buf_ + mem->start_ - old_start); in AppendToMemBuffer() 202 const uint8_t* const old_buf = mem->buf_; in RemapMemBuffer() 208 mem->buf_ = (uint8_t*)data; in RemapMemBuffer() [all …]
|