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.cpp139 FX_DWORD dest_buf_length = 0; in _JpegEncode() local
143 dest_buf_length = safe_buf_len.ValueOrDie(); in _JpegEncode()
144 dest_buf = FX_TryAlloc(FX_BYTE, dest_buf_length); in _JpegEncode()
146 while (!dest_buf && dest_buf_length > MIN_TRY_BUF_LEN) { in _JpegEncode()
147 dest_buf_length >>= 1; in _JpegEncode()
148 dest_buf = FX_TryAlloc(FX_BYTE, dest_buf_length); in _JpegEncode()
159 dest.free_in_buffer = dest_buf_length; in _JpegEncode()
207 dest_buf = FX_Realloc(FX_BYTE, dest_buf, dest_buf_length + JPEG_BLOCK_SIZE); in _JpegEncode()
208 dest.next_output_byte = dest_buf + dest_buf_length - dest.free_in_buffer; in _JpegEncode()
209 dest_buf_length += JPEG_BLOCK_SIZE; in _JpegEncode()
[all …]