4 * This file is part of FFmpeg.
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef AVCODEC_AV1DEC_H
22 #define AVCODEC_AV1DEC_H
26 #include "libavutil/buffer.h"
27 #include "libavutil/pixfmt.h"
33 typedef struct AV1Frame {
36 AVBufferRef *hwaccel_priv_buf;
37 void *hwaccel_picture_private;
39 uint8_t loop_filter_delta_enabled;
40 int8_t loop_filter_ref_deltas[AV1_NUM_REF_FRAMES];
41 int8_t loop_filter_mode_deltas[2];
42 uint8_t gm_type[AV1_NUM_REF_FRAMES];
43 int32_t gm_params[AV1_NUM_REF_FRAMES][6];
46 typedef struct TileGroupInfo {
53 typedef struct AV1DecContext {
55 AVCodecContext *avctx;
57 enum AVPixelFormat pix_fmt;
58 CodedBitstreamContext *cbc;
59 CodedBitstreamFragment current_obu;
62 AV1RawSequenceHeader *raw_seq;
63 AVBufferRef *header_ref;
64 AV1RawFrameHeader *raw_frame_header;
65 TileGroupInfo *tile_group_info;
70 AV1Frame ref[AV1_NUM_REF_FRAMES];
75 #endif /* AVCODEC_AV1DEC_H */