diff --git a/mediapipe/framework/formats/image_frame.h b/mediapipe/framework/formats/image_frame.h index 6fcefbd38f..6931f217f4 100644 --- a/mediapipe/framework/formats/image_frame.h +++ b/mediapipe/framework/formats/image_frame.h @@ -44,7 +44,7 @@ #include "mediapipe/framework/port/integral_types.h" #include "mediapipe/framework/tool/type_util.h" -#define IMAGE_FRAME_RAW_IMAGE MEDIAPIPE_HAS_RTTI +#define IMAGE_FRAME_RAW_IMAGE MEDIAPIPE_HAS_RTTI && !defined(NO_RAW_IMAGE) namespace mediapipe {