Files
UnrealEngine/Engine/Plugins/Media/PixelStreaming2/Source/PixelStreaming2RTC/Internal/EpicRtcVideoCapturer.h
2025-05-18 13:04:45 +08:00

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