Home
last modified time | relevance | path

Searched refs:buf_ (Results 1 – 25 of 65) sorted by relevance

123

/third_party/flutter/skia/third_party/externals/libwebp/src/utils/
Dbit_writer_utils.c46 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 Flush()
71 for (; bw->run_ > 0; --bw->run_) bw->buf_[pos++] = value; in Flush()
73 bw->buf_[pos++] = bits & 0xff; in Flush()
170 bw->buf_ = NULL; in VP8BitWriterInit()
178 return bw->buf_; in VP8BitWriterFinish()
186 memcpy(bw->buf_ + bw->pos_, data, size); in VP8BitWriterAppend()
[all …]
Dbit_reader_utils.c27 br->buf_ = start; in VP8BitReaderSetBuffer()
48 if (br->buf_ != NULL) { in VP8RemapBitReader()
49 br->buf_ += offset; in VP8RemapBitReader()
88 assert(br != NULL && br->buf_ != NULL); in VP8LoadFinalBytes()
90 if (br->buf_ < br->buf_end_) { in VP8LoadFinalBytes()
92 br->value_ = (bit_t)(*br->buf_++) | (br->value_ << 8); in VP8LoadFinalBytes()
161 br->buf_ = start; in VP8LInitBitReader()
169 br->buf_ = buf; in VP8LBitReaderSetBuffer()
184 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (VP8L_LBITS - 8); in ShiftBytes()
199 br->val_ |= (vp8l_val_t)HToLE32(WebPMemToUint32(br->buf_ + br->pos_)) << in VP8LDoFillBitWindow()
[all …]
Dbit_reader_inl_utils.h59 assert(br != NULL && br->buf_ != NULL); in VP8LoadNewBytes()
61 if (br->buf_ < br->buf_max_) { in VP8LoadNewBytes()
67 lbit_t* p_buf_ = (lbit_t*)br->buf_; in VP8LoadNewBytes()
80 memcpy(&in_bits, br->buf_, sizeof(in_bits)); in VP8LoadNewBytes()
82 br->buf_ += BITS >> 3; in VP8LoadNewBytes()
Dbit_writer_utils.h32 uint8_t* buf_; // internal buffer. Re-allocated regularly. Not owned. member
63 return bw->buf_; in VP8BitWriterBuf()
92 uint8_t* buf_; // start of buffer member
104 return (bw->cur_ - bw->buf_) + ((bw->used_ + 7) >> 3); in VP8LBitWriterNumBytes()
/third_party/skia/third_party/externals/libwebp/src/utils/
Dbit_writer_utils.c46 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 Flush()
71 for (; bw->run_ > 0; --bw->run_) bw->buf_[pos++] = value; in Flush()
73 bw->buf_[pos++] = bits & 0xff; in Flush()
170 bw->buf_ = NULL; in VP8BitWriterInit()
178 return bw->buf_; in VP8BitWriterFinish()
186 memcpy(bw->buf_ + bw->pos_, data, size); in VP8BitWriterAppend()
[all …]
Dbit_reader_utils.c27 br->buf_ = start; in VP8BitReaderSetBuffer()
48 if (br->buf_ != NULL) { in VP8RemapBitReader()
49 br->buf_ += offset; in VP8RemapBitReader()
88 assert(br != NULL && br->buf_ != NULL); in VP8LoadFinalBytes()
90 if (br->buf_ < br->buf_end_) { in VP8LoadFinalBytes()
92 br->value_ = (bit_t)(*br->buf_++) | (br->value_ << 8); in VP8LoadFinalBytes()
161 br->buf_ = start; in VP8LInitBitReader()
169 br->buf_ = buf; in VP8LBitReaderSetBuffer()
184 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (VP8L_LBITS - 8); in ShiftBytes()
199 br->val_ |= (vp8l_val_t)HToLE32(WebPMemToUint32(br->buf_ + br->pos_)) << in VP8LDoFillBitWindow()
[all …]
Dbit_reader_inl_utils.h59 assert(br != NULL && br->buf_ != NULL); in VP8LoadNewBytes()
61 if (br->buf_ < br->buf_max_) { in VP8LoadNewBytes()
67 lbit_t* p_buf_ = (lbit_t*)br->buf_; in VP8LoadNewBytes()
80 memcpy(&in_bits, br->buf_, sizeof(in_bits)); in VP8LoadNewBytes()
82 br->buf_ += BITS >> 3; in VP8LoadNewBytes()
Dbit_writer_utils.h32 uint8_t* buf_; // internal buffer. Re-allocated regularly. Not owned. member
63 return bw->buf_; in VP8BitWriterBuf()
92 uint8_t* buf_; // start of buffer member
104 return (bw->cur_ - bw->buf_) + ((bw->used_ + 7) >> 3); in VP8LBitWriterNumBytes()
/third_party/iowow/src/utils/
Diwutils.h54 #define IW_SETVNUMBUF(len_, buf_, num_) \ argument
58 ((signed char*) (buf_))[0] = 0; \
66 ((signed char*) (buf_))[(len_)] = ~(_rem_); \
68 ((signed char*) (buf_))[(len_)] = _rem_; \
76 #define IW_SETVNUMBUF64(len_, buf_, num_) \ argument
80 ((signed char*) (buf_))[0] = 0; \
88 ((signed char*) (buf_))[(len_)] = ~(_rem_); \
90 ((signed char*) (buf_))[(len_)] = _rem_; \
99 #define IW_READVNUMBUF(buf_, num_, step_) \ argument
105 if (((const signed char*) (buf_))[_i_] >= 0) { \
[all …]
/third_party/protobuf/src/google/protobuf/stubs/
Dbytestream.cc89 buf_(new char[estimated_size]), in GrowingArrayByteSink()
94 delete[] buf_; // Just in case the user didn't call GetBuffer. in ~GrowingArrayByteSink()
99 if (bytes != (buf_ + size_)) { in Append()
102 GOOGLE_DCHECK(!(buf_ <= bytes && bytes < (buf_ + capacity_))) in Append()
108 if (n > 0 && bytes != (buf_ + size_)) { in Append()
109 memcpy(buf_ + size_, bytes, n); in Append()
116 char* b = buf_; in GetBuffer()
118 buf_ = nullptr; in GetBuffer()
126 memcpy(bigger, buf_, size_); in Expand()
127 delete[] buf_; in Expand()
[all …]
/third_party/nghttp2/src/
Dlibevent_util.cc37 buf_(nullptr), in EvbufferBuffer()
47 buf_(buf), in EvbufferBuffer()
56 buf_ = buf; in reset()
73 for (auto pos = buf_, end = buf_ + buflen_; pos < end;) { in write_buffer()
94 rv = evbuffer_add(evbuffer_, buf_, buflen_); in flush()
112 rv = evbuffer_add(evbuffer_, buf_, buflen_); in add()
135 memcpy(buf_ + buflen_, data, datalen); in add()
/third_party/ninja/src/
Dbuild_log.cc212 : file_(file), buf_end_(buf_), line_start_(buf_), line_end_(NULL) { in LineReader()
213 memset(buf_, 0, sizeof(buf_)); in LineReader()
223 size_t size_read = fread(buf_, 1, sizeof(buf_), file_); in ReadLine()
226 line_start_ = buf_; in ReadLine()
227 buf_end_ = buf_ + size_read; in ReadLine()
236 size_t already_consumed = line_start_ - buf_; in ReadLine()
237 size_t size_rest = (buf_end_ - buf_) - already_consumed; in ReadLine()
238 memmove(buf_, line_start_, size_rest); in ReadLine()
240 size_t read = fread(buf_ + size_rest, 1, sizeof(buf_) - size_rest, file_); in ReadLine()
241 buf_end_ = buf_ + size_rest + read; in ReadLine()
[all …]
/third_party/node/src/
Dnode_http_common.h257 return reinterpret_cast<const nv_t*>(*buf_);
261 return reinterpret_cast<const nv_t*>(*buf_); in data()
270 MaybeStackBuffer<char, 3000> buf_; variable
318 buf_ = other.buf_; in NgRcBufPointer()
319 other.buf_ = nullptr; in NgRcBufPointer()
333 vector_t v = T::get_vec(buf_); in data()
338 vector_t v = T::get_vec(buf_); in len()
347 if (buf_ == ptr)
350 if (buf_ != nullptr)
351 T::dec(buf_);
[all …]
Dutil.h340 return buf_; in out()
344 return buf_; in out()
349 return buf_;
353 return buf_;
358 return buf_[index];
363 return buf_[index];
384 T* allocated_ptr = was_allocated ? buf_ : nullptr; in AllocateSufficientStorage()
385 buf_ = Realloc(allocated_ptr, storage); in AllocateSufficientStorage()
388 memcpy(buf_, buf_st_, length_ * sizeof(buf_[0])); in AllocateSufficientStorage()
406 buf_[length] = T(); in SetLengthAndZeroTerminate()
[all …]
/third_party/openh264/test/api/
Ddecode_encode_test.cpp64 WritePlaneBuffer (&buf_, y.data, y.width, y.height, y.stride); in onDecodeFrame()
65 WritePlaneBuffer (&buf_, u.data, u.width, u.height, u.stride); in onDecodeFrame()
66 WritePlaneBuffer (&buf_, v.data, v.width, v.height, v.stride); in onDecodeFrame()
74 while (buf_.Length() < len) { in read()
80 if (buf_.Length() == 0) { in read()
86 return (int) buf_.PopFront (static_cast<uint8_t*> (ptr), len); in read()
91 BufferedData buf_; member in DecodeEncodeTest
/third_party/skia/third_party/externals/libwebp/src/dec/
Didec_dec.c59 uint8_t* buf_; // We don't own this buffer in case WebPIUpdate() member
114 const uint8_t* const new_base = mem->buf_ + mem->start_; in DoRemap()
136 const uint8_t* const last_start = dec->parts_[last_part].buf_; in DoRemap()
138 mem->buf_ + mem->end_ - last_start); in DoRemap()
170 (mem->buf_ == NULL) ? NULL : mem->buf_ + mem->start_; in AppendToMemBuffer()
173 assert(mem->buf_ != NULL || mem->start_ == 0); in AppendToMemBuffer()
190 WebPSafeFree(mem->buf_); in AppendToMemBuffer()
191 mem->buf_ = new_buf; in AppendToMemBuffer()
197 assert(mem->buf_ != NULL); in AppendToMemBuffer()
198 memcpy(mem->buf_ + mem->end_, data, data_size); in AppendToMemBuffer()
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/src/dec/
Didec_dec.c59 uint8_t* buf_; // We don't own this buffer in case WebPIUpdate() member
114 const uint8_t* const new_base = mem->buf_ + mem->start_; in DoRemap()
136 const uint8_t* const last_start = dec->parts_[last_part].buf_; in DoRemap()
138 mem->buf_ + mem->end_ - last_start); in DoRemap()
169 const uint8_t* const old_start = mem->buf_ + mem->start_; in AppendToMemBuffer()
188 WebPSafeFree(mem->buf_); in AppendToMemBuffer()
189 mem->buf_ = new_buf; in AppendToMemBuffer()
195 memcpy(mem->buf_ + mem->end_, data, data_size); in AppendToMemBuffer()
199 DoRemap(idec, mem->buf_ + mem->start_ - old_start); in AppendToMemBuffer()
206 const uint8_t* const old_buf = mem->buf_; in RemapMemBuffer()
[all …]
/third_party/freetype/src/autofit/
Dafshaper.c462 void* buf_, in af_shaper_get_cluster() argument
471 hb_buffer_t* buf = (hb_buffer_t*)buf_; in af_shaper_get_cluster()
559 void* buf_, in af_shaper_get_elem() argument
564 hb_buffer_t* buf = (hb_buffer_t*)buf_; in af_shaper_get_elem()
626 void* buf_, in af_shaper_get_cluster() argument
631 FT_ULong* buf = (FT_ULong*)buf_; in af_shaper_get_cluster()
661 void* buf_, in af_shaper_get_elem() argument
667 FT_ULong glyph_index = *(FT_ULong*)buf_; in af_shaper_get_elem()
/third_party/flutter/skia/third_party/externals/freetype/src/autofit/
Dafshaper.c448 void* buf_, in af_shaper_get_cluster() argument
457 hb_buffer_t* buf = (hb_buffer_t*)buf_; in af_shaper_get_cluster()
545 void* buf_, in af_shaper_get_elem() argument
550 hb_buffer_t* buf = (hb_buffer_t*)buf_; in af_shaper_get_elem()
612 void* buf_, in af_shaper_get_cluster() argument
617 FT_ULong* buf = (FT_ULong*)buf_; in af_shaper_get_cluster()
647 void* buf_, in af_shaper_get_elem() argument
653 FT_ULong glyph_index = *(FT_ULong*)buf_; in af_shaper_get_elem()
/third_party/skia/third_party/externals/freetype/src/autofit/
Dafshaper.c462 void* buf_, in af_shaper_get_cluster() argument
471 hb_buffer_t* buf = (hb_buffer_t*)buf_; in af_shaper_get_cluster()
559 void* buf_, in af_shaper_get_elem() argument
564 hb_buffer_t* buf = (hb_buffer_t*)buf_; in af_shaper_get_elem()
626 void* buf_, in af_shaper_get_cluster() argument
631 FT_ULong* buf = (FT_ULong*)buf_; in af_shaper_get_cluster()
661 void* buf_, in af_shaper_get_elem() argument
667 FT_ULong glyph_index = *(FT_ULong*)buf_; in af_shaper_get_elem()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
Dextension.h73 raw_.Write(string_view(buf_, pos_ - buf_)); in Flush()
74 pos_ = buf_; in Flush()
123 size_t Avail() const { return buf_ + sizeof(buf_) - pos_; } in Avail()
127 char* pos_ = buf_;
128 char buf_[1024]; variable
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DStringSearch.java1936 CEI[] buf_; field in StringSearch.CEBuffer
1974 buf_ = new CEI[bufSize_]; in CEBuffer()
1989 return buf_[i]; in get()
2009 if (buf_[i] == null) { in get()
2010 buf_[i] = new CEI(); in get()
2012 buf_[i].ce_ = strSearch_.textProcessedIter_.nextProcessed(range); in get()
2013 buf_[i].lowIndex_ = range.ixLow_; in get()
2014 buf_[i].highIndex_ = range.ixHigh_; in get()
2016 return buf_[i]; in get()
2031 return buf_[i]; in getPrevious()
[all …]
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DStringSearch.java1949 CEI[] buf_; field in StringSearch.CEBuffer
1987 buf_ = new CEI[bufSize_]; in CEBuffer()
2002 return buf_[i]; in get()
2022 if (buf_[i] == null) { in get()
2023 buf_[i] = new CEI(); in get()
2025 buf_[i].ce_ = strSearch_.textProcessedIter_.nextProcessed(range); in get()
2026 buf_[i].lowIndex_ = range.ixLow_; in get()
2027 buf_[i].highIndex_ = range.ixHigh_; in get()
2029 return buf_[i]; in get()
2044 return buf_[i]; in getPrevious()
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/src/demux/
Ddemux.c35 const uint8_t* buf_; member
113 mem->buf_ = data; in RemapMemBuffer()
143 return mem->buf_ + mem->start_; in GetBuffer()
148 const uint8_t byte = mem->buf_[mem->start_]; in ReadByte()
154 const uint8_t* const data = mem->buf_ + mem->start_; in ReadLE16s()
161 const uint8_t* const data = mem->buf_ + mem->start_; in ReadLE24s()
168 const uint8_t* const data = mem->buf_ + mem->start_; in ReadLE32()
255 WebPGetFeatures(mem->buf_ + chunk_start_offset, chunk_size, in StoreFrame()
666 WebPGetFeatures(mem->buf_, mem->buf_size_, &features); in CreateRawImageDemuxer()
829 const uint8_t* const mem_buf = dmux->mem_.buf_; in SynthesizeFrame()
[all …]
/third_party/skia/third_party/externals/libwebp/src/demux/
Ddemux.c35 const uint8_t* buf_; member
113 mem->buf_ = data; in RemapMemBuffer()
143 return mem->buf_ + mem->start_; in GetBuffer()
148 const uint8_t byte = mem->buf_[mem->start_]; in ReadByte()
154 const uint8_t* const data = mem->buf_ + mem->start_; in ReadLE16s()
161 const uint8_t* const data = mem->buf_ + mem->start_; in ReadLE24s()
168 const uint8_t* const data = mem->buf_ + mem->start_; in ReadLE32()
259 WebPGetFeatures(mem->buf_ + chunk_start_offset, chunk_size, in StoreFrame()
677 WebPGetFeatures(mem->buf_, mem->buf_size_, &features); in CreateRawImageDemuxer()
840 const uint8_t* const mem_buf = dmux->mem_.buf_; in SynthesizeFrame()
[all …]

123