GammaFilter.h 826 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <api/service/svcs/svc_skinfilter.h>
  3. #include <api/service/waservicefactory.h>
  4. class GammaFilter : public svc_skinFilter
  5. {
  6. public:
  7. int filterBitmap(uint8_t *bits, int w, int h, int bpp, const wchar_t *element_id, const wchar_t *forcegroup=NULL);
  8. ARGB32 filterColor(ARGB32 color, const wchar_t *element_id, const wchar_t *forcegroup=NULL);
  9. static const char *getServiceName() { return "Gamma skin filter"; }
  10. protected:
  11. RECVS_DISPATCH;
  12. };
  13. class GammaFilterFactory : public waServiceFactory
  14. {
  15. public:
  16. FOURCC GetServiceType();
  17. const char *GetServiceName();
  18. GUID GetGUID();
  19. void *GetInterface(int global_lock);
  20. int SupportNonLockingInterface();
  21. int ReleaseInterface(void *ifc);
  22. const char *GetTestString();
  23. int ServiceNotify(int msg, int param1, int param2);
  24. protected:
  25. RECVS_DISPATCH;
  26. };