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
{
35 typedef enum FFJXLFrameType
{
38 JPEGXL_FRAME_REFERENCE_ONLY
,
39 JPEGXL_FRAME_SKIP_PROGRESSIVE
42 typedef enum FFJXLBlendMode
{
50 typedef enum FFJXLExtraChannelType
{
54 JPEGXL_CT_SELECTION_MASK
,
58 JPEGXL_CT_NON_OPTIONAL
= 15,
60 } FFJXLExtraChannelType
;
62 typedef enum FFJXLColorSpace
{
69 typedef enum FFJXLWhitePoint
{
76 typedef enum FFJXLPrimaries
{
83 typedef enum FFJXLTransferCharacteristic
{
91 JPEGXL_TR_GAMMA
= 1 << 24,
92 } FFJXLTransferCharacteristic
;
94 #endif /* AVCODEC_JPEGXL_H */