Skip to content

Commit

Permalink
aom: rename parameter to 'enable-intrabc' (#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 27, 2024
1 parent 5816f6a commit 8c82e2e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libheif/plugins/encoder_aom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct encoder_struct_aom
bool lossless;
bool lossless_alpha;
bool auto_tiles;
bool intra_block_copy;
bool enable_intra_block_copy;

#if defined(HAVE_AOM_CODEC_SET_OPTION)
std::vector<custom_option> custom_options;
Expand Down Expand Up @@ -163,7 +163,7 @@ static const char* kParam_alpha_min_q = "alpha-min-q";
static const char* kParam_alpha_max_q = "alpha-max-q";
static const char* kParam_lossless_alpha = "lossless-alpha";
static const char* kParam_auto_tiles = "auto-tiles";
static const char* kParam_intra_block_copy = "intra-block-copy";
static const char* kParam_enable_intra_block_copy = "enable-intrabc";
static const char* kParam_threads = "threads";
static const char* kParam_realtime = "realtime";
static const char* kParam_speed = "speed";
Expand Down Expand Up @@ -378,7 +378,7 @@ static void aom_init_parameters()
#if defined(AOM_CTRL_AV1E_SET_ENABLE_INTRABC)
assert(i < MAX_NPARAMETERS);
p->version = 2;
p->name = kParam_intra_block_copy;
p->name = kParam_enable_intra_block_copy;
p->type = heif_encoder_parameter_type_boolean;
p->boolean.default_value = true;
p->has_default = true;
Expand Down Expand Up @@ -598,8 +598,8 @@ struct heif_error aom_set_parameter_boolean(void* encoder_raw, const char* name,
encoder->auto_tiles = value;
return heif_error_ok;
#if defined(AOM_CTRL_AV1E_SET_ENABLE_INTRABC)
} else if (strcmp(name, kParam_intra_block_copy) == 0) {
encoder->intra_block_copy = value;
} else if (strcmp(name, kParam_enable_intra_block_copy) == 0) {
encoder->enable_intra_block_copy = value;
return heif_error_ok;
#endif
}
Expand Down Expand Up @@ -1055,7 +1055,7 @@ struct heif_error aom_encode_image(void* encoder_raw, const struct heif_image* i
#endif

#if defined(AOM_CTRL_AV1E_SET_ENABLE_INTRABC)
aom_codec_control(&codec, AV1E_SET_ENABLE_INTRABC, encoder->intra_block_copy);
aom_codec_control(&codec, AV1E_SET_ENABLE_INTRABC, encoder->enable_intra_block_copy);
#endif

#if defined(HAVE_AOM_CODEC_SET_OPTION)
Expand Down

0 comments on commit 8c82e2e

Please sign in to comment.