Wykres commitów

511 Commity (c86cd8dc03647c9fc8360ffca804ebd907acb86c)

Autor SHA1 Wiadomość Data
nyanpasu64 85a4163f8a Merge pull request #85 from nyanpasu64/alter-config-defaults
Make always-dumped CorrelationTriggerConfig attributes required
- Move buffer_falloff to default_config().
- Edit test_trigger.py by adding a custom CorrelationTriggerConfig template.
    - This template is *very different* from the previous
      CorrelationTriggerConfig optional-defaults. The tests pass anyway.
2018-12-06 12:48:22 -08:00
nyanpasu64 89cec1e6b4 Improve yaml_sink description 2018-12-06 12:45:01 -08:00
nyanpasu64 8aa5a116b1 Remove CorrelationTriggerConfig.always_dump (they are now required) 2018-12-06 12:37:26 -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 cd0a998a66 Make always-dumped CorrelationTriggerConfig attributes required
- Update default_config() template to coincide with `always_dump`
  (add buffer_falloff).
- Make `use_edge_trigger` required.

Breaks unit tests.
2018-12-06 12:33:07 -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 6d312f5de4 Improve config organization and defaults (#84)
`Config` defaults are optional attributes.
`default_config` defaults are template values.
2018-12-06 11:04:22 -08:00
nyanpasu64 78d4512fb9 Add `-h` command-line option which shows `--help` 2018-12-06 06:52:11 -08:00
nyanpasu64 53b4f64a87 Switch color types to str or Optional 2018-12-05 07:52:59 -08:00
nyanpasu64 d52f68a875 Appease Mypy (partly) 2018-12-05 05:14:04 -08:00
nyanpasu64 c9a57f84d2 Update metadata files (pycharm style, .gitignore qt creator) 2018-12-05 04:37:28 -08:00
nyanpasu64 f4add75049 Improve organization and commenting of CorrelationTrigger 2018-12-05 04:00:35 -08:00
nyanpasu64 d1d441884c Reorganize setup.py 2018-11-26 18:29:08 -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 8cb921cb14 Pycharm 2018.3 encodings.xml: All files are utf-8 2018-11-26 17:57:45 -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 8c96719891 Mark Output base class as a context manager
Ovgen assumes all outputs are context managers. Up until now,
this assumption was true, since the only output used so far
(PipeOutput) is a context manager.

This change makes custom/dummy output types easier.
2018-11-25 04:37:42 -08:00
nyanpasu64 59931a3440 Workaround error when calling CLI with wildcards on Windows 2018-11-25 04:23:45 -08:00
nyanpasu64 7aacc5a387 Add renderer LineParam, prebake default line color 2018-11-21 21:39:34 -08:00
nyanpasu64 436d7c1a4e Introduce outputs.PIXEL_FORMAT (for ffmpeg) 2018-11-21 03:35:29 -08:00
nyanpasu64 73bb8d3619 .gitattributes: Force eol=LF on Windows
Useful when syncing source between Windows and Unix via Dropbox.
2018-11-20 18:05:28 -08:00
nyanpasu64 6a30cfbc83 Make Config.channels mandatory
See #38
2018-11-17 22:35:59 -08:00
nyanpasu64 1bdcf7a127 Switch default init_line_color from list to hex 2018-11-17 22:32:34 -08:00
nyanpasu64 0cd1f5f304 Merge pull request #71 from nyanpasu64/fix-stereo-overflow
Fix stereo overflow
2018-11-17 22:13:48 -08:00
nyanpasu64 21c78fd7fc Fix loud stereo overflow 2018-11-17 22:01:00 -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 6e2fed4a01 Close pipeline input when terminating process chain
Fixes TimeoutError when terminating Python parent (Ctrl+C)
2018-11-17 17:44:13 -08:00
nyanpasu64 55409ffc0c Fix UnboundLocalError when outputs don't terminate quickly 2018-11-17 17:21:06 -08:00
nyanpasu64 ae38b77c11 Merge pull request #68 from nyanpasu64/render-subsampling
Add separate trigger/render subsampling
2018-11-17 16:13:35 -08:00
nyanpasu64 82c20f1599 Improve comments and formatting 2018-11-17 16:12:19 -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 b755cb0f12 Fix default config: Disable trigger_subsampling, increase resolution 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 9a47ca8990 Alter coalesce() to raise exception if all None 2018-11-17 16:10:00 -08:00
nyanpasu64 1c050631eb Prevent PyCharm from deleting cli.py Ovgen import 2018-11-17 01:19:24 -08:00
nyanpasu64 705efec0e9 Include renderer.get_frame() in renderer benchmark 2018-11-16 18:30:21 -08:00
nyanpasu64 f5c0a07ed2 Fix profiling for the last time 2018-11-16 18:27:31 -08:00
nyanpasu64 1e471f08c4 Don't create outputs if benchmarking is enabled 2018-11-16 18:26:23 -08:00
nyanpasu64 7ce15a7f89 Merge branch 'render-refactor' 2018-11-16 17:11:52 -08:00
nyanpasu64 299d8a61f4 Apply post trigger before updating correlation buffer 2018-11-12 04:04:11 -08:00
nyanpasu64 6d480f3f2b Add region to collapse extra_outputs 2018-11-12 02:00:17 -08:00
nyanpasu64 f794728a99 Update comments and TODO 2018-11-12 00:46:56 -08:00
nyanpasu64 510b514bca Fix bug where exceptions aren't printed until ffplay terminates 2018-11-11 06:39:59 -08:00
nyanpasu64 cb6cbf3535 Fix calling ovgenpy with `--profile` 2018-11-11 05:04:50 -08:00
nyanpasu64 f18cc9119b Remove unused CorrelationTrigger.save_window 2018-11-05 16:02:42 -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 60e4658413 Add Renderer abstract class 2018-11-03 23:20:55 -07:00