Module ffi_libopenraw

Module ffi_libopenraw 

Source

Re-exports§

pub use self::_debug_level as debug_level;

Structs§

ORRational
@brief Unsigned rational as a fraction
ORSRational
@brief Signed rational as a fraction
_BitmapData
_IfdDir
_MetaValue
_MetadataIterator
_MosaicInfo
_RawData
_RawFile
_Thumbnail

Enums§

ExifLightsourceValue
ExifTagType
Type for Exif field/tag @note taken from libexif
_OR_TYPEID_VENDOR_ADOBE
@brief Adobe type ID
_OR_TYPEID_VENDOR_APPLE
_OR_TYPEID_VENDOR_BLACKMAGIC
_OR_TYPEID_VENDOR_CANON
@brief Canon type IDs
_OR_TYPEID_VENDOR_DJI
_OR_TYPEID_VENDOR_EPSON
@brief Epson type IDs
_OR_TYPEID_VENDOR_FUJIFILM
@brief Fujifilm type IDs
_OR_TYPEID_VENDOR_GOPRO
_OR_TYPEID_VENDOR_HASSELBLAD
_OR_TYPEID_VENDOR_LEICA
@brief Leica type IDs
_OR_TYPEID_VENDOR_MINOLTA
@brief Minolta type IDs
_OR_TYPEID_VENDOR_NIKON
@brief Nikon type IDs
_OR_TYPEID_VENDOR_OLYMPUS
@brief Olympus (and its successor OM Digital Solutions type IDs
_OR_TYPEID_VENDOR_PANASONIC
@brief Panasonic type IDs
_OR_TYPEID_VENDOR_PENTAX
@brief Pentax type IDs
_OR_TYPEID_VENDOR_RICOH
@brief Ricoh type IDs
_OR_TYPEID_VENDOR_SAMSUNG
@brief Samsung type IDs
_OR_TYPEID_VENDOR_SIGMA
_OR_TYPEID_VENDOR_SONY
@brief Sony type IDs
_OR_TYPEID_VENDOR_XIAOYI
_OR_TYPEID_VENDOR_ZEISS
_debug_level
@brief Debug levels.
or_cfa_pattern
@brief CFA pattern types
or_cfa_pattern_colour
@brief CFA colour components
or_colour_matrix_origin
@brief Where the colour matrix comes from. Typically DNG is provided. The others are built-in.
or_data_type
@brief Data types
or_error
@brief Error codes returned by libopenraw.
or_ifd_dir_type
@brief Type of IfdDir
or_options
@brief Options
or_rawfile_type
@brief Types of RAW files

Constants§

_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_ADOBE
< Generic DNG files.
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_APPLE
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_BLACKMAGIC
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_CANON
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_DJI
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_EPSON
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_FUJIFILM
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_GOPRO
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_HASSELBLAD
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_LEICA
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_MAMIYA
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_MINOLTA
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_NIKON
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_NONE
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_OLYMPUS
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_PANASONIC
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_PENTAX
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_RICOH
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_SAMSUNG
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_SIGMA
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_SONY
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_XIAOYI
_OR_TYPE_ID_VENDOR_OR_TYPEID_VENDOR_ZEISS
_OR_TYPE_ID_VENDOR__OR_TYPEID_VENDOR_LAST

Functions§

or_bitmapdata_bpc
or_bitmapdata_data
or_bitmapdata_data_size
or_bitmapdata_dimensions
or_bitmapdata_format
or_bitmapdata_new
or_bitmapdata_release
or_debug_set_level
@brief Set the debug level.
or_get_extract_rawdata
@brief Extract the RAW data from the raw file. @param filename the raw file name @param options the options to pass @param rawdata the destination RawData. Must allocated.
or_get_extract_thumbnail
@brief Extract thumbnail for raw file
or_get_file_extensions
@brief Return a NULL terminated list of extensions that the library supposedly handle.
or_ifd_count_tags
Count the number of tags in the ifd
or_ifd_get_makernote_id
or_ifd_get_tag_name
or_ifd_get_type
or_ifd_release
or_metadata_iterator_free
@brief Free the iterator @param iterator The iterator to free.
or_metadata_iterator_get_entry
@brief Get the metadata entry from the iterator.
or_metadata_iterator_next
@brief Move to the next metadata value @param iterator The metadata iterator. @return 0 if no more.
or_metavalue_get_as_string
@brief Convert the %MetaValue to a string.
or_metavalue_get_count
@brief Get the value count
or_metavalue_get_string
@brief Get the string out of the %MetaValue.
or_metavalue_release
@brief Free the %MetaValue
or_mosaicinfo_get_pattern
@brief Get the pattern.
or_mosaicinfo_get_size
@brief Get the size of the mosaic
or_mosaicinfo_get_type
@brief Get the type of the mosaic
or_mosaicinfo_set_size
@brief Set the size of the mosaic
or_rawdata_bpc
@brief Return the bits per component
or_rawdata_data
@brief Get a pointer to the RAW data
or_rawdata_data_size
@brief Get the size of the RAW data in bytes
or_rawdata_dimensions
@brief Get the RAW data dimensions in pixels @param [out] x the horizontal dimension @param [out] y the vertical dimension
or_rawdata_format
@brief Get the format of the RAW data
or_rawdata_get_active_area
@brief Get the active area for the raw data.
or_rawdata_get_cfa_pattern_type
@brief Return the bayer type for the raw data.
or_rawdata_get_colour_matrix
@brief Get the colour matrix. @param rawdata the raw data object @param index the matrix index. @param [out] size of %matrix. Returns the actual size. @return the matrix. Pointer is owned by the RawData.
or_rawdata_get_compression
@brief Return the compression type for the RawData.
or_rawdata_get_levels
@brief Return the levels values for the raw data.
or_rawdata_get_mosaicinfo
@brief Return the mosaic info
or_rawdata_get_rendered_image
@brief Get the rendered image from the raw data @param rawdata the raw data. @param bitmapdata the preallocated bitmap data. @param options option for rendering. Pass 0 for now. @return an error code, %OR_ERROR_NONE in case of success.
or_rawdata_new
@brief Allocate a new RawData @return A newly allocated RawData. Must be released by %or_rawdata_release
or_rawdata_release
@brief Release the rawdata
or_rawfile_get_calibration_illuminant1
@brief Get calibration illuminant for the first colour matrix.
or_rawfile_get_calibration_illuminant2
@brief Get calibration illuminant for the second colour matrix.
or_rawfile_get_colour_matrix_origin
@brief Get the colour matrix origin for file.
or_rawfile_get_colourmatrix1
@brief Get the first colour matrix.
or_rawfile_get_colourmatrix2
@brief Get the second colour matrix.
or_rawfile_get_ifd
@brief Get an IFD directory
or_rawfile_get_metadata_iterator
@brief Get a metadata iterator.
or_rawfile_get_metavalue
@brief Get the metadata value @param rawfile the RawFile object. @param meta_index the index value which a bit OR between a namespace and an index @return a const MetaValue, owned by the %RawFile
or_rawfile_get_orientation
@brief Get the orientation.
or_rawfile_get_rawdata
@brief Get the RawData out of the RawFile.
or_rawfile_get_rendered_image
@brief Get the rendered image from the raw file @param rawfile The raw file. @param rawdata The preallocated bitmap data. @param options Option for rendering. Pass %OR_OPTIONS_NONE for now. @return An error code. %OR_ERROR_NOTAREF is %rawfile is NULL.
or_rawfile_get_thumbnail
@brief Get a thumbnail from a RawFile..
or_rawfile_get_thumbnail_sizes
@brief Get the the array of thumbnail sizes.
or_rawfile_get_type
@brief Get the %RawFile type
or_rawfile_get_typeid
@brief Return the type id to identify the exact file type.
or_rawfile_get_vendorid
@brief Return the type id to identify the vendor.
or_rawfile_new
@brief Create a new %RawFile object from a file. @param filename The path to the file to open. @param type The hint for the file type. Pass %OR_RAWFILE_TYPE_UNKNOWN to let the library guess. @return A new allocated RawFile pointer. Must be freed with %or_rawfile_release().
or_rawfile_new_from_memory
@brief Create a new %RawFile object from a memory buffer. @param buffer The memory buffer: bytes from the RAW file. @param len The length of the memory buffer in bytes. @param type The hint for the file type. Pass %OR_RAWFILE_TYPE_UNKNOWN to let the library guess. @return A new allocated RawFile pointer. Must be freed with %or_rawfile_release().
or_rawfile_release
@brief Release the %RawFile. @param [in] rawfile The %RawFile object to release. @return An error code. %OR_ERROR_NOT_AREF if the pointer is NULL.
or_thumbnail_data
@brief Get the pointer to the data.
or_thumbnail_data_size
@brief Get the data size.
or_thumbnail_dimensions
@brief Get the %Thumbnail dimensions in pixels.
or_thumbnail_format
@brief Get the thumbnail format.
or_thumbnail_new
@brief Allocate a Thumbnail object.
or_thumbnail_release
@brief Release a Thumbnail object.

Type Aliases§

ORBitmapDataRef
ORConstMetaValueRef
ORIfdDirRef
ORMetaValueRef
ORMetadataIteratorRef
ORMosaicInfoRef
@brief A MosaicInfo object
ORRawDataRef
ORRawFileRef
ORThumbnailRef
_OR_TYPE_ID_VENDOR
@brief The vendor ID: the high order 16-bits of the or_rawfile_typeid
or_rawfile_typeid
@brief This is the type ID, a combination of vendor model It maps a specific camera. Only for the NATIVE file format.