Fixed compilation warnings.
This commit is contained in:
@@ -26,10 +26,10 @@
|
||||
#include "texusint.h"
|
||||
|
||||
static int
|
||||
dithmat[4][4] = { 0, 8, 2, 10,
|
||||
12, 4, 14, 6,
|
||||
3, 11, 1, 9,
|
||||
15, 7, 13, 5 };
|
||||
dithmat[4][4] = { {0, 8, 2, 10},
|
||||
{12, 4, 14, 6},
|
||||
{3, 11, 1, 9},
|
||||
{15, 7, 13, 5} };
|
||||
|
||||
static struct {
|
||||
int yhist[256], ihist[256], qhist[256];
|
||||
|
||||
@@ -409,7 +409,7 @@ txMipNccNNet(TxMip *pxMip, TxMip *txMip, int format, FxU32 dither, FxU32 comp)
|
||||
txMapPal256toYAB((FxU32 *)yabTable, (FxU8 *)map, ncolors, (FxU32 *)pxMip->pal);
|
||||
if( txVerbose )
|
||||
{
|
||||
printf("eMax=(%3d%3d%3d)...eAvg=(%3d%3d%3d)\n",
|
||||
printf("eMax=(%3ld%3ld%3ld)...eAvg=(%3ld%3ld%3ld)\n",
|
||||
errG, errR, errB,
|
||||
totG/ncolors, totR/ncolors, totB/ncolors
|
||||
);
|
||||
|
||||
@@ -28,10 +28,10 @@
|
||||
#include "texusint.h"
|
||||
|
||||
static int
|
||||
dithmat[4][4] = { 0, 8, 2, 10,
|
||||
12, 4, 14, 6,
|
||||
3, 11, 1, 9,
|
||||
15, 7, 13, 5 };
|
||||
dithmat[4][4] = { {0, 8, 2, 10},
|
||||
{12, 4, 14, 6},
|
||||
{3, 11, 1, 9},
|
||||
{15, 7, 13, 5} };
|
||||
|
||||
// for error diffusion.
|
||||
static int errR[MAX_TEXWIDTH], errG[MAX_TEXWIDTH], errB[MAX_TEXWIDTH];
|
||||
|
||||
Reference in New Issue
Block a user