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 {
145 uint8_t refreshrefmask;
146 uint8_t highprecisionmvs;
147 enum FilterMode filtermode;
148 uint8_t allowcompinter;
150 uint8_t parallelmode;
152 uint8_t use_last_frame_mvs;
156 uint8_t varcompref[2];
168 int8_t ydc_qdelta, uvdc_qdelta, uvac_qdelta;
170 #define MAX_SEGMENT 8
174 uint8_t absolute_vals;
177 uint8_t pred_prob[3];
182 uint8_t skip_enabled;
190 enum TxfmMode txfmmode;
191 enum CompPredMode comppredmode;
193 unsigned log2_tile_cols, log2_tile_rows;
194 unsigned tile_cols, tile_rows;
197 int uncompressed_header_size;
198 int compressed_header_size;
199 } VP9BitstreamHeader;
201 typedef struct VP9SharedContext {
202 VP9BitstreamHeader h;
206 #define REF_FRAME_MVPAIR 1
207 #define REF_FRAME_SEGMAP 2
211 #endif /* AVCODEC_VP9_H */