Landing JPEG_BRANCH

git-svn-id: svn://10.0.0.236/trunk@6182 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pnunn%netscape.com
1998-07-22 21:17:01 +00:00
parent c544a8329e
commit a4d038762d
3 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 4; -*- */
/*******************************************************************************
* Source date: 3 Jun 1998 00:22:02 GMT
* Source date: 14 Jul 1998 19:28:58 GMT
* netscape/libimg/IMGCB module C stub file
* Generated by jmc version 1.8 -- DO NOT EDIT
******************************************************************************/

View File

@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 4; -*- */
/*******************************************************************************
* Source date: 3 Jun 1998 00:22:02 GMT
* Source date: 14 Jul 1998 19:28:58 GMT
* netscape/libimg/PSIMGCB module C stub file
* Generated by jmc version 1.8 -- DO NOT EDIT
******************************************************************************/

View File

@@ -24,8 +24,8 @@
#include "jinclude.h"
#include "jpeglib.h"
#include "jpegint.h"
#include "jerror.h"
#include "jpegint.h"
/* BEGIN code adapted from jpeg library */
@@ -67,7 +67,7 @@ il_setup_quantize(void)
the_sample_range_limit = table;
/* First segment of "simple" table: limit[x] = 0 for x < 0 */
MEMZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE));
XP_BZERO(table - (MAXJSAMPLE+1), (MAXJSAMPLE+1) * SIZEOF(JSAMPLE));
/* Main part of "simple" table: limit[x] = x */
for (i = 0; i <= MAXJSAMPLE; i++)
@@ -80,9 +80,9 @@ il_setup_quantize(void)
table[i] = MAXJSAMPLE;
/* Second half of post-IDCT table */
MEMZERO(table + (2 * (MAXJSAMPLE+1)),
XP_BZERO(table + (2 * (MAXJSAMPLE+1)),
(2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * SIZEOF(JSAMPLE));
MEMCOPY(table + (4 * (MAXJSAMPLE+1) - CENTERJSAMPLE),
XP_MEMCPY(table + (4 * (MAXJSAMPLE+1) - CENTERJSAMPLE),
the_sample_range_limit, CENTERJSAMPLE * SIZEOF(JSAMPLE));
return TRUE;