comparison tools/lib64fmts.c @ 1931:410679d2fe8a

"Enable" the image->c64 bitmap conversion path in gfxconv. It does not work without the necessary bits elsewhere, though. Also add DMC64ImageConvSpec structure for delivering conversion parameters, though it is not yet used either.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 28 Jun 2018 17:26:30 +0300
parents c048da352279
children f530a858c06f
comparison
equal deleted inserted replaced
1930:c048da352279 1931:410679d2fe8a
928 (void) rasterX; 928 (void) rasterX;
929 return (c1 * C64_NCOLORS) + c2; 929 return (c1 * C64_NCOLORS) + c2;
930 } 930 }
931 931
932 932
933 static int fmtConvertECIBMP2Image(DMImage *dst, const DMC64Image *src, const DMC64ImageFormat *fmt) 933 static int fmtConvertECIBMP2Image(DMImage *dst, const DMC64Image *src,
934 const DMC64ImageFormat *fmt, const DMC64ImageConvSpec *spec)
934 { 935 {
935 if (!dmSetMixedColorC64Palette(dst)) 936 if (!dmSetMixedColorC64Palette(dst))
936 return DMERR_MALLOC; 937 return DMERR_MALLOC;
937 938
938 return dmC64ConvertGenericBMP2Image(dst, src, fmt); 939 return dmC64ConvertGenericBMP2Image(dst, src, fmt, spec);
939 } 940 }
940 941
941 942
942 static int fmtProbeECIPacked(const DMGrowBuf *buf, const DMC64ImageFormat *fmt) 943 static int fmtProbeECIPacked(const DMGrowBuf *buf, const DMC64ImageFormat *fmt)
943 { 944 {