*/
+#include "dcp_examiner.h"
+#include "dcp_content.h"
+#include "exceptions.h"
+#include "image.h"
+#include "config.h"
#include <dcp/dcp.h>
#include <dcp/cpl.h>
#include <dcp/reel.h>
#include <dcp/stereo_picture_mxf.h>
#include <dcp/stereo_picture_frame.h>
#include <dcp/sound_mxf.h>
-#include "dcp_examiner.h"
-#include "dcp_content.h"
-#include "exceptions.h"
-#include "image.h"
-#include "config.h"
#include "i18n.h"
shared_ptr<dcp::MonoPictureMXF> mono = dynamic_pointer_cast<dcp::MonoPictureMXF> (mxf);
shared_ptr<dcp::StereoPictureMXF> stereo = dynamic_pointer_cast<dcp::StereoPictureMXF> (mxf);
- shared_ptr<Image> image (new Image (PIX_FMT_RGB24, _video_size.get(), false));
+ shared_ptr<Image> image (new Image (PIX_FMT_RGB48LE, _video_size.get(), false));
if (mono) {
- mono->get_frame(0)->rgb_frame (image->data()[0]);
+ mono->get_frame(0)->rgb_frame (image);
} else {
- stereo->get_frame(0)->rgb_frame (dcp::EYE_LEFT, image->data()[0]);
+ stereo->get_frame(0)->rgb_frame (dcp::EYE_LEFT, image);
}
}