-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6122d2b
Showing
294 changed files
with
73,350 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.