Extract color space from H264 decoder

Makes use of ColorSpace class to extract info from H264 stream.

Bug: webrtc:9522
Change-Id: I651d16707260bb2867b1eda95dd4956d62c47279
Reviewed-on: https://webrtc-review.googlesource.com/90180
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Niklas Enbom <niklas.enbom@webrtc.org>
Commit-Queue: Emircan Uysaler <emircan@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24085}
This commit is contained in:
Emircan Uysaler
2018-07-23 17:55:25 -07:00
committed by Commit Bot
parent e09e6ef947
commit d4c16b131f
6 changed files with 260 additions and 13 deletions

View File

@ -296,6 +296,7 @@ rtc_static_library("webrtc_h264") {
deps = [
":video_codec_interface",
":video_coding_utility",
"../../api/video:video_frame",
"../../api/video:video_frame_i420",
"../../api/video_codecs:video_codecs_api",
"../../media:rtc_h264_profile_id",
@ -310,6 +311,8 @@ rtc_static_library("webrtc_h264") {
if (rtc_use_h264) {
defines += [ "WEBRTC_USE_H264" ]
sources += [
"codecs/h264/h264_color_space.cc",
"codecs/h264/h264_color_space.h",
"codecs/h264/h264_decoder_impl.cc",
"codecs/h264/h264_decoder_impl.h",
"codecs/h264/h264_encoder_impl.cc",