7#ifndef CORE_FXCODEC_JPX_JPX_DECODE_UTILS_H_
8#define CORE_FXCODEC_JPX_JPX_DECODE_UTILS_H_
12#if defined(USE_SYSTEM_LIBOPENJPEG2)
15#include "third_party/libopenjpeg/openjpeg.h"
static void Sycc420ToRgbForTesting(opj_image_t *img)
static constexpr uint8_t kMaxResolutionsToSkip
bool Decode(pdfium::span< uint8_t > dest_buf, uint32_t pitch, bool swap_rgb, uint32_t component_count)
JpxImageInfo GetInfo() const
OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void *p_user_data)
OPJ_SIZE_T opj_read_from_memory(void *p_buffer, OPJ_SIZE_T nb_bytes, void *p_user_data)
OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void *p_user_data)
DecodeData(const uint8_t *data, OPJ_SIZE_T size)