Add implementations of the VideoRtpDepacketizer interface
while suboptimal, these implementions are complete and allow to swap code from using RtpDepacketizer interface to VideoRtpDepacketizer Bug: webrtc:11152 Change-Id: Ie7823feeb5b0563b74754255aaedfada9d446ac5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/161380 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30031}
This commit is contained in:
committed by
Commit Bot
parent
907dc806c7
commit
80bc1acb9c
26
modules/rtp_rtcp/source/create_video_rtp_depacketizer.h
Normal file
26
modules/rtp_rtcp/source/create_video_rtp_depacketizer.h
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license
|
||||
* that can be found in the LICENSE file in the root of the source
|
||||
* tree. An additional intellectual property rights grant can be found
|
||||
* in the file PATENTS. All contributing project authors may
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#ifndef MODULES_RTP_RTCP_SOURCE_CREATE_VIDEO_RTP_DEPACKETIZER_H_
|
||||
#define MODULES_RTP_RTCP_SOURCE_CREATE_VIDEO_RTP_DEPACKETIZER_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "api/video/video_codec_type.h"
|
||||
#include "modules/rtp_rtcp/source/video_rtp_depacketizer.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
std::unique_ptr<VideoRtpDepacketizer> CreateVideoRtpDepacketizer(
|
||||
VideoCodecType codec);
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
#endif // MODULES_RTP_RTCP_SOURCE_CREATE_VIDEO_RTP_DEPACKETIZER_H_
|
||||
Reference in New Issue
Block a user