Skip to content

Commit

Permalink
first public ver
Browse files Browse the repository at this point in the history
  • Loading branch information
HPW-dev committed Nov 19, 2021
0 parents commit 6122d2b
Show file tree
Hide file tree
Showing 294 changed files with 73,350 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
*.dblite
*.o
*.a
*.os
*.so
*.dll
*.out
*.svg
*.exe
run.bat
clean.bat
ignore me/
bin/seze
bin/seze-gui
modules/ffmpeg/lib/
modules/SDL2/lib/
bin/plugins/
.vscode
*__pycache__
output/
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020-2021, HPW-dev <hpwdev0@gmail.com>.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
89 changes: 89 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
#!/usr/bin/env python
from platform import architecture
env = Environment()

# consts
linux_exe_fmt = "ELF"
compiler_clangpp = "clang++"
compiler_gpp = "g++"
is_debug = bool(int(ARGUMENTS.get("debug", 0)))
build_plugins = bool(int(ARGUMENTS.get("build_plugins", 0)))
fflog = bool(int(ARGUMENTS.get("fflog", 0)))

# quess architecture
arch_raw = architecture()
arch_bit = arch_raw[0] # разрядность системы
arch_exe_fmt = arch_raw[1] # формат экзешника
bitness = {"x32": "32bit", "x64": "64bit"}

# current compilation info
print(f"system bitness: {arch_bit}")
print(f"system executable format: {arch_exe_fmt}")
print(f"debug mode: {is_debug}")

# var for build
compiler = ARGUMENTS.get("cxx", compiler_gpp)
cpp_flags = [
"-std=c++20", "-pipe",
]
defines = [
#"-DTVSIM_LD_COMPONENT",
]
ld_flags = []

# platform spec-s settings
is_linux = bool(arch_exe_fmt == linux_exe_fmt)
if (is_linux): # linux
defines.append("-DLINUX")
#compiler = compiler_clangpp
else: # windows
defines.append("-DWINDOWS")

# exclude clibs
if ((compiler != compiler_clangpp) and (not is_debug)):
ld_flags.extend(["-shared-libgcc", "-flto"])
if (not is_linux):
ld_flags.extend(["-shared-libstdc++"])

#bitness specific
if (arch_bit == bitness["x64"]):
cpp_flags.extend(["-m64"])
else:
cpp_flags.extend(["-m32"])
# debug/release settings:
if is_debug:
defines.extend(["-DDEBUG", ])
cpp_flags.extend(["-O0", "-ggdb3"])
else: # release
defines.extend(["-DNDEBUG"])
if (compiler != compiler_clangpp):
cpp_flags.append("-s") # stripping exec
#bitness specific
if (arch_bit == bitness["x64"]):
cpp_flags.extend(["-Ofast", "-march=x86-64"])
else: # 32bit
#cpp_flags.extend(["-O2"])
cpp_flags.extend(["-m32", "-Ofast", "-march=pentium2"])

# print selected compiler:
print(f"compiler: {compiler}")

# on/off ffmpeg debug logging
if (fflog):
defines.append("-DFFLOG")

# билд эффектов:
if (build_plugins):
print("building plugins enabled")
SConscript("src/plugins/SConscript",
exports=[
"env", "is_linux", "compiler", "defines",
"cpp_flags", "ld_flags"
])

