Home
last modified time | relevance | path

Searched refs:old_buf (Results 1 – 14 of 14) sorted by relevance

/external/bsdiff/
Dbsdiff.cc49 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
53 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, &patch, in bsdiff()
57 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
60 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, patch, in bsdiff()
64 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument
82 local_sai = CreateSuffixArrayIndex(old_buf, oldsize); in bsdiff()
93 DiffEncoder diff_encoder(patch, old_buf, oldsize, new_buf, newsize); in bsdiff()
118 if(old_buf[scsc+lastoffset] == new_buf[scsc]) in bsdiff()
125 (old_buf[scan+lastoffset] == new_buf[scan])) in bsdiff()
143 if(old_buf[lastpos+i]==new_buf[lastscan+i]) s++; in bsdiff()
[all …]
Dbsdiff_main.cc64 uint8_t* old_buf = static_cast<uint8_t*>(MapFile(old_filename, &oldsize)); in GenerateBsdiffFromFiles() local
65 if (!old_buf) { in GenerateBsdiffFromFiles()
72 munmap(old_buf, oldsize); in GenerateBsdiffFromFiles()
93 int ret = bsdiff::bsdiff(old_buf, oldsize, new_buf, newsize, in GenerateBsdiffFromFiles()
96 munmap(old_buf, oldsize); in GenerateBsdiffFromFiles()
Ddiff_encoder.h25 const uint8_t* old_buf, in DiffEncoder() argument
30 old_buf_(old_buf), in DiffEncoder()
Dbspatch.cc262 std::vector<uint8_t> old_buf(1024 * 1024); in bspatch() local
306 size_t bytes_to_read = std::min(chunk_size, old_buf.size()); in bspatch()
307 if (!old_file->Read(old_buf.data(), bytes_to_read, &read_bytes)) { in bspatch()
322 new_buf[k] += old_buf[k]; in bspatch()
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_video.c86 struct rvid_buffer old_buf = *new_buf; in si_vid_resize_buffer() local
92 src = ws->buffer_map(old_buf.res->buf, cs, PIPE_TRANSFER_READ); in si_vid_resize_buffer()
107 ws->buffer_unmap(old_buf.res->buf); in si_vid_resize_buffer()
108 si_vid_destroy_buffer(&old_buf); in si_vid_resize_buffer()
113 ws->buffer_unmap(old_buf.res->buf); in si_vid_resize_buffer()
115 *new_buf = old_buf; in si_vid_resize_buffer()
Dr600_buffer_common.c201 struct pb_buffer *old_buf, *new_buf; in si_alloc_resource() local
215 old_buf = res->buf; in si_alloc_resource()
223 pb_reference(&old_buf, NULL); in si_alloc_resource()
/external/bsdiff/include/bsdiff/
Dbsdiff.h22 int bsdiff(const uint8_t* old_buf,
30 int bsdiff(const uint8_t* old_buf,
46 int bsdiff(const uint8_t* old_buf,
/external/mesa3d/src/gallium/drivers/r600/
Dradeon_video.c94 struct rvid_buffer old_buf = *new_buf; in rvid_resize_buffer() local
100 src = ws->buffer_map(old_buf.res->buf, cs, PIPE_TRANSFER_READ); in rvid_resize_buffer()
115 ws->buffer_unmap(old_buf.res->buf); in rvid_resize_buffer()
116 rvid_destroy_buffer(&old_buf); in rvid_resize_buffer()
121 ws->buffer_unmap(old_buf.res->buf); in rvid_resize_buffer()
123 *new_buf = old_buf; in rvid_resize_buffer()
Dr600_buffer_common.c198 struct pb_buffer *old_buf, *new_buf; in r600_alloc_resource() local
212 old_buf = res->buf; in r600_alloc_resource()
220 pb_reference(&old_buf, NULL); in r600_alloc_resource()
/external/u-boot/board/socrates/
Dsocrates.c361 u8 old_buf; in board_backlight_brightness() local
364 if (i2c_read(CONFIG_SYS_I2C_W83782G_ADDR, 0x4e, 1, &old_buf, 1)) in board_backlight_brightness()
367 buf = old_buf & 0xf8; in board_backlight_brightness()
394 if (i2c_write(CONFIG_SYS_I2C_W83782G_ADDR, 0x4e, 1, &old_buf, 1)) in board_backlight_brightness()
/external/mesa3d/src/gallium/state_trackers/va/
Dpicture.c667 struct pipe_video_buffer *old_buf = surf->buffer; in vlVaEndPicture() local
675 if (old_buf->interlaced) { in vlVaEndPicture()
683 old_buf, surf->buffer, in vlVaEndPicture()
692 old_buf->destroy(old_buf); in vlVaEndPicture()
/external/e2fsprogs/lib/ext2fs/
Dinline_data.c124 char *old_buf; in ext2fs_inline_data_dir_iterate() local
129 old_buf = ctx->buf; in ext2fs_inline_data_dir_iterate()
247 ctx->buf = old_buf; in ext2fs_inline_data_dir_iterate()
/external/mesa3d/src/gallium/drivers/i915/
Di915_state.c699 struct pipe_resource *old_buf = i915->constants[shader]; in i915_set_constant_buffer() local
700 struct i915_buffer *old = old_buf ? i915_buffer(old_buf) : NULL; in i915_set_constant_buffer()
/external/webp/src/dec/
Didec_dec.c206 const uint8_t* const old_buf = mem->buf_; in RemapMemBuffer() local
207 const uint8_t* const old_start = old_buf + mem->start_; in RemapMemBuffer()