summaryrefslogtreecommitdiff
path: root/src/lib/audio_analyser.cc
AgeCommit message (Collapse)Author
2025-09-02Untested conversion to num/den DCPTime.arbitrary-hzCarl Hetherington
Summary of required changes: Replace ::from_frames with a constructor that takes num/den. Provide and use member to_debug_string() instead of to_string(). Provide and use member to_serializable_string() and string constructor instead of fmt::to_string on .get() and number constructor. Provide and use content_time() member instead of ContentTime constructor from DCPTime. Use frames_round(96000) instead of get() when comparing times to see if they are "close enough". Provide and use DCPTime(x, FrameRateChange) constructor when converting from ContentTime. Use .seconds() when calculating proportions or sometimes when dividing by HZ. Provide and use operator bool(). Pass explicit 96000 denominator in a lot of places. Add member max() and use it instead of static max() Change BOOST_CHECK_EQUAL to BOOST_CHECK Provide operator/ and use it instead of .get() / 2.
2025-07-10Replace String::compose with fmt.Carl Hetherington
sed -i "/Plural-Forms/n;/%100/n;/scanf/n;s/%[123456789]/{}/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc src/lib/po/*.po src/wx/po/*.po src/tools/po/*.po test/*.cc sed -i "s/String::compose */fmt::format/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc test/*.cc
2024-02-11Fix apparently ineffective processors when analysing audio (#2671).Carl Hetherington
A whole film ("DCP side") analysis would behave the same as a single piece of content analysis if the film only had one piece of content. Here we also clarify that audio analysis of the whole film is different to that for a single piece of content; for the whole film we use processors, and for single pieces of content we do not.
2023-11-20Fix audio analysis attempts with source files that have more channels than ↵Carl Hetherington
the film.
2023-11-20Cleanup: handle Filter objects by value rather than by reference.Carl Hetherington
2023-11-20Cleanup: remove an unnecessary shared_ptr.Carl Hetherington
2023-11-20Don't feed channels to leqm that we don't have a correction factor for (#2647).Carl Hetherington
2022-12-13Add video_{range,frame_type}.{cc,h} and remove some types.h includes.Carl Hetherington
2022-11-15Clarify one log message and add another.Carl Hetherington
2022-11-15Add failing test for #2364.Carl Hetherington
2022-04-22Use libdcp's warnings.hCarl Hetherington
2022-04-20Use std::vector in AudioBuffers (#2236).Carl Hetherington
2021-07-05Tidy a little and use some std::vector instead of raw arrays.Carl Hetherington
2021-05-21Fix thinko in 4ce4b8d3429a97eb4df63460c7e73863f44a621eCarl Hetherington
Audio content of course doesn't have a single selected stream, so let's get the channel count from how all the streams are mapped.
2021-05-20Specify correct number of channels for LEQ(m) analyses of single pieces of ↵Carl Hetherington
content (#1991) If we're analysing one piece of content, pass its channel count into the leqm::Calculator rather than just using the film channel count.
2021-05-07Hide some more FFmpeg warnings.v2.15.143Carl Hetherington
2021-04-21Split audio analysis code off from the job.Carl Hetherington