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

Side by Side Diff: media/base/video_codecs.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 unified diff | Download patch
« no previous file with comments | « media/base/video_codecs.h ('k') | media/base/video_decoder_config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/base/video_codecs.h"
6
7 #include "base/logging.h"
8
9 namespace media {
10
11 // The names come from src/third_party/ffmpeg/libavcodec/codec_desc.c
12 std::string GetCodecName(VideoCodec codec) {
13 switch (codec) {
14 case kUnknownVideoCodec:
15 return "unknown";
16 case kCodecH264:
17 return "h264";
18 case kCodecHEVC:
19 return "hevc";
20 case kCodecVC1:
21 return "vc1";
22 case kCodecMPEG2:
23 return "mpeg2video";
24 case kCodecMPEG4:
25 return "mpeg4";
26 case kCodecTheora:
27 return "theora";
28 case kCodecVP8:
29 return "vp8";
30 case kCodecVP9:
31 return "vp9";
32 }
33 NOTREACHED();
34 return "";
35 }
36
37 std::string GetProfileName(VideoCodecProfile profile) {
38 switch (profile) {
39 case VIDEO_CODEC_PROFILE_UNKNOWN:
40 return "unknown";
41 case H264PROFILE_BASELINE:
42 return "h264 baseline";
43 case H264PROFILE_MAIN:
44 return "h264 main";
45 case H264PROFILE_EXTENDED:
46 return "h264 extended";
47 case H264PROFILE_HIGH:
48 return "h264 high";
49 case H264PROFILE_HIGH10PROFILE:
50 return "h264 high 10";
51 case H264PROFILE_HIGH422PROFILE:
52 return "h264 high 4:2:2";
53 case H264PROFILE_HIGH444PREDICTIVEPROFILE:
54 return "h264 high 4:4:4 predictive";
55 case H264PROFILE_SCALABLEBASELINE:
56 return "h264 scalable baseline";
57 case H264PROFILE_SCALABLEHIGH:
58 return "h264 scalable high";
59 case H264PROFILE_STEREOHIGH:
60 return "h264 stereo high";
61 case H264PROFILE_MULTIVIEWHIGH:
62 return "h264 multiview high";
63 case VP8PROFILE_ANY:
64 return "vp8";
65 case VP9PROFILE_ANY:
66 return "vp9";
67 }
68 NOTREACHED();
69 return "";
70 }
71
72 } // namespace media
OLDNEW
« no previous file with comments | « media/base/video_codecs.h ('k') | media/base/video_decoder_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698