Searched refs:new_buf (Results 1 – 6 of 6) sorted by relevance
/external/webp/src/enc/ |
D | bit_writer.c | 24 uint8_t* new_buf; in BitWriterResize() local 32 new_buf = (uint8_t*)malloc(new_size); in BitWriterResize() 33 if (new_buf == NULL) { in BitWriterResize() 37 if (bw->pos_ > 0) memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize() 39 bw->buf_ = new_buf; in BitWriterResize()
|
/external/webp/src/dec/ |
D | idec.c | 96 uint8_t* new_buf = NULL; in AppendToMemBuffer() local 102 new_buf = (uint8_t*)malloc(new_size); in AppendToMemBuffer() 103 if (!new_buf) return 0; in AppendToMemBuffer() 104 memcpy(new_buf, base, MemDataSize(mem)); in AppendToMemBuffer() 109 REMAP(dec->parts_[p].buf_, base, new_buf); in AppendToMemBuffer() 110 REMAP(dec->parts_[p].buf_end_, base, new_buf); in AppendToMemBuffer() 116 mem->buf_ = new_buf; in AppendToMemBuffer()
|
/external/chromium/googleurl/src/ |
D | url_canon.h | 182 T* new_buf = new T[sz]; in Resize() local 183 memcpy(new_buf, this->buffer_, in Resize() 187 this->buffer_ = new_buf; in Resize()
|
/external/qemu/android/camera/ |
D | camera-service.c | 144 char* new_buf = (char*)realloc(*str_buf, required_mem); in _append_string() local 145 if (new_buf == NULL) { in _append_string() 150 *str_buf = new_buf; in _append_string()
|
/external/libvpx/ |
D | vpxdec.c | 285 uint8_t *new_buf = realloc(*buf, 2 * new_buf_sz); in read_frame() local 287 if (new_buf) in read_frame() 289 *buf = new_buf; in read_frame()
|
/external/libxml2/ |
D | parser.c | 4590 xmlChar *new_buf; in xmlParseCommentComplex() local 4592 new_buf = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); in xmlParseCommentComplex() 4593 if (new_buf == NULL) { in xmlParseCommentComplex() 4598 buf = new_buf; in xmlParseCommentComplex() 4726 xmlChar *new_buf; in xmlParseComment() local 4728 new_buf = (xmlChar *) xmlRealloc(buf, in xmlParseComment() 4730 if (new_buf == NULL) { in xmlParseComment() 4736 buf = new_buf; in xmlParseComment()
|