mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
libarmbox/video.cpp: fix aspect settings for osmio
Origin commit data
------------------
Branch: master
Commit: f19f41df92
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-03-05 (Thu, 05 Mar 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -455,7 +455,11 @@ int cVideo::setAspectRatio(int aspect, int mode)
|
||||
{
|
||||
static const char *a[] = { "n/a", "4:3", "14:9", "16:9" };
|
||||
// static const char *m[] = { "panscan", "letterbox", "bestfit", "nonlinear", "(unset)" };
|
||||
#if BOXMODEL_OSMIO4K || BOXMODEL_OSMIO4KPLUS
|
||||
static const char *m[] = { "letterbox", "panscan", "scale", "(unset)", "(unset)" };
|
||||
#else
|
||||
static const char *m[] = { "letterbox", "panscan", "bestfit", "nonlinear", "(unset)" };
|
||||
#endif
|
||||
int n;
|
||||
|
||||
int mo = (mode < 0||mode > 3) ? 4 : mode;
|
||||
@@ -473,9 +477,13 @@ int cVideo::setAspectRatio(int aspect, int mode)
|
||||
|
||||
if (mode == -1)
|
||||
return 0;
|
||||
|
||||
#if BOXMODEL_OSMIO4K || BOXMODEL_OSMIO4KPLUS
|
||||
hal_debug("%s: /proc/stb/video/policy2 -> %s\n", __func__, m[mo]);
|
||||
n = proc_put("/proc/stb/video/policy2", m[mo], strlen(m[mo]));
|
||||
#else
|
||||
hal_debug("%s: /proc/stb/video/policy -> %s\n", __func__, m[mo]);
|
||||
n = proc_put("/proc/stb/video/policy", m[mo], strlen(m[mo]));
|
||||
#endif
|
||||
if (n < 0)
|
||||
return 1;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user