diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-03-23 16:09:48 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-05-12 09:37:47 +0200 |
commit | ffae62d96c75d4a476eb3890357c4f3e4f8bd4f5 (patch) | |
tree | 3057751fe52a1b473d67926341d4b39713695341 /libavcodec/vp9block.c | |
parent | c90f57c6736a11670a0fcf25ed4280062246fb02 (diff) |
vp9dec: support exporting QP tables through the AVVideoEncParams API
Diffstat (limited to 'libavcodec/vp9block.c')
-rw-r--r-- | libavcodec/vp9block.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |