- re-formatting code using astyle

see https://github.com/neutrino-images/ni-buildsystem/blob/master/support/scripts/astyle.sh

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-11-07 21:22:27 +01:00
committed by Thilo Graf
parent 51b4a70dfb
commit e171c95010
12 changed files with 88 additions and 62 deletions

View File

@@ -469,13 +469,16 @@ bool cDemux::sectionFilter(unsigned short _pid, const unsigned char *const filte
if (debuglevel == 2)
{
fprintf(stderr, "filt: ");
for (int i = 0; i < len; i++) fprintf(stderr, "%02hhx ", s_flt.filter.filter[i]);
for (int i = 0; i < len; i++)
fprintf(stderr, "%02hhx ", s_flt.filter.filter[i]);
fprintf(stderr, "\n");
fprintf(stderr, "mask: ");
for (int i = 0; i < len; i++) fprintf(stderr, "%02hhx ", s_flt.filter.mask[i]);
for (int i = 0; i < len; i++)
fprintf(stderr, "%02hhx ", s_flt.filter.mask[i]);
fprintf(stderr, "\n");
fprintf(stderr, "mode: ");
for (int i = 0; i < len; i++) fprintf(stderr, "%02hhx ", s_flt.filter.mode[i]);
for (int i = 0; i < len; i++)
fprintf(stderr, "%02hhx ", s_flt.filter.mode[i]);
fprintf(stderr, "\n");
}

View File

@@ -30,10 +30,14 @@ hw_caps_t *get_hwcaps(void)
memset(&caps, 0, sizeof(hw_caps_t));
caps.pip_devs = 0;
if (access("/dev/dvb/adapter0/video1", F_OK) != -1) caps.pip_devs = 1;
if (access("/dev/dvb/adapter0/video2", F_OK) != -1) caps.pip_devs = 2;
if (access("/dev/dvb/adapter0/video3", F_OK) != -1) caps.pip_devs = 3;
if (caps.pip_devs > 0) caps.can_pip = 1;
if (access("/dev/dvb/adapter0/video1", F_OK) != -1)
caps.pip_devs = 1;
if (access("/dev/dvb/adapter0/video2", F_OK) != -1)
caps.pip_devs = 2;
if (access("/dev/dvb/adapter0/video3", F_OK) != -1)
caps.pip_devs = 3;
if (caps.pip_devs > 0)
caps.can_pip = 1;
#if BOXMODEL_VUSOLO4K
caps.has_CI = 1;

View File

@@ -693,7 +693,7 @@ int cPlayback::GetTeletextPid(void)
/*
if (player && player->manager && player->manager->teletext)
{
{
char **TrackList = NULL;
player->manager->teletext->Command(player, MANAGER_LIST, &TrackList);
if (TrackList != NULL)

View File

@@ -918,11 +918,13 @@ void cVideo::QuadPiP(bool active, int _x, int _y, int _w, int _h)
{
char buffer[64];
int _a = 1;
if (active) {
if (active)
{
#if BOXMODEL_VUSOLO4K || BOXMODEL_VUDUO4K || BOXMODEL_VUDUO4KSE || BOXMODEL_VUULTIMO4K || BOXMODEL_VUUNO4KSE || BOXMODEL_VUUNO4K
proc_put("/proc/stb/video/decodermode", "mosaic", strlen("mosaic"));
#endif
for (unsigned int i = 0; i < 4; i++) {
for (unsigned int i = 0; i < 4; i++)
{
sprintf(buffer, "%x", _x);
proc_put(VMPEG_dst_left[i], buffer, strlen(buffer));
sprintf(buffer, "%x", _y);
@@ -934,8 +936,11 @@ void cVideo::QuadPiP(bool active, int _x, int _y, int _w, int _h)
sprintf(buffer, "%x", _a);
proc_put(VMPEG_dst_apply[i], buffer, strlen(buffer));
}
} else {
for (unsigned int i = 0; i < 4; i++) {
}
else
{
for (unsigned int i = 0; i < 4; i++)
{
sprintf(buffer, "%x", 0);
proc_put(VMPEG_dst_left[i], buffer, strlen(buffer));
sprintf(buffer, "%x", 0);