Harald Alvestrand | 5c4509a | 2022-11-25 10:03:34 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 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 | #include "api/frame_transformer_factory.h" |
| 12 | |
Tove Petersson | 1e2d951 | 2023-03-05 11:03:06 | [diff] [blame] | 13 | #include "audio/channel_send_frame_transformer_delegate.h" |
Harald Alvestrand | 5c4509a | 2022-11-25 10:03:34 | [diff] [blame] | 14 | #include "modules/rtp_rtcp/source/rtp_sender_video_frame_transformer_delegate.h" |
| 15 | |
| 16 | namespace webrtc { |
| 17 | |
| 18 | std::unique_ptr<TransformableVideoFrameInterface> CreateVideoSenderFrame() { |
| 19 | RTC_CHECK_NOTREACHED(); |
| 20 | return nullptr; |
| 21 | } |
| 22 | |
| 23 | std::unique_ptr<TransformableVideoFrameInterface> CreateVideoReceiverFrame() { |
| 24 | RTC_CHECK_NOTREACHED(); |
| 25 | return nullptr; |
| 26 | } |
| 27 | |
Tony Herre | 097a4de | 2023-06-19 15:13:08 | [diff] [blame] | 28 | std::unique_ptr<TransformableAudioFrameInterface> CloneAudioFrame( |
Tove Petersson | 1e2d951 | 2023-03-05 11:03:06 | [diff] [blame] | 29 | TransformableAudioFrameInterface* original) { |
| 30 | // At the moment, only making sender frames is supported. |
| 31 | return CloneSenderAudioFrame(original); |
| 32 | } |
| 33 | |
Harald Alvestrand | 5c4509a | 2022-11-25 10:03:34 | [diff] [blame] | 34 | std::unique_ptr<TransformableVideoFrameInterface> CloneVideoFrame( |
| 35 | TransformableVideoFrameInterface* original) { |
| 36 | // At the moment, only making sender frames from receiver frames is supported. |
| 37 | return CloneSenderVideoFrame(original); |
| 38 | } |
| 39 | |
| 40 | } // namespace webrtc |