2 * VP9 compatible video decoder
4 * Copyright (C) 2013 Ronald S. Bultje <rsbultje gmail com>
5 * Copyright (C) 2013 Clément Bœsch <u pkh me>
7 * This file is part of FFmpeg.
9 * FFmpeg is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * FFmpeg is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with FFmpeg; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 #ifndef AVCODEC_VP9SHARED_H
25 #define AVCODEC_VP9SHARED_H
35 PARTITION_NONE, // [ ] <-.
38 PARTITION_SPLIT, // [+] --'
54 typedef struct VP9mvrefPair {
59 typedef struct VP9Frame {
61 AVBufferRef *extradata;
62 uint8_t *segmentation_map;
66 AVBufferRef *hwaccel_priv_buf;
67 void *hwaccel_picture_private;
94 typedef struct VP9BitstreamHeader {
103 uint8_t refreshrefmask;
104 uint8_t highprecisionmvs;
105 enum FilterMode filtermode;
106 uint8_t allowcompinter;
108 uint8_t parallelmode;
110 uint8_t use_last_frame_mvs;
114 uint8_t varcompref[2];
126 int8_t ydc_qdelta, uvdc_qdelta, uvac_qdelta;
128 #define MAX_SEGMENT 8
132 uint8_t absolute_vals;
135 uint8_t pred_prob[3];
140 uint8_t skip_enabled;
148 enum TxfmMode txfmmode;
149 enum CompPredMode comppredmode;
151 unsigned log2_tile_cols, log2_tile_rows;
152 unsigned tile_cols, tile_rows;
155 int uncompressed_header_size;
156 int compressed_header_size;
157 } VP9BitstreamHeader;
159 typedef struct VP9SharedContext {
160 VP9BitstreamHeader h;
164 #define REF_FRAME_MVPAIR 1
165 #define REF_FRAME_SEGMAP 2
169 #endif /* AVCODEC_VP9SHARED_H */