|
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_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_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().
| #define FF_GAIN_MAP_XMP_IDENT "http://ns.adobe.com/xap/1.0/" |
Definition at line 36 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 37 of file gain_map.h.
Referenced by parse_app1().
| #define FF_GAIN_MAP_XMP_MAX_LEN 1024 |
Definition at line 38 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_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 31 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 67 of file gain_map.c.
Referenced by jpeg_put_comments().