avformat/mpeg: demux ivtv captions
[ffmpeg.git] / libavcodec / jpegxl.h
blob66a6be355567c18189d104fd3261d208cbf89349
1 /*
2 * JPEG XL Common Header Definitions
3 * Copyright (c) 2023 Leo Izen <leo.izen@gmail.com>
5 * This file is part of FFmpeg.
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef AVCODEC_JPEGXL_H
23 #define AVCODEC_JPEGXL_H
25 #define FF_JPEGXL_CODESTREAM_SIGNATURE_LE 0x0aff
26 #define FF_JPEGXL_CONTAINER_SIGNATURE_LE 0x204c584a0c000000
27 #define FF_JPEGXL_CODESTREAM_SIGNATURE_BE 0xff0a
28 #define FF_JPEGXL_CONTAINER_SIGNATURE_BE 0x0000000c4a584c20
30 typedef enum FFJXLFrameEncoding {
31 JPEGXL_ENC_VARDCT,
32 JPEGXL_ENC_MODULAR
33 } FFJXLFrameEncoding;
35 typedef enum FFJXLFrameType {
36 JPEGXL_FRAME_REGULAR,
37 JPEGXL_FRAME_LF,
38 JPEGXL_FRAME_REFERENCE_ONLY,
39 JPEGXL_FRAME_SKIP_PROGRESSIVE
40 } FFJXLFrameType;
42 typedef enum FFJXLBlendMode {
43 JPEGXL_BM_REPLACE,
44 JPEGXL_BM_ADD,
45 JPEGXL_BM_BLEND,
46 JPEGXL_BM_MULADD,
47 JPEGXL_BM_MUL
48 } FFJXLBlendMode;
50 typedef enum FFJXLExtraChannelType {
51 JPEGXL_CT_ALPHA = 0,
52 JPEGXL_CT_DEPTH,
53 JPEGXL_CT_SPOT_COLOR,
54 JPEGXL_CT_SELECTION_MASK,
55 JPEGXL_CT_BLACK,
56 JPEGXL_CT_CFA,
57 JPEGXL_CT_THERMAL,
58 JPEGXL_CT_NON_OPTIONAL = 15,
59 JPEGXL_CT_OPTIONAL
60 } FFJXLExtraChannelType;
62 typedef enum FFJXLColorSpace {
63 JPEGXL_CS_RGB = 0,
64 JPEGXL_CS_GRAY,
65 JPEGXL_CS_XYB,
66 JPEGXL_CS_UNKNOWN
67 } FFJXLColorSpace;
69 typedef enum FFJXLWhitePoint {
70 JPEGXL_WP_D65 = 1,
71 JPEGXL_WP_CUSTOM,
72 JPEGXL_WP_E = 10,
73 JPEGXL_WP_DCI = 11
74 } FFJXLWhitePoint;
76 typedef enum FFJXLPrimaries {
77 JPEGXL_PR_SRGB = 1,
78 JPEGXL_PR_CUSTOM,
79 JPEGXL_PR_2100 = 9,
80 JPEGXL_PR_P3 = 11,
81 } FFJXLPrimaries;
83 typedef enum FFJXLTransferCharacteristic {
84 JPEGXL_TR_BT709 = 1,
85 JPEGXL_TR_UNKNOWN,
86 JPEGXL_TR_LINEAR = 8,
87 JPEGXL_TR_SRGB = 13,
88 JPEGXL_TR_PQ = 16,
89 JPEGXL_TR_DCI,
90 JPEGXL_TR_HLG,
91 JPEGXL_TR_GAMMA = 1 << 24,
92 } FFJXLTransferCharacteristic;
94 #endif /* AVCODEC_JPEGXL_H */