-
-string
-PropertiesDialog::frames_already_encoded () const
-{
- stringstream u;
- try {
- u << _film->encoded_frames ();
- } catch (boost::thread_interrupted &) {
- return "";
- }
-
- uint64_t const frames = _film->length().frames (_film->video_frame_rate ());
- if (frames) {
- /* XXX: encoded_frames() should check which frames have been encoded */
- u << " (" << (_film->encoded_frames() * 100 / frames) << "%)";
- }
- return u.str ();
-}