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
40 PARTITION_NONE, // [ ] <-.
43 PARTITION_SPLIT, // [+] --'
69 TX_SWITCHABLE = N_TXFM_SIZES,
121 struct VP9mvrefPair {
126 typedef struct VP9Frame {
128 AVBufferRef *extradata;
129 uint8_t *segmentation_map;
130 struct VP9mvrefPair *mv;
133 AVBufferRef *hwaccel_priv_buf;
134 void *hwaccel_picture_private;
137 typedef struct VP9BitstreamHeader {
146 uint8_t refreshrefmask;
147 uint8_t highprecisionmvs;
148 enum FilterMode filtermode;
149 uint8_t allowcompinter;
151 uint8_t parallelmode;
153 uint8_t use_last_frame_mvs;
157 uint8_t varcompref[2];
169 int8_t ydc_qdelta, uvdc_qdelta, uvac_qdelta;
171 #define MAX_SEGMENT 8
175 uint8_t absolute_vals;
178 uint8_t pred_prob[3];
183 uint8_t skip_enabled;
191 enum TxfmMode txfmmode;
192 enum CompPredMode comppredmode;
194 unsigned log2_tile_cols, log2_tile_rows;
195 unsigned tile_cols, tile_rows;
198 int uncompressed_header_size;
199 int compressed_header_size;
200 } VP9BitstreamHeader;
202 typedef struct VP9SharedContext {
203 VP9BitstreamHeader h;
207 #define REF_FRAME_MVPAIR 1
208 #define REF_FRAME_SEGMAP 2
212 #endif /* AVCODEC_VP9_H */