OLD | NEW |
1 #if !defined(_FX_JPEG_TURBO_) | |
2 /* | 1 /* |
3 * jctrans.c | 2 * jctrans.c |
4 * | 3 * |
5 * Copyright (C) 1995-1998, Thomas G. Lane. | 4 * Copyright (C) 1995-1998, Thomas G. Lane. |
6 * This file is part of the Independent JPEG Group's software. | 5 * This file is part of the Independent JPEG Group's software. |
7 * For conditions of distribution and use, see the accompanying README file. | 6 * For conditions of distribution and use, see the accompanying README file. |
8 * | 7 * |
9 * This file contains library routines for transcoding compression, | 8 * This file contains library routines for transcoding compression, |
10 * that is, writing raw DCT coefficient arrays to an output JPEG file. | 9 * that is, writing raw DCT coefficient arrays to an output JPEG file. |
11 * The routines in jcapimin.c will also be needed by a transcoder. | 10 * The routines in jcapimin.c will also be needed by a transcoder. |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 | 379 |
381 /* Allocate and pre-zero space for dummy DCT blocks. */ | 380 /* Allocate and pre-zero space for dummy DCT blocks. */ |
382 buffer = (JBLOCKROW) | 381 buffer = (JBLOCKROW) |
383 (*cinfo->mem->alloc_large) ((j_common_ptr) cinfo, JPOOL_IMAGE, | 382 (*cinfo->mem->alloc_large) ((j_common_ptr) cinfo, JPOOL_IMAGE, |
384 C_MAX_BLOCKS_IN_MCU * SIZEOF(JBLOCK)); | 383 C_MAX_BLOCKS_IN_MCU * SIZEOF(JBLOCK)); |
385 jzero_far((void FAR *) buffer, C_MAX_BLOCKS_IN_MCU * SIZEOF(JBLOCK)); | 384 jzero_far((void FAR *) buffer, C_MAX_BLOCKS_IN_MCU * SIZEOF(JBLOCK)); |
386 for (i = 0; i < C_MAX_BLOCKS_IN_MCU; i++) { | 385 for (i = 0; i < C_MAX_BLOCKS_IN_MCU; i++) { |
387 coef->dummy_buffer[i] = buffer + i; | 386 coef->dummy_buffer[i] = buffer + i; |
388 } | 387 } |
389 } | 388 } |
390 | |
391 #endif //_FX_JPEG_TURBO_ | |
OLD | NEW |