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

Unified Diff: media/base/video_decoder_config.cc

Issue 1469353010: Configure MediaCodec with CDM in ADVA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/video_decoder_config.h ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_decoder_config.cc
diff --git a/media/base/video_decoder_config.cc b/media/base/video_decoder_config.cc
index 84058e496dbf9dd7af09b4af5647688e9a47739d..dfe7254e9aff1919d7cd0c442eed5df11b20faac 100644
--- a/media/base/video_decoder_config.cc
+++ b/media/base/video_decoder_config.cc
@@ -98,46 +98,16 @@ bool VideoDecoderConfig::Matches(const VideoDecoderConfig& config) const {
std::string VideoDecoderConfig::AsHumanReadableString() const {
std::ostringstream s;
- s << "codec: " << GetHumanReadableCodecName()
- << " format: " << format()
- << " profile: " << profile()
- << " coded size: [" << coded_size().width()
- << "," << coded_size().height() << "]"
- << " visible rect: [" << visible_rect().x()
- << "," << visible_rect().y()
- << "," << visible_rect().width()
- << "," << visible_rect().height() << "]"
- << " natural size: [" << natural_size().width()
- << "," << natural_size().height() << "]"
+ s << "codec: " << GetCodecName(codec()) << " format: " << format()
+ << " profile: " << GetProfileName(profile()) << " coded size: ["
+ << coded_size().width() << "," << coded_size().height() << "]"
+ << " visible rect: [" << visible_rect().x() << "," << visible_rect().y()
+ << "," << visible_rect().width() << "," << visible_rect().height() << "]"
+ << " natural size: [" << natural_size().width() << ","
+ << natural_size().height() << "]"
<< " has extra data? " << (extra_data().empty() ? "false" : "true")
<< " encrypted? " << (is_encrypted() ? "true" : "false");
return s.str();
}
-// The names come from src/third_party/ffmpeg/libavcodec/codec_desc.c
-std::string VideoDecoderConfig::GetHumanReadableCodecName() const {
- switch (codec()) {
- case kUnknownVideoCodec:
- return "unknown";
- case kCodecH264:
- return "h264";
- case kCodecHEVC:
- return "hevc";
- case kCodecVC1:
- return "vc1";
- case kCodecMPEG2:
- return "mpeg2video";
- case kCodecMPEG4:
- return "mpeg4";
- case kCodecTheora:
- return "theora";
- case kCodecVP8:
- return "vp8";
- case kCodecVP9:
- return "vp9";
- }
- NOTREACHED();
- return "";
-}
-
} // namespace media
« no previous file with comments | « media/base/video_decoder_config.h ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698