nageru
3 days agoCorrect flag name in a comment. master
Steinar H. Gunderson [Tue, 7 Apr 2020 19:00:34 +0000 (21:00 +0200)]
Correct flag name in a comment.

3 days agoUpdate v4l2loopback modprobe line.
Steinar H. Gunderson [Mon, 6 Apr 2020 20:30:24 +0000 (22:30 +0200)]
Update v4l2loopback modprobe line.

I can't get Chrome to work properly without max width/height being set.

4 days agoAdd missing --help for --v4l-output.
Steinar H. Gunderson [Mon, 6 Apr 2020 19:17:12 +0000 (21:17 +0200)]
Add missing --help for --v4l-output.

4 days agoAdd support for V4L2 output.
Steinar H. Gunderson [Mon, 6 Apr 2020 19:12:41 +0000 (21:12 +0200)]
Add support for V4L2 output.

This is video-only (no audio) and unsynchronized. It's intended mainly
for a way to pipe Nageru output into a videoconferencing application,
in these Covid-19 days.

6 days agoDocument that bmusb 0.7.4 is not in buster.
Steinar H. Gunderson [Fri, 3 Apr 2020 20:29:06 +0000 (22:29 +0200)]
Document that bmusb 0.7.4 is not in buster.

12 days agoRelease Nageru and Futatabi 1.9.2. 1.9.2
Steinar H. Gunderson [Sun, 29 Mar 2020 13:12:34 +0000 (15:12 +0200)]
Release Nageru and Futatabi 1.9.2.

12 days agoRename add_auto_white_balance() to add_white_balance().
Steinar H. Gunderson [Sun, 29 Mar 2020 13:00:35 +0000 (15:00 +0200)]
Rename add_auto_white_balance() to add_white_balance().

“auto” white balance sounds like we are doing some kind of analysis
to find the correct white balance, which we're not, so rename before
release to reduce the chance of confusion.

12 days agoReintroduce faster DeckLink shutdown; now with a fix for the UI switcher.
Steinar H. Gunderson [Sun, 29 Mar 2020 12:33:32 +0000 (14:33 +0200)]
Reintroduce faster DeckLink shutdown; now with a fix for the UI switcher.

12 days agoFix a memory leak in DecklinkOutput.
Steinar H. Gunderson [Sun, 29 Mar 2020 12:32:56 +0000 (14:32 +0200)]
Fix a memory leak in DecklinkOutput.

12 days agoFix some leftovers in warning messages.
Steinar H. Gunderson [Sun, 29 Mar 2020 11:25:54 +0000 (13:25 +0200)]
Fix some leftovers in warning messages.

12 days agoSupport getting all 8 channels from DeckLink capture cards.
Steinar H. Gunderson [Wed, 25 Mar 2020 18:14:42 +0000 (19:14 +0100)]
Support getting all 8 channels from DeckLink capture cards.

You could select channels 3–8 in the UI, but Nageru would simply
crash with an assertion failure.

12 days agoFix an issue with 10-bit input and nonstandard heights (e.g. 1920x800).
Steinar H. Gunderson [Sat, 28 Mar 2020 23:47:38 +0000 (00:47 +0100)]
Fix an issue with 10-bit input and nonstandard heights (e.g. 1920x800).

2 weeks agoUpdate for newer CEF.
Steinar H. Gunderson [Fri, 20 Mar 2020 18:59:48 +0000 (19:59 +0100)]
Update for newer CEF.

3 weeks agoWhen deciding which signal to connect, delay the mapping to cards.
Steinar H. Gunderson [Wed, 18 Mar 2020 18:38:25 +0000 (19:38 +0100)]
When deciding which signal to connect, delay the mapping to cards.

This fixes an issue where scenes that get display() once at start
and then never afterwards wouldn't get updated properly when mappings
changed in the UI.

