Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
encoders/aom-av1: Deprecate encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaymar committed Aug 20, 2022
1 parent f2fb77b commit d2f4d67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/locale/en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ UI.Updater.Menu.Channel.Alpha="Alpha"

# Encoder/AOM-AV1
Encoder.AOM.AV1="AOM AV1 (direct)"
Encoder.AOM.AV1.Deprecated="This encoder is deprecated and will be removed soon. Users are urged to switch to the integrated 'SVT-AV1' or 'AOM AV1' encoder as soon as possible."
Encoder.AOM.AV1.Encoder="Encoder"
Encoder.AOM.AV1.Encoder.Usage="Usage"
Encoder.AOM.AV1.Encoder.Usage.GoodQuality="Good Quality"
Expand Down
7 changes: 7 additions & 0 deletions source/encoders/encoder-aom-av1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#define ST_I18N "Encoder.AOM.AV1"

// Preset
#define ST_I18N_DEPRECATED ST_I18N ".Deprecated"
#define ST_I18N_ENCODER ST_I18N ".Encoder"
#define ST_I18N_ENCODER_USAGE ST_I18N_ENCODER ".Usage"
#define ST_I18N_ENCODER_USAGE_GOODQUALITY ST_I18N_ENCODER_USAGE ".GoodQuality"
Expand Down Expand Up @@ -1425,6 +1426,12 @@ obs_properties_t* aom_av1_factory::get_properties2(instance_t* data)
{
obs_properties_t* props = obs_properties_create();

{
auto p = obs_properties_add_text(props, "[[deprecated]]", D_TRANSLATE(ST_I18N_DEPRECATED), OBS_TEXT_INFO);
obs_property_text_set_info_type(p, OBS_TEXT_INFO_WARNING);
obs_property_text_set_info_word_wrap(p, true);
}

#ifdef ENABLE_FRONTEND
{
obs_properties_add_button2(props, S_MANUAL_OPEN, D_TRANSLATE(S_MANUAL_OPEN), aom_av1_factory::on_manual_open,
Expand Down

0 comments on commit d2f4d67

Please sign in to comment.