IsCameraSupported() ?

Is there a way to determine (after calling open_file() or unpack()) whether or not the camera that created the file is supported or not.

If all else fails I suppose I can iterate through all the supported camera names and say it's not supported if I can't find it. However I'm guessing the either open_file() or unpack() probably check whether the camera's supported anyway so this information might be available?

Thanks

Forums: 

There is no such call.

There is no such call.

Check open_file/unpack return code(s) and/or warning field.

-- Alex Tutubalin @LibRaw LLC

I am checking the libraw open

I am checking the libraw open_file() and unpack() return codes - what warning field are you referring to? I looked the possible values for imgdata.process_warnings but none of those suggest a "camera not supported" condition.

Looking at the errors that are potentially returned (apart from LIBRAW_FILE_UNSUPPORTED which might be returned for a Canon .CR3 file until you add that support), I still don't see anything to tell me a camera isn't supported.

Thanks

David Partridge

process_warnings - none of

process_warnings - none of those conditions appear to tell me that a camera isn't supported, or should I interpret any value in process_warnings to indicate that the camera isn't supported?

David Partridge

Come on - you know what the

Come on - you know what the word supported means as do I - after all you publish as list of supported cameras!

David Partridge

This is 'surely supported'

This is (list of) 'surely supported' (tested) ones.

UPD: published 'just for information', LibRaw does not use this list internally.

-- Alex Tutubalin @LibRaw LLC