3 weeks agoStretch the ease length to get back into the right cadence.
Steinar H. Gunderson [Mon, 16 Mar 2020 22:00:50 +0000 (23:00 +0100)]
Stretch the ease length to get back into the right cadence.

Unless the speed change is very small, we can stretch the ease a bit
(from the default 200 ms into anything in the [0,2] second range)
such that we conveniently hit an original frame. This means that if
we go into a speed such as 100% or 200%, we've got a very high
likelyhood of going into a locked cadence, with the associated
quality and performance benefits.

3 weeks agoOnly bother going into an ease if there is an actual speed change.
Steinar H. Gunderson [Sat, 14 Mar 2020 23:47:47 +0000 (00:47 +0100)]
Only bother going into an ease if there is an actual speed change.

3 weeks agoAdd versions of the binary search utilities that take in const references.
Steinar H. Gunderson [Sat, 14 Mar 2020 16:14:34 +0000 (17:14 +0100)]
Add versions of the binary search utilities that take in const references.

3 weeks agoWhenever the speed changes, ease into it over the next 200 ms.
Steinar H. Gunderson [Wed, 11 Mar 2020 20:30:15 +0000 (21:30 +0100)]
Whenever the speed changes, ease into it over the next 200 ms.

This causes a slight delay compared to the operator's wishes,
but that should hardly be visible, and it allows for somewhat
better behavior when we get very abrupt changes from the controller
(or the lock button suddenly is pressed) -- it's essentially
more of an interpolation. Even more importantly, it will allow us
to make a little trick to increase performance in the next patch
that would be somewhat more jerky without it.

4 weeks agoRefactor the handling of the various time origins in Player into a class.
Steinar H. Gunderson [Wed, 11 Mar 2020 18:58:54 +0000 (19:58 +0100)]
Refactor the handling of the various time origins in Player into a class.

4 weeks agoChange Futatabi frames to be cached as textures instead of in system memory.
Steinar H. Gunderson [Sun, 8 Mar 2020 14:57:51 +0000 (15:57 +0100)]
Change Futatabi frames to be cached as textures instead of in system memory.

The JPEGs are now decoded into PBO bounce buffers, which saves a lot of CPU
time (copying is asynchronous, and done by the GPU -- plus we save a copy
into a staging buffer).

Similarly, keeping the cache in textures allows the driver (if it wants!)
to keep it in VRAM, saving repeated uploading if the same frame is used
multiple times.

CPU usage is down from 1.05 to 0.60 cores on my machine, when not playing.
More importantly, the 99-percentile player queue status is extremely much
better.

4 weeks agoAdd metrics for how many frames we are decoding, but did not have the time to display.
Steinar H. Gunderson [Sun, 8 Mar 2020 14:02:21 +0000 (15:02 +0100)]
Add metrics for how many frames we are decoding, but did not have the time to display.

4 weeks agoMove RefCountedTexture to shared.
Steinar H. Gunderson [Fri, 6 Mar 2020 21:18:41 +0000 (22:18 +0100)]
Move RefCountedTexture to shared.

5 weeks agoAdd a metric for general Futatabi player health (how much buffer there is left).
Steinar H. Gunderson [Wed, 4 Mar 2020 23:16:47 +0000 (00:16 +0100)]
Add a metric for general Futatabi player health (how much buffer there is left).

5 weeks agoFix MJPEG white balance information when VA-API is in use.
Steinar H. Gunderson [Wed, 4 Mar 2020 18:53:49 +0000 (19:53 +0100)]
Fix MJPEG white balance information when VA-API is in use.

The JPEG headers were cached (per resolution) and never invalidated,
causing wrong/outdated information to be sent.

I can't really remember why I wanted to cache these, but I suppose
I had a reason, so I'm a bit reluctant to just kill the cache.
Hopefully, the white balance won't change often enough, and these
objects are so small, that we won't need invalidation; we can just
let it grow until program exit.

