Home
last modified time | relevance | path

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

/external/pdfium/core/fxcodec/codec/
Dfx_codec_jpeg.cpp530 uint32_t dest_buf_length = safe_buf_len.ValueOrDie(); local
531 *dest_buf = FX_TryAlloc(uint8_t, dest_buf_length);
533 while (!(*dest_buf) && dest_buf_length > MIN_TRY_BUF_LEN) {
534 dest_buf_length >>= 1;
535 *dest_buf = FX_TryAlloc(uint8_t, dest_buf_length);
545 dest.free_in_buffer = dest_buf_length;
590 FX_Realloc(uint8_t, *dest_buf, dest_buf_length + JPEG_BLOCK_SIZE);
591 dest.next_output_byte = *dest_buf + dest_buf_length - dest.free_in_buffer;
592 dest_buf_length += JPEG_BLOCK_SIZE;
599 *dest_size = dest_buf_length - static_cast<size_t>(dest.free_in_buffer);