FFmpeg
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
libavcodec
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
{
34
ThreadFrame
tf
;
35
36
AVBufferRef
*
hwaccel_priv_buf
;
37
void
*
hwaccel_picture_private
;
38
39
AVBufferRef
*
header_ref
;
40
AV1RawFrameHeader
*
raw_frame_header
;
41
42
int
temporal_id
;
43
int
spatial_id
;
44
45
uint8_t
gm_type
[
AV1_NUM_REF_FRAMES
];
46
int32_t
gm_params
[
AV1_NUM_REF_FRAMES
][6];
47
48
uint8_t
skip_mode_frame_idx
[2];
49
50
AV1RawFilmGrainParams
film_grain
;
51
52
uint8_t
coded_lossless
;
53
}
AV1Frame
;
54
55
typedef
struct
TileGroupInfo
{
56
uint32_t
tile_offset
;
57
uint32_t
tile_size
;
58
uint16_t
tile_row
;
59
uint16_t
tile_column
;
60
}
TileGroupInfo
;
61
62
typedef
struct
AV1DecContext
{
63
const
AVClass
*
class
;
64
AVCodecContext
*
avctx
;
65
66
enum
AVPixelFormat
pix_fmt
;
67
CodedBitstreamContext
*
cbc
;
68
CodedBitstreamFragment
current_obu
;
69
70
AVBufferRef
*
seq_ref
;
71
AV1RawSequenceHeader
*
raw_seq
;
72
AVBufferRef
*
header_ref
;
73
AV1RawFrameHeader
*
raw_frame_header
;
74
TileGroupInfo
*
tile_group_info
;
75
uint16_t
tile_num
;
76
uint16_t
tg_start
;
77
uint16_t
tg_end
;
78
79
int
operating_point_idc
;
80
81
AV1Frame
ref
[
AV1_NUM_REF_FRAMES
];
82
AV1Frame
cur_frame
;
83
84
// AVOptions
85
int
operating_point
;
86
}
AV1DecContext
;
87
88
#endif
/* AVCODEC_AV1DEC_H */
AV1Frame::coded_lossless
uint8_t coded_lossless
Definition:
av1dec.h:52
pix_fmt
static enum AVPixelFormat pix_fmt
Definition:
demuxing_decoding.c:40
AV1DecContext::raw_frame_header
AV1RawFrameHeader * raw_frame_header
Definition:
av1dec.h:73
AV1DecContext
Definition:
av1dec.h:62
AV1DecContext::header_ref
AVBufferRef * header_ref
Definition:
av1dec.h:72
AV1DecContext::tg_end
uint16_t tg_end
Definition:
av1dec.h:77
AV1Frame
Definition:
av1dec.h:33
cbs_av1.h
AV1DecContext::cur_frame
AV1Frame cur_frame
Definition:
av1dec.h:82
AV1DecContext::tile_group_info
TileGroupInfo * tile_group_info
Definition:
av1dec.h:74
cbs.h
uint8_t
uint8_t
Definition:
audio_convert.c:194
AV1RawFrameHeader
Definition:
cbs_av1.h:165
thread.h
Multithreading support functions.
AV1_NUM_REF_FRAMES
Definition:
av1.h:83
AV1Frame::temporal_id
int temporal_id
Definition:
av1dec.h:42
AV1RawFilmGrainParams
Definition:
cbs_av1.h:133
AV1Frame::tf
ThreadFrame tf
Definition:
av1dec.h:34
AV1DecContext::current_obu
CodedBitstreamFragment current_obu
Definition:
av1dec.h:68
AV1DecContext::tg_start
uint16_t tg_start
Definition:
av1dec.h:76
AV1RawSequenceHeader
Definition:
cbs_av1.h:73
int32_t
int32_t
Definition:
audio_convert.c:194
TileGroupInfo::tile_offset
uint32_t tile_offset
Definition:
av1dec.h:56
ThreadFrame
Definition:
thread.h:34
AV1Frame::film_grain
AV1RawFilmGrainParams film_grain
Definition:
av1dec.h:50
AV1DecContext::operating_point_idc
int operating_point_idc
Definition:
av1dec.h:79
AV1Frame::skip_mode_frame_idx
uint8_t skip_mode_frame_idx[2]
Definition:
av1dec.h:48
avcodec.h
Libavcodec external API header.
CodedBitstreamFragment
Coded bitstream fragment structure, combining one or more units.
Definition:
cbs.h:118
TileGroupInfo
Definition:
av1dec.h:55
AVCodecContext
main external API structure.
Definition:
avcodec.h:531
AV1DecContext::operating_point
int operating_point
Definition:
av1dec.h:85
AVClass
Describe the class of an AVClass context structure.
Definition:
log.h:67
CodedBitstreamContext
Context structure for coded bitstream operations.
Definition:
cbs.h:170
AV1Frame::header_ref
AVBufferRef * header_ref
Definition:
av1dec.h:39
buffer.h
refcounted data buffer API
AV1Frame::gm_params
int32_t gm_params[AV1_NUM_REF_FRAMES][6]
Definition:
av1dec.h:46
AV1DecContext::cbc
CodedBitstreamContext * cbc
Definition:
av1dec.h:67
AV1DecContext::seq_ref
AVBufferRef * seq_ref
Definition:
av1dec.h:70
TileGroupInfo::tile_column
uint16_t tile_column
Definition:
av1dec.h:59
AVBufferRef
A reference to a data buffer.
Definition:
buffer.h:81
TileGroupInfo::tile_row
uint16_t tile_row
Definition:
av1dec.h:58
ref
static int ref[MAX_W *MAX_W]
Definition:
jpeg2000dwt.c:107
AV1DecContext::avctx
AVCodecContext * avctx
Definition:
av1dec.h:64
AV1DecContext::raw_seq
AV1RawSequenceHeader * raw_seq
Definition:
av1dec.h:71
pixfmt.h
pixel format definitions
TileGroupInfo::tile_size
uint32_t tile_size
Definition:
av1dec.h:57
AV1DecContext::tile_num
uint16_t tile_num
Definition:
av1dec.h:75
AV1Frame::raw_frame_header
AV1RawFrameHeader * raw_frame_header
Definition:
av1dec.h:40
AV1Frame::spatial_id
int spatial_id
Definition:
av1dec.h:43
AV1Frame::gm_type
uint8_t gm_type[AV1_NUM_REF_FRAMES]
Definition:
av1dec.h:45
AV1Frame::hwaccel_picture_private
void * hwaccel_picture_private
Definition:
av1dec.h:37
AVPixelFormat
AVPixelFormat
Pixel format.
Definition:
pixfmt.h:64
AV1Frame::hwaccel_priv_buf
AVBufferRef * hwaccel_priv_buf
Definition:
av1dec.h:36
Generated on Sun Mar 7 2021 19:21:56 for FFmpeg by
1.8.11