Loading...
Searching...
No Matches
gain_map.h
Go to the documentation of this file.
/* Copyright (c) the JPEG XL Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
#ifndef JXL_GAIN_MAP_H_
#define JXL_GAIN_MAP_H_
#include <jxl/color_encoding.h>
#include <jxl/jxl_export.h>
#include <jxl/types.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
uint8_t jhgm_version;
uint16_t gain_map_metadata_size;
const uint8_t* gain_map_metadata;
JXL_BOOL has_color_encoding;
JxlColorEncoding color_encoding;
uint32_t alt_icc_size;
const uint8_t* alt_icc;
uint32_t gain_map_size;
const uint8_t* gain_map;
} JxlGainMapBundle;
JXL_EXPORT JXL_BOOL JxlGainMapGetBundleSize(const JxlGainMapBundle* map_bundle,
size_t* bundle_size);
JXL_EXPORT JXL_BOOL JxlGainMapWriteBundle(const JxlGainMapBundle* map_bundle,
uint8_t* output_buffer,
size_t output_buffer_size,
size_t* bytes_written);
JXL_EXPORT JXL_BOOL JxlGainMapReadBundle(JxlGainMapBundle* map_bundle,
const uint8_t* input_buffer,
size_t input_buffer_size,
size_t* bytes_read);
#ifdef __cplusplus
}
#endif
#endif /* JXL_GAIN_MAP_H_ */
color_encoding.h
Color Encoding definitions used by JPEG XL. All CIE units are for the standard 1931 2 degree observer...
JXL_BOOL
#define JXL_BOOL
Definition types.h:29
JxlGainMapGetBundleSize
JXL_EXPORT JXL_BOOL JxlGainMapGetBundleSize(const JxlGainMapBundle *map_bundle, size_t *bundle_size)
JxlGainMapWriteBundle
JXL_EXPORT JXL_BOOL JxlGainMapWriteBundle(const JxlGainMapBundle *map_bundle, uint8_t *output_buffer, size_t output_buffer_size, size_t *bytes_written)
JxlGainMapReadBundle
JXL_EXPORT JXL_BOOL JxlGainMapReadBundle(JxlGainMapBundle *map_bundle, const uint8_t *input_buffer, size_t input_buffer_size, size_t *bytes_read)
JxlColorEncoding
Definition color_encoding.h:114
JxlGainMapBundle
Definition gain_map.h:38
JxlGainMapBundle::has_color_encoding
JXL_BOOL has_color_encoding
Definition gain_map.h:48
JxlGainMapBundle::alt_icc
const uint8_t * alt_icc
Definition gain_map.h:57
JxlGainMapBundle::alt_icc_size
uint32_t alt_icc_size
Definition gain_map.h:54
JxlGainMapBundle::color_encoding
JxlColorEncoding color_encoding
Definition gain_map.h:51
JxlGainMapBundle::jhgm_version
uint8_t jhgm_version
Definition gain_map.h:40
JxlGainMapBundle::gain_map_metadata
const uint8_t * gain_map_metadata
Definition gain_map.h:46
JxlGainMapBundle::gain_map
const uint8_t * gain_map
Definition gain_map.h:62
JxlGainMapBundle::gain_map_metadata_size
uint16_t gain_map_metadata_size
Definition gain_map.h:42
JxlGainMapBundle::gain_map_size
uint32_t gain_map_size
Definition gain_map.h:59
types.h
Data types for the JPEG XL API, for both encoding and decoding.