Add color space information to webrtc::VideoFrame and extract from VP9
This CL is the first step for introducing color space information in webrtc.
- Add ColorSpace class listing color profiles.
- Add ColorSpace as a member of webrtc::VideoFrame.
- Make use of this class by extracting info from VP9 decoder.
Bug: webrtc:9522
Change-Id: I5e2514efee2a193bddb4459261387f2d40e936ad
Reviewed-on: https://webrtc-review.googlesource.com/88540
Reviewed-by: Niklas Enbom <niklas.enbom@webrtc.org>
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Emircan Uysaler <emircan@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23988}
diff --git a/api/video/BUILD.gn b/api/video/BUILD.gn
index 454e480..d767048 100644
--- a/api/video/BUILD.gn
+++ b/api/video/BUILD.gn
@@ -11,6 +11,8 @@
rtc_source_set("video_frame") {
visibility = [ "*" ]
sources = [
+ "color_space.cc",
+ "color_space.h",
"video_content_type.cc",
"video_content_type.h",
"video_frame.cc",