#include <libcxml/cxml.h>
#include <libxml++/libxml++.h>
#include <boost/optional.hpp>
+#include <iostream>
#include "i18n.h"
VideoContentScale::id () const
{
SafeStringStream s;
-
+
if (_ratio) {
s << _ratio->id ();
} else {
s << (_scale ? "S1" : "S0");
}
-
+
return s.str ();
}
return VideoContentScale (true);
}
-
+
/** @param display_container Size of the container that we are displaying this content in.
* @param film_container The size of the film's image.
*/
float (display_container.width) / film_container.width,
float (display_container.height) / film_container.height
);
-
- size.width = rint (size.width * scale);
- size.height = rint (size.height * scale);
+
+ size.width = lrintf (size.width * scale);
+ size.height = lrintf (size.height * scale);
}
return size;