diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/imbuf/intern/cineon/dpxlib.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/imbuf/intern/cineon/dpxlib.h')
-rw-r--r-- | source/blender/imbuf/intern/cineon/dpxlib.h | 197 |
1 files changed, 102 insertions, 95 deletions
diff --git a/source/blender/imbuf/intern/cineon/dpxlib.h b/source/blender/imbuf/intern/cineon/dpxlib.h index fe9f34901b8..bf07b8e329d 100644 --- a/source/blender/imbuf/intern/cineon/dpxlib.h +++ b/source/blender/imbuf/intern/cineon/dpxlib.h @@ -22,7 +22,6 @@ * DPX image file format library definitions. */ - #ifndef __DPXLIB_H__ #define __DPXLIB_H__ @@ -32,126 +31,134 @@ extern "C" { #include "logImageCore.h" -#define DPX_FILE_MAGIC 0x53445058 -#define DPX_UNDEFINED_U8 0xFF -#define DPX_UNDEFINED_U16 0xFFFF -#define DPX_UNDEFINED_U32 0xFFFFFFFF -#define DPX_UNDEFINED_R32 0xFFFFFFFF -#define DPX_UNDEFINED_CHAR 0 +#define DPX_FILE_MAGIC 0x53445058 +#define DPX_UNDEFINED_U8 0xFF +#define DPX_UNDEFINED_U16 0xFFFF +#define DPX_UNDEFINED_U32 0xFFFFFFFF +#define DPX_UNDEFINED_R32 0xFFFFFFFF +#define DPX_UNDEFINED_CHAR 0 typedef struct { - unsigned int magic_num; - unsigned int offset; - char version[8]; - unsigned int file_size; - unsigned int ditto_key; - unsigned int gen_hdr_size; - unsigned int ind_hdr_size; - unsigned int user_data_size; - char file_name[100]; - char creation_date[24]; - char creator[100]; - char project[200]; - char copyright[200]; - unsigned int key; - char reserved[104]; + unsigned int magic_num; + unsigned int offset; + char version[8]; + unsigned int file_size; + unsigned int ditto_key; + unsigned int gen_hdr_size; + unsigned int ind_hdr_size; + unsigned int user_data_size; + char file_name[100]; + char creation_date[24]; + char creator[100]; + char project[200]; + char copyright[200]; + unsigned int key; + char reserved[104]; } DpxFileHeader; typedef struct { - unsigned int data_sign; - unsigned int ref_low_data; - float ref_low_quantity; - unsigned int ref_high_data; - float ref_high_quantity; - unsigned char descriptor; - unsigned char transfer; - unsigned char colorimetric; - unsigned char bits_per_sample; - unsigned short packing; - unsigned short encoding; - unsigned int data_offset; - unsigned int line_padding; - unsigned int element_padding; - char description[32]; + unsigned int data_sign; + unsigned int ref_low_data; + float ref_low_quantity; + unsigned int ref_high_data; + float ref_high_quantity; + unsigned char descriptor; + unsigned char transfer; + unsigned char colorimetric; + unsigned char bits_per_sample; + unsigned short packing; + unsigned short encoding; + unsigned int data_offset; + unsigned int line_padding; + unsigned int element_padding; + char description[32]; } DpxElementHeader; typedef struct { - unsigned short orientation; - unsigned short elements_per_image; - unsigned int pixels_per_line; - unsigned int lines_per_element; - DpxElementHeader element[8]; - char reserved[52]; + unsigned short orientation; + unsigned short elements_per_image; + unsigned int pixels_per_line; + unsigned int lines_per_element; + DpxElementHeader element[8]; + char reserved[52]; } DpxImageHeader; typedef struct { - unsigned int x_offset; - unsigned int y_offset; - float x_center; - float y_center; - unsigned int x_original_size; - unsigned int y_original_size; - char file_name[100]; - char creation_time[24]; - char input_device[32]; - char input_serial_number[32]; - unsigned short border_validity[4]; - unsigned int pixel_aspect_ratio[2]; - char reserved[28]; + unsigned int x_offset; + unsigned int y_offset; + float x_center; + float y_center; + unsigned int x_original_size; + unsigned int y_original_size; + char file_name[100]; + char creation_time[24]; + char input_device[32]; + char input_serial_number[32]; + unsigned short border_validity[4]; + unsigned int pixel_aspect_ratio[2]; + char reserved[28]; } DpxOrientationHeader; typedef struct { - char film_manufacturer_id[2]; - char film_type[2]; - char edge_code_perforation_offset[2]; - char edge_code_prefix[6]; - char edge_code_count[4]; - char film_format[32]; - unsigned int frame_position; - unsigned int sequence_length; - unsigned int held_count; - float frame_rate; - float shutter_angle; - char frame_identification[32]; - char slate_info[100]; - char reserved[56]; + char film_manufacturer_id[2]; + char film_type[2]; + char edge_code_perforation_offset[2]; + char edge_code_prefix[6]; + char edge_code_count[4]; + char film_format[32]; + unsigned int frame_position; + unsigned int sequence_length; + unsigned int held_count; + float frame_rate; + float shutter_angle; + char frame_identification[32]; + char slate_info[100]; + char reserved[56]; } DpxFilmHeader; typedef struct { - unsigned int time_code; - unsigned int user_bits; - unsigned char interlace; - unsigned char field_number; - unsigned char video_signal; - unsigned char padding; - float horizontal_sample_rate; - float vertical_sample_rate; - float frame_rate; - float time_offset; - float gamma; - float black_level; - float black_gain; - float breakpoint; - float white_level; - float integration_times; - unsigned char reserved[76]; + unsigned int time_code; + unsigned int user_bits; + unsigned char interlace; + unsigned char field_number; + unsigned char video_signal; + unsigned char padding; + float horizontal_sample_rate; + float vertical_sample_rate; + float frame_rate; + float time_offset; + float gamma; + float black_level; + float black_gain; + float breakpoint; + float white_level; + float integration_times; + unsigned char reserved[76]; } DpxTelevisionHeader; - typedef struct { - DpxFileHeader fileHeader; - DpxImageHeader imageHeader; - DpxOrientationHeader orientationHeader; - DpxFilmHeader filmHeader; - DpxTelevisionHeader televisionHeader; + DpxFileHeader fileHeader; + DpxImageHeader imageHeader; + DpxOrientationHeader orientationHeader; + DpxFilmHeader filmHeader; + DpxTelevisionHeader televisionHeader; } DpxMainHeader; void dpxSetVerbose(int verbosity); LogImageFile *dpxOpen(const unsigned char *byteStuff, int fromMemory, size_t bufferSize); -LogImageFile *dpxCreate(const char *filename, int width, int height, int bitsPerSample, int hasAlpha, int isLogarithmic, int referenceWhite, int referenceBlack, float gamma, const char *creator); +LogImageFile *dpxCreate(const char *filename, + int width, + int height, + int bitsPerSample, + int hasAlpha, + int isLogarithmic, + int referenceWhite, + int referenceBlack, + float gamma, + const char *creator); #ifdef __cplusplus } #endif -#endif /* __DPXLIB_H__ */ +#endif /* __DPXLIB_H__ */ |