Skip to content

Commit da217ff

Browse files
committed
Breaking change: remove LUT from installer and create it dynamically
1 parent 8d7cf62 commit da217ff

File tree

25 files changed

+269
-109
lines changed

25 files changed

+269
-109
lines changed

cmake/installers.cmake

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@ macro(DeployApple TARGET)
22
if(EXISTS ${TARGET_FILE})
33
install ( TARGETS hyperhdr DESTINATION "share/.." COMPONENT "HyperHDR" )
44

5-
execute_process(
6-
COMMAND bash -c "cd ${CMAKE_CURRENT_BINARY_DIR} && tar -xzf ${PROJECT_SOURCE_DIR}/resources/lut/lut_lin_tables.tar.xz"
7-
RESULT_VARIABLE STATUS
8-
OUTPUT_VARIABLE OUTPUT1
9-
)
10-
if(STATUS AND NOT STATUS EQUAL 0)
11-
message( FATAL_ERROR "LUT tar.xz Bad exit status (xz-tools installed?)")
12-
else()
13-
message( STATUS "LUT tar.xz tar extracted")
14-
endif()
15-
16-
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lut_lin_tables.3d" DESTINATION "hyperhdr.app/Contents/lut" COMPONENT "HyperHDR")
175
install(FILES "${PROJECT_SOURCE_DIR}/cmake/osx/Hyperhdr.icns" DESTINATION "hyperhdr.app/Contents/Resources" COMPONENT "HyperHDR")
186
install(FILES "${PROJECT_SOURCE_DIR}/LICENSE" DESTINATION "hyperhdr.app/Contents/Resources" COMPONENT "HyperHDR")
197
install(FILES "${PROJECT_SOURCE_DIR}/3RD_PARTY_LICENSES" DESTINATION "hyperhdr.app/Contents/Resources" COMPONENT "HyperHDR")
@@ -214,8 +202,6 @@ macro(DeployUnix TARGET)
214202
if (EXISTS ${TARGET_FILE})
215203
include(GetPrerequisites)
216204

217-
# Install LUT
218-
install(FILES "${PROJECT_SOURCE_DIR}/resources/lut/lut_lin_tables.tar.xz" DESTINATION "share/hyperhdr/lut" COMPONENT "HyperHDR")
219205
install(FILES "${PROJECT_SOURCE_DIR}/LICENSE" DESTINATION "share/hyperhdr" COMPONENT "HyperHDR")
220206
install(FILES "${PROJECT_SOURCE_DIR}/3RD_PARTY_LICENSES" DESTINATION "share/hyperhdr" COMPONENT "HyperHDR")
221207

@@ -622,12 +608,6 @@ macro(DeployWindows TARGET)
622608
COMPONENT "HyperHDR"
623609
)
624610

625-
install(
626-
FILES ${PROJECT_SOURCE_DIR}/resources/lut/lut_lin_tables.tar.xz
627-
DESTINATION "bin"
628-
COMPONENT "HyperHDR"
629-
)
630-
631611
INSTALL(FILES ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION bin COMPONENT "HyperHDR")
632612

633613
install(FILES "${PROJECT_SOURCE_DIR}/LICENSE" DESTINATION bin COMPONENT "HyperHDR")

