FFmpeg
av1dec.h
Go to the documentation of this file.
1 /*
2  * AV1 video decoder
3  * *
4  * This file is part of FFmpeg.
5  *
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.
10  *
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.
15  *
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
19  */
20 
21 #ifndef AVCODEC_AV1DEC_H
22 #define AVCODEC_AV1DEC_H
23 
24 #include <stdint.h>
25 
26 #include "libavutil/buffer.h"
27 #include "libavutil/pixfmt.h"
28 #include "avcodec.h"
29 #include "cbs.h"
30 #include "cbs_av1.h"
31 #include "thread.h"
32 
33 typedef struct AV1Frame {
35 
38 
41 
44 
47 
49 
51 } AV1Frame;
52 
53 typedef struct TileGroupInfo {
54  uint32_t tile_offset;
55  uint32_t tile_size;
56  uint16_t tile_row;
57  uint16_t tile_column;
59 
60 typedef struct AV1DecContext {
61  const AVClass *class;
63 
67 
73  uint16_t tile_num;
74  uint16_t tg_start;
75  uint16_t tg_end;
76 
79 
81 
82 #endif /* AVCODEC_AV1DEC_H */
uint8_t coded_lossless
Definition: av1dec.h:50
static enum AVPixelFormat pix_fmt
AV1RawFrameHeader * raw_frame_header
Definition: av1dec.h:71
AVBufferRef * header_ref
Definition: av1dec.h:70
uint16_t tg_end
Definition: av1dec.h:75
AV1Frame cur_frame
Definition: av1dec.h:78
TileGroupInfo * tile_group_info
Definition: av1dec.h:72
uint8_t
Multithreading support functions.
int temporal_id
Definition: av1dec.h:42
ThreadFrame tf
Definition: av1dec.h:34
CodedBitstreamFragment current_obu
Definition: av1dec.h:66
uint16_t tg_start
Definition: av1dec.h:74
int32_t
uint32_t tile_offset
Definition: av1dec.h:54
uint8_t skip_mode_frame_idx[2]
Definition: av1dec.h:48
Libavcodec external API header.
Coded bitstream fragment structure, combining one or more units.
Definition: cbs.h:118
main external API structure.
Definition: avcodec.h:526
Describe the class of an AVClass context structure.
Definition: log.h:67
Context structure for coded bitstream operations.
Definition: cbs.h:170
AVBufferRef * header_ref
Definition: av1dec.h:39
refcounted data buffer API
int32_t gm_params[AV1_NUM_REF_FRAMES][6]
Definition: av1dec.h:46
CodedBitstreamContext * cbc
Definition: av1dec.h:65
AVBufferRef * seq_ref
Definition: av1dec.h:68
uint16_t tile_column
Definition: av1dec.h:57
A reference to a data buffer.
Definition: buffer.h:81
uint16_t tile_row
Definition: av1dec.h:56
static int ref[MAX_W *MAX_W]
Definition: jpeg2000dwt.c:107
AVCodecContext * avctx
Definition: av1dec.h:62
AV1RawSequenceHeader * raw_seq
Definition: av1dec.h:69
pixel format definitions
uint32_t tile_size
Definition: av1dec.h:55
uint16_t tile_num
Definition: av1dec.h:73
AV1RawFrameHeader * raw_frame_header
Definition: av1dec.h:40
int spatial_id
Definition: av1dec.h:43
uint8_t gm_type[AV1_NUM_REF_FRAMES]
Definition: av1dec.h:45
void * hwaccel_picture_private
Definition: av1dec.h:37
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
AVBufferRef * hwaccel_priv_buf
Definition: av1dec.h:36