diff options
author | Spencer Whitt <sw@swhitt.me> | 2015-03-25 18:10:08 -0400 |
---|---|---|
committer | Spencer Whitt <sw@swhitt.me> | 2015-03-25 18:10:08 -0400 |
commit | 3630a37dd5330fb1c681597b294abe41186362ba (patch) | |
tree | d9ac6d3d157778332a801185273a461ffc1eb79d /pkgs/development/libraries | |
parent | 98bf3f9d395f538d83ae5c335b3a0f251ca84c21 (diff) | |
download | nixlib-3630a37dd5330fb1c681597b294abe41186362ba.tar nixlib-3630a37dd5330fb1c681597b294abe41186362ba.tar.gz nixlib-3630a37dd5330fb1c681597b294abe41186362ba.tar.bz2 nixlib-3630a37dd5330fb1c681597b294abe41186362ba.tar.lz nixlib-3630a37dd5330fb1c681597b294abe41186362ba.tar.xz nixlib-3630a37dd5330fb1c681597b294abe41186362ba.tar.zst nixlib-3630a37dd5330fb1c681597b294abe41186362ba.zip |
x264: Add option to encode videos as bit depth 10
At compile time libx264 must be configured to encode videos in either 8 bit depth or 10 bit depth. It is not possible to compile libx264 to support both bit depths simultaneously. This exposes the bit depth compile option.
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/x264/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/libraries/x264/default.nix b/pkgs/development/libraries/x264/default.nix index c440493072e2..9422a8f9ab01 100644 --- a/pkgs/development/libraries/x264/default.nix +++ b/pkgs/development/libraries/x264/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, yasm}: +{stdenv, fetchurl, yasm, enable10bit ? false}: stdenv.mkDerivation rec { version = "snapshot-20141218-2245-stable"; @@ -14,7 +14,8 @@ stdenv.mkDerivation rec { ''; configureFlags = [ "--enable-shared" ] - ++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic"; + ++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic" + ++ stdenv.lib.optional (enable10bit) "--bit-depth=10"; buildInputs = [ yasm ]; |