*/
virtual std::string technical_summary () const;
- virtual std::string information () const = 0;
virtual void as_xml (xmlpp::Node *) const;
virtual DCPTime full_length () const = 0;
virtual std::string identifier () const;
return Content::technical_summary() + " - " + _("DCP XML subtitles");
}
-string
-DCPSubtitleContent::information () const
-{
-
-}
-
void
DCPSubtitleContent::as_xml (xmlpp::Node* node) const
{
void examine (boost::shared_ptr<Job>, bool calculate_digest);
std::string summary () const;
std::string technical_summary () const;
- std::string information () const;
void as_xml (xmlpp::Node *) const;
DCPTime full_length () const;
);
}
-string
-FFmpegContent::information () const
-{
- if (video_length() == ContentTime (0) || video_frame_rate() == 0) {
- return "";
- }
-
- SafeStringStream s;
-
- s << String::compose (_("%1 frames; %2 frames per second"), video_length_after_3d_combine().frames (video_frame_rate()), video_frame_rate()) << "\n";
- s << VideoContent::information ();
-
- return s.str ();
-}
-
void
FFmpegContent::set_subtitle_stream (shared_ptr<FFmpegSubtitleStream> s)
{
void examine (boost::shared_ptr<Job>, bool calculate_digest);
std::string summary () const;
std::string technical_summary () const;
- std::string information () const;
void as_xml (xmlpp::Node *) const;
DCPTime full_length () const;
+ " - sndfile";
}
-string
-SndfileContent::information () const
-{
- if (_audio_frame_rate == 0) {
- return "";
- }
-
- SafeStringStream s;
-
- s << String::compose (
- _("%1 channels, %2kHz, %3 samples"),
- audio_channels(),
- audio_frame_rate() / 1000.0,
- audio_length().frames (audio_frame_rate ())
- );
-
- return s.str ();
-}
-
bool
SndfileContent::valid_file (boost::filesystem::path f)
{
return Content::technical_summary() + " - " + _("SubRip subtitles");
}
-string
-SubRipContent::information () const
-{
-
-}
-
void
SubRipContent::as_xml (xmlpp::Node* node) const
{
void examine (boost::shared_ptr<Job>, bool calculate_digest);
std::string summary () const;
std::string technical_summary () const;
- std::string information () const;
void as_xml (xmlpp::Node *) const;
DCPTime full_length () const;
signal_changed (ContentProperty::LENGTH);
}
-
-string
-VideoContent::information () const
-{
- if (video_size().width == 0 || video_size().height == 0) {
- return "";
- }
-
- SafeStringStream s;
-
- s << String::compose (
- _("%1x%2 pixels (%3:1)"),
- video_size().width,
- video_size().height,
- setprecision (3), video_size().ratio ()
- );
-
- if (sample_aspect_ratio ()) {
- s << String::compose (_(" sample aspect ratio %1:1"), sample_aspect_ratio().get ());
- }
-
- return s.str ();
-}
-
void
VideoContent::set_left_crop (int c)
{
void as_xml (xmlpp::Node *) const;
std::string technical_summary () const;
- virtual std::string information () const;
virtual std::string identifier () const;
ContentTime video_length () const {