# билд seze
if (not build_plugins):
print("building seze enabled")
SConscript("src/SConscript",
exports=["compiler", "cpp_flags", "compiler_clangpp",
"env", "is_linux", "defines", "ld_flags"])
90 changes: 90 additions & 0 deletions SEZEII.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"editor.tabSize": 2,
"files.exclude": {
"**/*.dblite": true,
"**/*.o": true,
"**/*.dll": true,
"**/*.out": true,
"**/*.svg": true,
"**/*.exe": true,
"bin": true,
"modules/**": true,
".vscode": true,
},
"files.associations": {
"ostream": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"new": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"typeinfo": "cpp",
"mutex": "cpp",
"chrono": "cpp",
"condition_variable": "cpp",
"ctime": "cpp",
"ratio": "cpp",
"thread": "cpp",
"compare": "cpp",
"concepts": "cpp",
"ranges": "cpp",
"stop_token": "cpp",
"cinttypes": "cpp",
"map": "cpp",
"cstring": "cpp",
"codecvt": "cpp",
"iomanip": "cpp",
"cassert": "cpp"
},
"C_Cpp.default.includePath": [
"${default}",
"modules/ffmpeg/include",
"modules/RRL/include",
"modules/SDL2/include",
],
"C_Cpp.default.compilerPath": "C:\\TDM-GCC-32\\bin\\g++.exe"
}
}
4 changes: 4 additions & 0 deletions bin/scripts/YUVA classic.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\\AtariSMN83\\YUVA classic.dll"
4 changes: 4 additions & 0 deletions bin/scripts/YUVA fat.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\\AtariSMN83\\YUVA fat.dll"
4 changes: 4 additions & 0 deletions bin/scripts/YUVA lights.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\\AtariSMN83\\YUVA lights.dll"
4 changes: 4 additions & 0 deletions bin/scripts/YUVA strawberry.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\\AtariSMN83\\YUVA strawberry.dll"
5 changes: 5 additions & 0 deletions bin/scripts/average dark step.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\average.dll" ^
--opts "-c 4 -o and -g"
5 changes: 5 additions & 0 deletions bin/scripts/average darker deformation.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\average.dll" ^
--opts "-c 5 -o min"
5 changes: 5 additions & 0 deletions bin/scripts/average glitch.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\average.dll" ^
--opts "-c 2 -g -o xor"
5 changes: 5 additions & 0 deletions bin/scripts/average xor.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\average.dll" ^
--opts "-c 5 -o xor"
5 changes: 5 additions & 0 deletions bin/scripts/average.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\average.dll" ^
--opts "-c 8 -o average"
5 changes: 5 additions & 0 deletions bin/scripts/colorop rnd.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\colorop.dll" ^
--opts "--op add --rnd"
5 changes: 5 additions & 0 deletions bin/scripts/colorop.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\colorop.dll" ^
--opts "--op mul --value 080004"
5 changes: 5 additions & 0 deletions bin/scripts/lineswap 2.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\lineswap.dll" ^
--opts "-s 1 -c 4 --swap"
5 changes: 5 additions & 0 deletions bin/scripts/lineswap.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\lineswap.dll" ^
--opts "-s 1 -c 8"
5 changes: 5 additions & 0 deletions bin/scripts/pixelsort h.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\pixelsort.dll" ^
--opts "-d h -v 128 -t max3"
5 changes: 5 additions & 0 deletions bin/scripts/pixelsort v.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\pixelsort.dll" ^
--opts "-b -d v -v 127 -t average"
5 changes: 5 additions & 0 deletions bin/scripts/rdither.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\rdither.dll" ^
--opts "%opts%"
5 changes: 5 additions & 0 deletions bin/scripts/stars beams.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\stars.dll" ^
--opts "-l 32 -p 1.666 -t 225 -m avr -r -s 1 --rsize"
5 changes: 5 additions & 0 deletions bin/scripts/stars lights diagonal.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\stars.dll" ^
--opts "-l 32 -p 0.3 -t 196 -m rgb --nv --nh"
5 changes: 5 additions & 0 deletions bin/scripts/stars lights.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\stars.dll" ^
--opts "-l 24 -p 0.2 -t 196 -m rgb"
5 changes: 5 additions & 0 deletions bin/scripts/stars rgb.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\stars.dll" ^
--opts "-l 32 -p 1.5 -t 196 -r -s 1 --rsize -m rgb"
16 changes: 16 additions & 0 deletions bin/scripts/tvsim bw AM glitch.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
set AM=0.00003
set opts=--tv_type bw --resolution_type CD-NTSC ^
--filter_power 3 ^
--interlace --noise_level 0.001 --power 1 ^
--enable_AM --fading 0.1 ^
--AM_ratio_in %AM% ^
--AM_ratio_in_u %AM% ^
--AM_ratio_in_v %AM% ^
--AM_ratio_out %AM% ^
--AM_ratio_out_u %AM% ^
--AM_ratio_out_v %AM%
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\tvsim.dll" ^
--opts "%opts%"
8 changes: 8 additions & 0 deletions bin/scripts/tvsim bw ringing.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
set opts=--tv_type bw --resolution_type CD-NTSC ^
--filter_power 0 --noise_level 0 --power 1 --ringing_power 0.5 ^
--ringing_type right --ringing_ratio 1.2 --ringing_length 16
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\tvsim.dll" ^
--opts "%opts%"
5 changes: 5 additions & 0 deletions bin/scripts/tvsim bw stable.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set batch_path=%~dp0
set /a rand_name=%random% %% 100000
"%batch_path%..\seze.exe" -i %1 -o %1-%rand_name%.avi ^
--plug "%batch_path%..\plugins\\windows\\free\\tvsim.dll" ^
--opts "--tv_type bw --interlace"
Loading

0 comments on commit 6122d2b

Please sign in to comment.