Skip to content

Commit

Permalink
use hw-decode on the rock platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Nov 23, 2023
1 parent 0f315df commit 5a21bc9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,16 @@ int main(int argc, char *argv[]) {
settings.setValue("global_scale",0.7);
}
}

if(QOpenHD::instance().is_platform_rock()){
if(!settings.value("dev_rpi_use_external_omx_decode_service",true).toBool()){
qDebug()<<"Disabling RPI decode!";
settings.setValue("dev_rpi_use_external_omx_decode_service",false);
}
if(!settings.value("dev_always_use_generic_external_decode_service",false).toBool()){
qDebug()<<"Enable rockchip HW decoding!";
settings.setValue("dev_always_use_generic_external_decode_service",true);
}
}

const int screen_custom_font_dpi = settings.value("screen_custom_font_dpi").toInt();
if (screen_custom_font_dpi) {
Expand Down

0 comments on commit 5a21bc9

Please sign in to comment.