raw_video_sink_interface.h (1237B)
1 /* 2 * Copyright (c) 2022 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 // This file contains interfaces used for creating the VideoCaptureModule 12 // and DeviceInfo. 13 14 #ifndef MODULES_VIDEO_CAPTURE_RAW_VIDEO_SINK_INTERFACE_H_ 15 #define MODULES_VIDEO_CAPTURE_RAW_VIDEO_SINK_INTERFACE_H_ 16 17 #include <cstddef> 18 #include <cstdint> 19 20 #include "api/video/video_rotation.h" 21 #include "modules/video_capture/video_capture_defines.h" 22 23 namespace webrtc { 24 25 class RawVideoSinkInterface { 26 public: 27 virtual ~RawVideoSinkInterface() = default; 28 29 virtual int32_t OnRawFrame(uint8_t* videoFrame, 30 size_t videoFrameLength, 31 const VideoCaptureCapability& frameInfo, 32 VideoRotation rotation, 33 int64_t captureTime) = 0; 34 }; 35 36 } // namespace webrtc 37 38 #endif // MODULES_VIDEO_CAPTURE_RAW_VIDEO_SINK_INTERFACE_H_