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

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

Issue 2783963002: Add IsSupportedAudioConfig in MediaClient (Closed)
Patch Set: Update MediaCanPlayTypeTest Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef MEDIA_BASE_DECODE_CAPABILITIES_ 5 #ifndef MEDIA_BASE_DECODE_CAPABILITIES_
6 #define MEDIA_BASE_DECODE_CAPABILITIES_ 6 #define MEDIA_BASE_DECODE_CAPABILITIES_
7 7
8 #include "media/base/audio_codecs.h"
8 #include "media/base/media_export.h" 9 #include "media/base/media_export.h"
9 #include "media/base/video_codecs.h" 10 #include "media/base/video_codecs.h"
10 #include "media/base/video_color_space.h" 11 #include "media/base/video_color_space.h"
11 12
12 namespace media { 13 namespace media {
13 14
14 // APIs to media's decoder capabilities. Embedders may customize decoder 15 // APIs to media's decoder capabilities. Embedders may customize decoder
15 // capabilities via MediaClient. See usage in mime_util_internal.cc. 16 // capabilities via MediaClient. See usage in mime_util_internal.cc.
17 struct MEDIA_EXPORT AudioConfig {
18 AudioCodec codec;
19 };
16 20
17 struct MEDIA_EXPORT VideoConfig { 21 struct MEDIA_EXPORT VideoConfig {
18 VideoCodec codec; 22 VideoCodec codec;
19 VideoCodecProfile profile; 23 VideoCodecProfile profile;
20 int level; 24 int level;
21 VideoColorSpace color_space; 25 VideoColorSpace color_space;
22 }; 26 };
23 27
28 MEDIA_EXPORT bool IsSupportedAudioConfig(const AudioConfig& config);
24 MEDIA_EXPORT bool IsSupportedVideoConfig(const VideoConfig& config); 29 MEDIA_EXPORT bool IsSupportedVideoConfig(const VideoConfig& config);
25 30
26 } // namespace media 31 } // namespace media
27 32
28 #endif // MEDIA_BASE_DECODE_CAPABILITIES_ 33 #endif // MEDIA_BASE_DECODE_CAPABILITIES_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698