Mac OS X ambilight
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AppDelegate.h 848B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // AppDelegate.h
  3. // DisplayBacklight
  4. //
  5. // Created by Thomas Buck on 21.12.15.
  6. // Copyright © 2015 xythobuz. All rights reserved.
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. #import <AVFoundation/AVFoundation.h>
  10. @class Serial;
  11. @interface AppDelegate : NSObject <NSApplicationDelegate, AVCaptureVideoDataOutputSampleBufferDelegate>
  12. @property (weak) IBOutlet NSApplication *application;
  13. - (void)stopAmbilight;
  14. - (void)newDisplayList:(NSArray *)displayIDs;
  15. @end
  16. // ToDo: add support for display names or IDs here, so we can distinguish
  17. // between multiple displays with the same resolution
  18. struct DisplayAssignment {
  19. int width, height;
  20. int shown;
  21. };
  22. struct LEDStrand {
  23. int idMin, count;
  24. int display;
  25. int startX, startY;
  26. int direction;
  27. int size;
  28. };
  29. #define DIR_LEFT 0
  30. #define DIR_RIGHT 1
  31. #define DIR_UP 2
  32. #define DIR_DOWN 3