*/
#include "video_frame.h"
+#include "dcpomatic_assert.h"
VideoFrame &
VideoFrame::operator++ ()
{
return !(a == b);
}
+
+bool
+operator> (VideoFrame const & a, VideoFrame const & b)
+{
+ if (a.index() != b.index()) {
+ return a.index() > b.index();
+ }
+
+ /* indexes are the same */
+
+ if (a.eyes() == b.eyes()) {
+ return false;
+ }
+
+ /* eyes are not the same */
+
+ if (a.eyes() == EYES_LEFT && b.eyes() == EYES_RIGHT) {
+ return false;
+ }
+
+ if (a.eyes() == EYES_RIGHT && b.eyes() == EYES_LEFT) {
+ return true;
+ }
+
+ /* should never get here; we are comparing 2D with 3D */
+
+ DCPOMATIC_ASSERT (false);
+}