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

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

Issue 2742113002: Gate support for certain EOTFs/primaries/matrices on color management / hdr flags (Closed)
Patch Set: missed updating some tests Created 3 years, 9 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/BUILD.gn ('k') | media/base/mime_util_internal.h » ('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 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 #ifndef MEDIA_BASE_MEDIA_CLIENT_H_ 5 #ifndef MEDIA_BASE_MEDIA_CLIENT_H_
6 #define MEDIA_BASE_MEDIA_CLIENT_H_ 6 #define MEDIA_BASE_MEDIA_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "media/base/key_system_properties.h" 11 #include "media/base/key_system_properties.h"
12 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
13 #include "media/base/video_codecs.h" 13 #include "media/base/video_codecs.h"
14 #include "media/base/video_color_space.h"
14 #include "ui/gfx/color_space.h" 15 #include "ui/gfx/color_space.h"
15 #include "url/gurl.h" 16 #include "url/gurl.h"
16 17
17 namespace media { 18 namespace media {
18 19
19 class MediaClient; 20 class MediaClient;
20 21
21 // Setter for the client. If a customized client is needed, it should be set 22 // Setter for the client. If a customized client is needed, it should be set
22 // early, before the client could possibly be used. 23 // early, before the client could possibly be used.
23 MEDIA_EXPORT void SetMediaClient(MediaClient* media_client); 24 MEDIA_EXPORT void SetMediaClient(MediaClient* media_client);
24 25
25 // Media's embedder API should only be used by media. 26 // Media's embedder API should only be used by media.
26 #if defined(MEDIA_IMPLEMENTATION) || defined(MEDIA_BLINK_IMPLEMENTATION) 27 #if defined(MEDIA_IMPLEMENTATION) || defined(MEDIA_BLINK_IMPLEMENTATION)
27 // Getter for the client. Returns NULL if no customized client is needed. 28 // Getter for the client. Returns NULL if no customized client is needed.
28 MEDIA_EXPORT MediaClient* GetMediaClient(); 29 MEDIA_EXPORT MediaClient* GetMediaClient();
29 #endif 30 #endif
30 31
31 struct MEDIA_EXPORT VideoConfig { 32 struct MEDIA_EXPORT VideoConfig {
32 VideoCodec codec; 33 VideoCodec codec;
33 VideoCodecProfile profile; 34 VideoCodecProfile profile;
34 int level; 35 int level;
35 gfx::ColorSpace::TransferID eotf; 36 media::VideoColorSpace color_space;
36 }; 37 };
37 38
38 struct MEDIA_EXPORT KeySystemInfoForUMA { 39 struct MEDIA_EXPORT KeySystemInfoForUMA {
39 KeySystemInfoForUMA(const std::string& key_system, 40 KeySystemInfoForUMA(const std::string& key_system,
40 const std::string& key_system_name_for_uma); 41 const std::string& key_system_name_for_uma);
41 ~KeySystemInfoForUMA(); 42 ~KeySystemInfoForUMA();
42 43
43 // Concrete key system name; 44 // Concrete key system name;
44 std::string key_system; 45 std::string key_system;
45 46
(...skipping 29 matching lines...) Expand all
75 virtual void RecordRapporURL(const std::string& metric, const GURL& url) = 0; 76 virtual void RecordRapporURL(const std::string& metric, const GURL& url) = 0;
76 77
77 // Returns true if the given combination of video codec, profile and level is 78 // Returns true if the given combination of video codec, profile and level is
78 // supported. The |level| value is codec-specific. 79 // supported. The |level| value is codec-specific.
79 virtual bool IsSupportedVideoConfig(const VideoConfig& config) = 0; 80 virtual bool IsSupportedVideoConfig(const VideoConfig& config) = 0;
80 }; 81 };
81 82
82 } // namespace media 83 } // namespace media
83 84
84 #endif // MEDIA_BASE_MEDIA_CLIENT_H_ 85 #endif // MEDIA_BASE_MEDIA_CLIENT_H_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/mime_util_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698