summaryrefslogtreecommitdiff
path: root/src/lib/player.cc
AgeCommit message (Collapse)Author
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.
2021-09-27Remove unused usingCarl Hetherington
2021-09-27Replace aligned bool with enum Alignment.Carl Hetherington
2021-09-27Various alignment adjustments.Carl Hetherington
2021-07-05Use unique_ptr.Carl Hetherington
2021-06-13Ignore incoming data when suspended.Carl Hetherington
Otherwise, for example, some content can be moved and before the pieces have been re-created some video can arrive. Then the video's position will be calculated using the content's new position, causing an apparently big gap in the video which is filled in with black. These extra black frames cause the video buffers to fill up without any audio.
2021-04-01Move 3D-to-2D check (#1941).Carl Hetherington
We were checking for 3D content going into a 2D project in the DCPEncoder, but we also need to do the same thing when exporting. Moving the check into Player::emit_video() means that it is applied to both DCP transcoding and export.
2021-02-15Compile fix for ubuntu-16.04-era gcc.Carl Hetherington
2021-02-15Basic handling of overlapping video (#1848).Carl Hetherington
2021-02-14C++11 cleanups.Carl Hetherington
2021-02-04C++11 tidying.Carl Hetherington
2021-01-31Use enum class for Film::Property.Carl Hetherington
2021-01-31More enum class additions.Carl Hetherington
2021-01-27Use enum class for VideoRange.Carl Hetherington
2021-01-21Adapt for libdcp use of enum class.Carl Hetherington
2021-01-07BOOST_FOREACH.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2020-12-22Pass fonts from content around as FontData.Carl Hetherington
i.e. as a block of memory rather than a file. Also, get the fonts from the decoder rather than the content. Together, these changes allow us to use fonts from SMPTE DCPs added as content. Before, fonts would be messed up in those cases (#1885).
2020-12-01Changes to crop can be handled with a reset_metadata().Carl Hetherington
While playback is happening we need to do that in the butler's buffers and in the little delay inside Player. This removes the seek on every crop change, making it a lot quicker (#1758).
2020-10-21macOS / new boost build fixes.v2.15.104Carl Hetherington
2020-07-05Add more logging and some missing prefs checkboxes for existing logging.v2.15.87Carl Hetherington
2020-06-19Make Atmos content work more like other content. Now its MXFsv2.15.82Carl Hetherington
are re-written, meaning that they can be encrypted. This (along with the libdcp update) also fixes assorted Atmos bugs.
2020-05-21Fix enabled/disable overlapping video/audio with DCP content (part of #1355)Carl Hetherington
2020-05-20Add a bit more debug logging to the player.Carl Hetherington
2020-05-17Fix empty (black) area calculations when video is set to not be used.Carl Hetherington
2020-05-11Change video content scaling so that it either:Carl Hetherington
1. scales the content up to fit the DCP container, preserving aspect ratio, or 2. stretches the content to a custom aspect ratio, or 3. scales the content to some custom size.
2020-04-23Nicer fix for 86102d30bf0aad89115bbeb3d8aaa2a27a0aa432Carl Hetherington
2020-04-23Add accessor for _playlist.Carl Hetherington
2020-04-23Fix complete failure of preview/playback introduced inv2.15.53Carl Hetherington
4219d4b76c5cd5690b1f4fa0c248d93ced26d05a.
2020-04-15Fix length of player output so it can be either the film's length or ↵Carl Hetherington
playlist's length, as appropriate.
2020-04-14Fix Empty/Player behaviour when using a playlist that is not the same as the ↵Carl Hetherington
Film's. Previously Empty would use the length of the film for its end point. Now it takes a Playlist (rather than a list of Pieces) and uses the length of that playlist for its end point. This fixes #1543, in which single-content audio analysis jobs would run for the whole length of the film, rather than the length of the content, producing strange graphs and incorrect progress reports.
2020-04-14Ignore and report failures to decode frames during playback (#1593).Carl Hetherington
2020-02-16Make a new AudioBuffers constructor and use it to avoid some use of the more ↵Carl Hetherington
complicated copy_from.
2020-02-06Fix crash with bitmapped subs that have zero width or height.Carl Hetherington