Move RtpFrameObject and EncodedFrame out of video_coding namespace.
Bug: webrtc:12579 Change-Id: Ib7ecd624eb5c54abb77fe08440a014aa1e963865 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/212860 Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33542}
This commit is contained in:
@ -50,8 +50,7 @@ VideoStreamDecoderImpl::~VideoStreamDecoderImpl() {
|
||||
shut_down_ = true;
|
||||
}
|
||||
|
||||
void VideoStreamDecoderImpl::OnFrame(
|
||||
std::unique_ptr<video_coding::EncodedFrame> frame) {
|
||||
void VideoStreamDecoderImpl::OnFrame(std::unique_ptr<EncodedFrame> frame) {
|
||||
if (!bookkeeping_queue_.IsCurrent()) {
|
||||
bookkeeping_queue_.PostTask([this, frame = std::move(frame)]() mutable {
|
||||
OnFrame(std::move(frame));
|
||||
@ -123,8 +122,7 @@ VideoDecoder* VideoStreamDecoderImpl::GetDecoder(int payload_type) {
|
||||
return decoder_.get();
|
||||
}
|
||||
|
||||
void VideoStreamDecoderImpl::SaveFrameInfo(
|
||||
const video_coding::EncodedFrame& frame) {
|
||||
void VideoStreamDecoderImpl::SaveFrameInfo(const EncodedFrame& frame) {
|
||||
FrameInfo* frame_info = &frame_info_[next_frame_info_index_];
|
||||
frame_info->timestamp = frame.Timestamp();
|
||||
frame_info->decode_start_time_ms = rtc::TimeMillis();
|
||||
@ -139,7 +137,7 @@ void VideoStreamDecoderImpl::StartNextDecode() {
|
||||
|
||||
frame_buffer_.NextFrame(
|
||||
max_wait_time, keyframe_required_, &bookkeeping_queue_,
|
||||
[this](std::unique_ptr<video_coding::EncodedFrame> frame,
|
||||
[this](std::unique_ptr<EncodedFrame> frame,
|
||||
video_coding::FrameBuffer::ReturnReason res) mutable {
|
||||
RTC_DCHECK_RUN_ON(&bookkeeping_queue_);
|
||||
OnNextFrameCallback(std::move(frame), res);
|
||||
@ -147,7 +145,7 @@ void VideoStreamDecoderImpl::StartNextDecode() {
|
||||
}
|
||||
|
||||
void VideoStreamDecoderImpl::OnNextFrameCallback(
|
||||
std::unique_ptr<video_coding::EncodedFrame> frame,
|
||||
std::unique_ptr<EncodedFrame> frame,
|
||||
video_coding::FrameBuffer::ReturnReason result) {
|
||||
switch (result) {
|
||||
case video_coding::FrameBuffer::kFrameFound: {
|
||||
@ -204,7 +202,7 @@ void VideoStreamDecoderImpl::OnNextFrameCallback(
|
||||
}
|
||||
|
||||
VideoStreamDecoderImpl::DecodeResult VideoStreamDecoderImpl::DecodeFrame(
|
||||
std::unique_ptr<video_coding::EncodedFrame> frame) {
|
||||
std::unique_ptr<EncodedFrame> frame) {
|
||||
RTC_DCHECK(frame);
|
||||
|
||||
VideoDecoder* decoder = GetDecoder(frame->PayloadType());
|
||||
|
||||
Reference in New Issue
Block a user