summaryrefslogtreecommitdiff
path: root/src/wx/film_viewer.cc
AgeCommit message (Collapse)Author
2025-10-10Keep screen awake while playing on Windows (#3095).Carl Hetherington
2025-07-10Remove compose.hpp includes.Carl Hetherington
sed -i "/include.*compose.hpp/d;" src/lib/*.cc src/wx/*.cc src/wx/*.h src/tools/*.cc src/lib/*.h test/*.cc
2025-06-17Pass Ratio around as an object rather than a pointer.Carl Hetherington
2025-05-26Remove functors for choosing pixel format output from make_image().Carl Hetherington
2025-05-11Use case for property checks now that it's possible.Carl Hetherington
This would have prevented the bug fixed in 6bbf7dee.
2025-04-16White space: film_viewer.{cc,h}Carl Hetherington
2025-04-13Don't bind a shared_ptr<PlayerVideo> to ImageChanged (#3013).Carl Hetherington
Otherwise if the GUI is busy when the emissions build up, each one holds a reference to a potentially large image. This caused enormous memory use when playing a DCP and verifying it at the same time.
2025-04-03Fix error when pressing the HTTP server play button twice in a row.Carl Hetherington
2025-03-19Seek the player before creating a new butler.Carl Hetherington
Consider the case where we switch to a different sound card when the player GUI is showing frame 0. At this point, the butler will be full up to some readahead, so the player will also "think" it's at the readahead position. If we create a new butler, the first get of video from the new buffer would previously return a frame from the readahead position (because that's where the player was). Since the new butler would coincide with the audio stream position being 0, the video thread would think it was ahead by the ring buffer readahead and so would sleep for quite a long time. Meanwhile audio arrives and is played, and when the video thread finally wakes it is a long time behind the audio.
2025-01-20Pass tolerant flag into Player.Carl Hetherington
This is needed because the DCPDecoder ends up needing it when it reads reel information from CPLs. Maybe all that stuff should be in our metadata.
2024-08-03Merge remote-tracking branch 'origin/main' into v2.17.xCarl Hetherington
2024-07-27Fix build with RtAudio 6.Carl Hetherington
2024-07-26Merge branch 'main' into v2.17.xCarl Hetherington
2024-07-26Add AudioBackend::start_stream().Carl Hetherington
2024-07-26Add AudioBackend::abort_stream_if_running().Carl Hetherington
2024-07-26Stop instantiating RtAudio all over the placeCarl Hetherington
and instead just have a singleton. On Windows I saw a situation where the first instantiation would use ASIO and the second WASAPI, causing all kinds of confusion.
2024-06-23Move some stuff into FilmViewer::dcp().Carl Hetherington
2024-06-06Support optimised rendering of YUV420P in OpenGL.Carl Hetherington
2023-11-30Support RtAudio >= 6.Carl Hetherington
There's an API break, mostly about removing the use of exceptions.
2023-08-09Extract Film::Property to its own header to (maybe) increase compilation speed.Carl Hetherington
2023-02-21Catch more exceptions from RtAudio (#2453).Carl Hetherington
2022-10-26Fix player being destroyed while the butler is still using it.Carl Hetherington
2022-10-17Remove some more unnecessary use of shared_ptr.Carl Hetherington
2022-09-16Fix black borders around the preview in some cases (#2331).Carl Hetherington
We need to round the container size to the nearest multiple of 2 so that cropping subsampled sources does not leave gaps. As far as I can see: - the direction that you round x in doesn't matter - it's better to round y up (if you calculate the error in the resulting ratio in each case).
2022-05-26Fix race between the Butler thread starting and audio (perhaps) being disabled.Carl Hetherington
This could cause Butler::audio to be called with _audio_channels = 0 and _disable_audio = false, causing an exception in AudioBuffers when remap() tried to make an AudioBuffers object with a channel count of 0.
2022-05-12Fix build on Debian 9.Carl Hetherington
2022-04-30Fix macOS build.Carl Hetherington
2022-04-29Primitive auto-crop (#1477).Carl Hetherington
2022-04-22Use libdcp's warnings.hCarl Hetherington
2022-04-21Disable warnings around all wx includes.Carl Hetherington
2022-04-21Tidying.Carl Hetherington
2022-04-07Cleanup: remove unused parameter to PlayerVideo::force.Carl Hetherington
2021-11-28Catch exceptions from RtAudio::startStream() in all cases.Carl Hetherington
2021-11-20Extract dpi_scale_factor() to a function.Carl Hetherington
2021-11-14Fix the build for older macOS.Carl Hetherington
2021-11-14Account for DPI scale factors when calculating some sizes (#2118).v2.15.173Carl Hetherington
2021-11-11Remove player activity logging. Fixes #2122.Carl Hetherington
If I remember right this was for swaroop and I suspect nobody else is really interested.
2021-10-16Always block waiting for audio when exporting.v2.15.169Carl Hetherington
Otherwise if there is non available we'll insert silence and potentially push the audio out of sync (late). May help with #2098.
2021-09-30Only support GLVideoView when building with wxWidgets >= 3.1.0.Carl Hetherington
2021-09-27Various alignment tidying/fixups.Carl Hetherington
2021-09-27Replace aligned bool with enum Alignment.Carl Hetherington
2021-09-27Various alignment adjustments.Carl Hetherington
2021-09-27Setup Butler::_prepare_only_proxy on construction.Carl Hetherington
2021-09-27When the player is used in OpenGL mode, pass unscaled XYZ data through to ↵Carl Hetherington
the shader and do colourspace conversion there.
2021-09-27Tidy ownership/lifetime of GLVideoView to fix crashes on close.Carl Hetherington
2021-09-27Remove unnecessary _out_size; it looks like we can just use the image size.Carl Hetherington
2021-09-19Remove unused VideoContentProperty::SCALE and listen to CUSTOM_{RATIO,SIZE} ↵Carl Hetherington
instead. ::SCALE was sort-of being used, as it was emitted during examination of video content, but it wasn't being emitted anywhere else (and CUSTOM_{RATIO,SIZE} replace its functionality as far as I can see).
2021-08-17Only warn about lots of frame drops in the player (#2069).Carl Hetherington
2021-04-15Handle errors on startStream more nicely; might help with #1825.Carl Hetherington
2021-04-08Assorted C++11/formatting cleanups.Carl Hetherington