Skip to content

Commit

Permalink
AOM encoder: always disable IntraBC
Browse files Browse the repository at this point in the history
See:
libvips/libvips#2983 (comment)

Co-authored-by: Lovell Fuller <[email protected]>
  • Loading branch information
kleisauke and lovell committed Nov 22, 2024
1 parent 331bd06 commit 0662ba9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libheif/plugins/encoder_aom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,11 @@ struct heif_error aom_encode_image(void* encoder_raw, const struct heif_image* i
}
#endif

#if defined(AOM_CTRL_AV1E_SET_ENABLE_INTRABC)
// Always disable the IntraBC mode, as it's too slow.
aom_codec_control(&codec, AV1E_SET_ENABLE_INTRABC, 0);
#endif

#if defined(HAVE_AOM_CODEC_SET_OPTION)
// Apply the custom AOM encoder options.
// These should always be applied last as they can override the values that were set above.
Expand Down

0 comments on commit 0662ba9

Please sign in to comment.