examples/fboverlay/fboverlay_main.c: Appease nxstyle
This commit is contained in:
parent
379c0c1fd4
commit
20c7a06a84
@ -430,7 +430,8 @@ static void print_plane_info(int fb)
|
|||||||
" stride: %u\n"
|
" stride: %u\n"
|
||||||
" display: %u\n"
|
" display: %u\n"
|
||||||
" bpp: %u\n",
|
" bpp: %u\n",
|
||||||
pinfo.fbmem, (unsigned long)pinfo.fblen, pinfo.stride, pinfo.display,
|
pinfo.fbmem, (unsigned long)pinfo.fblen, pinfo.stride,
|
||||||
|
pinfo.display,
|
||||||
pinfo.bpp, fbmem);
|
pinfo.bpp, fbmem);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -492,7 +493,8 @@ static void print_overlay_info(int fb, uint8_t overlayno)
|
|||||||
" mode: %08x\n"
|
" mode: %08x\n"
|
||||||
" accl: %08x\n"
|
" accl: %08x\n"
|
||||||
" mmap: %p\n",
|
" mmap: %p\n",
|
||||||
oinfo.fbmem, (unsigned long)oinfo.fblen, oinfo.stride, oinfo.overlay,
|
oinfo.fbmem, (unsigned long)oinfo.fblen, oinfo.stride,
|
||||||
|
oinfo.overlay,
|
||||||
oinfo.bpp, oinfo.blank, oinfo.chromakey, oinfo.color,
|
oinfo.bpp, oinfo.blank, oinfo.chromakey, oinfo.color,
|
||||||
oinfo.transp.transp, oinfo.transp.transp_mode, oinfo.accl, fbmem);
|
oinfo.transp.transp, oinfo.transp.transp_mode, oinfo.accl, fbmem);
|
||||||
}
|
}
|
||||||
@ -556,7 +558,8 @@ static int overlay_fill(int fb, uint8_t overlayno, uint32_t color,
|
|||||||
|
|
||||||
if (offset > oinfo.fblen)
|
if (offset > oinfo.fblen)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Area is out of range: %d >= %d\n", offset, oinfo.fblen);
|
fprintf(stderr, "Area is out of range: %d >= %d\n", offset,
|
||||||
|
oinfo.fblen);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -736,7 +739,8 @@ static int overlay_transp(int fb, FAR struct fb_overlayinfo_s *oinfo)
|
|||||||
ret = overlay_accl(fb, oinfo->overlay, FB_ACCL_TRANSP);
|
ret = overlay_accl(fb, oinfo->overlay, FB_ACCL_TRANSP);
|
||||||
if (ret != OK)
|
if (ret != OK)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "No hardware acceleration to set the transparency within "
|
fprintf(stderr,
|
||||||
|
"No hardware acceleration to set the transparency within "
|
||||||
"the selected overlay area\n");
|
"the selected overlay area\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -893,6 +897,7 @@ static int overlay_blend(int fb, FAR struct fb_overlayblend_s *blend)
|
|||||||
{
|
{
|
||||||
ret = overlay_accl(fb, blend->background.overlay, FB_ACCL_BLEND);
|
ret = overlay_accl(fb, blend->background.overlay, FB_ACCL_BLEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret == OK)
|
if (ret == OK)
|
||||||
{
|
{
|
||||||
ret = overlay_accl(fb, blend->dest.overlay, FB_ACCL_BLEND);
|
ret = overlay_accl(fb, blend->dest.overlay, FB_ACCL_BLEND);
|
||||||
@ -991,7 +996,8 @@ static void usage(const char * progname)
|
|||||||
" 1 : Off\n"
|
" 1 : Off\n"
|
||||||
" -area overlayno <xpos> <ypos> <xres> <yres>\n"
|
" -area overlayno <xpos> <ypos> <xres> <yres>\n"
|
||||||
#ifdef CONFIG_FB_OVERLAY_BLIT
|
#ifdef CONFIG_FB_OVERLAY_BLIT
|
||||||
" -blit doverlayno <destxpos> <destypos> <destxres> <destyres>\n"
|
" -blit doverlayno <destxpos> <destypos> <destxres> "
|
||||||
|
"<destyres>\n"
|
||||||
" soverlayno <srcxpos> <srcypos> <srcxres> <srcyres>\n"
|
" soverlayno <srcxpos> <srcypos> <srcxres> <srcyres>\n"
|
||||||
" -blend doverlayno <dxpos> <dypos> <dxres> <dyres>\n"
|
" -blend doverlayno <dxpos> <dypos> <dxres> <dyres>\n"
|
||||||
" foverlayno <fxpos> <fypos> <fxres> <fyres>\n"
|
" foverlayno <fxpos> <fypos> <fxres> <fyres>\n"
|
||||||
@ -1012,7 +1018,6 @@ static void usage(const char * progname)
|
|||||||
|
|
||||||
int main(int argc, FAR char *argv[])
|
int main(int argc, FAR char *argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
char *fbdevice;
|
char *fbdevice;
|
||||||
int fb = -1;
|
int fb = -1;
|
||||||
|
|
||||||
@ -1092,21 +1097,26 @@ int main(int argc, FAR char *argv[])
|
|||||||
rgb8888(strtoul(argv[3], NULL, 16), &a[1], &r[1], &g[1], &b[1]);
|
rgb8888(strtoul(argv[3], NULL, 16), &a[1], &r[1], &g[1], &b[1]);
|
||||||
cmap.len = 2;
|
cmap.len = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc >= 4)
|
if (argc >= 4)
|
||||||
{
|
{
|
||||||
rgb8888(strtoul(argv[4], NULL, 16), &a[2], &r[2], &g[2], &b[2]);
|
rgb8888(strtoul(argv[4], NULL, 16), &a[2], &r[2], &g[2], &b[2]);
|
||||||
cmap.len = 3;
|
cmap.len = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc >= 5)
|
if (argc >= 5)
|
||||||
|
|
||||||
{
|
{
|
||||||
rgb8888(strtoul(argv[5], NULL, 16), &a[3], &r[3], &g[3], &b[3]);
|
rgb8888(strtoul(argv[5], NULL, 16), &a[3], &r[3], &g[3], &b[3]);
|
||||||
cmap.len = 4;
|
cmap.len = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc >= 6)
|
if (argc >= 6)
|
||||||
{
|
{
|
||||||
rgb8888(strtoul(argv[6], NULL, 16), &a[4], &r[4], &g[4], &b[4]);
|
rgb8888(strtoul(argv[6], NULL, 16), &a[4], &r[4], &g[4], &b[4]);
|
||||||
cmap.len = 5;
|
cmap.len = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
# ifdef CONFIG_FB_TRANSPARENCY
|
# ifdef CONFIG_FB_TRANSPARENCY
|
||||||
cmap.transp = a;
|
cmap.transp = a;
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user