]> git.sesse.net Git - pkanalytics/log
pkanalytics
8 months agoSupport filtering passes by thrower and receiver. master
Steinar H. Gunderson [Sun, 6 Aug 2023 15:31:27 +0000 (17:31 +0200)]
Support filtering passes by thrower and receiver.

8 months agoFor the short ID of player lists, allow using the gender as group identifier.
Steinar H. Gunderson [Sun, 6 Aug 2023 15:31:14 +0000 (17:31 +0200)]
For the short ID of player lists, allow using the gender as group identifier.

8 months agoGoals were double-counted as touches.
Steinar H. Gunderson [Sun, 6 Aug 2023 12:06:25 +0000 (14:06 +0200)]
Goals were double-counted as touches.

8 months agoMake it possible to edit players from the UI.
Steinar H. Gunderson [Thu, 3 Aug 2023 21:21:22 +0000 (23:21 +0200)]
Make it possible to edit players from the UI.

Adding will happen in a future step. Deleting, even further out.

8 months agoMake the throwaway behavior more sane.
Steinar H. Gunderson [Tue, 1 Aug 2023 22:11:33 +0000 (00:11 +0200)]
Make the throwaway behavior more sane.

This finally allows you to just press “t” for a throwaway,
and whoever holds the disc will be taken to have thrown it away.
The old behavior (re-add the same player, press t) is still allowed,
and detected heuristically.

8 months agoAdd a Win32 build.
Steinar H. Gunderson [Mon, 31 Jul 2023 22:26:47 +0000 (00:26 +0200)]
Add a Win32 build.

This is in the form of some documentation and a Meson cross file.
I don't actually know if the video works, since I don't have working
good-enough OpenGL on my Windows VM and it doesn't work properly
in WINE.

