nyanpasu64
9aceabb2b7
Delete unused tests/images/
2018-12-20 22:30:40 -08:00
nyanpasu64
021e157894
Update ruamel.yaml to 0.15.70, add behavior tests
2018-12-18 20:53:23 -08:00
nyanpasu64
027ba504bd
When loading invalid config, wrap exceptions with OvgenError
...
Fix unit test (switching to OvgenError)
2018-12-18 20:53:23 -08:00
nyanpasu64
1b63f66d47
Add Ovgen progress callbacks, switch to Arguments parameter
2018-12-18 20:53:23 -08:00
nyanpasu64
baad00a938
Squash branch "qt-gui"
2018-12-18 20:53:23 -08:00
nyanpasu64
89cec1e6b4
Improve yaml_sink description
2018-12-06 12:45:01 -08:00
nyanpasu64
2aa919b7b7
Fix test_trigger by adding CorrelationTriggerConfig template
...
This template is *very different* from the previous
CorrelationTriggerConfig optional-defaults.
The tests pass anyway.
2018-12-06 12:36:13 -08:00
nyanpasu64
ffd92f4622
Split trigger/render_ms ( #79 )
...
Keep Config.trigger/render_width, but raise warning if encountered.
2018-12-06 12:11:39 -08:00
nyanpasu64
a78c3712c9
Switch from keyword_dataclasses to attrs, fix Python 3.7
...
keyword_dataclasses works on 3.6 and 3.6 only. attrs works everywhere.
Validators and converters are not used yet.
2018-11-26 18:00:30 -08:00
nyanpasu64
7da8de91a7
Add Config.render_subfps parameter to reduce CPU usage ( #77 )
...
- All frames are triggered, but only 1 in `render_subfps` frames are rendered.
- When subsampling FPS, render frames from the future to alleviate lag.
- Reorder Config, move `fps` and `render_subfps` closer to
`render_subsampling` (easier to use for me).
- Simplify output-related test code.
2018-11-25 04:43:43 -08:00
nyanpasu64
30a59c8e07
Add delayed_assert, to stereo overflow test
2018-11-17 22:01:00 -08:00
nyanpasu64
3bbb30d97e
Add test for loud stereo overflowing
2018-11-17 21:49:41 -08:00
nyanpasu64
fade930f64
Rename trigger subsampling to stride
2018-11-17 16:10:00 -08:00
nyanpasu64
dcc705f0c2
Rename Wave.get_around() subsampling to stride
2018-11-17 16:10:00 -08:00
nyanpasu64
0acea45908
Add separate trigger and render_subsampling configs
2018-11-17 16:10:00 -08:00
nyanpasu64
7ce15a7f89
Merge branch 'render-refactor'
2018-11-16 17:11:52 -08:00
nyanpasu64
f794728a99
Update comments and TODO
2018-11-12 00:46:56 -08:00
nyanpasu64
88a79a97e8
Remove Renderer.set_colors(), move into constructor
...
Makes it simpler to create an impl which constructs all canvases
within __init__, not on first frame.
2018-11-05 15:45:38 -08:00
nyanpasu64
5c7db27862
Improve error message of test_renderer
...
If the foreground color is 136 instead of the right color,
this corresponds to the global foreground color #888888 ,
which means the per-channel foreground color wasn't applied.
2018-11-05 15:30:06 -08:00
nyanpasu64
342752febf
Move LayoutConfig and RendererLayout to new file
2018-11-03 22:53:47 -07:00
nyanpasu64
62e8c800f4
Fix passing tuples/lists into RendererLayout
2018-11-03 22:51:42 -07:00
nyanpasu64
bc042c29d7
Choose between playback and encode via CLI, not config
2018-10-31 00:32:43 -07:00
nyanpasu64
3beaee923c
[wip] Add PostTrigger and LocalPostTrigger
...
A post-processing trigger should have subsampling=1,
and no more post triggers.
LocalPostTrigger uses a parabolic cost function for shifting to find
edges. It doesn't work well and needs tweaking.
2018-10-30 18:01:38 -07:00
nyanpasu64
cc7b9b35ac
Add ITriggerConfig.post and Trigger.post for trigger chaining
...
One would think `use_edge_trigger` should be an InitVar.
But it breaks test_trigger_subsampling() which is parameterized on
`cfg.use_edge_trigger` (and I want to keep it that way, not peek at
`cfg.post`).
I also copied test_trigger_subsampling to test_post_trigger_subsampling,
to test `cfg.post`.
2018-10-30 18:01:38 -07:00
nyanpasu64
6c4e128031
Add PerFrameCache class to cache period over multiple triggers
2018-10-30 18:01:38 -07:00
nyanpasu64
3fd37133da
Fix test on Windows
2018-09-05 17:41:42 -07:00
nyanpasu64
355071d7c8
Add output test, ensure Ovgen closes pipe to ffmpeg
2018-08-29 01:08:05 -07:00
nyanpasu64
a62f1561cf
Fix output pipeline tests (unique Popen mocks)
2018-08-29 00:57:08 -07:00
nyanpasu64
8f521529c2
Disable unit test (creates a popup window)
2018-08-28 03:21:57 -07:00
nyanpasu64
aae4646157
Properly terminate output processes (including exceptions)
2018-08-28 03:21:49 -07:00
nyanpasu64
f917c3bdc6
Fix bug where test_output writes to ./- instead of stdout
...
Also remove gibberish from test_output
2018-08-27 14:57:40 -07:00
nyanpasu64
ba17f64618
[wip] Fix loading YAML config from another directory
...
Bugs: FFmpeg writes to file named "-"
2018-08-27 04:48:35 -07:00
nyanpasu64
590aad12ba
Add test for loading YAML config from another directory
2018-08-27 04:31:37 -07:00
nyanpasu64
e1c4bdbbdb
Fix CLI YAML output path (should write to current dir)
2018-08-27 01:47:39 -07:00
nyanpasu64
74f260711c
Add test for command-line write paths
...
Fails at the moment
2018-08-26 23:50:21 -07:00
nyanpasu64
7e93c60f9a
Fix tests (CLI sink fixtures)
2018-08-26 23:48:36 -07:00
nyanpasu64
29798e7343
Increase trigger performance, cache and reuse data window
...
Reuses data window if period is within 1 semitone of saved window.
2018-08-26 19:33:34 -07:00
nyanpasu64
e42d235343
Rename trigger/render_width_ratio to trigger/render_width
...
trigger/render_width multiplies how wide the window is, in milliseconds.
2018-08-26 01:24:26 -07:00
nyanpasu64
494ce2bf69
Add ability to load legacy YAML files
...
Add Ignored and Alias fields to Config and CorrelationTriggerConfig.
2018-08-25 22:44:42 -07:00
nyanpasu64
98a13e9c5b
Add Ignored object, for discarding config fields
2018-08-25 22:25:09 -07:00
nyanpasu64
56438bed5c
Add Alias class, for config field aliasing
2018-08-25 22:19:09 -07:00
nyanpasu64
acffc1a55e
Fix unit tests
2018-08-25 18:51:01 -07:00
nyanpasu64
cf0f716593
Add data padding/truncation functions (and unit tests)
2018-08-25 17:06:13 -07:00
nyanpasu64
ae9aa862e2
Fix unit tests
2018-08-25 16:35:09 -07:00
nyanpasu64
aa3e4fb8e1
Rename RENDER_PROFILING to PRINT_TIMESTAMP
2018-08-25 15:46:39 -07:00
nyanpasu64
d355fa728e
Restrict test_channel_subsampling inputs to <= 100
...
Considerably speeds up Hypothesis test-case minimization when failures
occur.
2018-08-24 21:39:59 -07:00
nyanpasu64
effc60d064
Delete benchmark_trigger.py (outdated)
...
It's nice to have, but it calls CorrelationTriggerConfig incorrectly and
doesn't work.
2018-08-24 01:47:23 -07:00
nyanpasu64
a172fc33a9
Add test for nsamp and render_subsampling used for rendering
2018-08-24 01:47:23 -07:00
nyanpasu64
a2237e09d6
Cleanup unit-test files
2018-08-24 01:46:33 -07:00
nyanpasu64
ce3849cd54
Rename Wave.get_around(region_len) to region_nsamp
2018-08-24 01:05:46 -07:00