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

Side by Side Diff: media/base/media.h

Issue 1684853003: WIP: allow to play Youtube if use_proprieraty_codecs=1 and ffmpeg_branding=Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « content/renderer/pepper/video_decoder_shim.cc ('k') | media/base/media.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Contains code that should be used for initializing, or querying the state 5 // Contains code that should be used for initializing, or querying the state
6 // of the media library as a whole. 6 // of the media library as a whole.
7 7
8 #ifndef MEDIA_BASE_MEDIA_H_ 8 #ifndef MEDIA_BASE_MEDIA_H_
9 #define MEDIA_BASE_MEDIA_H_ 9 #define MEDIA_BASE_MEDIA_H_
10 10
11 #include "media/base/audio_codecs.h"
11 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
13 #include "media/base/video_codecs.h"
12 14
13 namespace base { 15 namespace base {
14 class FilePath; 16 class FilePath;
15 } 17 }
16 18
17 namespace media { 19 namespace media {
18 20
19 // Initializes media libraries (e.g. ffmpeg) as well as CPU specific media 21 // Initializes media libraries (e.g. ffmpeg) as well as CPU specific media
20 // features. 22 // features.
21 MEDIA_EXPORT void InitializeMediaLibrary(); 23 MEDIA_EXPORT void InitializeMediaLibrary();
22 24
25 // Return true if ffmpeg supports the given audio codec.
26 MEDIA_EXPORT bool IsAudioCodecSupported(media::AudioCodec codec);
27
28 // Return true if ffmpeg supports the given video codec.
29 MEDIA_EXPORT bool IsVideoCodecSupported(media::VideoCodec codec);
30
23 } // namespace media 31 } // namespace media
24 32
25 #endif // MEDIA_BASE_MEDIA_H_ 33 #endif // MEDIA_BASE_MEDIA_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/video_decoder_shim.cc ('k') | media/base/media.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698