5 weeks agoAdd summaries for tracking fade and interpolation latency across the GPU.
Steinar H. Gunderson [Sat, 29 Feb 2020 23:32:15 +0000 (00:32 +0100)]
Add summaries for tracking fade and interpolation latency across the GPU.

5 weeks agoAdd a Futatabi metric for JPEG decode times.
Steinar H. Gunderson [Sat, 29 Feb 2020 23:07:27 +0000 (00:07 +0100)]
Add a Futatabi metric for JPEG decode times.

5 weeks agoFix a deadlock in Futatabi when using MIDI devices.
Steinar H. Gunderson [Sat, 29 Feb 2020 22:25:11 +0000 (23:25 +0100)]
Fix a deadlock in Futatabi when using MIDI devices.

If something in the UI wanted to update a light on the MIDI device
at the exact same time the operator pressed a button on said device,
we could get a deadlock. The problem was that MIDIDevice::handle_event()
would lock the MIDIDevice and then go to tell MIDIMapper that the
note was coming (which needs a lock on the MIDIMapper), while in the
other thread, MIDIMapper::refresh_lights() would first lock the MIDIMapper
and then call MIDIDevice::update_lights() with the new set of lights
(which nedes a lock on the MIDIDevice). This is a classic lock ordering
issue.

The solution is to simply make MIDIDevice::handle_event() not lock the
MIDIDevice for anything that calls MIDIMapper; it doesn't actually modify
any state in MIDIDevice, except when we hotplug new devices (and that never
calls MIDIMapper).

5 weeks agoMake so that auto white balance is stored per (physical) card, not per signal.
Steinar H. Gunderson [Sat, 29 Feb 2020 21:44:07 +0000 (22:44 +0100)]
Make so that auto white balance is stored per (physical) card, not per signal.

This fixes an issue where auto white balance would be completely off if
any signals were remapped out of the default. It means you no longer can
duplicate a signal and have different white balance on it, but that seems
narrow enough that one could use manual white balance for that (I can't
really imagine what the use case would be).

5 weeks agoNomenclature cleanups around channels, signals and cards.
Steinar H. Gunderson [Sat, 29 Feb 2020 21:30:30 +0000 (22:30 +0100)]
Nomenclature cleanups around channels, signals and cards.

6 weeks agoMake it possible to get and set EQ parameters from the theme.
Steinar H. Gunderson [Wed, 26 Feb 2020 17:47:55 +0000 (18:47 +0100)]
Make it possible to get and set EQ parameters from the theme.

6 weeks agoFix an issue where a Kaeru connected to a nonfunctional input would get lots of socke...
Steinar H. Gunderson [Tue, 25 Feb 2020 23:00:07 +0000 (00:00 +0100)]
Fix an issue where a Kaeru connected to a nonfunctional input would get lots of sockets in CLOSE_WAIT (and useless threads).

It would actually eventually run out of sockets and go entirely zombie
if left for too long, which is obviously suboptimal.

6 weeks agoLog a warning when we kill a client that is not keeping up.
Steinar H. Gunderson [Tue, 25 Feb 2020 22:02:49 +0000 (23:02 +0100)]
Log a warning when we kill a client that is not keeping up.

7 weeks agoMake CHECK_VASTATUS error messages textual instead of numeric.
Steinar H. Gunderson [Fri, 21 Feb 2020 18:07:37 +0000 (19:07 +0100)]
Make CHECK_VASTATUS error messages textual instead of numeric.

7 weeks agoIn Futatabi, make it possible to set custom source labels.
Steinar H. Gunderson [Mon, 17 Feb 2020 22:13:29 +0000 (23:13 +0100)]
In Futatabi, make it possible to set custom source labels.

An operator was consistently confused by having 3 on a left camera
and 4 on a right camera, and wanted L3 and R4 labels, so here goes :-)
There's no auto-import from Nageru at this point; it needs to be set
using --source-label NUM:LABEL (or -l NUM:LABEL) from the command line.

