#include <vector>
#include <inttypes.h>
#include <boost/thread/mutex.hpp>
+#include <boost/thread.hpp>
#include <sigc++/signal.h>
extern "C" {
#include <libavcodec/avcodec.h>
return _state.name;
}
- /** @return number of pixels to crop from the top of the original picture */
- int top_crop () const {
- return _state.top_crop;
- }
-
- /** @return number of pixels to crop from the bottom of the original picture */
- int bottom_crop () const {
- return _state.bottom_crop;
- }
-
- /** @return number of pixels to crop from the left-hand side of the original picture */
- int left_crop () const {
- return _state.left_crop;
- }
-
- /** @return number of pixels to crop from the right-hand side of the original picture */
- int right_crop () const {
- return _state.right_crop;
+ /** @return number of pixels to crop from the sides of the original picture */
+ Crop crop () const {
+ return _state.crop;
}
/** @return the format to present this film in (flat, scope, etc.) */
void set_bottom_crop (int);
void set_left_crop (int);
void set_right_crop (int);
- void set_frames_per_second (float);
void set_format (Format const *);
void set_dcp_content_type (DCPContentType const *);
void set_audio_gain (float);
CONTENT,
DCP_CONTENT_TYPE,
FORMAT,
- LEFT_CROP,
- RIGHT_CROP,
- TOP_CROP,
- BOTTOM_CROP,
+ CROP,
FILTERS,
SCALER,
DCP_FRAMES,
return _log;
}
+ int encoded_frames () const;
+
/** Emitted when some metadata property has changed */
mutable sigc::signal1<void, Property> Changed;