@@ -386,7 +386,8 @@ enum class [[nodiscard]] jpegls_errc
386
386
invalid_parameter_jpegls_preset_parameters = impl::CHARLS_JPEGLS_ERRC_INVALID_PARAMETER_JPEGLS_PRESET_PARAMETERS,
387
387
388
388
// / <summary>
389
- // / This error is returned when the stream contains an invalid color transformation segment or one that doesn't match with frame info.
389
+ // / This error is returned when the stream contains an invalid color transformation segment or one that doesn't match
390
+ // / with frame info.
390
391
// / </summary>
391
392
invalid_parameter_color_transformation = impl::CHARLS_JPEGLS_ERRC_INVALID_PARAMETER_COLOR_TRANSFORMATION,
392
393
@@ -622,7 +623,7 @@ enum class color_transformation
622
623
// / Defines the Application profile identifier options that can be used in a SPIFF header v2, as defined in ISO/IEC 10918-3,
623
624
// / F.1.2
624
625
// / </summary>
625
- enum class spiff_profile_id : int32_t
626
+ enum class spiff_profile_id : std:: int32_t
626
627
{
627
628
// / <summary>
628
629
// / No profile identified.
@@ -655,7 +656,7 @@ enum class spiff_profile_id : int32_t
655
656
// / <summary>
656
657
// / Defines the color space options that can be used in a SPIFF header v2, as defined in ISO/IEC 10918-3, F.2.1.1
657
658
// / </summary>
658
- enum class spiff_color_space : int32_t
659
+ enum class spiff_color_space : std:: int32_t
659
660
{
660
661
// / <summary>
661
662
// / Bi-level image. Each image sample is one bit: 0 = white and 1 = black.
@@ -730,7 +731,7 @@ enum class spiff_color_space : int32_t
730
731
// / <summary>
731
732
// / Defines the compression options that can be used in a SPIFF header v2, as defined in ISO/IEC 10918-3, F.2.1
732
733
// / </summary>
733
- enum class spiff_compression_type : int32_t
734
+ enum class spiff_compression_type : std:: int32_t
734
735
{
735
736
// / <summary>
736
737
// / Picture data is stored in component interleaved format, encoded at BPS per sample.
@@ -773,7 +774,7 @@ enum class spiff_compression_type : int32_t
773
774
// / <summary>
774
775
// / Defines the resolution units for the VRES and HRES parameters, as defined in ISO/IEC 10918-3, F.2.1
775
776
// / </summary>
776
- enum class spiff_resolution_units : int32_t
777
+ enum class spiff_resolution_units : std:: int32_t
777
778
{
778
779
// / <summary>
779
780
// / VRES and HRES are to be interpreted as aspect ratio.
@@ -799,7 +800,7 @@ enum class spiff_resolution_units : int32_t
799
800
// / <summary>
800
801
// / Official defined SPIFF tags defined in Table F.5 (ISO/IEC 10918-3)
801
802
// / </summary>
802
- enum class spiff_entry_tag : uint32_t
803
+ enum class spiff_entry_tag : std:: uint32_t
803
804
{
804
805
// / <summary>
805
806
// / This entry describes the opto-electronic transfer characteristics of the source image.
@@ -931,15 +932,15 @@ typedef int32_t charls_spiff_resolution_units;
931
932
struct charls_spiff_header CHARLS_FINAL
932
933
{
933
934
charls_spiff_profile_id profile_id; // P: Application profile, type I.8
934
- int32_t component_count; // NC: Number of color components, range [1, 255], type I.8
935
- uint32_t height; // HEIGHT: Number of lines in image, range [1, 4294967295], type I.32
936
- uint32_t width; // WIDTH: Number of samples per line, range [1, 4294967295], type I.32
935
+ CHARLS_STD int32_t component_count; // NC: Number of color components, range [1, 255], type I.8
936
+ CHARLS_STD uint32_t height; // HEIGHT: Number of lines in image, range [1, 4294967295], type I.32
937
+ CHARLS_STD uint32_t width; // WIDTH: Number of samples per line, range [1, 4294967295], type I.32
937
938
charls_spiff_color_space color_space; // S: Color space used by image data, type is I.8
938
- int32_t bits_per_sample; // BPS: Number of bits per sample, range (1, 2, 4, 8, 12, 16), type is I.8
939
+ CHARLS_STD int32_t bits_per_sample; // BPS: Number of bits per sample, range (1, 2, 4, 8, 12, 16), type is I.8
939
940
charls_spiff_compression_type compression_type; // C: Type of data compression used, type is I.8
940
941
charls_spiff_resolution_units resolution_units; // R: Type of resolution units, type is I.8
941
- uint32_t vertical_resolution; // VRES: Vertical resolution, range [1, 4294967295], type can be F or I.32
942
- uint32_t horizontal_resolution; // HRES: Horizontal resolution, range [1, 4294967295], type can be F or I.32
942
+ CHARLS_STD uint32_t vertical_resolution; // VRES: Vertical resolution, range [1, 4294967295], type can be F or I.32
943
+ CHARLS_STD uint32_t horizontal_resolution; // HRES: Horizontal resolution, range [1, 4294967295], type can be F or I.32
943
944
};
944
945
945
946
@@ -955,22 +956,22 @@ struct charls_frame_info CHARLS_FINAL
955
956
// / <summary>
956
957
// / Width of the image, range [1, 4294967295].
957
958
// / </summary>
958
- uint32_t width;
959
+ CHARLS_STD uint32_t width;
959
960
960
961
// / <summary>
961
962
// / Height of the image, range [1, 4294967295].
962
963
// / </summary>
963
- uint32_t height;
964
+ CHARLS_STD uint32_t height;
964
965
965
966
// / <summary>
966
967
// / Number of bits per sample, range [2, 16]
967
968
// / </summary>
968
- int32_t bits_per_sample;
969
+ CHARLS_STD int32_t bits_per_sample;
969
970
970
971
// / <summary>
971
972
// / Number of components contained in the frame, range [1, 255]
972
973
// / </summary>
973
- int32_t component_count;
974
+ CHARLS_STD int32_t component_count;
974
975
};
975
976
976
977
@@ -985,27 +986,27 @@ struct charls_jpegls_pc_parameters CHARLS_FINAL
985
986
// / Maximum possible value for any image sample in a scan.
986
987
// / This must be greater than or equal to the actual maximum value for the components in a scan.
987
988
// / </summary>
988
- int32_t maximum_sample_value;
989
+ CHARLS_STD int32_t maximum_sample_value;
989
990
990
991
// / <summary>
991
992
// / First quantization threshold value for the local gradients.
992
993
// / </summary>
993
- int32_t threshold1;
994
+ CHARLS_STD int32_t threshold1;
994
995
995
996
// / <summary>
996
997
// / Second quantization threshold value for the local gradients.
997
998
// / </summary>
998
- int32_t threshold2;
999
+ CHARLS_STD int32_t threshold2;
999
1000
1000
1001
// / <summary>
1001
1002
// / Third quantization threshold value for the local gradients.
1002
1003
// / </summary>
1003
- int32_t threshold3;
1004
+ CHARLS_STD int32_t threshold3;
1004
1005
1005
1006
// / <summary>
1006
1007
// / Value at which the counters A, B, and N are halved.
1007
1008
// / </summary>
1008
- int32_t reset_value;
1009
+ CHARLS_STD int32_t reset_value;
1009
1010
};
1010
1011
1011
1012
@@ -1017,17 +1018,17 @@ struct charls_mapping_table_info CHARLS_FINAL
1017
1018
// / <summary>
1018
1019
// / Identifier of the mapping table, range [1, 255].
1019
1020
// / </summary>
1020
- int32_t table_id;
1021
+ CHARLS_STD int32_t table_id;
1021
1022
1022
1023
// / <summary>
1023
1024
// / Width of a table entry in bytes, range [1, 255].
1024
1025
// / </summary>
1025
- int32_t entry_size;
1026
+ CHARLS_STD int32_t entry_size;
1026
1027
1027
1028
// / <summary>
1028
1029
// / Size of the table in bytes, range [1, 16711680]
1029
1030
// / </summary>
1030
- uint32_t data_size;
1031
+ CHARLS_STD uint32_t data_size;
1031
1032
};
1032
1033
1033
1034
@@ -1042,7 +1043,8 @@ struct charls_mapping_table_info CHARLS_FINAL
1042
1043
// / <param name="size">Size in bytes of the data of the COM segment.</param>
1043
1044
// / <param name="user_context">Free to use context information that can be set during the installation of the
1044
1045
// / handler.</param>
1045
- using charls_at_comment_handler = int32_t (CHARLS_API_CALLING_CONVENTION*)(const void * data, size_t size, void * user_context);
1046
+ using charls_at_comment_handler = std::int32_t (CHARLS_API_CALLING_CONVENTION*)(const void * data, std::size_t size,
1047
+ void * user_context);
1046
1048
1047
1049
// / <summary>
1048
1050
// / Function definition for a callback handler that will be called when an application data (APPn) segment is found.
@@ -1054,9 +1056,9 @@ using charls_at_comment_handler = int32_t(CHARLS_API_CALLING_CONVENTION*)(const
1054
1056
// / <param name="size">Size in bytes of the data of the APPn segment.</param>
1055
1057
// / <param name="user_context">Free to use context information that can be set during the installation of the
1056
1058
// / handler.</param>
1057
- using charls_at_application_data_handler = int32_t (CHARLS_API_CALLING_CONVENTION*)(int32_t application_data_id,
1058
- const void * data, size_t size,
1059
- void * user_context);
1059
+ using charls_at_application_data_handler = std:: int32_t (CHARLS_API_CALLING_CONVENTION*)(std:: int32_t application_data_id,
1060
+ const void * data, std:: size_t size,
1061
+ void * user_context);
1060
1062
1061
1063
CHARLS_EXPORT
1062
1064
namespace charls {
0 commit comments