videocapturedefines.h 687 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. struct VideoCaptureCapability {
  3. int32_t width;
  4. int32_t height;
  5. int32_t maxFPS;
  6. VideoType videoType;
  7. bool interlaced;
  8. VideoCaptureCapability() {
  9. width = 0;
  10. height = 0;
  11. maxFPS = 0;
  12. videoType = VideoType::kUnknown;
  13. interlaced = false;
  14. };
  15. bool operator!=(const VideoCaptureCapability& other) const {
  16. if (width != other.width)
  17. return true;
  18. if (height != other.height)
  19. return true;
  20. if (maxFPS != other.maxFPS)
  21. return true;
  22. if (videoType != other.videoType)
  23. return true;
  24. if (interlaced != other.interlaced)
  25. return true;
  26. return false;
  27. }
  28. bool operator==(const VideoCaptureCapability& other) const {
  29. return !operator!=(other);
  30. }
  31. };