aboutsummaryrefslogtreecommitdiff
path: root/Gem/develop/include/Gem/Base/GemPixObj.h
diff options
context:
space:
mode:
authorTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2017-12-06 23:31:20 +0000
committerTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2017-12-06 23:31:20 +0000
commit4dcc9afbc2206864eda08ceb597691576b8b8f9e (patch)
tree9c7321a48a7a05dbb348e6fd8836958fdab7d35b /Gem/develop/include/Gem/Base/GemPixObj.h
parent5ba573f849254464f1571ef8e0ca9c09dff19a50 (diff)
Gem 427a3d0e61d61e64e76facfa905c120356383bab linux/amd64
built 'master:427a3d0e61d61e64e76facfa905c120356383bab' for linux/amd64
Diffstat (limited to 'Gem/develop/include/Gem/Base/GemPixObj.h')
-rw-r--r--Gem/develop/include/Gem/Base/GemPixObj.h59
1 files changed, 32 insertions, 27 deletions
diff --git a/Gem/develop/include/Gem/Base/GemPixObj.h b/Gem/develop/include/Gem/Base/GemPixObj.h
index b964ad3..b6a4076 100644
--- a/Gem/develop/include/Gem/Base/GemPixObj.h
+++ b/Gem/develop/include/Gem/Base/GemPixObj.h
@@ -34,65 +34,65 @@ DESCRIPTION
-----------------------------------------------------------------*/
class GEM_EXTERN GemPixObj : public GemBase
{
- public:
+public:
//////////
// Constructor
GemPixObj();
- protected:
+protected:
//////////
// Destructor
- virtual ~GemPixObj() { }
+ virtual ~GemPixObj() { }
//////////
// The derived class should override this if it provides
// processing independent of the image.format
// This is called whenever a new image comes through.
// The default is to output an error
- virtual void processImage(imageStruct &image);
+ virtual void processImage(imageStruct &image);
//////////
// The derived class should override this.
// This is called whenever a new RGB image comes through.
// The default is to call processImage().
- virtual void processRGBImage(imageStruct &image);
+ virtual void processRGBImage(imageStruct &image);
//////////
// The derived class should override this.
// This is called whenever a new RGBA image comes through.
// The default is to call processImage().
- virtual void processRGBAImage(imageStruct &image);
+ virtual void processRGBAImage(imageStruct &image);
// SIMD-optimized functions: by default the non-optimized function is called
- virtual void processRGBAMMX(imageStruct &image);
- virtual void processRGBASSE2(imageStruct &image);
- virtual void processRGBAAltivec(imageStruct &image);
+ virtual void processRGBAMMX(imageStruct &image);
+ virtual void processRGBASSE2(imageStruct &image);
+ virtual void processRGBAAltivec(imageStruct &image);
//////////
// The derived class should override this.
// This is called whenever a new gray8 image comes through.
// The default is to call processImage().
- virtual void processGrayImage(imageStruct &image);
+ virtual void processGrayImage(imageStruct &image);
// SIMD-optimized functions: by default the non-optimized function is called
- virtual void processGrayMMX(imageStruct &image);
- virtual void processGraySSE2(imageStruct &image);
- virtual void processGrayAltivec(imageStruct &image);
+ virtual void processGrayMMX(imageStruct &image);
+ virtual void processGraySSE2(imageStruct &image);
+ virtual void processGrayAltivec(imageStruct &image);
//////////
// The derived class should override this.
// This is called whenever a new YUV422 image comes through.
// The default is to call processImage().
- virtual void processYUVImage(imageStruct &image);
+ virtual void processYUVImage(imageStruct &image);
// SIMD-optimized functions: by default the non-optimized function is called
- virtual void processYUVMMX(imageStruct &image);
- virtual void processYUVSSE2(imageStruct &image);
- virtual void processYUVAltivec(imageStruct &image);
+ virtual void processYUVMMX(imageStruct &image);
+ virtual void processYUVSSE2(imageStruct &image);
+ virtual void processYUVAltivec(imageStruct &image);
//////////
// If the derived class needs the image resent.
- // This sets the dirty bit on the pixBlock.
- void setPixModified();
+ // This sets the dirty bit on the pixBlock.
+ void setPixModified();
//////////
// Turn on/off processing
@@ -114,36 +114,41 @@ class GEM_EXTERN GemPixObj : public GemBase
//////////
// creation callback
- static void real_obj_setupCallback(t_class *classPtr) {
+ static void real_obj_setupCallback(t_class *classPtr)
+ {
GemBase::real_obj_setupCallback(classPtr);
GemPixObj::obj_setupCallback(classPtr);
}
//////////
// The derived class should NOT override this unless they have some
- // very special behavior.
+ // very special behavior.
// Do the rendering, which calls processImage or processGrayImage, etc...
// save the image-information
- virtual void render(GemState *state);
+ virtual void render(GemState *state);
// turn the pointer back to the old data after rendering
virtual void postrender(GemState *state);
- void startRendering(void) {
+ void startRendering(void)
+ {
//post("start rendering");
setPixModified();
}
- private:
+private:
- static inline GemPixObj *GetMyClass(void *data) {return((GemPixObj *)((Obj_header *)data)->data);}
+ static inline GemPixObj *GetMyClass(void *data)
+ {
+ return((GemPixObj *)((Obj_header *)data)->data);
+ }
//////////
// static member functions
static void obj_setupCallback(t_class *classPtr);
- protected:
+protected:
virtual void SIMD(int);
};
-#endif // for header file
+#endif // for header file