_mapping = mapping;
}
-void
-AudioStream::set_frame_rate (int frame_rate)
-{
- boost::mutex::scoped_lock lm (_mutex);
- _frame_rate = frame_rate;
-}
-
int
AudioStream::channels () const
{
AudioStream (int frame_rate, AudioMapping mapping);
void set_mapping (AudioMapping mapping);
- void set_frame_rate (int frame_rate);
AudioMapping mapping () const {
boost::mutex::scoped_lock lm (_mutex);
return video_identifier() + ".mxf";
}
-string
-Film::filename_safe_name () const
-{
- string const n = name ();
- string o;
- for (size_t i = 0; i < n.length(); ++i) {
- if (isalnum (n[i])) {
- o += n[i];
- } else {
- o += "_";
- }
- }
-
- return o;
-}
-
boost::filesystem::path
Film::audio_analysis_path () const
{
std::string video_identifier () const;
void playlist_changed ();
void playlist_content_changed (boost::weak_ptr<Content>, int, bool frequent);
- std::string filename_safe_name () const;
void maybe_add_content (boost::weak_ptr<Job>, boost::weak_ptr<Content>);
/** Log to write to */
return digester.get ();
}
-/** @param An arbitrary audio frame rate.
- * @return The appropriate DCP-approved frame rate (48kHz or 96kHz).
- */
-int
-dcp_audio_frame_rate (int fs)
-{
- if (fs <= 48000) {
- return 48000;
- }
-
- return 96000;
-}
-
/** Round a number up to the nearest multiple of another number.
* @param c Index.
* @param s Array of numbers to round, indexed by c.
return a - (a % t);
}
-/** @param n A number.
- * @param r Rounding `boundary' (must be a power of 2)
- * @return n rounded to the nearest r
- */
-int
-round_to (float n, int r)
-{
- DCPOMATIC_ASSERT (r == 1 || r == 2 || r == 4);
- return int (n + float(r) / 2) &~ (r - 1);
-}
-
/** Trip an assert if the caller is not in the UI thread */
void
ensure_ui_thread ()
#endif
extern std::string tidy_for_filename (std::string);
extern dcp::Size fit_ratio_within (float ratio, dcp::Size);
-extern int dcp_audio_frame_rate (int);
extern int stride_round_up (int, int const *, int);
-extern int round_to (float n, int r);
extern void* wrapped_av_malloc (size_t);
class FFmpegSubtitlePeriod
extern std::string audio_asset_filename (boost::shared_ptr<dcp::SoundAsset> asset);
#endif
-