Skip to content

Commit

Permalink
Bump AVM to research-v6.0.0 (AOMediaCodec#1927)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud authored Jan 11, 2024
1 parent 2a82d94 commit 03dceb6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ext/avm.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
: # If you're running this on Windows, be sure you've already run this (from your VC2019 install dir):
: # "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"

git clone -b research-v5.0.0 --depth 1 https://gitlab.com/AOMediaCodec/avm.git
git clone -b research-v6.0.0 --depth 1 https://gitlab.com/AOMediaCodec/avm.git

cd avm

Expand Down
17 changes: 13 additions & 4 deletions src/obu.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@

#if defined(AVIF_CODEC_AVM)
#include "config/aom_config.h"
#if CONFIG_LR_IMPROVEMENTS
#include "av1/common/enums.h"
#include "av1/common/restoration.h"
#endif
#endif

// ---------------------------------------------------------------------------
Expand Down Expand Up @@ -378,10 +382,15 @@ static avifBool parseAV2SequenceHeader(avifBits * bits, avifSequenceHeader * hea

avifBitsRead(bits, 2); // enable_superres, enable_cdef
if (avifBitsRead(bits, 1)) { // enable_restoration
#if CONFIG_LR_FLEX_SYNTAX
avifBitsRead(bits, 2 + CONFIG_PC_WIENER + CONFIG_WIENER_NONSEP); // lr_tools_disable_mask[0]
if (avifBitsRead(bits, 1)) { // uv_neq_y
avifBitsRead(bits, 2 + CONFIG_WIENER_NONSEP); // lr_tools_disable_mask[1]
#if CONFIG_LR_IMPROVEMENTS
avifBitsRead(bits, RESTORE_SWITCHABLE_TYPES); // lr_tools_disable_mask[0]
if (avifBitsRead(bits, 1)) {
for (int i = 1; i < RESTORE_SWITCHABLE_TYPES; ++i) {
if (DEF_UV_LR_TOOLS_DISABLE_MASK & (1 << i)) {
continue;
}
avifBitsRead(bits, 1); // lr_tools_disable_mask[1]
}
}
#endif
}
Expand Down

0 comments on commit 03dceb6

Please sign in to comment.