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

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: move some gn defs Created 4 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 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 import("//build/config/headless_build.gni") 7 import("//build/config/headless_build.gni")
8 8
9 declare_args() { 9 declare_args() {
10 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of 10 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of
(...skipping 26 matching lines...) Expand all
37 # it only provides demuxing, and is only useful for AC3/EAC3 audio 37 # it only provides demuxing, and is only useful for AC3/EAC3 audio
38 # pass-through to HDMI sink on Chromecast. 38 # pass-through to HDMI sink on Chromecast.
39 enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast 39 enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast
40 40
41 enable_mse_mpeg2ts_stream_parser = proprietary_codecs && is_chromecast 41 enable_mse_mpeg2ts_stream_parser = proprietary_codecs && is_chromecast
42 42
43 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the 43 # Enable HEVC/H265 demuxing. Actual decoding must be provided by the
44 # platform. Enable by default for Chromecast. 44 # platform. Enable by default for Chromecast.
45 enable_hevc_demuxing = proprietary_codecs && is_chromecast 45 enable_hevc_demuxing = proprietary_codecs && is_chromecast
46 46
47 # Enable HLS with SAMPLE-AES decryption. Actual decryption must be provided by
ddorwin 2016/04/12 00:40:48 Is the second sentence relevant? It's always provi
dougsteed 2016/05/08 23:18:45 Done.
48 # the platform. Enabled by default on the cast desktop implementation to allow
ddorwin 2016/04/12 00:40:48 nit: I suggest separating the explanation of the l
dougsteed 2016/05/08 23:18:45 Done.
49 # unit tests of the MP2TS parsing support.
50 enable_hls_sample_aes = proprietary_codecs && is_cast_desktop_build
51
47 # TODO(GYP): This should be a platform define. 52 # TODO(GYP): This should be a platform define.
48 is_openbsd = false 53 is_openbsd = false
49 } 54 }
50 55
56 # enable_hls_sample_aes can only be true if enable_mse_mpeg2ts_stream_parser is.
57 assert(enable_mse_mpeg2ts_stream_parser || !enable_hls_sample_aes)
58
51 # Use a second declare_args() to pick up possible overrides of |use_cras|. 59 # Use a second declare_args() to pick up possible overrides of |use_cras|.
52 declare_args() { 60 declare_args() {
53 # Enables runtime selection of PulseAudio library. 61 # Enables runtime selection of PulseAudio library.
54 use_pulseaudio = false 62 use_pulseaudio = false
55 63
56 # Enables runtime selection of ALSA library for audio. 64 # Enables runtime selection of ALSA library for audio.
57 use_alsa = false 65 use_alsa = false
58 66
59 # Alsa should be used on non-Android, non-Mac POSIX systems. 67 # Alsa should be used on non-Android, non-Mac POSIX systems.
60 if (is_posix && !is_headless && !is_android && !is_mac) { 68 if (is_posix && !is_headless && !is_android && !is_mac) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 "cdm", 124 "cdm",
117 "renderer", 125 "renderer",
118 ] 126 ]
119 mojo_media_host = "browser" 127 mojo_media_host = "browser"
120 } else { 128 } else {
121 mojo_media_services = [ "cdm" ] 129 mojo_media_services = [ "cdm" ]
122 mojo_media_host = "utility" 130 mojo_media_host = "utility"
123 } 131 }
124 } 132 }
125 } 133 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698