@@ -117,6 +117,7 @@ namespace
117
117
OPT_TGAZEROALPHA,
118
118
OPT_WIC_LOSSLESS,
119
119
OPT_WIC_MULTIFRAME,
120
+ OPT_WIC_UNCOMPRESSED,
120
121
OPT_NOLOGO,
121
122
OPT_TIMING,
122
123
OPT_SEPALPHA,
@@ -313,6 +314,7 @@ namespace
313
314
{ L" vertical-flip" , OPT_VFLIP },
314
315
{ L" wic-lossless" , OPT_WIC_LOSSLESS },
315
316
{ L" wic-multiframe" , OPT_WIC_MULTIFRAME },
317
+ { L" wic-uncompressed" , OPT_WIC_UNCOMPRESSED },
316
318
{ L" wic-quality" , OPT_WIC_QUALITY },
317
319
{ L" width" , OPT_WIDTH },
318
320
{ L" x2-bias" , OPT_X2_BIAS },
@@ -593,7 +595,6 @@ namespace
593
595
#ifdef USE_OPENEXR
594
596
{ L" exr" , CODEC_EXR },
595
597
#endif
596
- { L" heic" , WIC_CODEC_HEIF },
597
598
{ L" heif" , WIC_CODEC_HEIF },
598
599
{ nullptr , CODEC_DDS }
599
600
};
@@ -829,10 +830,11 @@ namespace
829
830
L" (TGA output only)\n "
830
831
L" -tga20 Write file including TGA 2.0 extension area\n "
831
832
L" \n "
832
- L" (BMP, PNG, JPG, TIF, WDP output only)\n "
833
+ L" (BMP, PNG, JPG, TIF, WDP, and HIEF output only)\n "
833
834
L" -wicq <quality>, --wic-quality <quality>\n "
834
835
L" When writing images with WIC use quality (0.0 to 1.0)\n "
835
836
L" --wic-lossless When writing images with WIC use lossless mode\n "
837
+ L" --wic-uncompressed When writing images with WIC use uncompressed mode\n "
836
838
L" --wic-multiframe When writing images with WIC encode multiframe images\n "
837
839
L" \n "
838
840
L" -nologo suppress copyright message\n "
@@ -2209,7 +2211,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
2209
2211
}
2210
2212
else if (_wcsicmp (ext.c_str (), L" .webp" ) == 0 )
2211
2213
{
2212
- wprintf (L" INFO: This format requires installing the WEBP Image Extensions - https://www .microsoft.com/p/webp-image-extensions/9pg2dk419drg \n " );
2214
+ wprintf (L" INFO: This format requires installing the WEBP Image Extensions - https://apps .microsoft.com/detail/9PG2DK419DRG \n " );
2213
2215
}
2214
2216
}
2215
2217
continue ;
@@ -3808,7 +3810,8 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
3808
3810
hr = SaveToWICFile (img, nimages, WIC_FLAGS_NONE, GetWICCodec (codec), destName.c_str (), nullptr ,
3809
3811
[&](IPropertyBag2* props)
3810
3812
{
3811
- const bool wicLossless = (dwOptions & (UINT64_C (1 ) << OPT_WIC_LOSSLESS)) != 0 ;
3813
+ const bool lossless = (dwOptions & (UINT64_C (1 ) << OPT_WIC_LOSSLESS)) != 0 ;
3814
+ const bool uncompressed = (dwOptions & (UINT64_C (1 ) << OPT_WIC_UNCOMPRESSED)) != 0 ;
3812
3815
3813
3816
switch (FileType)
3814
3817
{
@@ -3828,7 +3831,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
3828
3831
{
3829
3832
PROPBAG2 options = {};
3830
3833
VARIANT varValues = {};
3831
- if (wicLossless )
3834
+ if (uncompressed )
3832
3835
{
3833
3836
options.pstrName = const_cast <wchar_t *>(L" TiffCompressionMethod" );
3834
3837
varValues.vt = VT_UI1;
@@ -3848,7 +3851,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
3848
3851
{
3849
3852
PROPBAG2 options = {};
3850
3853
VARIANT varValues = {};
3851
- if (wicLossless )
3854
+ if (uncompressed )
3852
3855
{
3853
3856
options.pstrName = const_cast <wchar_t *>(L" HeifCompressionMethod" );
3854
3857
varValues.vt = VT_UI1;
@@ -3874,7 +3877,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
3874
3877
{
3875
3878
PROPBAG2 options = {};
3876
3879
VARIANT varValues = {};
3877
- if (wicLossless )
3880
+ if (lossless )
3878
3881
{
3879
3882
options.pstrName = const_cast <wchar_t *>(L" Lossless" );
3880
3883
varValues.vt = VT_BOOL;
0 commit comments