📄 jpglib.c
字号:
// WWW1 start
#include "general.h"
#include "cardimpt.h"
#include "libfunc.h"
// WWW1 end
void File_JpgConvertToZizag( UCHAR *src, UCHAR *dst ) USING_0
{
BYTE k = 0;
for ( k = 0; k < 64 ; k++ )
dst[k] = src[zigzagTable[k]];
return;
}
UCHAR *File_GetQTable( BYTE qTable ) USING_0
{
switch(qTable)
{
case K_Q50:
return QTable50;
case K_Q70:
return QTable70;
case K_Q80:
return QTable80;
case K_Q85:
return QTable85;
case K_Q88:
return QTable88;
case K_Q90:
return QTable90;
case K_Q92:
return QTable92;
case K_Q95:
return QTable95;
}
/* if ( qTable == K_Q50 )
return QTable50;
else if ( qTable == K_Q70 )
return QTable70;
else if ( qTable == K_Q85 )
return QTable85;
else
return QTable80;*/
return QTable95; // WWWW
}
USHORT File_GetActImageLength( USHORT length, USHORT subsample, BYTE bDataType ) USING_0
{
USHORT factor;
if ( bDataType == K_File_DataType_YUV422 )
factor = 1L << ( subsample + 3 );
else
factor = 1L << ( subsample + 4 );
return length = length / factor * factor;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -