summaryrefslogtreecommitdiff
path: root/src/lib/player.cc
AgeCommit message (Collapse)Author
2022-10-19Change how video timing is done.Carl Hetherington
This commit changes the approach with video timing. Previously, we would (more-or-less) try to use every video frame from the content in the output, hoping that they come at a constant frame rate. This is not always the case, however. Here we preserve the PTS of video frames, and then when one arrives we output whatever DCP video frames we can (at the regular DCP frame rate). Hopefully this will solve a range of sync problems, but it could also introduce new ones.
2022-10-17Make the _film member of Player a weak_ptr.Carl Hetherington
2022-10-14Add some missing change signals in the Player.Carl Hetherington
2022-10-14Cleanup: use ChangeSignaller in player.Carl Hetherington
2022-09-27Use EnumIndexedVector in Player.Carl Hetherington
2022-09-11Fix build on Centos where we don't have the std::atomic_store stuff apparently.v2.16.26Carl Hetherington
2022-09-10Use atomic shared_ptr stuff for _black_frame.Carl Hetherington
2022-09-10Use atomic for _playback_length.Carl Hetherington
2022-09-10It's now safe to get _video_container_size without the lock.Carl Hetherington
2022-09-10Move get_reel_assets() out of Player, as it doesn't need to be there.Carl Hetherington
2022-09-10const correctness.Carl Hetherington
2022-09-10Remove now-unused setup_pieces_unlocked()Carl Hetherington
2022-09-10Use atomic for _dcp_decode_reduction.Carl Hetherington
2022-09-10Use atomic for _video_container_size.Carl Hetherington
2022-09-10Use atomic for _play_referenced.Carl Hetherington
2022-09-10Use atomic for _fast.Carl Hetherington
2022-09-10Use atomic for _always_burn_open_subtitles.Carl Hetherington
2022-09-10Use atomic for _ignore_text.Carl Hetherington
2022-09-10Use atomic for _ignore_audio.Carl Hetherington
2022-09-10Use atomic for _ignore_video.Carl Hetherington
2022-09-10Some improved logging.Carl Hetherington
2022-06-12Believed fix for error when calculating the position in the output DCP of a ↵Carl Hetherington
referenced asset.
2022-06-07Rearrange subtitle font management.Carl Hetherington
With this change each subtitle coming out of the player has a reference to a dcpomatic::Font that belongs to the TextContent. This hopefully solves a few problems which all basically stemmed from the fact that previously the decoders/player were deciding what the font ID in the output DCP would be - they can't do that properly.
2022-05-21Fix error when loading encrypted DCPs (#2257).Carl Hetherington
In d1b4dbb793e2850d032ce3c91f0c91d045ae19dc I changed have_video() to look at can_be_played() but forgot to also change have_audio().
2022-05-11Fix ignore_video checker for separate-3D content (#2246).Carl Hetherington
2022-05-10Possibly improve shuffler behaviour (use one for all content if any 3D is ↵Carl Hetherington
present).
2022-04-29Primitive auto-crop (#1477).Carl Hetherington
2022-04-28Allow ContentBitmapText to contain multiple BitmapText objects.Carl Hetherington
2022-04-28Improve some variable names.Carl Hetherington
2022-04-20Replace encrypted content with black if we have no key (#2234).Carl Hetherington
2022-04-04Add fade in/out option to the content audio tab (#1026).Carl Hetherington
2022-04-04Cleanup: move some methods from util to maths_util.Carl Hetherington
2022-04-03C++11 and whitespace cleanups.Carl Hetherington
2022-01-24Slightly hacky fix for -114 errors during 3D encodes (#2173).v2.15.188Carl Hetherington
It still feels like I'm missing some large and beautiful trick with gathering all the gap-filling code into one place, but such a trick still eludes me.
2022-01-24Rename _last_video* to _next_video* as it seems to make more sense that way.Carl Hetherington
2022-01-11Comment typo.Carl Hetherington
2021-12-21Fix trimming of ATMOS MXFs.Carl Hetherington
2021-11-04Clarify that in this get_reel_assets() the content and film frame rates will ↵Carl Hetherington
be the same.
2021-11-04Bail early if nothing can be referenced from this content.Carl Hetherington
2021-11-04Cleanup variable name: k -> reelCarl Hetherington
2021-11-04Fix errors when referencing trimmed DCPs (#2116).Carl Hetherington
2021-11-04Cleanup: use a variable we already made.Carl Hetherington
2021-11-04Cleanup variable name: l -> captionCarl Hetherington
2021-11-04Cleanup variable name: k -> reelCarl Hetherington
2021-11-04Cleanup variable name: j -> dcpCarl Hetherington
2021-11-04Cleanup variable name: i -> contentCarl Hetherington
2021-11-04Cleanup variable name: a -> reel_assetsCarl Hetherington
2021-10-15Ignore audio streams that fall too far behind (#2101).Carl Hetherington
2021-10-03Don't scale chroma subsampled images to sizes that don't align with the ↵v2.15.166Carl Hetherington
subsampling (#1872). There's a slightly odd effect when scaling e.g. YVU420 images to odd and then even widths - there's a small but visible luminance shift. I don't know why this happens, but keeping the scaling sizes locked to the subsampling seems to help.
2021-10-03Differentiate requested and actual crop.Carl Hetherington
This is so we limit cropping to what is possible considering chroma subsampling.