7 weeks agoStop refreshing the Futatabi channel overlay every frame.
Steinar H. Gunderson [Mon, 17 Feb 2020 22:11:21 +0000 (23:11 +0100)]
Stop refreshing the Futatabi channel overlay every frame.

7 weeks agoEdit is normally to the left of View, so fix Futatabi.
Steinar H. Gunderson [Mon, 17 Feb 2020 21:21:59 +0000 (22:21 +0100)]
Edit is normally to the left of View, so fix Futatabi.

7 weeks agoUnbreak showing the first two channels in the tally JSON.
Steinar H. Gunderson [Mon, 17 Feb 2020 20:26:17 +0000 (21:26 +0100)]
Unbreak showing the first two channels in the tally JSON.

7 weeks agoRevert "Make for faster shutdown of DeckLink cards."
Steinar H. Gunderson [Sun, 31 Mar 2019 12:36:11 +0000 (14:36 +0200)]
Revert "Make for faster shutdown of DeckLink cards."

This breaks turning on HDMI/SDI output mode from the GUI.

This reverts commit be7ba768a138bea4543a712c8261b1bfdc6e1dd0.

7 weeks agoFix an assertion error when FFmpeg inputs were dropping frames.
Steinar H. Gunderson [Mon, 17 Feb 2020 19:00:50 +0000 (20:00 +0100)]
Fix an assertion error when FFmpeg inputs were dropping frames.

7 weeks agoGive the theme access to basic audio information.
Steinar H. Gunderson [Sun, 16 Feb 2020 23:59:14 +0000 (00:59 +0100)]
Give the theme access to basic audio information.

Currently, it can get (not set) number of buses and channel names,
get/set fader volume, and get/set mute. This should already be fairly
useful for most applications.

7 weeks agoMake it possible to siphon out a single MJPEG stream.
Steinar H. Gunderson [Sat, 15 Feb 2020 16:28:17 +0000 (17:28 +0100)]
Make it possible to siphon out a single MJPEG stream.

The URL for this is /feeds/N.mp4 (although the .mp4 suffix will be ignored
in practice), where N is the card index (starting from zero). You are allowed to
use a feed that is not part of the “regular” multicam MJPEG input.

This can be used for remote debugging, recording of a given card with wget,
streaming a specific card as an aux, and probably over things.

7 weeks agoFix compilation in debug mode.
Steinar H. Gunderson [Sat, 15 Feb 2020 14:21:01 +0000 (15:21 +0100)]
Fix compilation in debug mode.

8 weeks agoMake the MJPEG card-to-stream mapping invisible to outside callers.
Steinar H. Gunderson [Wed, 12 Feb 2020 23:39:52 +0000 (00:39 +0100)]
Make the MJPEG card-to-stream mapping invisible to outside callers.

As an important side effect, this allows should_encode_mjpeg_for_card()
to contain more complex policy in the future.

8 weeks agoSplit out some work from the MJPEG encoder constructor.
Steinar H. Gunderson [Wed, 12 Feb 2020 23:32:13 +0000 (00:32 +0100)]
Split out some work from the MJPEG encoder constructor.

8 weeks agoFix a comment typo.
Steinar H. Gunderson [Wed, 12 Feb 2020 21:41:08 +0000 (22:41 +0100)]
Fix a comment typo.

8 weeks agoMake it possible for auto white balance to be controlled by another input.
Steinar H. Gunderson [Wed, 12 Feb 2020 16:59:12 +0000 (17:59 +0100)]
Make it possible for auto white balance to be controlled by another input.

This is useful if you want to run white balance on something that could
e.g. have an overlay.

8 weeks agoFix invalid white balance from nonconnected FFmpeg inputs.
Steinar H. Gunderson [Wed, 12 Feb 2020 16:57:49 +0000 (17:57 +0100)]
Fix invalid white balance from nonconnected FFmpeg inputs.

