From ffae62d96c75d4a476eb3890357c4f3e4f8bd4f5 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 23 Mar 2020 16:09:48 +0100 Subject: vp9dec: support exporting QP tables through the AVVideoEncParams API --- libavcodec/vp9block.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavcodec/vp9block.c') diff --git a/libavcodec/vp9block.c b/libavcodec/vp9block.c index 1c3f7a7225..ec16e26c69 100644 --- a/libavcodec/vp9block.c +++ b/libavcodec/vp9block.c @@ -1290,6 +1290,14 @@ void ff_vp9_decode_block(VP9TileData *td, int row, int col, b->uvtx = b->tx - ((s->ss_h && w4 * 2 == (1 << b->tx)) || (s->ss_v && h4 * 2 == (1 << b->tx))); + if (td->block_structure) { + td->block_structure[td->nb_block_structure].row = row; + td->block_structure[td->nb_block_structure].col = col; + td->block_structure[td->nb_block_structure].block_size_idx_x = av_log2(w4); + td->block_structure[td->nb_block_structure].block_size_idx_y = av_log2(h4); + td->nb_block_structure++; + } + if (!b->skip) { int has_coeffs; -- cgit v1.2.3