Wykres commitów

882 Commity (disable-codecov-comments)

Autor SHA1 Wiadomość Data
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
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 76c86557c4 Merge pull request #60 from nyanpasu64/output-via-cli
Choose between playback and encode via CLI, not config
2018-11-02 19:57:14 -07:00
nyanpasu64 4cffa8c767 Merge pull request #62 from nyanpasu64/fix-subsampled-period
Fix CorrelationTrigger update_buffer when subsampling enabled
2018-11-01 15:10:32 -07:00
nyanpasu64 0f146a40e4 Fix CorrelationTrigger update_buffer when subsampling enabled
Bug was introduced with cached periods.
2018-10-31 06:00:20 -07:00
nyanpasu64 bc042c29d7 Choose between playback and encode via CLI, not config 2018-10-31 00:32:43 -07:00
nyanpasu64 915c633679 Merge pull request #57 from nyanpasu64/per-frame-cache
Demean trigger data, add LocalPostTrigger, change defaults
2018-10-30 18:06:48 -07:00
nyanpasu64 af3ad6c0f6 Improve command-line error wording 2018-10-30 18:01:38 -07:00
nyanpasu64 ef4c4e5011 twiddle default settings 2018-10-30 18:01:38 -07:00
nyanpasu64 0ee3f6af92 Remove LocalPostTriggerConfig from default_config (due to speed hit) 2018-10-30 18:01:38 -07:00
nyanpasu64 1f934c2b03 Demean data before triggering
CorrelationTrigger computes mean and stores into cache.
- Both input data and buffer-update data are demeaned.

LocalPostTrigger uses `cache.mean` to demean data.
2018-10-30 18:01:38 -07:00
nyanpasu64 a8a58cb3c0 Make LocalPostTrigger quit if edge correlation is negative 2018-10-30 18:01:38 -07:00
nyanpasu64 c15334fe54 Make PostTrigger normalize input data by peaks
Without normalization, the stronger the data is,
the larger correlation it has with the edge trigger.
The parabolic cost function is more effective at low signal strengths.
2018-10-30 18:01:38 -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 34877f4f37 reconfigure pycharm 2018-10-30 18:01:38 -07:00
nyanpasu64 584b42ea19 [CorrelationTrigger] extract variable 2018-10-30 18:01:38 -07:00
nyanpasu64 15f7a1ec4a Remove unneeded dependencies from setup.py 2018-10-30 01:15:38 -07:00
nyanpasu64 a2b10e8541 Fix bug which dumps empty lists to YAML (show_internals: []) 2018-10-29 22:21:38 -07:00
nyanpasu64 6073ec926e Add 2-clause BSD license 2018-10-12 03:56:25 -07:00
nyanpasu64 3fd37133da Fix test on Windows 2018-09-05 17:41:42 -07:00
nyanpasu64 dd1f2b7b1d Merge pull request #52 from nyanpasu64/terminate-ffmpeg
Properly terminate FFmpeg output processes
2018-09-05 17:40:44 -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 a3e6db27b6 Add `-movflags faststart` to video template
Closing ffmpeg stdin properly causes `-movflags faststart` to no longer
produces corrupted video files.
2018-08-28 03:21:57 -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 970fffef0c Rename _FFmpegCommand to _FFmpegProcess 2018-08-28 03:03:11 -07:00