Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: media/cast/sender/external_video_encoder.cc

Issue 418193003: Using PROFILE_ANY for vp8 and vp9 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clang fromatting Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/sender/external_video_encoder.h" 5 #include "media/cast/sender/external_video_encoder.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 93 }
94 94
95 // Initialize the real HW encoder. 95 // Initialize the real HW encoder.
96 void Initialize(const VideoSenderConfig& video_config) { 96 void Initialize(const VideoSenderConfig& video_config) {
97 DCHECK(encoder_task_runner_); 97 DCHECK(encoder_task_runner_);
98 DCHECK(encoder_task_runner_->RunsTasksOnCurrentThread()); 98 DCHECK(encoder_task_runner_->RunsTasksOnCurrentThread());
99 99
100 VideoCodecProfile output_profile = media::VIDEO_CODEC_PROFILE_UNKNOWN; 100 VideoCodecProfile output_profile = media::VIDEO_CODEC_PROFILE_UNKNOWN;
101 switch (video_config.codec) { 101 switch (video_config.codec) {
102 case CODEC_VIDEO_VP8: 102 case CODEC_VIDEO_VP8:
103 output_profile = media::VP8PROFILE_MAIN; 103 output_profile = media::VP8PROFILE_ANY;
104 break; 104 break;
105 case CODEC_VIDEO_H264: 105 case CODEC_VIDEO_H264:
106 output_profile = media::H264PROFILE_MAIN; 106 output_profile = media::H264PROFILE_MAIN;
107 break; 107 break;
108 case CODEC_VIDEO_FAKE: 108 case CODEC_VIDEO_FAKE:
109 NOTREACHED() << "Fake software video encoder cannot be external"; 109 NOTREACHED() << "Fake software video encoder cannot be external";
110 break; 110 break;
111 default: 111 default:
112 NOTREACHED() << "Video codec not specified or not supported"; 112 NOTREACHED() << "Video codec not specified or not supported";
113 break; 113 break;
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 key_frame_requested_ = true; 425 key_frame_requested_ = true;
426 } 426 }
427 427
428 // Inform the encoder to only reference frames older or equal to frame_id; 428 // Inform the encoder to only reference frames older or equal to frame_id;
429 void ExternalVideoEncoder::LatestFrameIdToReference(uint32 /*frame_id*/) { 429 void ExternalVideoEncoder::LatestFrameIdToReference(uint32 /*frame_id*/) {
430 // Do nothing not supported. 430 // Do nothing not supported.
431 } 431 }
432 432
433 } // namespace cast 433 } // namespace cast
434 } // namespace media 434 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698