File: 0003-Remove-ambient-viewing-support.patch

package info (click to toggle)
handbrake 1.9.2%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,008 kB
  • sloc: ansic: 117,103; sh: 3,350; python: 2,397; ruby: 1,635; objc: 333; makefile: 92; xml: 63; csh: 15
file content (28 lines) | stat: -rw-r--r-- 988 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Sebastian Ramacher <sramacher@debian.org>
Date: Fri, 1 Dec 2023 23:02:49 +0100
Subject: Remove ambient viewing support

Support in x265 is added via contrib patches.
---
 libhb/encx265.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/libhb/encx265.c b/libhb/encx265.c
index 0b15838..9b71be7 100644
--- a/libhb/encx265.c
+++ b/libhb/encx265.c
@@ -269,14 +269,6 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job)
         }
     }
 
-    if (job->ambient.ambient_illuminance.num && job->ambient.ambient_illuminance.den)
-    {
-        param->ambientIlluminance = hb_rescale_rational(job->ambient.ambient_illuminance, 10000);
-        param->ambientLightX = hb_rescale_rational(job->ambient.ambient_light_x, 50000);
-        param->ambientLightY = hb_rescale_rational(job->ambient.ambient_light_y, 50000);
-        param->bEmitAmbientViewingEnvironment = 1;
-    }
-
     if (job->chroma_location != AVCHROMA_LOC_UNSPECIFIED)
     {
         char chromaLocation[256];