Skip to content

Instantly share code, notes, and snippets.

@alexivaner
Created July 20, 2022 07:05
Show Gist options
  • Save alexivaner/c0c0b32e702e9ee9af16436c4601251f to your computer and use it in GitHub Desktop.
Save alexivaner/c0c0b32e702e9ee9af16436c4601251f to your computer and use it in GitHub Desktop.
#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