cmake/linux/arch/INSTALL

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ post_install() {
8484
start_msg=""
8585
restart_msg=""
8686

87-
echo "Extracting LUT table..."
88-
tar -xf /usr/share/hyperhdr/lut/lut_lin_tables.tar.xz -C /usr/share/hyperhdr/lut/
89-
rm -f -v /usr/share/hyperhdr/lut/lut_lin_tables.tar.xz
90-
9187
if grep -m1 systemd /proc/1/comm > /dev/null
9288
then
9389
# systemd
@@ -255,8 +251,6 @@ pre_remove() {
255251
rm -v /usr/share/applications/hyperhdr* 2>/dev/null
256252
rm -rv /usr/share/pixmaps/hyperhdr 2>/dev/null
257253

258-
echo "Removing LUT table"
259-
rm -f -v /usr/share/hyperhdr/lut/lut_lin_tables.3d
260254
exit 0
261255
}
262256

cmake/linux/debian/postinst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ fi
4444
start_msg=""
4545
restart_msg=""
4646

47-
echo "Extracting LUT table..."
48-
tar -xf /usr/share/hyperhdr/lut/lut_lin_tables.tar.xz -C /usr/share/hyperhdr/lut/
49-
rm -f -v /usr/share/hyperhdr/lut/lut_lin_tables.tar.xz
50-
5147
if grep -m1 systemd /proc/1/comm > /dev/null
5248
then
5349
# systemd

cmake/linux/debian/prerm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,4 @@ desktop-file-edit --set-key=NoDisplay --set-value=true /usr/share/applications/h
4848
rm -v /usr/share/applications/hyperhdr* 2>/dev/null
4949
rm -rv /usr/share/pixmaps/hyperhdr 2>/dev/null
5050

51-
echo "Removing LUT table"
52-
rm -f -v /usr/share/hyperhdr/lut/lut_lin_tables.3d
5351
exit 0

cmake/linux/rpm/postinst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ fi
4444
start_msg=""
4545
restart_msg=""
4646

47-
echo "Extracting LUT table..."
48-
tar -xf /usr/share/hyperhdr/lut/lut_lin_tables.tar.xz -C /usr/share/hyperhdr/lut/
49-
rm -f -v /usr/share/hyperhdr/lut/lut_lin_tables.tar.xz
50-
5147
if grep -m1 systemd /proc/1/comm > /dev/null
5248
then
5349
# systemd

cmake/linux/rpm/prerm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,4 @@ then
5454
firewall-cmd --remove-port=8090/tcp
5555
fi
5656

57-
echo "Removing LUT table"
58-
rm -f -v /usr/share/hyperhdr/lut/lut_lin_tables.3d
5957
exit 0
-176 KB
Binary file not shown.

cmake/windows/template/NSIS.template.in

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -793,16 +793,6 @@ Section "-Core installation"
793793
; Install Visual c++ Redistributable
794794
ExecWait '"$INSTDIR\bin\vc_redist.x64.exe" /install /quiet /norestart'
795795

796-
Push "$INSTDIR\bin\lut_lin_tables.tar.xz"
797-
Push "$INSTDIR\bin\lut_lin_tables.3d"
798-
799-
ExtractLut::extract
800-
Pop $0
801-
StrCmp $0 success SUCCESS
802-
MessageBox MB_OK|MB_ICONSTOP "$0"
803-
MessageBox MB_OK|MB_ICONSTOP "Please extract $INSTDIR\bin\lut_lin_tables.tar.xz manually using 7-zip"
804-
SUCCESS:
805-
806796
SectionEnd
807797

808798
Section "-Add to path"
@@ -925,7 +915,7 @@ Section "Uninstall"
925915
;Remove files we installed.
926916
;Keep the list of directories here in sync with the File commands above.
927917
@CPACK_NSIS_DELETE_FILES@
928-
Delete "$INSTDIR\bin\lut_lin_tables.3d"
918+
929919
@CPACK_NSIS_DELETE_DIRECTORIES@
930920

931921
!ifdef CPACK_NSIS_ADD_REMOVE

include/base/Grabber.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ class Grabber : public DetectionAutomatic, public DetectionManual, protected Lut
9393

9494
int getActualFps() override;
9595

96+
void pleaseWaitForLut(bool videoGrabber = true);
97+
9698
void setEncoding(QString enc);
9799

98100
void setBrightnessContrastSaturationHue(int brightness, int contrast, int saturation, int hue);

include/base/HyperHdrManager.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public slots:
8989
void clearInstancePriority(int instance, int priority);
9090
std::list<EffectDefinition> getEffects();
9191

92+
void handleLutRequestSignal();
93+
9294
signals:
9395
void SignalInstanceStateChanged(InstanceState state, quint8 instance, const QString& name = QString());
9496

0 commit comments

Comments
 (0)