FFmpeg
libavcodec
jpegxl.h
Go to the documentation of this file.
1
/*
2
* JPEG XL Common Header Definitions
3
* Copyright (c) 2023 Leo Izen <leo.izen@gmail.com>
4
*
5
* This file is part of FFmpeg.
6
*
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.
11
*
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.
16
*
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
20
*/
21
22
#ifndef AVCODEC_JPEGXL_H
23
#define AVCODEC_JPEGXL_H
24
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
29
30
typedef
enum
FFJXLFrameEncoding
{
31
JPEGXL_ENC_VARDCT
,
32
JPEGXL_ENC_MODULAR
33
}
FFJXLFrameEncoding
;
34
35
typedef
enum
FFJXLFrameType
{
36
JPEGXL_FRAME_REGULAR
,
37
JPEGXL_FRAME_LF
,
38
JPEGXL_FRAME_REFERENCE_ONLY
,
39
JPEGXL_FRAME_SKIP_PROGRESSIVE
40
}
FFJXLFrameType
;
41
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
;
49
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
;
61
62
typedef
enum
FFJXLColorSpace
{
63
JPEGXL_CS_RGB
= 0,
64
JPEGXL_CS_GRAY
,
65
JPEGXL_CS_XYB
,
66
JPEGXL_CS_UNKNOWN
67
}
FFJXLColorSpace
;
68
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
;
75
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
;
82
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
;
93
94
#endif
/* AVCODEC_JPEGXL_H */
JPEGXL_BM_REPLACE
@ JPEGXL_BM_REPLACE
Definition:
jpegxl.h:43
JPEGXL_CT_CFA
@ JPEGXL_CT_CFA
Definition:
jpegxl.h:56
JPEGXL_BM_MULADD
@ JPEGXL_BM_MULADD
Definition:
jpegxl.h:46
JPEGXL_WP_CUSTOM
@ JPEGXL_WP_CUSTOM
Definition:
jpegxl.h:71
FFJXLColorSpace
FFJXLColorSpace
Definition:
jpegxl.h:62
JPEGXL_CS_RGB
@ JPEGXL_CS_RGB
Definition:
jpegxl.h:63
JPEGXL_PR_SRGB
@ JPEGXL_PR_SRGB
Definition:
jpegxl.h:77
JPEGXL_FRAME_REGULAR
@ JPEGXL_FRAME_REGULAR
Definition:
jpegxl.h:36
JPEGXL_CT_ALPHA
@ JPEGXL_CT_ALPHA
Definition:
jpegxl.h:51
FFJXLFrameEncoding
FFJXLFrameEncoding
Definition:
jpegxl.h:30
JPEGXL_WP_DCI
@ JPEGXL_WP_DCI
Definition:
jpegxl.h:73
FFJXLWhitePoint
FFJXLWhitePoint
Definition:
jpegxl.h:69
JPEGXL_TR_BT709
@ JPEGXL_TR_BT709
Definition:
jpegxl.h:84
JPEGXL_CT_SPOT_COLOR
@ JPEGXL_CT_SPOT_COLOR
Definition:
jpegxl.h:53
JPEGXL_CS_GRAY
@ JPEGXL_CS_GRAY
Definition:
jpegxl.h:64
JPEGXL_WP_E
@ JPEGXL_WP_E
Definition:
jpegxl.h:72
JPEGXL_ENC_VARDCT
@ JPEGXL_ENC_VARDCT
Definition:
jpegxl.h:31
FFJXLFrameType
FFJXLFrameType
Definition:
jpegxl.h:35
JPEGXL_FRAME_LF
@ JPEGXL_FRAME_LF
Definition:
jpegxl.h:37
JPEGXL_CT_NON_OPTIONAL
@ JPEGXL_CT_NON_OPTIONAL
Definition:
jpegxl.h:58
FFJXLTransferCharacteristic
FFJXLTransferCharacteristic
Definition:
jpegxl.h:83
JPEGXL_CT_DEPTH
@ JPEGXL_CT_DEPTH
Definition:
jpegxl.h:52
JPEGXL_CT_OPTIONAL
@ JPEGXL_CT_OPTIONAL
Definition:
jpegxl.h:59
JPEGXL_FRAME_SKIP_PROGRESSIVE
@ JPEGXL_FRAME_SKIP_PROGRESSIVE
Definition:
jpegxl.h:39
JPEGXL_TR_DCI
@ JPEGXL_TR_DCI
Definition:
jpegxl.h:89
JPEGXL_TR_LINEAR
@ JPEGXL_TR_LINEAR
Definition:
jpegxl.h:86
JPEGXL_PR_CUSTOM
@ JPEGXL_PR_CUSTOM
Definition:
jpegxl.h:78
JPEGXL_BM_MUL
@ JPEGXL_BM_MUL
Definition:
jpegxl.h:47
JPEGXL_PR_2100
@ JPEGXL_PR_2100
Definition:
jpegxl.h:79
JPEGXL_TR_HLG
@ JPEGXL_TR_HLG
Definition:
jpegxl.h:90
JPEGXL_TR_SRGB
@ JPEGXL_TR_SRGB
Definition:
jpegxl.h:87
FFJXLExtraChannelType
FFJXLExtraChannelType
Definition:
jpegxl.h:50
FFJXLPrimaries
FFJXLPrimaries
Definition:
jpegxl.h:76
JPEGXL_FRAME_REFERENCE_ONLY
@ JPEGXL_FRAME_REFERENCE_ONLY
Definition:
jpegxl.h:38
JPEGXL_CT_THERMAL
@ JPEGXL_CT_THERMAL
Definition:
jpegxl.h:57
FFJXLBlendMode
FFJXLBlendMode
Definition:
jpegxl.h:42
JPEGXL_WP_D65
@ JPEGXL_WP_D65
Definition:
jpegxl.h:70
JPEGXL_PR_P3
@ JPEGXL_PR_P3
Definition:
jpegxl.h:80
JPEGXL_BM_ADD
@ JPEGXL_BM_ADD
Definition:
jpegxl.h:44
JPEGXL_TR_GAMMA
@ JPEGXL_TR_GAMMA
Definition:
jpegxl.h:91
JPEGXL_CS_UNKNOWN
@ JPEGXL_CS_UNKNOWN
Definition:
jpegxl.h:66
JPEGXL_CT_BLACK
@ JPEGXL_CT_BLACK
Definition:
jpegxl.h:55
JPEGXL_ENC_MODULAR
@ JPEGXL_ENC_MODULAR
Definition:
jpegxl.h:32
JPEGXL_TR_UNKNOWN
@ JPEGXL_TR_UNKNOWN
Definition:
jpegxl.h:85
JPEGXL_BM_BLEND
@ JPEGXL_BM_BLEND
Definition:
jpegxl.h:45
JPEGXL_TR_PQ
@ JPEGXL_TR_PQ
Definition:
jpegxl.h:88
JPEGXL_CT_SELECTION_MASK
@ JPEGXL_CT_SELECTION_MASK
Definition:
jpegxl.h:54
JPEGXL_CS_XYB
@ JPEGXL_CS_XYB
Definition:
jpegxl.h:65
Generated on Thu Nov 21 2024 19:21:46 for FFmpeg by
1.8.17