Created
July 20, 2022 07:05
-
-
Save alexivaner/c0c0b32e702e9ee9af16436c4601251f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "api/frame_transformer_interface.h" | |
namespace webrtc { | |
class ExampleTransformer : public webrtc::FrameTransformerInterface { | |
public: | |
virtual void RegisterTransformedFrameSinkCallback( | |
rtc::scoped_refptr<webrtc::TransformedFrameCallback>, | |
uint32_t ssrc) override; | |
virtual void UnregisterTransformedFrameSinkCallback(uint32_t ssrc) override; | |
virtual void Transform( | |
std::unique_ptr<webrtc::TransformableFrameInterface> frame) override; | |
private: | |
mutable webrtc::Mutex mutex_; | |
rtc::scoped_refptr<webrtc::TransformedFrameCallback> sink_callback_; | |
} | |
} // namespace webrtc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment