summaryrefslogtreecommitdiff
path: root/src/lib/j2k_encoder.cc
AgeCommit message (Collapse)Author
2022-08-04wip: got stuck... because PlayerVideo is related to the render sizeadjust-sizingCarl Hetherington
because its subtitles are prepared for the _video_container_size that the Player knows about. I think the only way around this would be to store the subs in PlayerVideo in some independent way and to scale/convert to bitmap later.
2022-07-15Fix failure to destroy the J2KEncoder when an encode fails/is cancelled.Carl Hetherington
2022-05-02It doesn't seem necessary to use shared_ptr for the DCPVideo queue in ↵v2.16.x-oldCarl Hetherington
J2KEncoder.
2022-04-03C++11 and whitespace cleanups.Carl Hetherington
2021-04-21Add some possibly-useful markers for debugging threads from coredumps.Carl Hetherington
2021-04-08Assorted C++11/formatting cleanups.Carl Hetherington
2021-01-31More enum class additions.Carl Hetherington
2021-01-11More c++ tidying.Carl Hetherington
2021-01-07BOOST_FOREACH.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2020-12-05Fix transcode finish time estimations when re-encoding a DCP (#1863).Carl Hetherington
2020-11-26It feels unsafe not to lock _threads_mutex between terminate_threads()Carl Hetherington
and _threads.reset(); move the lock.
2020-11-04Re-add mutex that was taken away inCarl Hetherington
73ebb92e9df01ba7afb97121b6e2cef6ca13a18e I'm not sure why it was removed, and it seems necessary; servers_list_changed() can be called from a variety of different places (the constructor and two different EncodeServerFinder threads). May help with #1854.
2020-11-02Pass around JPEG2000 data as a shared_ptr and hence avoid a copyCarl Hetherington
of 4MB of data for every JPEG2000 frame we decode.
2020-09-12Remove support for Windows XP.Carl Hetherington
2020-07-29Fix bugs in thread termination causing occasional pthreadCarl Hetherington
assertion failures. Before this, it was possible for J2KEncoder::terminate_threads() to finish without terminating all threads if the thread _running_ terminate_threads() was itself interrupt()ed. This is because the thread_group::join_all() in terminate_threads() is an interruption point, so it was possible it not to complete but instead to throw interrupted_exception. Then the owning J2KEncoder would be torn down but the threads would still be running, causing use-after-frees. This commit adds some boost::this_thread::disable_interruption objects to ensure that the owning thread is not interrupted while it is being destroyed. Also tidy up code that does this stuff, assuming that it's safe to not call thread::joinable but instead do thread.interrupt(); try { thread.join(); } catch (...) {}
2020-07-26Various OSX warnings fixes.Carl Hetherington
2020-07-23Use thread_group for improved exception safety (#1785).Carl Hetherington
2020-04-14Try to give a better error when we fail to start J2K encodingCarl Hetherington
(probably because of a lack of addressable RAM). See #1540.
2020-02-19Can't put boost::thread in a std::list with our macOS compiler.Carl Hetherington
2020-01-30Various thread cleanups.Carl Hetherington
2019-12-11Make terminate_threads() less likely to leave _threads containing invalid ↵Carl Hetherington
pointers. Backported from f0c10e92b849566e458bc323f8783a6fe83e52d2 in master.
2019-11-30Don't say we're encoding at 0fps when we're waiting for the timing history ↵Carl Hetherington
to stablise.
2019-05-10Put Time types in dcpomatic namespace.Carl Hetherington
2018-11-21Tidy and fix logging.Carl Hetherington
2018-11-07Add button to force re-encode of J2K content.Carl Hetherington
2018-04-13Tidy up to use one list of servers.Carl Hetherington
2018-04-13Note and indicate servers with bad link version (#982).Carl Hetherington
2018-02-16Name threads on Linux.Carl Hetherington
2017-05-31Allow repeat-frame to work with 3D.Carl Hetherington
2017-05-10Rename some classes.Carl Hetherington