Home
last modified time | relevance | path

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

/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_jpeg.cpp153 FX_DWORD dest_buf_length = 0; in _JpegEncode() local
157 dest_buf_length = safe_buf_len.ValueOrDie(); in _JpegEncode()
158 dest_buf = FX_TryAlloc(uint8_t, dest_buf_length); in _JpegEncode()
160 while (!dest_buf && dest_buf_length > MIN_TRY_BUF_LEN) { in _JpegEncode()
161 dest_buf_length >>= 1; in _JpegEncode()
162 dest_buf = FX_TryAlloc(uint8_t, dest_buf_length); in _JpegEncode()
173 dest.free_in_buffer = dest_buf_length; in _JpegEncode()
222 FX_Realloc(uint8_t, dest_buf, dest_buf_length + JPEG_BLOCK_SIZE); in _JpegEncode()
223 dest.next_output_byte = dest_buf + dest_buf_length - dest.free_in_buffer; in _JpegEncode()
224 dest_buf_length += JPEG_BLOCK_SIZE; in _JpegEncode()
[all …]