blob: 841ab0f941bbb14f53830b2054598d6af6f908c6 [file] [log] [blame]
Harald Alvestrand5c4509a2022-11-25 10:03:341/*
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 Petersson1e2d9512023-03-05 11:03:0613#include "audio/channel_send_frame_transformer_delegate.h"
Harald Alvestrand5c4509a2022-11-25 10:03:3414#include "modules/rtp_rtcp/source/rtp_sender_video_frame_transformer_delegate.h"
15
16namespace webrtc {
17
18std::unique_ptr<TransformableVideoFrameInterface> CreateVideoSenderFrame() {
19 RTC_CHECK_NOTREACHED();
20 return nullptr;
21}
22
23std::unique_ptr<TransformableVideoFrameInterface> CreateVideoReceiverFrame() {
24 RTC_CHECK_NOTREACHED();
25 return nullptr;
26}
27
Tony Herre097a4de2023-06-19 15:13:0828std::unique_ptr<TransformableAudioFrameInterface> CloneAudioFrame(
Tove Petersson1e2d9512023-03-05 11:03:0629 TransformableAudioFrameInterface* original) {
30 // At the moment, only making sender frames is supported.
31 return CloneSenderAudioFrame(original);
32}
33
Harald Alvestrand5c4509a2022-11-25 10:03:3434std::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