8 months agoRename the executable (it's about time)
Steinar H. Gunderson [Mon, 31 Jul 2023 22:25:27 +0000 (00:25 +0200)]
Rename the executable (it's about time)

8 months agoDo everything through QOpenGLFunctions, in case it loads a weird library.
Steinar H. Gunderson [Mon, 31 Jul 2023 19:36:16 +0000 (21:36 +0200)]
Do everything through QOpenGLFunctions, in case it loads a weird library.

8 months agoIN and OUT may be reserved words.
Steinar H. Gunderson [Sun, 30 Jul 2023 21:57:08 +0000 (23:57 +0200)]
IN and OUT may be reserved words.

8 months agoBuild without QtMultimedia.
Steinar H. Gunderson [Sun, 30 Jul 2023 21:56:10 +0000 (23:56 +0200)]
Build without QtMultimedia.

8 months agoMove to using Qt's OpenGL function pointers.
Steinar H. Gunderson [Sun, 30 Jul 2023 21:53:02 +0000 (23:53 +0200)]
Move to using Qt's OpenGL function pointers.

This is so much less ergonomic, but frees us from using libepoxy
on other platforms. Also drop down to OpenGL 4.5, as we don't need
any of the 4.6 stuff and Qt doesn't support it (!).

8 months agoHack around the fact that pulls were not counted as part of D-line.
Steinar H. Gunderson [Sun, 30 Jul 2023 12:42:08 +0000 (14:42 +0200)]
Hack around the fact that pulls were not counted as part of D-line.

8 months agoSupport splitting filters, instead of creating all of them manually.
Steinar H. Gunderson [Sun, 30 Jul 2023 11:54:37 +0000 (13:54 +0200)]
Support splitting filters, instead of creating all of them manually.

8 months agoTwo decimals is a bit too hardcore for possession times.
Steinar H. Gunderson [Thu, 27 Jul 2023 14:30:35 +0000 (16:30 +0200)]
Two decimals is a bit too hardcore for possession times.

8 months agoCalculate time used for each possession.
Steinar H. Gunderson [Thu, 27 Jul 2023 14:28:08 +0000 (16:28 +0200)]
Calculate time used for each possession.

Note that this counts from the pull or turnover, not from the first catch/take
(since we don't have that information for the opposing team, and we would
like it to stay consistent between teams).

8 months agoRemove a de-facto unused parameter from make_poisson_ci_large().
Steinar H. Gunderson [Thu, 27 Jul 2023 14:27:42 +0000 (16:27 +0200)]
Remove a de-facto unused parameter from make_poisson_ci_large().

8 months agoFix so that timeouts/stoppages between points do not make the between_points status...
Steinar H. Gunderson [Thu, 27 Jul 2023 12:08:48 +0000 (14:08 +0200)]
Fix so that timeouts/stoppages between points do not make the between_points status reset.

8 months agoAdd some team-wide touches stats.
Steinar H. Gunderson [Thu, 27 Jul 2023 11:13:13 +0000 (13:13 +0200)]
Add some team-wide touches stats.

8 months agoMove the turnover numbers around a bit; still looks odd, but perhaps less so.
Steinar H. Gunderson [Thu, 27 Jul 2023 11:03:02 +0000 (13:03 +0200)]
Move the turnover numbers around a bit; still looks odd, but perhaps less so.

8 months agoGoal counts as a touch.
Steinar H. Gunderson [Thu, 27 Jul 2023 10:59:34 +0000 (12:59 +0200)]
Goal counts as a touch.

9 months agoRename “their team”.
Steinar H. Gunderson [Thu, 27 Jul 2023 10:24:34 +0000 (12:24 +0200)]
Rename “their team”.

9 months agoSomewhat nicer formatting for team-wide stats.
Steinar H. Gunderson [Thu, 27 Jul 2023 10:24:11 +0000 (12:24 +0200)]
Somewhat nicer formatting for team-wide stats.

9 months agoCount selected number of subs in the UI.
Steinar H. Gunderson [Thu, 27 Jul 2023 10:03:17 +0000 (12:03 +0200)]
Count selected number of subs in the UI.

Includes support for gender counting. This was a long time coming,
and saves a fair amount of pain for the operator, at the cost of some
precious screen estate.

9 months agoStart working on some team-wide stats.
Steinar H. Gunderson [Thu, 27 Jul 2023 08:21:07 +0000 (10:21 +0200)]
Start working on some team-wide stats.

9 months agoSimplify lambda syntax.
Steinar H. Gunderson [Thu, 27 Jul 2023 07:58:47 +0000 (09:58 +0200)]
Simplify lambda syntax.

9 months agoRemove an obsolete TODO.
Steinar H. Gunderson [Thu, 27 Jul 2023 07:57:07 +0000 (09:57 +0200)]
Remove an obsolete TODO.

9 months agoRemove some repetition.
Steinar H. Gunderson [Wed, 26 Jul 2023 22:23:29 +0000 (00:23 +0200)]
Remove some repetition.

9 months agoFix crash if there are no matches (database is empty).
Steinar H. Gunderson [Wed, 26 Jul 2023 22:17:38 +0000 (00:17 +0200)]
Fix crash if there are no matches (database is empty).

9 months agoFix a warning in debug mode.
Steinar H. Gunderson [Wed, 26 Jul 2023 22:16:05 +0000 (00:16 +0200)]
Fix a warning in debug mode.

9 months agoImplement optional gender rule A and pull rules.
Steinar H. Gunderson [Wed, 26 Jul 2023 15:34:43 +0000 (17:34 +0200)]
Implement optional gender rule A and pull rules.

Only used for warnings in the viewer's console for now, but may be
used for sanity checking when subbing in the future.

9 months agoAdd a menu.
Steinar H. Gunderson [Wed, 26 Jul 2023 13:54:17 +0000 (15:54 +0200)]
Add a menu.

9 months agoCallahans were not properly filtered; fix.
Steinar H. Gunderson [Wed, 26 Jul 2023 12:01:47 +0000 (14:01 +0200)]
Callahans were not properly filtered; fix.

9 months agoMake the table header sticky on scroll.
Steinar H. Gunderson [Wed, 26 Jul 2023 12:00:31 +0000 (14:00 +0200)]
Make the table header sticky on scroll.

9 months agoMake it possible to run multiple filters at the same time.
Steinar H. Gunderson [Tue, 25 Jul 2023 09:51:48 +0000 (11:51 +0200)]
Make it possible to run multiple filters at the same time.

This was a huge slog, but it makes for really nice results.

9 months agoAdjust the Poisson CI range, since we were frequently getting out of 0.25.
Steinar H. Gunderson [Mon, 24 Jul 2023 21:32:04 +0000 (23:32 +0200)]
Adjust the Poisson CI range, since we were frequently getting out of 0.25.

9 months agoMake more CIs for globals.
Steinar H. Gunderson [Mon, 24 Jul 2023 21:28:55 +0000 (23:28 +0200)]
Make more CIs for globals.

9 months agoReduce reliance on global_filters, to prepare for multiple filtersets.
Steinar H. Gunderson [Mon, 24 Jul 2023 18:26:52 +0000 (20:26 +0200)]
Reduce reliance on global_filters, to prepare for multiple filtersets.

9 months agoMake it possible to filter by gender ratio.
Steinar H. Gunderson [Mon, 24 Jul 2023 11:01:54 +0000 (13:01 +0200)]
Make it possible to filter by gender ratio.

9 months agoAdd filters on O-line/D-line.
Steinar H. Gunderson [Sun, 23 Jul 2023 20:14:23 +0000 (22:14 +0200)]
Add filters on O-line/D-line.

9 months agoCount callahans in the viewer.
Steinar H. Gunderson [Sun, 23 Jul 2023 18:12:50 +0000 (20:12 +0200)]
Count callahans in the viewer.

9 months agoDo not output a warning for disc transfer during subs; it is not an error.
Steinar H. Gunderson [Sun, 23 Jul 2023 18:06:14 +0000 (20:06 +0200)]
Do not output a warning for disc transfer during subs; it is not an error.

9 months agoStore event types internally as an enum.
Steinar H. Gunderson [Sun, 23 Jul 2023 17:54:36 +0000 (19:54 +0200)]
Store event types internally as an enum.

We were using ~15% of our CPU time comparing strings now, which was
a bit too much.

9 months agoRemove checks for the “reset” type.
Steinar H. Gunderson [Sun, 23 Jul 2023 17:46:12 +0000 (19:46 +0200)]
Remove checks for the “reset” type.

The event is called restart, but it's nicer to backdate to the stoppage anyway.

9 months agoMake the video actually fit its intended size.
Steinar H. Gunderson [Sun, 23 Jul 2023 16:48:23 +0000 (18:48 +0200)]
Make the video actually fit its intended size.

9 months agoBetter JS logging of warnings.
Steinar H. Gunderson [Sun, 23 Jul 2023 12:58:44 +0000 (14:58 +0200)]
Better JS logging of warnings.

9 months agoWrite .json on quit, not start.
Steinar H. Gunderson [Sun, 23 Jul 2023 12:58:33 +0000 (14:58 +0200)]
Write .json on quit, not start.

9 months agoFix so that we can change existing events to pulls.
Steinar H. Gunderson [Sun, 23 Jul 2023 12:38:37 +0000 (14:38 +0200)]
Fix so that we can change existing events to pulls.

9 months agoLog some warnings about subbed-out players.
Steinar H. Gunderson [Sun, 23 Jul 2023 12:22:03 +0000 (14:22 +0200)]
Log some warnings about subbed-out players.

9 months agoFix a crash on exit.
Steinar H. Gunderson [Sun, 23 Jul 2023 09:06:56 +0000 (11:06 +0200)]
Fix a crash on exit.

9 months agoCount interceptions towards (successful) catches.
Steinar H. Gunderson [Sat, 22 Jul 2023 19:18:03 +0000 (21:18 +0200)]
Count interceptions towards (successful) catches.

9 months agoAdd support for stallouts.
Steinar H. Gunderson [Sat, 22 Jul 2023 19:15:43 +0000 (21:15 +0200)]
Add support for stallouts.

9 months agoWe only need one set of soft plus/minus buttons.
Steinar H. Gunderson [Sat, 22 Jul 2023 18:38:07 +0000 (20:38 +0200)]
We only need one set of soft plus/minus buttons.

9 months agoMove to a native OpenGL window.
Steinar H. Gunderson [Sat, 22 Jul 2023 18:02:15 +0000 (20:02 +0200)]
Move to a native OpenGL window.

Seemingly the compositing is really expensive in Qt; supposedly
this has issues on macOS, but that's life.

9 months agoMinor comment tweak.
Steinar H. Gunderson [Sat, 22 Jul 2023 18:02:08 +0000 (20:02 +0200)]
Minor comment tweak.

9 months agoMake persistent PBOs for faster texture upload.
Steinar H. Gunderson [Sat, 22 Jul 2023 17:48:32 +0000 (19:48 +0200)]
Make persistent PBOs for faster texture upload.

9 months agoMake Frame allocated on a freelist, in preparation for PBOs.
Steinar H. Gunderson [Sat, 22 Jul 2023 10:35:27 +0000 (12:35 +0200)]
Make Frame allocated on a freelist, in preparation for PBOs.

9 months agoMake it possible to have separate videos per match, instead of hardcoding one specifi...
Steinar H. Gunderson [Fri, 21 Jul 2023 21:00:33 +0000 (23:00 +0200)]
Make it possible to have separate videos per match, instead of hardcoding one specific name.

9 months agoPropagate errors on video opening back to the UI.
Steinar H. Gunderson [Fri, 21 Jul 2023 20:39:02 +0000 (22:39 +0200)]
Propagate errors on video opening back to the UI.

This is kludgy, but it will work for now.

9 months agoMove MainWindow into its own class.
Steinar H. Gunderson [Fri, 21 Jul 2023 20:22:46 +0000 (22:22 +0200)]
Move MainWindow into its own class.

9 months agoMake columns sortable (no reverse sort).
Steinar H. Gunderson [Thu, 20 Jul 2023 15:34:21 +0000 (17:34 +0200)]
Make columns sortable (no reverse sort).

9 months agoFix a contention issue.
Steinar H. Gunderson [Thu, 20 Jul 2023 13:52:33 +0000 (15:52 +0200)]
Fix a contention issue.

9 months agostd::shared_ptr is surprisingly not thread-safe, so we need a mutex.
Steinar H. Gunderson [Thu, 20 Jul 2023 13:44:51 +0000 (15:44 +0200)]
std::shared_ptr is surprisingly not thread-safe, so we need a mutex.

9 months agoFix a threading issue, where we would call into the Qt thread from the video thread.
Steinar H. Gunderson [Thu, 20 Jul 2023 13:42:40 +0000 (15:42 +0200)]
Fix a threading issue, where we would call into the Qt thread from the video thread.

9 months agoplaying is used from multiple threads, so it must be atomic.
Steinar H. Gunderson [Thu, 20 Jul 2023 13:37:10 +0000 (15:37 +0200)]
playing is used from multiple threads, so it must be atomic.

9 months agoInclude was d-ed in a common per-point receiver error stat.
Steinar H. Gunderson [Thu, 20 Jul 2023 12:29:26 +0000 (14:29 +0200)]
Include was d-ed in a common per-point receiver error stat.

9 months agoMake it possible to seek using the 4th and 5th mouse buttons.
Steinar H. Gunderson [Thu, 20 Jul 2023 12:28:47 +0000 (14:28 +0200)]
Make it possible to seek using the 4th and 5th mouse buttons.

This makes it a bit more comfortable to seek around when using a mouse,
without having to move the left hand over to the right side of the
keyboard.

9 months agoUpdate player buttons immediately when making a substitution.
Steinar H. Gunderson [Thu, 20 Jul 2023 10:54:10 +0000 (12:54 +0200)]
Update player buttons immediately when making a substitution.

9 months agoSplit away getting d-ed from drops.
Steinar H. Gunderson [Thu, 20 Jul 2023 10:19:00 +0000 (12:19 +0200)]
Split away getting d-ed from drops.

9 months agoFix absolute seeking when the base rate is not 1/1000.
Steinar H. Gunderson [Mon, 17 Jul 2023 16:27:40 +0000 (18:27 +0200)]
Fix absolute seeking when the base rate is not 1/1000.

9 months agoFix that hang time includes OOB pulls.
Steinar H. Gunderson [Mon, 17 Jul 2023 16:27:23 +0000 (18:27 +0200)]
Fix that hang time includes OOB pulls.

9 months agoForce the timecode display to be in a font that does not change width based on contents.
Steinar H. Gunderson [Thu, 13 Jul 2023 18:05:37 +0000 (20:05 +0200)]
Force the timecode display to be in a font that does not change width based on contents.

9 months agoFix a deprecation warning, at the cost of more allocations.
Steinar H. Gunderson [Thu, 13 Jul 2023 18:02:07 +0000 (20:02 +0200)]
Fix a deprecation warning, at the cost of more allocations.

9 months agoMake for smoother zooming/dragging, especially dragging.
Steinar H. Gunderson [Thu, 13 Jul 2023 17:35:48 +0000 (19:35 +0200)]
Make for smoother zooming/dragging, especially dragging.

9 months agoSupport dragging the picture around when we are zoomed.
Steinar H. Gunderson [Thu, 13 Jul 2023 15:16:20 +0000 (17:16 +0200)]
Support dragging the picture around when we are zoomed.

9 months agoMake zooming a bit less sensitive.
Steinar H. Gunderson [Thu, 13 Jul 2023 15:16:04 +0000 (17:16 +0200)]
Make zooming a bit less sensitive.

9 months agoMake it possible to zoom the VideoWidget.
Steinar H. Gunderson [Thu, 13 Jul 2023 15:00:38 +0000 (17:00 +0200)]
Make it possible to zoom the VideoWidget.

9 months agoDrop QVideoWidget.
Steinar H. Gunderson [Thu, 13 Jul 2023 09:12:04 +0000 (11:12 +0200)]
Drop QVideoWidget.

QVideoWidget is based on GStreamer and horribly buggy, so replace it with
our own homegrown code. This reuses and adapts a lot of code from Nageru
and Movit, but especially the seek code is pretty much written from scratch.

The biggest advantage is that we no longer get random hangs all the time
(which the F5 key would attempt to work around, by restarting the player).
The disadvantages are that we take on a bunch of new code, a direct dependency
on FFmpeg and OpenGL (4.6 for the time being, but can probably be reduced
to much lower if we want to target macOS), and lose sound support.
We get VA-API/VDPAU acceleration, although I'm not sure if the old code
did that for us or not.

The other motivating change is that this will allow us to implement zoom
more easily down the road.

The frame-based seeking is now actually frame-based, instead of trying to
emulate it by going +/- 20 ms.

9 months agoFix some -Wsign-compare warnings.
Steinar H. Gunderson [Mon, 10 Jul 2023 16:45:56 +0000 (18:45 +0200)]
Fix some -Wsign-compare warnings.

9 months agoFix a warning.
Steinar H. Gunderson [Mon, 10 Jul 2023 16:43:33 +0000 (18:43 +0200)]
Fix a warning.

10 months agoMake the formation buttons actually do something.
Steinar H. Gunderson [Tue, 30 May 2023 21:10:06 +0000 (23:10 +0200)]
Make the formation buttons actually do something.

10 months agoTweak formation backdating.
Steinar H. Gunderson [Mon, 29 May 2023 22:24:32 +0000 (00:24 +0200)]
Tweak formation backdating.

10 months agoSupport filtering on formation.
Steinar H. Gunderson [Mon, 29 May 2023 22:20:48 +0000 (00:20 +0200)]
Support filtering on formation.

10 months agoFix formation JSON export.
Steinar H. Gunderson [Mon, 29 May 2023 17:08:56 +0000 (19:08 +0200)]
Fix formation JSON export.

10 months agoFix handling of multiple filters.
Steinar H. Gunderson [Mon, 29 May 2023 16:47:00 +0000 (18:47 +0200)]
Fix handling of multiple filters.

10 months agoExport formations to the JSON.
Steinar H. Gunderson [Mon, 29 May 2023 15:22:30 +0000 (17:22 +0200)]
Export formations to the JSON.

10 months agoShow formation name in the status bar.
Steinar H. Gunderson [Mon, 29 May 2023 13:38:53 +0000 (15:38 +0200)]
Show formation name in the status bar.

10 months agoFix sorting after inserting a new formation.
Steinar H. Gunderson [Mon, 29 May 2023 13:32:01 +0000 (15:32 +0200)]
Fix sorting after inserting a new formation.

10 months agoFormat events slightly more nicely.
Steinar H. Gunderson [Mon, 29 May 2023 13:20:55 +0000 (15:20 +0200)]
Format events slightly more nicely.

10 months agoFix various issues with setting the special “none/unknown” formation.
Steinar H. Gunderson [Mon, 29 May 2023 13:13:43 +0000 (15:13 +0200)]
Fix various issues with setting the special “none/unknown” formation.

10 months agoBetter backdating of formations.
Steinar H. Gunderson [Mon, 29 May 2023 13:03:36 +0000 (15:03 +0200)]
Better backdating of formations.

10 months agoSmall typo.
Steinar H. Gunderson [Mon, 29 May 2023 13:03:30 +0000 (15:03 +0200)]
Small typo.

10 months agoMake it possible to insert new formations from the UI.
Steinar H. Gunderson [Mon, 29 May 2023 12:58:34 +0000 (14:58 +0200)]
Make it possible to insert new formations from the UI.

10 months agoAdd the beginnings of formation support.
Steinar H. Gunderson [Mon, 29 May 2023 12:44:12 +0000 (14:44 +0200)]
Add the beginnings of formation support.

10 months agoImplement filter-by-player-on-field.
Steinar H. Gunderson [Sun, 28 May 2023 20:53:22 +0000 (22:53 +0200)]
Implement filter-by-player-on-field.

10 months agoBegin supporting filters.
Steinar H. Gunderson [Sat, 27 May 2023 22:43:09 +0000 (00:43 +0200)]
Begin supporting filters.

This took forever, but now you can at least filter on matches.
There's also UI to filter on people on the field, but it's not
hooked up to anything yet.

11 months agoCount time on offense and on defense.
Steinar H. Gunderson [Sun, 21 May 2023 21:17:34 +0000 (23:17 +0200)]
Count time on offense and on defense.

11 months agoAdd a CI for OOB pulls.
Steinar H. Gunderson [Sun, 21 May 2023 08:46:06 +0000 (10:46 +0200)]
Add a CI for OOB pulls.

11 months agoMake soft +/- span both columns.
Steinar H. Gunderson [Sun, 21 May 2023 08:43:28 +0000 (10:43 +0200)]
Make soft +/- span both columns.

11 months agoAdd a filler SVG to make things line up.
Steinar H. Gunderson [Sun, 21 May 2023 08:18:27 +0000 (10:18 +0200)]
Add a filler SVG to make things line up.

11 months agoAdd per-point CIs.
Steinar H. Gunderson [Sat, 20 May 2023 21:10:34 +0000 (23:10 +0200)]
Add per-point CIs.