Take amd hevc video alignment padding into consideration to move video content to center of video with black bars on all sides instead of only right/bottom

This commit is contained in:
dec05eba
2024-06-10 17:51:09 +02:00
parent 55266f2a68
commit adbd5d9766
5 changed files with 21 additions and 18 deletions

View File

@@ -329,10 +329,8 @@ gsr_monitor_rotation drm_monitor_get_display_server_rotation(const gsr_egl *egl,
userdata.rotation = GSR_MONITOR_ROT_0;
userdata.match_found = false;
for_each_active_monitor_output_wayland(egl, get_monitor_by_name_and_size_callback, &userdata);
if(userdata.match_found) {
fprintf(stderr, "found!\n");
if(userdata.match_found)
return userdata.rotation;
}
}
{
get_monitor_by_connector_id_userdata userdata;