Multi-View and Stereo 3D
[blender-staging.git] / source / blender / imbuf / intern / util.c
index 32100aa2288bc9ff033b5c45510d79f1e32349cb..3fee6688014fc53d81bee21f30a78c034ceb4e26 100644 (file)
@@ -439,3 +439,15 @@ bool IMB_isanim(const char *filename)
        
        return (type && type != ANIM_SEQUENCE);
 }
+
+bool IMB_isfloat(ImBuf *ibuf)
+{
+       ImFileType *type;
+
+       for (type = IMB_FILE_TYPES; type < IMB_FILE_TYPES_LAST; type++) {
+               if (type->ftype(type, ibuf)) {
+                       return (type->flag & IM_FTYPE_FLOAT) != 0;
+               }
+       }
+       return false;
+}