From 0c6022ca043838fa62bc4865ae7191a8b16511ea Mon Sep 17 00:00:00 2001 From: NicJA Date: Tue, 8 Oct 2013 16:12:30 +0000 Subject: [PATCH] flesh out process pixel array a little git-svn-id: https://svn.aros.org/svn/aros/trunk@48252 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- AROS/workbench/libs/cgfx/mmakefile.src | 56 +++++++++++++--------- .../workbench/libs/cgfx/processpixelarray_opblur.c | 20 ++++++++ .../libs/cgfx/processpixelarray_opbrightness.c | 22 +++++++++ .../libs/cgfx/processpixelarray_opcol2grey.c | 22 +++++++++ .../libs/cgfx/processpixelarray_opgradient.c | 22 +++++++++ .../libs/cgfx/processpixelarray_opnegative.c | 22 +++++++++ .../libs/cgfx/processpixelarray_opnegative_fade.c | 22 +++++++++ AROS/workbench/libs/cgfx/processpixelarray_ops.h | 13 +++++ .../libs/cgfx/processpixelarray_opsetalpha.c | 20 ++++++++ .../libs/cgfx/processpixelarray_opshiftrgb.c | 22 +++++++++ .../workbench/libs/cgfx/processpixelarray_optint.c | 22 +++++++++ .../libs/cgfx/processpixelarray_optint_fade.c | 22 +++++++++ 12 files changed, 262 insertions(+), 23 deletions(-) create mode 100644 AROS/workbench/libs/cgfx/processpixelarray_opblur.c create mode 100644 AROS/workbench/libs/cgfx/processpixelarray_opbrightness.c create mode 100644 AROS/workbench/libs/cgfx/processpixelarray_opcol2grey.c create mode 100644 AROS/workbench/libs/cgfx/processpixelarray_opgradient.c create mode 100644 AROS/workbench/libs/cgfx/processpixelarray_opnegative.c create mode 100644 AROS/workbench/libs/cgfx/processpixelarray_opnegative_fade.c create mode 100644 AROS/workbench/libs/cgfx/processpixelarray_ops.h create mode 100644 AROS/workbench/libs/cgfx/processpixelarray_opsetalpha.c create mode 100644 AROS/workbench/libs/cgfx/processpixelarray_opshiftrgb.c create mode 100644 AROS/workbench/libs/cgfx/processpixelarray_optint.c create mode 100644 AROS/workbench/libs/cgfx/processpixelarray_optint_fade.c diff --git a/AROS/workbench/libs/cgfx/mmakefile.src b/AROS/workbench/libs/cgfx/mmakefile.src index 46043da..e7d62b0 100644 --- a/AROS/workbench/libs/cgfx/mmakefile.src +++ b/AROS/workbench/libs/cgfx/mmakefile.src @@ -5,29 +5,39 @@ include $(TOP)/config/make.cfg FUNCS := \ - alloccmodelisttaglist \ - bestcmodeidtaglist \ - blttemplatealpha \ - cvideoctrltaglist \ - docdrawmethodtaglist \ - extractcolor \ - fillpixelarray \ - freecmodelist \ - getcybermapattr \ - getcyberidattr \ - invertpixelarray \ - iscybermodeid \ - lockbitmaptaglist \ - movepixelarray \ - processpixelarray \ - readpixelarray \ - readrgbpixel \ - scalepixelarray \ - unlockbitmap \ - unlockbitmaptaglist \ - writelutpixelarray \ - writepixelarray \ - writepixelarrayalpha \ + alloccmodelisttaglist \ + bestcmodeidtaglist \ + blttemplatealpha \ + cvideoctrltaglist \ + docdrawmethodtaglist \ + extractcolor \ + fillpixelarray \ + freecmodelist \ + getcybermapattr \ + getcyberidattr \ + invertpixelarray \ + iscybermodeid \ + lockbitmaptaglist \ + movepixelarray \ + processpixelarray \ + processpixelarray_opbrightness \ + processpixelarray_opsetalpha \ + processpixelarray_optint \ + processpixelarray_opblur \ + processpixelarray_opcol2grey \ + processpixelarray_opnegative \ + processpixelarray_opnegative_fade \ + processpixelarray_optint_fade \ + processpixelarray_opgradient \ + processpixelarray_opshiftrgb \ + readpixelarray \ + readrgbpixel \ + scalepixelarray \ + unlockbitmap \ + unlockbitmaptaglist \ + writelutpixelarray \ + writepixelarray \ + writepixelarrayalpha \ writergbpixel #MM- workbench-libs-cgfx : linklibs diff --git a/AROS/workbench/libs/cgfx/processpixelarray_opblur.c b/AROS/workbench/libs/cgfx/processpixelarray_opblur.c new file mode 100644 index 0000000..4015a7b --- /dev/null +++ b/AROS/workbench/libs/cgfx/processpixelarray_opblur.c @@ -0,0 +1,20 @@ +/* + Copyright © 2013, The AROS Development Team. All rights reserved. + $Id$ +*/ + +#include + +#include + +#include +#include +#include + +#include "cybergraphics_intern.h" + +void ProcessPixelArrayBlurFunc(struct RastPort *opRast, struct Rectangle *opRect, struct Library *CyberGfxBase) +{ + bug ("[Cgfx] %s(%d)\n", __PRETTY_FUNCTION__, value); + bug ("[Cgfx] %s: Blur operator not implemented\n", __PRETTY_FUNCTION__); +} diff --git a/AROS/workbench/libs/cgfx/processpixelarray_opbrightness.c b/AROS/workbench/libs/cgfx/processpixelarray_opbrightness.c new file mode 100644 index 0000000..1fb5a54 --- /dev/null +++ b/AROS/workbench/libs/cgfx/processpixelarray_opbrightness.c @@ -0,0 +1,22 @@ +/* + Copyright © 2013, The AROS Development Team. All rights reserved. + $Id$ +*/ + +#include + +#include + +#include + +#include +#include +#include + +#include "cybergraphics_intern.h" + +void ProcessPixelArrayBrightnessFunc(struct RastPort *opRast, struct Rectangle *opRect, LONG value, struct Library *CyberGfxBase) +{ + bug ("[Cgfx] %s(%d)\n", __PRETTY_FUNCTION__, value); + bug ("[Cgfx] %s: Brightness operator not implemented\n", __PRETTY_FUNCTION__); +} diff --git a/AROS/workbench/libs/cgfx/processpixelarray_opcol2grey.c b/AROS/workbench/libs/cgfx/processpixelarray_opcol2grey.c new file mode 100644 index 0000000..549ee45 --- /dev/null +++ b/AROS/workbench/libs/cgfx/processpixelarray_opcol2grey.c @@ -0,0 +1,22 @@ +/* + Copyright © 2013, The AROS Development Team. All rights reserved. + $Id$ +*/ + +#include + +#include + +#include + +#include +#include +#include + +#include "cybergraphics_intern.h" + +void ProcessPixelArrayColor2GreyFunc(struct RastPort *opRast, struct Rectangle *opRect, ULONG tintval, struct Library *CyberGfxBase) +{ + D(bug("[Cgfx] %s(0x%08x)\n", __PRETTY_FUNCTION__, tintval)); + D(bug("[Cgfx] %s: Color2Grey operator not implemented\n", __PRETTY_FUNCTION__)); +} diff --git a/AROS/workbench/libs/cgfx/processpixelarray_opgradient.c b/AROS/workbench/libs/cgfx/processpixelarray_opgradient.c new file mode 100644 index 0000000..7eb6d09 --- /dev/null +++ b/AROS/workbench/libs/cgfx/processpixelarray_opgradient.c @@ -0,0 +1,22 @@ +/* + Copyright © 2013, The AROS Development Team. All rights reserved. + $Id$ +*/ + +#include + +#include + +#include + +#include +#include +#include + +#include "cybergraphics_intern.h" + +void ProcessPixelArrayGradientFunc(struct RastPort *opRast, struct Rectangle *opRect, BOOL opHoriz, ULONG opOffset, ULONG opCol1, ULONG opCol2, BOOL opFull, struct Library *CyberGfxBase) +{ + bug ("[Cgfx] %s(0x%08x->0x%08x)\n", __PRETTY_FUNCTION__, opCol1, opCol2); + bug ("[Cgfx] %s: Gradient operator not implemented\n", __PRETTY_FUNCTION__); +} diff --git a/AROS/workbench/libs/cgfx/processpixelarray_opnegative.c b/AROS/workbench/libs/cgfx/processpixelarray_opnegative.c new file mode 100644 index 0000000..03df841 --- /dev/null +++ b/AROS/workbench/libs/cgfx/processpixelarray_opnegative.c @@ -0,0 +1,22 @@ +/* + Copyright © 2013, The AROS Development Team. All rights reserved. + $Id$ +*/ + +#include + +#include + +#include + +#include +#include +#include + +#include "cybergraphics_intern.h" + +void ProcessPixelArrayNegativeFunc(struct RastPort *opRast, struct Rectangle *opRect, ULONG tintval, struct Library *CyberGfxBase) +{ + D(bug("[Cgfx] %s(0x%08x)\n", __PRETTY_FUNCTION__, tintval)); + D(bug("[Cgfx] %s: Negative operator not implemented\n", __PRETTY_FUNCTION__)); +} diff --git a/AROS/workbench/libs/cgfx/processpixelarray_opnegative_fade.c b/AROS/workbench/libs/cgfx/processpixelarray_opnegative_fade.c new file mode 100644 index 0000000..e85c5fb --- /dev/null +++ b/AROS/workbench/libs/cgfx/processpixelarray_opnegative_fade.c @@ -0,0 +1,22 @@ +/* + Copyright © 2013, The AROS Development Team. All rights reserved. + $Id$ +*/ + +#include + +#include + +#include + +#include +#include +#include + +#include "cybergraphics_intern.h" + +void ProcessPixelArrayNegativeFadeFunc(struct RastPort *opRast, struct Rectangle *opRect, ULONG tintval, struct Library *CyberGfxBase) +{ + D(bug("[Cgfx] %s(0x%08x)\n", __PRETTY_FUNCTION__, tintval)); + D(bug("[Cgfx] %s: NegativeFade operator not implemented\n", __PRETTY_FUNCTION__)); +} diff --git a/AROS/workbench/libs/cgfx/processpixelarray_ops.h b/AROS/workbench/libs/cgfx/processpixelarray_ops.h new file mode 100644 index 0000000..6d9354e --- /dev/null +++ b/AROS/workbench/libs/cgfx/processpixelarray_ops.h @@ -0,0 +1,13 @@ + +#include + +void ProcessPixelArrayBrightnessFunc(struct RastPort *, struct Rectangle *, LONG,struct Library *); +void ProcessPixelArrayAlphaFunc(struct RastPort *, struct Rectangle *, UBYTE, struct Library *); +void ProcessPixelArrayTintFunc(struct RastPort *, struct Rectangle *, ULONG, struct Library *); +void ProcessPixelArrayBlurFunc(struct RastPort *, struct Rectangle *, struct Library *); +void ProcessPixelArrayColor2GreyFunc(struct RastPort *, struct Rectangle *, struct Library *); +void ProcessPixelArrayNegativeFunc(struct RastPort *, struct Rectangle *, struct Library *); +void ProcessPixelArrayNegativeFadeFunc(struct RastPort *, struct Rectangle *, struct Library *); +void ProcessPixelArrayTintFadeFunc(struct RastPort *, struct Rectangle *, struct Library *); +void ProcessPixelArrayGradientFunc(struct RastPort *, struct Rectangle *, BOOL, ULONG, ULONG, ULONG, BOOL, struct Library *); +void ProcessPixelArrayShiftRGBFunc(struct RastPort *, struct Rectangle *, struct Library *); diff --git a/AROS/workbench/libs/cgfx/processpixelarray_opsetalpha.c b/AROS/workbench/libs/cgfx/processpixelarray_opsetalpha.c new file mode 100644 index 0000000..617a223 --- /dev/null +++ b/AROS/workbench/libs/cgfx/processpixelarray_opsetalpha.c @@ -0,0 +1,20 @@ +/* + Copyright © 2013, The AROS Development Team. All rights reserved. + $Id$ +*/ + +#include + +#include + +#include +#include +#include + +#include "cybergraphics_intern.h" + +void ProcessPixelArrayAlphaFunc(struct RastPort *opRast, struct Rectangle *opRect, UBYTE alphalevel, struct Library *CyberGfxBase) +{ + bug ("[Cgfx] %s(%d)\n", __PRETTY_FUNCTION__, value); + bug ("[Cgfx] %s: SetAlpha operator not implemented\n", __PRETTY_FUNCTION__); +} diff --git a/AROS/workbench/libs/cgfx/processpixelarray_opshiftrgb.c b/AROS/workbench/libs/cgfx/processpixelarray_opshiftrgb.c new file mode 100644 index 0000000..0b9d7e1 --- /dev/null +++ b/AROS/workbench/libs/cgfx/processpixelarray_opshiftrgb.c @@ -0,0 +1,22 @@ +/* + Copyright © 2013, The AROS Development Team. All rights reserved. + $Id$ +*/ + +#include + +#include + +#include + +#include +#include +#include + +#include "cybergraphics_intern.h" + +void ProcessPixelArrayShiftRGBFunc(struct RastPort *opRast, struct Rectangle *opRect, ULONG tintval, struct Library *CyberGfxBase) +{ + D(bug("[Cgfx] %s(0x%08x)\n", __PRETTY_FUNCTION__, tintval)); + D(bug("[Cgfx] %s: ShiftRGB operator not implemented\n", __PRETTY_FUNCTION__)); +} diff --git a/AROS/workbench/libs/cgfx/processpixelarray_optint.c b/AROS/workbench/libs/cgfx/processpixelarray_optint.c new file mode 100644 index 0000000..54f7215 --- /dev/null +++ b/AROS/workbench/libs/cgfx/processpixelarray_optint.c @@ -0,0 +1,22 @@ +/* + Copyright © 2013, The AROS Development Team. All rights reserved. + $Id$ +*/ + +#include + +#include + +#include + +#include +#include +#include + +#include "cybergraphics_intern.h" + +void ProcessPixelArrayTintFunc(struct RastPort *opRast, struct Rectangle *opRect, ULONG tintval, struct Library *CyberGfxBase) +{ + bug ("[Cgfx] %s(0x%08x)\n", __PRETTY_FUNCTION__, tintval); + bug ("[Cgfx] %s: Tint operator not implemented\n", __PRETTY_FUNCTION__); +} diff --git a/AROS/workbench/libs/cgfx/processpixelarray_optint_fade.c b/AROS/workbench/libs/cgfx/processpixelarray_optint_fade.c new file mode 100644 index 0000000..adf58c3 --- /dev/null +++ b/AROS/workbench/libs/cgfx/processpixelarray_optint_fade.c @@ -0,0 +1,22 @@ +/* + Copyright © 2013, The AROS Development Team. All rights reserved. + $Id$ +*/ + +#include + +#include + +#include + +#include +#include +#include + +#include "cybergraphics_intern.h" + +void ProcessPixelArrayTintFadeFunc(struct RastPort *opRast, struct Rectangle *opRect, ULONG tintval, struct Library *CyberGfxBase) +{ + D(bug("[Cgfx] %s(0x%08x)\n", __PRETTY_FUNCTION__, tintval)); + D(bug("[Cgfx] %s: TintFade operator not implemented\n", __PRETTY_FUNCTION__)); +} -- 2.1.4