|
FFmpeg
|
Serialization of AVGainMapParams into the metadata blobs that image formats carry it in, and back. More...
#include "libavutil/gain_map.h"Go to the source code of this file.
Macros | |
| #define | FF_GAIN_MAP_VERSION 0 |
| #define | FF_GAIN_MAP_MAX_PAYLOAD_SIZE 141 /* = 5 + 2*8 + 3*5*8 */ |
| #define | FF_GAIN_MAP_XMP_IDENT "http://ns.adobe.com/xap/1.0/" |
| #define | FF_GAIN_MAP_XMP_NAMESPACE "http://ns.adobe.com/hdr-gain-map/1.0/" |
| #define | FF_GAIN_MAP_XMP_MAX_LEN 1024 |
Functions | |
| int | ff_gain_map_params_from_iso21496 (AVGainMapParams *p, const uint8_t *data, size_t size) |
| Parse the payload of an ISO 21496-1 gain map metadata blob. | |
| int | ff_gain_map_params_to_iso21496 (const AVGainMapParams *p, uint8_t *buf) |
| Serialize an AVGainMapParams as an ISO 21496-1 gain map metadata blob. | |
| int | ff_gain_map_params_check_xmp (const AVGainMapParams *p) |
| Returns 1 if the gain map parameters are compatible with the XMP-based encoding, or 0 otherwise. | |
| int | ff_gain_map_params_to_xmp (const AVGainMapParams *p, char *buf) |
| Serialize an AVGainMapParams as an Ultra HDR XMP packet. | |
Serialization of AVGainMapParams into the metadata blobs that image formats carry it in, and back.
Kept separate from the codecs so that an encoder writing the blob and a bitstream filter splicing it into an existing bitstream can share the same code.
Definition in file gain_map.h.
| #define FF_GAIN_MAP_VERSION 0 |
Definition at line 33 of file gain_map.h.
Referenced by ff_gain_map_params_check_xmp(), ff_gain_map_params_from_iso21496(), and ff_gain_map_params_to_iso21496().
| #define FF_GAIN_MAP_MAX_PAYLOAD_SIZE 141 /* = 5 + 2*8 + 3*5*8 */ |
Definition at line 34 of file gain_map.h.
Referenced by ff_gain_map_params_to_iso21496(), and ff_mjpeg_add_gain_map_size().
| #define FF_GAIN_MAP_XMP_IDENT "http://ns.adobe.com/xap/1.0/" |
Definition at line 37 of file gain_map.h.
Referenced by ff_mjpeg_add_gain_map_size(), jpeg_put_comments(), mpf_write_xmp(), and parse_app1().
| #define FF_GAIN_MAP_XMP_NAMESPACE "http://ns.adobe.com/hdr-gain-map/1.0/" |
Definition at line 38 of file gain_map.h.
Referenced by parse_app1().
| #define FF_GAIN_MAP_XMP_MAX_LEN 1024 |
Definition at line 39 of file gain_map.h.
Referenced by ff_gain_map_params_to_xmp(), and ff_mjpeg_add_gain_map_size().
| int ff_gain_map_params_from_iso21496 | ( | AVGainMapParams * | p, |
| const uint8_t * | data, | ||
| size_t | size ) |
Parse the payload of an ISO 21496-1 gain map metadata blob.
| p | struct to fill; overwritten on success, untouched on failure |
| data | payload, excluding container-specific identifiers |
| size | size of data in bytes |
| int ff_gain_map_params_to_iso21496 | ( | const AVGainMapParams * | p, |
| uint8_t * | buf ) |
Serialize an AVGainMapParams as an ISO 21496-1 gain map metadata blob.
The output starts at the minimum_version field; the caller should prepend whatever identifier its container requires.
| p | parameters to serialize |
| buf | Byte buffer to fill with the serialized data. Must contain at least FF_GAIN_MAP_MAX_PAYLOAD_SIZE bytes. |
Definition at line 132 of file gain_map.c.
Referenced by jpeg_put_comments().
| int ff_gain_map_params_check_xmp | ( | const AVGainMapParams * | p | ) |
Returns 1 if the gain map parameters are compatible with the XMP-based encoding, or 0 otherwise.
Definition at line 173 of file gain_map.c.
Referenced by ff_gain_map_params_to_xmp(), ff_mjpeg_add_gain_map_size(), and want_gain_map_xmp().
| int ff_gain_map_params_to_xmp | ( | const AVGainMapParams * | p, |
| char * | buf ) |
Serialize an AVGainMapParams as an Ultra HDR XMP packet.
| p | parameters to serialize |
| buf | Byte buffer to fill with the serialized data. Must contain at least FF_GAIN_MAP_MAX_XMP_LEN bytes. |
Definition at line 209 of file gain_map.c.
Referenced by jpeg_put_comments().