Skip to content

Commit

Permalink
Merge pull request #496 from lovell/aom-all-intra
Browse files Browse the repository at this point in the history
aom: improve AVIF encoding performance by ~2x
  • Loading branch information
farindk committed Jul 12, 2021
2 parents 13c3d59 + de0c159 commit 4ec2ac3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libheif/heif_encoder_aom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,10 @@ struct heif_error aom_encode_image(void* encoder_raw, const struct heif_image* i


unsigned int aomUsage = 0;
#if defined(AOM_USAGE_REALTIME)
#if defined(AOM_USAGE_ALL_INTRA)
// aom 3.1.0
aomUsage = (encoder->realtime_mode ? AOM_USAGE_REALTIME : AOM_USAGE_ALL_INTRA);
#elif defined(AOM_USAGE_REALTIME)
// aom 2.0
aomUsage = (encoder->realtime_mode ? AOM_USAGE_REALTIME : AOM_USAGE_GOOD_QUALITY);
#endif
Expand Down

0 comments on commit 4ec2ac3

Please sign in to comment.