sync.hpp 722 B

123456789101112131415161718192021222324252627282930
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. //
  5. // Copyright (C) 2021 Intel Corporation
  6. #ifndef OPENCV_GAPI_STREAMING_SYNC_HPP
  7. #define OPENCV_GAPI_STREAMING_SYNC_HPP
  8. namespace cv {
  9. namespace gapi {
  10. namespace streaming {
  11. enum class sync_policy {
  12. dont_sync,
  13. drop
  14. };
  15. } // namespace streaming
  16. } // namespace gapi
  17. namespace detail {
  18. template<> struct CompileArgTag<gapi::streaming::sync_policy> {
  19. static const char* tag() { return "gapi.streaming.sync_policy"; }
  20. };
  21. } // namespace detail
  22. } // namespace cv
  23. #endif // OPENCV_GAPI_STREAMING_SYNC_HPP