Skip to content

Commit d96978a

Browse files
authored
Update main (#7)
Update
1 parent 8b0b0d5 commit d96978a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2170
-3447
lines changed

.github/workflows/c-cpp.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,21 @@ jobs:
4848
mkdir -p ${{ github.workspace }}/vcpkg/bincache
4949
fi
5050
shell: bash
51+
52+
- name: Install packages
53+
if: runner.os == 'Linux'
54+
run: sudo apt-get install -y libxi-dev libxtst-dev bison gperf libgles2-mesa-dev libxrandr-dev libxcursor-dev libxdamage-dev libxinerama-dev nasm autoconf automake libtool pkg-config
55+
56+
- if: runner.os == 'macOS'
57+
run: brew install nasm
5158

5259
- uses: lukka/get-cmake@latest
5360

5461
- name: Set up vcpkg
5562
uses: lukka/run-vcpkg@v4
5663
with:
5764
setupOnly: true
58-
vcpkgGitCommitId: 0affe8710a4a5b26328e909fe1ad7146df39d108
65+
vcpkgGitCommitId: d320630b28aeb59b24424eb2a7ef3905314107a1
5966

6067
# Restore vpkg cache
6168
- name: Restore vcpkg
@@ -73,13 +80,6 @@ jobs:
7380
# Ensure that the developer command promt is present on Windows runners
7481
- uses: ilammy/msvc-dev-cmd@v1
7582

76-
- name: Install packages
77-
if: runner.os == 'Linux'
78-
run: sudo apt-get install -y libxi-dev libxtst-dev bison gperf libgles2-mesa-dev libxrandr-dev libxcursor-dev libxdamage-dev libxinerama-dev nasm
79-
80-
- if: runner.os == 'macOS'
81-
run: brew install nasm
82-
8383
- name: Restore from cache the dependencies and generate project files
8484
run: |
8585
cmake -DBUILD_EXAMPLE_APP=ON -DBUILD_TESTS=ON --preset ${{ env.CURRENT_OS }}-release

CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ set(PUBLIC_HEADERS
3131
"include/iris/VideoAnalyser.h"
3232
"include/iris/Configuration.h"
3333
"include/iris/Log.h"
34+
"include/iris/FrameData.h"
3435
"include/iris/Result.h"
3536
"include/iris/TotalFlashIncidents.h"
3637
"include/iris/ScopeProfiler.h"
@@ -45,14 +46,11 @@ set(SOURCE_FILES
4546
"src/RelativeLuminance.cpp"
4647
"src/RedSaturation.h"
4748
"src/RedSaturation.cpp"
48-
"src/CDLuminance.cpp"
4949
"src/Configuration.cpp"
5050
"src/ConfigurationParams.h"
5151
"src/Flash.h"
5252
"src/RelativeLuminance.h"
53-
"src/CDLuminance.h"
54-
"src/FrameRgbConverter.h"
55-
"src/FrameData.h"
53+
"src/FrameRgbConverter.h"
5654
"src/FlashDetection.h"
5755
"src/FlashDetection.cpp"
5856
"src/IrisFrame.h"
@@ -61,11 +59,13 @@ set(SOURCE_FILES
6159
"src/PatternDetection.cpp"
6260
"src/PhotosensitivityDetector.h"
6361
"src/TransitionTracker.h"
64-
"src/TransitionTrackerByFPS.h"
65-
"src/TransitionTrackerByTime.h"
66-
"src/TransitionTrackerByFPS.cpp"
67-
"src/TransitionTrackerByTime.cpp"
62+
"src/TransitionTracker.cpp"
6863
"src/ScopeProfiler.cpp"
64+
"src/IFrameManager.h"
65+
"src/FpsFrameManager.h"
66+
"src/FpsFrameManager.cpp"
67+
"src/TimeFrameManager.h"
68+
"src/TimeFrameManager.cpp"
6969
)
7070

7171
source_group("Source files" FILES ${SOURCE_FILES})

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ When running IRIS in the example app, the following command line arguments can b
5050
- `-j`: when passing true/1 generates the results in a json file.
5151
- `-v`: the path to a video can be specified as to.
5252
- `-p`: enabled/disable the pattern detection (true/1 or false/0).
53-
- `-l`: specify the luminance type for the luminance calculations (CD || RELATIVE), relative luminance is the default and standard.
54-
5553

5654
## Configuration
5755
The [appsettings.json](config/appsettings.json) is a file where values used by IRIS are defined and can be modified to alter the execution of the analysis. These default values are configured to detect photosensitive content based on publicly available guidelines. IRIS is not intended to guarantee, certify or otherwise validate video content’s photosensitivity compliance. Modifying IRIS’s default values should be done at your own risk, understanding that doing so may impact IRIS’s results and its ability to detect photosensitivity issues.

config/appsettings.json

Lines changed: 2 additions & 270 deletions
Original file line numberDiff line numberDiff line change
@@ -1,272 +1,7 @@
11
{
22
"Luminance": {
3-
"FormulaYval1": 413.435, //CD luminance formula values
4-
"FormulaYval2": 0.002745,
5-
"FormulaYval3": 0.0189623,
6-
"FormulaYvalpow": 2.2,
73
"RelativeLuminanceFlashThreshold": 0.1, //flash transition
8-
"RelativeDarkLuminanceThreshold": 0.8,
9-
"CdLuminanceFlashThreshold": 20, //flash transition
10-
"CdDarkLuminanceThreshold": 160,
11-
//possible CD luminanve values for look up table
12-
"CdLuminanceValues": [
13-
0.07,
14-
0.09,
15-
0.12,
16-
0.15,
17-
0.18,
18-
0.22,
19-
0.27,
20-
0.31,
21-
0.37,
22-
0.42,
23-
0.48,
24-
0.55,
25-
0.62,
26-
0.69,
27-
0.77,
28-
0.85,
29-
0.94,
30-
1.03,
31-
1.13,
32-
1.23,
33-
1.34,
34-
1.45,
35-
1.57,
36-
1.69,
37-
1.82,
38-
1.95,
39-
2.09,
40-
2.23,
41-
2.37,
42-
2.53,
43-
2.68,
44-
2.85,
45-
3.01,
46-
3.19,
47-
3.37,
48-
3.55,
49-
3.74,
50-
3.93,
51-
4.13,
52-
4.34,
53-
4.55,
54-
4.77,
55-
4.99,
56-
5.21,
57-
5.45,
58-
5.68,
59-
5.93,
60-
6.18,
61-
6.43,
62-
6.69,
63-
6.96,
64-
7.23,
65-
7.51,
66-
7.79,
67-
8.08,
68-
8.38,
69-
8.68,
70-
8.98,
71-
9.3,
72-
9.61,
73-
9.94,
74-
10.27,
75-
10.6,
76-
10.94,
77-
11.29,
78-
11.64,
79-
12,
80-
12.37,
81-
12.74,
82-
13.12,
83-
13.5,
84-
13.89,
85-
14.28,
86-
14.69,
87-
15.09,
88-
15.51,
89-
15.93,
90-
16.35,
91-
16.78,
92-
17.22,
93-
17.67,
94-
18.12,
95-
18.57,
96-
19.04,
97-
19.5,
98-
19.98,
99-
20.46,
100-
20.95,
101-
21.44,
102-
21.94,
103-
22.45,
104-
22.96,
105-
23.48,
106-
24.01,
107-
24.54,
108-
25.08,
109-
25.62,
110-
26.17,
111-
26.73,
112-
27.29,
113-
27.86,
114-
28.44,
115-
29.02,
116-
29.61,
117-
30.21,
118-
30.81,
119-
31.42,
120-
32.03,
121-
32.66,
122-
33.29,
123-
33.92,
124-
34.56,
125-
35.21,
126-
35.86,
127-
36.53,
128-
37.19,
129-
37.87,
130-
38.55,
131-
39.24,
132-
39.93,
133-
40.63,
134-
41.34,
135-
42.05,
136-
42.78,
137-
43.5,
138-
44.24,
139-
44.98,
140-
45.73,
141-
46.48,
142-
47.24,
143-
48.01,
144-
48.79,
145-
49.57,
146-
50.36,
147-
51.15,
148-
51.95,
149-
52.76,
150-
53.58,
151-
54.4,
152-
55.23,
153-
56.07,
154-
56.91,
155-
57.76,
156-
58.62,
157-
59.48,
158-
60.35,
159-
61.23,
160-
62.11,
161-
63,
162-
63.9,
163-
64.81,
164-
65.72,
165-
66.64,
166-
67.56,
167-
68.5,
168-
69.44,
169-
70.38,
170-
71.34,
171-
72.3,
172-
73.27,
173-
74.24,
174-
75.22,
175-
76.21,
176-
77.21,
177-
78.21,
178-
79.22,
179-
80.24,
180-
81.26,
181-
82.3,
182-
83.34,
183-
84.38,
184-
85.43,
185-
86.49,
186-
87.56,
187-
88.64,
188-
89.72,
189-
90.81,
190-
91.9,
191-
93,
192-
94.11,
193-
95.23,
194-
96.36,
195-
97.49,
196-
98.63,
197-
99.77,
198-
100.93,
199-
102.09,
200-
103.25,
201-
104.43,
202-
105.61,
203-
106.8,
204-
108,
205-
109.2,
206-
110.41,
207-
111.63,
208-
112.86,
209-
114.09,
210-
115.33,
211-
116.58,
212-
117.84,
213-
119.1,
214-
120.37,
215-
121.65,
216-
122.93,
217-
124.22,
218-
125.52,
219-
126.83,
220-
128.14,
221-
129.47,
222-
130.8,
223-
132.13,
224-
133.48,
225-
134.83,
226-
136.19,
227-
137.55,
228-
138.93,
229-
140.31,
230-
141.69,
231-
143.09,
232-
144.49,
233-
145.9,
234-
147.32,
235-
148.75,
236-
150.18,
237-
151.62,
238-
153.07,
239-
154.53,
240-
155.99,
241-
157.46,
242-
158.94,
243-
160.43,
244-
161.92,
245-
163.42,
246-
164.93,
247-
166.45,
248-
167.97,
249-
169.5,
250-
171.04,
251-
172.59,
252-
174.14,
253-
175.7,
254-
177.27,
255-
178.85,
256-
180.43,
257-
182.03,
258-
183.63,
259-
185.23,
260-
186.85,
261-
188.47,
262-
190.1,
263-
191.74,
264-
193.38,
265-
195.04,
266-
196.7,
267-
198.37,
268-
200
269-
]
4+
"RelativeDarkLuminanceThreshold": 0.8
2705
},
2716

2727
"RedSaturation": {
@@ -277,12 +12,10 @@
27712
"PatternDetection": {
27813
"MinStripes": 6, //min stripes for harmful patterns
27914
"TimeThreshold": 0.5, //max seconds for harmful patterns until failure
280-
"CDDarkLuminanceThreshold": 160,
28115
"RelativeDarkLuminanceThreshold": 0.8,
28216
"AreaProportion": 0.25
28317
},
28418

285-
28619
"FilePersistence": {
28720
"MaxDataStored": 10 //max stored frame data in memory until persistence
28821
},
@@ -292,7 +25,7 @@
29225
"MinTransitions": 4, //amount of min transitions to add to extended fail count
29326
"ExtendedFailSeconds": 4, //max seconds until the start of extended failure
29427
"ExtendedFailWindow": 5, //seconds in extended fail count window
295-
"AnalyseByTime": false
28+
"WarningTransitions": 4
29629
},
29730

29831
"FlashDetection": {
@@ -559,7 +292,6 @@
559292
},
560293

561294
"VideoAnalyser": {
562-
"LuminanceType": "RELATIVE", //CD || RELATIVE
563295
"PatternDetectionEnabled": false,
564296
"FrameResizeEnabled": false,
565297
"ResizeFrameProportion": 0.2

0 commit comments

Comments
 (0)