15#include "jxl/jxl_export.h"
19#if defined(__cplusplus) || defined(c_plusplus)
117 void* parallel_runner_opaque);
193 const void* buffer,
size_t size);
234 const uint8_t* icc_profile,
388#if defined(__cplusplus) || defined(c_plusplus)
Decoding API for JPEG XL.
JXL_EXPORT JxlEncoderStatus JxlEncoderAddJPEGFrame(const JxlEncoderOptions *options, const uint8_t *buffer, size_t size)
JXL_EXPORT void JxlEncoderCloseInput(JxlEncoder *enc)
JXL_EXPORT JxlEncoderStatus JxlEncoderSetParallelRunner(JxlEncoder *enc, JxlParallelRunner parallel_runner, void *parallel_runner_opaque)
JXL_EXPORT JxlEncoderOptions * JxlEncoderOptionsCreate(JxlEncoder *enc, const JxlEncoderOptions *source)
struct JxlEncoderStruct JxlEncoder
Definition: encode.h:38
JXL_EXPORT JxlEncoder * JxlEncoderCreate(const JxlMemoryManager *memory_manager)
JXL_EXPORT JxlEncoderStatus JxlEncoderProcessOutput(JxlEncoder *enc, uint8_t **next_out, size_t *avail_out)
JXL_EXPORT JxlEncoderStatus JxlEncoderUseContainer(JxlEncoder *enc, JXL_BOOL use_container)
JXL_EXPORT JxlEncoderStatus JxlEncoderOptionsSetLossless(JxlEncoderOptions *options, JXL_BOOL lossless)
JXL_EXPORT void JxlColorEncodingSetToSRGB(JxlColorEncoding *color_encoding, JXL_BOOL is_gray)
JXL_EXPORT JxlEncoderStatus JxlEncoderOptionsSetDecodingSpeed(JxlEncoderOptions *options, int tier)
JXL_EXPORT JxlEncoderStatus JxlEncoderAddImageFrame(const JxlEncoderOptions *options, const JxlPixelFormat *pixel_format, const void *buffer, size_t size)
JXL_EXPORT void JxlEncoderReset(JxlEncoder *enc)
JXL_EXPORT void JxlEncoderInitBasicInfo(JxlBasicInfo *info)
JXL_EXPORT JxlEncoderStatus JxlEncoderSetBasicInfo(JxlEncoder *enc, const JxlBasicInfo *info)
JXL_EXPORT JxlEncoderStatus JxlEncoderSetColorEncoding(JxlEncoder *enc, const JxlColorEncoding *color)
struct JxlEncoderOptionsStruct JxlEncoderOptions
Definition: encode.h:48
JxlEncoderStatus
Definition: encode.h:53
@ JXL_ENC_ERROR
Definition: encode.h:61
@ JXL_ENC_NEED_MORE_OUTPUT
Definition: encode.h:65
@ JXL_ENC_NOT_SUPPORTED
Definition: encode.h:69
@ JXL_ENC_SUCCESS
Definition: encode.h:57
JXL_EXPORT void JxlColorEncodingSetToLinearSRGB(JxlColorEncoding *color_encoding, JXL_BOOL is_gray)
JXL_EXPORT JxlEncoderStatus JxlEncoderOptionsSetEffort(JxlEncoderOptions *options, int effort)
JXL_EXPORT JxlEncoderStatus JxlEncoderOptionsSetDistance(JxlEncoderOptions *options, float distance)
JXL_EXPORT JxlEncoderStatus JxlEncoderSetICCProfile(JxlEncoder *enc, const uint8_t *icc_profile, size_t size)
JXL_EXPORT uint32_t JxlEncoderVersion(void)
JXL_EXPORT void JxlEncoderDestroy(JxlEncoder *enc)
JXL_EXPORT JxlEncoderStatus JxlEncoderStoreJPEGMetadata(JxlEncoder *enc, JXL_BOOL store_jpeg_metadata)
Abstraction functions used by JPEG XL to allocate memory.
JxlParallelRetCode(* JxlParallelRunner)(void *runner_opaque, void *jpegxl_opaque, JxlParallelRunInit init, JxlParallelRunFunction func, uint32_t start_range, uint32_t end_range)
Definition: parallel_runner.h:116
Definition: codestream_header.h:95
Definition: color_encoding.h:101
Definition: memory_manager.h:48
#define JXL_BOOL
Definition: types.h:27