23 lines
626 B
C++
23 lines
626 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "VideoCapturer.h"
|
|
|
|
#include "epic_rtc/core/video/video_buffer.h"
|
|
|
|
namespace UE::PixelStreaming2
|
|
{
|
|
class PIXELSTREAMING2RTC_API FEpicRtcVideoCapturer : public FVideoCapturer
|
|
{
|
|
public:
|
|
static TSharedPtr<FEpicRtcVideoCapturer> Create(TSharedPtr<FVideoProducer> VideoProducer = nullptr, bool bIsSRGB = false);
|
|
virtual ~FEpicRtcVideoCapturer() = default;
|
|
|
|
TRefCountPtr<EpicRtcVideoBufferInterface> GetFrameBuffer();
|
|
|
|
private:
|
|
FEpicRtcVideoCapturer(TSharedPtr<FVideoProducer> VideoProducer, bool bIsSRGB);
|
|
};
|
|
} // namespace UE::PixelStreaming2
|