8 weeks agoFix auto-WB of certain kinds of input.
Steinar H. Gunderson [Wed, 12 Feb 2020 16:54:57 +0000 (17:54 +0100)]
Fix auto-WB of certain kinds of input.

8 weeks agoMake Futatabi fades apply white balance.
Steinar H. Gunderson [Tue, 11 Feb 2020 21:42:53 +0000 (22:42 +0100)]
Make Futatabi fades apply white balance.

When there are two different video streams involved, they will often
have different white points, so we can't just echo the Exif data back;
we need to apply it when converting, and then get back a result in
standard sRGB. It's not entirely correct since we still run with
crushed whites/black, but it's good enough.

This completes Nageru/Futatabi white balance round trip support.

8 weeks agoMake Futatabi copy Exif data for interpolated frames.
Steinar H. Gunderson [Tue, 11 Feb 2020 17:15:24 +0000 (18:15 +0100)]
Make Futatabi copy Exif data for interpolated frames.

This means that interpolated frames also get the right white balance,
so now only faded frames get none.

8 weeks agoHeed the Exif white point when playing back (MJPEG) video.
Steinar H. Gunderson [Mon, 10 Feb 2020 23:18:38 +0000 (00:18 +0100)]
Heed the Exif white point when playing back (MJPEG) video.

8 weeks agoIn the MJPEG export, include white balance information.
Steinar H. Gunderson [Mon, 10 Feb 2020 17:52:49 +0000 (18:52 +0100)]
In the MJPEG export, include white balance information.

We do this by converting it to an x-y white point and storing it in Exif,
which is the closest thing I could find to a standard in this space.

2 months agoChange to using RGBTriplet for white balance.
Steinar H. Gunderson [Sun, 9 Feb 2020 22:48:57 +0000 (23:48 +0100)]
Change to using RGBTriplet for white balance.

2 months agoVarious fixes for non-VA-API MJPEG encoding.
Steinar H. Gunderson [Sun, 9 Feb 2020 18:10:31 +0000 (19:10 +0100)]
Various fixes for non-VA-API MJPEG encoding.

2 months agoSupport auto white balance (ie., not controlled by the theme).
Steinar H. Gunderson [Sun, 9 Feb 2020 13:43:17 +0000 (14:43 +0100)]
Support auto white balance (ie., not controlled by the theme).

