Fix enum confusion.
authorCarl Hetherington <cth@carlh.net>
Wed, 9 Oct 2019 22:57:13 +0000 (00:57 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 9 Oct 2019 22:57:34 +0000 (00:57 +0200)
src/stereo_picture_frame.cc

index 8b8f9b91e8524b9c00b3deb1a6da8cd6b65dbf7a..72f59b36bbce6dd116ed3d783b9794c2875cd8da 100644 (file)
@@ -79,9 +79,9 @@ shared_ptr<OpenJPEGImage>
 StereoPictureFrame::xyz_image (Eye eye, int reduce) const
 {
        switch (eye) {
-       case LEFT:
+       case EYE_LEFT:
                return decompress_j2k (const_cast<uint8_t*> (_buffer->Left.RoData()), _buffer->Left.Size(), reduce);
-       case RIGHT:
+       case EYE_RIGHT:
                return decompress_j2k (const_cast<uint8_t*> (_buffer->Right.RoData()), _buffer->Right.Size(), reduce);
        }