Skip to content

Commit 8c82e2e

Browse files
committed
aom: rename parameter to 'enable-intrabc' (#1408)
1 parent 5816f6a commit 8c82e2e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libheif/plugins/encoder_aom.cc

+6-6
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct encoder_struct_aom
7373
bool lossless;
7474
bool lossless_alpha;
7575
bool auto_tiles;
76-
bool intra_block_copy;
76+
bool enable_intra_block_copy;
7777

7878
#if defined(HAVE_AOM_CODEC_SET_OPTION)
7979
std::vector<custom_option> custom_options;
@@ -163,7 +163,7 @@ static const char* kParam_alpha_min_q = "alpha-min-q";
163163
static const char* kParam_alpha_max_q = "alpha-max-q";
164164
static const char* kParam_lossless_alpha = "lossless-alpha";
165165
static const char* kParam_auto_tiles = "auto-tiles";
166-
static const char* kParam_intra_block_copy = "intra-block-copy";
166+
static const char* kParam_enable_intra_block_copy = "enable-intrabc";
167167
static const char* kParam_threads = "threads";
168168
static const char* kParam_realtime = "realtime";
169169
static const char* kParam_speed = "speed";
@@ -378,7 +378,7 @@ static void aom_init_parameters()
378378
#if defined(AOM_CTRL_AV1E_SET_ENABLE_INTRABC)
379379
assert(i < MAX_NPARAMETERS);
380380
p->version = 2;
381-
p->name = kParam_intra_block_copy;
381+
p->name = kParam_enable_intra_block_copy;
382382
p->type = heif_encoder_parameter_type_boolean;
383383
p->boolean.default_value = true;
384384
p->has_default = true;
@@ -598,8 +598,8 @@ struct heif_error aom_set_parameter_boolean(void* encoder_raw, const char* name,
598598
encoder->auto_tiles = value;
599599
return heif_error_ok;
600600
#if defined(AOM_CTRL_AV1E_SET_ENABLE_INTRABC)
601-
} else if (strcmp(name, kParam_intra_block_copy) == 0) {
602-
encoder->intra_block_copy = value;
601+
} else if (strcmp(name, kParam_enable_intra_block_copy) == 0) {
602+
encoder->enable_intra_block_copy = value;
603603
return heif_error_ok;
604604
#endif
605605
}
@@ -1055,7 +1055,7 @@ struct heif_error aom_encode_image(void* encoder_raw, const struct heif_image* i
10551055
#endif
10561056

10571057
#if defined(AOM_CTRL_AV1E_SET_ENABLE_INTRABC)
1058-
aom_codec_control(&codec, AV1E_SET_ENABLE_INTRABC, encoder->intra_block_copy);
1058+
aom_codec_control(&codec, AV1E_SET_ENABLE_INTRABC, encoder->enable_intra_block_copy);
10591059
#endif
10601060

10611061
#if defined(HAVE_AOM_CODEC_SET_OPTION)

0 commit comments

Comments
 (0)