This is added as a regular (optional) white balance effect, but it automatically
intercepts set_wb() calls and stores it locally. (You can still set neutral_color
manually, but it's probably sort of pointless.)

This simplifies the themes somewhat and allows in some cases for fewer different
scene instantiations (since image inputs don't get white balance), but more
importantly, it will allow exporting the white balance setting in the MJPEG
export.

2 months agoFactor out find_signal_to_connect().
Steinar H. Gunderson [Sun, 9 Feb 2020 13:41:43 +0000 (14:41 +0100)]
Factor out find_signal_to_connect().

2 months agoNeutral white balance is (1,1,1), not (0.5,0.5,0.5). Probably irrelevant in practice...
Steinar H. Gunderson [Sun, 9 Feb 2020 13:40:38 +0000 (14:40 +0100)]
Neutral white balance is (1,1,1), not (0.5,0.5,0.5). Probably irrelevant in practice currently, though.

4 months agoRelease Nageru and Futatabi 1.9.1. 1.9.1
Steinar H. Gunderson [Sun, 17 Nov 2019 19:08:09 +0000 (20:08 +0100)]
Release Nageru and Futatabi 1.9.1.

5 months agoFix an assertion failure when fading into a zero-length clip.
Steinar H. Gunderson [Wed, 30 Oct 2019 23:26:23 +0000 (00:26 +0100)]
Fix an assertion failure when fading into a zero-length clip.

5 months agoFix an issue where it was not possible to add new infinite clips to a playlist
Steinar H. Gunderson [Wed, 30 Oct 2019 23:14:55 +0000 (00:14 +0100)]
Fix an issue where it was not possible to add new infinite clips to a playlist
that was already playing.

Non-infinite clips were okay all along, but infinite clips would have zero
(well, negative) length.

5 months agoFix the previous fix for the infinite display; it was causing crashes and odd stuff...
Steinar H. Gunderson [Wed, 30 Oct 2019 22:55:17 +0000 (23:55 +0100)]
Fix the previous fix for the infinite display; it was causing crashes and odd stuff in the UI.

5 months agoShow preview display when using cue in or cue out, not just on scrubbing.
Steinar H. Gunderson [Wed, 30 Oct 2019 19:01:46 +0000 (20:01 +0100)]
Show preview display when using cue in or cue out, not just on scrubbing.

5 months agoFix the “time remaining” display when queueing infinite clips.
Steinar H. Gunderson [Wed, 30 Oct 2019 18:54:30 +0000 (19:54 +0100)]
Fix the “time remaining” display when queueing infinite clips.

5 months agoWhen starting a new clip, start at the correct master speed (it was always at 100%).
Steinar H. Gunderson [Wed, 30 Oct 2019 18:46:14 +0000 (19:46 +0100)]
When starting a new clip, start at the correct master speed (it was always at 100%).

5 months agoWhen exporting interpolated files, don't include the subtitles meant for Nageru inter...
Steinar H. Gunderson [Mon, 21 Oct 2019 19:43:07 +0000 (21:43 +0200)]
When exporting interpolated files, don't include the subtitles meant for Nageru internal consumption.

5 months agoFix some jerkiness when playing back with no interpolation.
Steinar H. Gunderson [Mon, 21 Oct 2019 19:32:34 +0000 (21:32 +0200)]
Fix some jerkiness when playing back with no interpolation.

When hitting a frame exactly, we'd choose [pts_of_previous_frame, pts]
as our candidate range, and always pick the lower. This would make us
jerk around a lot, which would be a particular problem with audio.

Fix by taking a two-pronged approach: First, if we hit a frame exactly,
just send [pts,pts]. Second, activate snapping even when interpolation
is off.

We still have a problem when playing back audio in the case of dropped
video frames (we'll output the same audio twice), but better audio
handling is somewhat outside the scope of this commit.

5 months agoAdd a missing dependency on -pthread.
Steinar H. Gunderson [Fri, 18 Oct 2019 20:52:16 +0000 (22:52 +0200)]
Add a missing dependency on -pthread.

Patch by Morten Linderud.

8 months agoAdd a mailmap file to change my personal email address in old commits.
Steinar H. Gunderson [Sun, 11 Aug 2019 08:47:42 +0000 (10:47 +0200)]
Add a mailmap file to change my personal email address in old commits.

sgunderson@bigfoot.com has been de facto dead for a year or two,
and is now definitely dead.

8 months agoFix the wording of a warning.
Steinar H. Gunderson [Wed, 31 Jul 2019 17:44:53 +0000 (19:44 +0200)]
Fix the wording of a warning.

8 months agoSupport disabling optional effects if a given other effect is _enabled_.
Steinar H. Gunderson [Sun, 28 Jul 2019 20:06:24 +0000 (22:06 +0200)]
Support disabling optional effects if a given other effect is _enabled_.

There are some restrictions (see the comments), but this is generally
useful if two effects are mutually exclusive, e.g., an overlay that can
be at one of many different points in the chain.

8 months agoMake it possible for the theme to override the status line.
Steinar H. Gunderson [Wed, 24 Jul 2019 13:06:29 +0000 (15:06 +0200)]
Make it possible for the theme to override the status line.

This is done by declaring a function format_status_line, which receives
the text that would normally be there (disk space left), as well as the
length of the current recording file in seconds. It can then return
whatever it would like.

My own code, but inspired by a C++ patch by Alex Thomazo in the Breizhcamp
repository (which did it by hardcoding a different status line in C++).

8 months agoRelease Nageru and Futatabi 1.9.0. 1.9.0
Steinar H. Gunderson [Sat, 20 Jul 2019 14:57:39 +0000 (16:57 +0200)]
Release Nageru and Futatabi 1.9.0.

8 months agoFix a typo in NEWS.
Steinar H. Gunderson [Sat, 20 Jul 2019 09:05:35 +0000 (11:05 +0200)]
Fix a typo in NEWS.

8 months agoMake it possible to call set_channel_name() for live and preview.
Steinar H. Gunderson [Fri, 19 Jul 2019 15:34:48 +0000 (17:34 +0200)]
Make it possible to call set_channel_name() for live and preview.

The use case for this is if you want to copy the channel name to
preview or similar. Does not affect the legacy channel_name()
callback (it is still guaranteed never to get 0 or 1).

Probably doesn't affect the analyzer; I haven't tested.

8 months agoClean some duplicate code from the default theme.
Steinar H. Gunderson [Fri, 19 Jul 2019 14:56:18 +0000 (16:56 +0200)]
Clean some duplicate code from the default theme.

8 months agoMake it possible to put checkboxes on theme menu entries.
Steinar H. Gunderson [Fri, 19 Jul 2019 11:54:17 +0000 (13:54 +0200)]
Make it possible to put checkboxes on theme menu entries.

8 months agoAdd get_frame_width() and get_frame_height() to the signals given to the theme, which...
Steinar H. Gunderson [Fri, 19 Jul 2019 11:24:03 +0000 (13:24 +0200)]
Add get_frame_width() and get_frame_height() to the signals given to the theme, which is usually what the user wants.

8 months agoFix a Lua crash on exit.
Steinar H. Gunderson [Fri, 19 Jul 2019 10:39:48 +0000 (12:39 +0200)]
Fix a Lua crash on exit.

8 months agoDeal better with the user forgetting to set width/height on effects that require...
Steinar H. Gunderson [Wed, 17 Jul 2019 13:46:40 +0000 (15:46 +0200)]
Deal better with the user forgetting to set width/height on effects that require them.

8 months agoFix an issue where we would show no signal even when there was a signal. Patch by...
Steinar H. Gunderson [Tue, 16 Jul 2019 11:40:02 +0000 (13:40 +0200)]
Fix an issue where we would show no signal even when there was a signal. Patch by Martin Sandsmark.

9 months agoRemove some leftover debugging code.
Steinar H. Gunderson [Tue, 25 Jun 2019 18:03:19 +0000 (20:03 +0200)]
Remove some leftover debugging code.

9 months agoAdd disable_if_always_disabled() to Block objects.
Steinar H. Gunderson [Sat, 22 Jun 2019 13:16:14 +0000 (15:16 +0200)]
Add disable_if_always_disabled() to Block objects.

This allows the theme to specify that a given effect only makes sense
if another effect is enabled; e.g. a crop that only makes sense if
immediately followed by a resize. This can cut down the number of
instantiations in some cases.

Also change so that 0 is no longer always the canonical choice;
if disabling a block is a possibility, that is. In situations with
things disabling each other transitively, this could reduce the
number of instantiations further.

9 months agoMore theme cleaning.
Steinar H. Gunderson [Fri, 21 Jun 2019 21:31:40 +0000 (23:31 +0200)]
More theme cleaning.

9 months agoFix cross-compilation.
Steinar H. Gunderson [Fri, 21 Jun 2019 20:11:39 +0000 (22:11 +0200)]
Fix cross-compilation.

Patch from Helmut Grohne.

9 months agoMove is_plain_signal(), which was now placed a bit confusingly.
Steinar H. Gunderson [Fri, 21 Jun 2019 18:16:57 +0000 (20:16 +0200)]
Move is_plain_signal(), which was now placed a bit confusingly.

9 months agoConvert channel_signal() and supports_set_wb() to imperative versions.
Steinar H. Gunderson [Fri, 21 Jun 2019 18:12:39 +0000 (20:12 +0200)]
Convert channel_signal() and supports_set_wb() to imperative versions.

This completes the theme conversion for all called-only-once functions.
As before, the old versions are supported for pre-1.9.0 compatibility.

9 months agoCorrect a comment.
Steinar H. Gunderson [Fri, 21 Jun 2019 18:05:55 +0000 (20:05 +0200)]
Correct a comment.

9 months agoAdd a missing hint.
Steinar H. Gunderson [Fri, 21 Jun 2019 18:04:22 +0000 (20:04 +0200)]
Add a missing hint.

9 months agoMake it possible to set number of channels imperatively instead of using a callback.
Steinar H. Gunderson [Fri, 21 Jun 2019 17:43:29 +0000 (19:43 +0200)]
Make it possible to set number of channels imperatively instead of using a callback.

num_channels() will still be used if it exists, for compatibility with older
themes.

9 months agoMake it possible to set channel names imperatively instead of using a callback.
Steinar H. Gunderson [Fri, 21 Jun 2019 17:31:28 +0000 (19:31 +0200)]
Make it possible to set channel names imperatively instead of using a callback.

channel_name() will still be used if it exists, for compatibility with older
themes.

9 months agoMove the handling of human-readable input resolution printing into C++; every theme...
Steinar H. Gunderson [Fri, 21 Jun 2019 16:22:28 +0000 (18:22 +0200)]
Move the handling of human-readable input resolution printing into C++; every theme should not need to care about this.

9 months agoSupport submenus within theme menus.
Steinar H. Gunderson [Fri, 21 Jun 2019 15:45:54 +0000 (17:45 +0200)]
Support submenus within theme menus.

9 months agoFix a possible deadlock in CEF.
Steinar H. Gunderson [Tue, 18 Jun 2019 20:47:08 +0000 (22:47 +0200)]
Fix a possible deadlock in CEF.

9 months agoSupport optional effects with multiple inputs.
Steinar H. Gunderson [Sun, 16 Jun 2019 17:14:24 +0000 (19:14 +0200)]
Support optional effects with multiple inputs.

This allows you to prune away entire sections of the chain; the typical
case is if you have an OverlayEffect(a, b) and want to disable that.
In the disabled versions of the chain, the OverlayEffect will be replaced
with an IdentityEffect that passes through a only and leaves the entire
subgraph under b noninstantiated.

9 months agoRefactor out find_inputs_for_block().
Steinar H. Gunderson [Sun, 16 Jun 2019 17:12:11 +0000 (19:12 +0200)]
Refactor out find_inputs_for_block().

9 months agoAdd an enable_if() to Block, for convenience.
Steinar H. Gunderson [Sun, 16 Jun 2019 09:02:11 +0000 (11:02 +0200)]
Add an enable_if() to Block, for convenience.

9 months agoSmall refactoring in Block.
Steinar H. Gunderson [Sun, 16 Jun 2019 08:38:03 +0000 (10:38 +0200)]
Small refactoring in Block.

9 months agoRename chain -> scene as appropriate.
Steinar H. Gunderson [Sun, 16 Jun 2019 08:30:38 +0000 (10:30 +0200)]
Rename chain -> scene as appropriate.

9 months agoMake Block.choose() return the effect that was chosen.
Steinar H. Gunderson [Sat, 15 Jun 2019 23:14:55 +0000 (01:14 +0200)]
Make Block.choose() return the effect that was chosen.

9 months agoFix so that parameters directly on effects actually override the ones on the block...
Steinar H. Gunderson [Sat, 15 Jun 2019 23:14:40 +0000 (01:14 +0200)]
Fix so that parameters directly on effects actually override the ones on the block, as was intended.