|
libopenraw
0.3.7
|
Access the raw data. More...
Functions | |
| or_error | or_get_extract_rawdata (const char *filename, uint32_t options, ORRawDataRef *rawdata) |
| Extract the RAW data from the raw file. More... | |
| ORRawDataRef | or_rawdata_new (void) |
| Allocate a new RawData. More... | |
| or_error | or_rawdata_release (ORRawDataRef rawdata) |
| Release the rawdata. | |
| or_data_type | or_rawdata_format (ORRawDataRef rawdata) |
| Get the format of the RAW data. | |
| void * | or_rawdata_data (ORRawDataRef rawdata) |
| Get a pointer to the RAW data. More... | |
| size_t | or_rawdata_data_size (ORRawDataRef rawdata) |
| Get the size of the RAW data in bytes. | |
| void | or_rawdata_dimensions (ORRawDataRef rawdata, uint32_t *x, uint32_t *y) |
| Get the RAW data dimensions in pixels. More... | |
| or_error | or_rawdata_get_active_area (ORRawDataRef rawdata, uint32_t *x, uint32_t *y, uint32_t *width, uint32_t *height) |
| Get the active area for the raw data. More... | |
| uint32_t | or_rawdata_bpc (ORRawDataRef rawdata) |
| Return the bits per component. More... | |
| or_cfa_pattern | or_rawdata_get_cfa_pattern_type (ORRawDataRef rawdata) |
| Return the bayer type for the raw data. More... | |
| ORMosaicInfoRef | or_rawdata_get_mosaicinfo (ORRawDataRef rawdata) |
| Return the mosaic info. More... | |
| uint32_t | or_rawdata_get_compression (ORRawDataRef rawdata) |
| Return the compression type for the RawData. More... | |
| or_error | or_rawdata_get_levels (ORRawDataRef rawdata, uint16_t *black, uint16_t *white) |
| Return the levels values for the raw data. More... | |
| const double * | or_rawdata_get_colour_matrix (ORRawDataRef rawdata, uint32_t index, uint32_t *size) |
| Get the colour matrix. More... | |
| or_error | or_rawdata_get_rendered_image (ORRawDataRef rawdata, ORBitmapDataRef bitmapdata, uint32_t options) |
| Get the rendered image from the raw data. More... | |
Access the raw data.
| or_error or_get_extract_rawdata | ( | const char * | filename, |
| uint32_t | options, | ||
| ORRawDataRef * | rawdata | ||
| ) |
Extract the RAW data from the raw file.
| filename | the raw file name |
| options | the options to pass |
| rawdata | the destination RawData. Must allocated. |
Definition at line 51 of file rawdata.cpp.
References OR_ERROR_NONE.
| uint32_t or_rawdata_bpc | ( | ORRawDataRef | rawdata | ) |
Return the bits per component.
Definition at line 130 of file rawdata.cpp.
| void* or_rawdata_data | ( | ORRawDataRef | rawdata | ) |
Get a pointer to the RAW data.
The pointer is owned by the RawData object.
Definition at line 85 of file rawdata.cpp.
| void or_rawdata_dimensions | ( | ORRawDataRef | rawdata, |
| uint32_t * | x, | ||
| uint32_t * | y | ||
| ) |
Get the RAW data dimensions in pixels.
| [out] | x | the horizontal dimension |
| [out] | y | the vertical dimension |
Definition at line 97 of file rawdata.cpp.
References OpenRaw::BitmapData::height(), and OpenRaw::BitmapData::width().
| or_error or_rawdata_get_active_area | ( | ORRawDataRef | rawdata, |
| uint32_t * | x, | ||
| uint32_t * | y, | ||
| uint32_t * | width, | ||
| uint32_t * | height | ||
| ) |
Get the active area for the raw data.
The active area is the usefull part of the RAW data it is specific per camera and isn't the crop.
| rawdata | the RawData object | |
| [out] | x | the X origin |
| [out] | y | the Y origin |
| [out] | width | the width |
| [out] | height | the height. |
Definition at line 110 of file rawdata.cpp.
References OpenRaw::RawData::activeAreaX(), and OR_ERROR_NONE.
| or_cfa_pattern or_rawdata_get_cfa_pattern_type | ( | ORRawDataRef | rawdata | ) |
Return the bayer type for the raw data.
Definition at line 136 of file rawdata.cpp.
| const double* or_rawdata_get_colour_matrix | ( | ORRawDataRef | rawdata, |
| uint32_t | index, | ||
| uint32_t * | size | ||
| ) |
Get the colour matrix.
| rawdata | the raw data object | |
| index | the matrix index. | |
| [out] | size | of matrix. Returns the actual size. |
Definition at line 168 of file rawdata.cpp.
References OpenRaw::RawData::getColourMatrix1(), and OpenRaw::RawData::getColourMatrix2().
| uint32_t or_rawdata_get_compression | ( | ORRawDataRef | rawdata | ) |
Return the compression type for the RawData.
Definition at line 148 of file rawdata.cpp.
| or_error or_rawdata_get_levels | ( | ORRawDataRef | rawdata, |
| uint16_t * | black, | ||
| uint16_t * | white | ||
| ) |
Return the levels values for the raw data.
These are possible values, not actual values.
| rawdata | the raw data object | |
| [out] | black | the pointer to the black value. |
| [out] | white | the pointer to the white value. |
Definition at line 154 of file rawdata.cpp.
References OR_ERROR_NONE.
| ORMosaicInfoRef or_rawdata_get_mosaicinfo | ( | ORRawDataRef | rawdata | ) |
Return the mosaic info.
Definition at line 142 of file rawdata.cpp.
| or_error or_rawdata_get_rendered_image | ( | ORRawDataRef | rawdata, |
| ORBitmapDataRef | bitmapdata, | ||
| uint32_t | options | ||
| ) |
Get the rendered image from the raw data.
| rawdata | the raw data. |
| bitmapdata | the preallocated bitmap data. |
| options | option for rendering. Pass 0 for now. |
Definition at line 200 of file rawdata.cpp.
References OpenRaw::RawData::getRenderedImage(), and OR_ERROR_NOTAREF.
| ORRawDataRef or_rawdata_new | ( | void | ) |
Allocate a new RawData.
Definition at line 62 of file rawdata.cpp.