Skip to content

Commit 77121b3

Browse files
besentvjulliard
authored andcommitted
gdiplus: Add pixel conversions to 4bpp indexed.
Signed-off-by: Bernhard Kölbl <[email protected]> Signed-off-by: Esme Povirk <[email protected]> Signed-off-by: Alexandre Julliard <[email protected]>
1 parent 9321d52 commit 77121b3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

dlls/gdiplus/image.c

+22
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,8 @@ GpStatus convert_pixels(INT width, INT height,
726726
{
727727
case PixelFormat1bppIndexed:
728728
convert_rgb_to_indexed(getpixel_16bppGrayScale, setpixel_1bppIndexed);
729+
case PixelFormat4bppIndexed:
730+
convert_rgb_to_indexed(getpixel_16bppGrayScale, setpixel_4bppIndexed);
729731
case PixelFormat8bppIndexed:
730732
convert_rgb_to_indexed(getpixel_16bppGrayScale, setpixel_8bppIndexed);
731733
case PixelFormat16bppRGB555:
@@ -755,6 +757,8 @@ GpStatus convert_pixels(INT width, INT height,
755757
{
756758
case PixelFormat1bppIndexed:
757759
convert_rgb_to_indexed(getpixel_16bppRGB555, setpixel_1bppIndexed);
760+
case PixelFormat4bppIndexed:
761+
convert_rgb_to_indexed(getpixel_16bppRGB555, setpixel_4bppIndexed);
758762
case PixelFormat8bppIndexed:
759763
convert_rgb_to_indexed(getpixel_16bppRGB555, setpixel_8bppIndexed);
760764
case PixelFormat16bppGrayScale:
@@ -784,6 +788,8 @@ GpStatus convert_pixels(INT width, INT height,
784788
{
785789
case PixelFormat1bppIndexed:
786790
convert_rgb_to_indexed(getpixel_16bppRGB565, setpixel_1bppIndexed);
791+
case PixelFormat4bppIndexed:
792+
convert_rgb_to_indexed(getpixel_16bppRGB565, setpixel_4bppIndexed);
787793
case PixelFormat8bppIndexed:
788794
convert_rgb_to_indexed(getpixel_16bppRGB565, setpixel_8bppIndexed);
789795
case PixelFormat16bppGrayScale:
@@ -813,6 +819,8 @@ GpStatus convert_pixels(INT width, INT height,
813819
{
814820
case PixelFormat1bppIndexed:
815821
convert_rgb_to_indexed(getpixel_16bppARGB1555, setpixel_1bppIndexed);
822+
case PixelFormat4bppIndexed:
823+
convert_rgb_to_indexed(getpixel_16bppARGB1555, setpixel_4bppIndexed);
816824
case PixelFormat8bppIndexed:
817825
convert_rgb_to_indexed(getpixel_16bppARGB1555, setpixel_8bppIndexed);
818826
case PixelFormat16bppGrayScale:
@@ -842,6 +850,8 @@ GpStatus convert_pixels(INT width, INT height,
842850
{
843851
case PixelFormat1bppIndexed:
844852
convert_rgb_to_indexed(getpixel_24bppRGB, setpixel_1bppIndexed);
853+
case PixelFormat4bppIndexed:
854+
convert_rgb_to_indexed(getpixel_24bppRGB, setpixel_4bppIndexed);
845855
case PixelFormat8bppIndexed:
846856
convert_rgb_to_indexed(getpixel_24bppRGB, setpixel_8bppIndexed);
847857
case PixelFormat16bppGrayScale:
@@ -871,6 +881,8 @@ GpStatus convert_pixels(INT width, INT height,
871881
{
872882
case PixelFormat1bppIndexed:
873883
convert_rgb_to_indexed(getpixel_32bppRGB, setpixel_1bppIndexed);
884+
case PixelFormat4bppIndexed:
885+
convert_rgb_to_indexed(getpixel_32bppRGB, setpixel_4bppIndexed);
874886
case PixelFormat8bppIndexed:
875887
convert_rgb_to_indexed(getpixel_32bppRGB, setpixel_8bppIndexed);
876888
case PixelFormat16bppGrayScale:
@@ -900,6 +912,8 @@ GpStatus convert_pixels(INT width, INT height,
900912
{
901913
case PixelFormat1bppIndexed:
902914
convert_rgb_to_indexed(getpixel_32bppARGB, setpixel_1bppIndexed);
915+
case PixelFormat4bppIndexed:
916+
convert_rgb_to_indexed(getpixel_32bppARGB, setpixel_4bppIndexed);
903917
case PixelFormat8bppIndexed:
904918
convert_rgb_to_indexed(getpixel_32bppARGB, setpixel_8bppIndexed);
905919
case PixelFormat16bppGrayScale:
@@ -928,6 +942,8 @@ GpStatus convert_pixels(INT width, INT height,
928942
{
929943
case PixelFormat1bppIndexed:
930944
convert_rgb_to_indexed(getpixel_32bppPARGB, setpixel_1bppIndexed);
945+
case PixelFormat4bppIndexed:
946+
convert_rgb_to_indexed(getpixel_32bppPARGB, setpixel_4bppIndexed);
931947
case PixelFormat8bppIndexed:
932948
convert_rgb_to_indexed(getpixel_32bppPARGB, setpixel_8bppIndexed);
933949
case PixelFormat16bppGrayScale:
@@ -957,6 +973,8 @@ GpStatus convert_pixels(INT width, INT height,
957973
{
958974
case PixelFormat1bppIndexed:
959975
convert_rgb_to_indexed(getpixel_48bppRGB, setpixel_1bppIndexed);
976+
case PixelFormat4bppIndexed:
977+
convert_rgb_to_indexed(getpixel_48bppRGB, setpixel_4bppIndexed);
960978
case PixelFormat8bppIndexed:
961979
convert_rgb_to_indexed(getpixel_48bppRGB, setpixel_8bppIndexed);
962980
case PixelFormat16bppGrayScale:
@@ -986,6 +1004,8 @@ GpStatus convert_pixels(INT width, INT height,
9861004
{
9871005
case PixelFormat1bppIndexed:
9881006
convert_rgb_to_indexed(getpixel_64bppARGB, setpixel_1bppIndexed);
1007+
case PixelFormat4bppIndexed:
1008+
convert_rgb_to_indexed(getpixel_64bppARGB, setpixel_4bppIndexed);
9891009
case PixelFormat8bppIndexed:
9901010
convert_rgb_to_indexed(getpixel_64bppARGB, setpixel_8bppIndexed);
9911011
case PixelFormat16bppGrayScale:
@@ -1015,6 +1035,8 @@ GpStatus convert_pixels(INT width, INT height,
10151035
{
10161036
case PixelFormat1bppIndexed:
10171037
convert_rgb_to_indexed(getpixel_64bppPARGB, setpixel_1bppIndexed);
1038+
case PixelFormat4bppIndexed:
1039+
convert_rgb_to_indexed(getpixel_64bppPARGB, setpixel_4bppIndexed);
10181040
case PixelFormat8bppIndexed:
10191041
convert_rgb_to_indexed(getpixel_64bppPARGB, setpixel_8bppIndexed);
10201042
case PixelFormat16bppGrayScale:

0 commit comments

Comments
 (0)