Home
last modified time | relevance | path

Searched refs:avail_in_ (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/core/lib/io/snappy/
Dsnappy_outputbuffer.cc62 avail_in_ = bytes_to_write; in Write()
66 DCHECK(avail_in_ == 0); // All input will be used up. in Write()
80 return input_buffer_capacity_ - avail_in_; in AvailableInputSpace()
106 const int32 unread_bytes = avail_in_; in AddToInputBuffer()
111 memmove(input_buffer_.get(), next_in_, avail_in_); in AddToInputBuffer()
114 memcpy(next_in_ + avail_in_, data.data(), bytes_to_write); in AddToInputBuffer()
115 avail_in_ += bytes_to_write; in AddToInputBuffer()
135 DCHECK(avail_in_ == 0); in DeflateBuffered()
155 if (avail_in_ == 0) { in Deflate()
159 if (!port::Snappy_Compress(next_in_, avail_in_, &output)) { in Deflate()
[all …]
Dsnappy_inputbuffer.cc57 avail_in_ = 0; in Reset()
82 if (avail_in_ < compressed_block_length) { in Inflate()
84 if (avail_in_ < compressed_block_length) { in Inflate()
117 avail_in_ -= compressed_block_length; in Inflate()
126 if (avail_in_ == 0) { in ReadCompressedBlockLength()
129 size_t readable = std::min(bytes_to_read, avail_in_); in ReadCompressedBlockLength()
138 avail_in_--; in ReadCompressedBlockLength()
151 if (avail_in_ > 0) { in ReadFromFile()
156 memmove(input_buffer_.get(), next_in_, avail_in_); in ReadFromFile()
159 bytes_to_read -= avail_in_; in ReadFromFile()
[all …]
Dsnappy_outputbuffer.h106 size_t avail_in_ = 0; variable
Dsnappy_inputbuffer.h117 size_t avail_in_ = 0; variable
/external/pdfium/core/fxcodec/gif/
Dcfx_gifcontext_unittest.cpp27 EXPECT_EQ(0u, context.avail_in_); in TEST()
32 EXPECT_EQ(100u, context.avail_in_); in TEST()
38 EXPECT_EQ(0u, context.avail_in_); in TEST()
43 EXPECT_EQ(3u, context.avail_in_); in TEST()
48 EXPECT_EQ(100u, context.avail_in_); in TEST()
71 EXPECT_EQ(0u, context.avail_in_); in TEST()
80 EXPECT_EQ(10u, context.avail_in_); in TEST()
89 EXPECT_EQ(10u, context.avail_in_); in TEST()
97 EXPECT_EQ(10u, context.avail_in_); in TEST()
105 EXPECT_EQ(10u, context.avail_in_); in TEST()
Dcfx_lzwdecompressor.cpp39 avail_in_(0), in CFX_LZWDecompressor()
56 avail_in_ = src_size; in Decode()
70 while (i <= *des_size && (avail_in_ > 0 || bits_left_ >= code_size_cur_)) { in Decode()
74 if (avail_in_ > 0) { in Decode()
85 --avail_in_; in Decode()
134 if (avail_in_ != 0) in Decode()
Dcfx_gifcontext.cpp30 avail_in_(0), in CFX_GifContext()
98 if (avail_in_) { in GetFrame()
193 avail_in_ = 0; in LoadFrame()
338 avail_in_ = src_size; in SetInputBuffer()
345 if (avail_in_ > 0) in GetAvailInput()
348 return avail_in_; in GetAvailInput()
354 if (avail_in_ <= skip_size_) in ReadData()
360 if (avail_in_ - skip_size_ < data_size) in ReadData()
423 avail_in_ -= skip_size_; in SaveDecodingStatus()
Dcfx_lzwdecompressor.h60 uint32_t avail_in_; variable
Dcfx_gifcontext.h52 uint32_t avail_in_; variable