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

Side by Side Diff: media/media_options.gni

Issue 1517473002: Support HLS MPEG2 TS with SAMPLE-AES encryption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@encryption_scheme
Patch Set: rebase Created 4 years, 6 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 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 import("//build/config/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of 9 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of
10 # using dlopen. This helps with automated detection of ABI mismatches and 10 # using dlopen. This helps with automated detection of ABI mismatches and
(...skipping 24 matching lines...) Expand all
35 # Enables AC3/EAC3 audio demuxing. This is enabled only on Chromecast, since 35 # Enables AC3/EAC3 audio demuxing. This is enabled only on Chromecast, since
36 # it only provides demuxing, and is only useful for AC3/EAC3 audio 36 # it only provides demuxing, and is only useful for AC3/EAC3 audio
37 # pass-through to HDMI sink on Chromecast. 37 # pass-through to HDMI sink on Chromecast.
38 enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast 38 enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast
39 39
40 enable_mse_mpeg2ts_stream_parser = proprietary_codecs && is_chromecast 40 enable_mse_mpeg2ts_stream_parser = proprietary_codecs && is_chromecast
41 41
42 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the 42 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the
43 # platform. Enable by default for Chromecast. 43 # platform. Enable by default for Chromecast.
44 enable_hevc_demuxing = proprietary_codecs && is_chromecast 44 enable_hevc_demuxing = proprietary_codecs && is_chromecast
45
46 # Enable HLS with SAMPLE-AES decryption.
47 # Enabled by default on the cast desktop implementation to allow unit tests of
48 # MP2TS parsing support.
49 enable_hls_sample_aes = proprietary_codecs && is_cast_desktop_build
45 } 50 }
46 51
52 # enable_hls_sample_aes can only be true if enable_mse_mpeg2ts_stream_parser is.
53 assert(enable_mse_mpeg2ts_stream_parser || !enable_hls_sample_aes)
54
47 # Use a second declare_args() to pick up possible overrides of |use_cras|. 55 # Use a second declare_args() to pick up possible overrides of |use_cras|.
48 declare_args() { 56 declare_args() {
49 # Enables runtime selection of PulseAudio library. 57 # Enables runtime selection of PulseAudio library.
50 use_pulseaudio = false 58 use_pulseaudio = false
51 59
52 # Enables runtime selection of ALSA library for audio. 60 # Enables runtime selection of ALSA library for audio.
53 use_alsa = false 61 use_alsa = false
54 62
55 # Alsa should be used on non-Android, non-Mac POSIX systems. 63 # Alsa should be used on non-Android, non-Mac POSIX systems.
56 if (is_posix && !is_android && !is_mac) { 64 if (is_posix && !is_android && !is_mac) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 "cdm", 120 "cdm",
113 "renderer", 121 "renderer",
114 ] 122 ]
115 mojo_media_host = "browser" 123 mojo_media_host = "browser"
116 } else { 124 } else {
117 mojo_media_services = [ "cdm" ] 125 mojo_media_services = [ "cdm" ]
118 mojo_media_host = "utility" 126 mojo_media_host = "utility"
119 } 127 }
120 } 128 }
121 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698