#include "camtypes.h"
#include "oilbitmap.h"
#include "bmpsrc.h"
#include "imjpeg.h"
#include "jpgsrc.h"
#include "jpgprgrs.h"
#include "jpgermgr.h"
Go to the source code of this file.
Classes | |
class | JPEGImportOptions |
Import options for the JPEG import filter. Allows a clean method of passing assorted parameters for the JPEG import filter. Specifically, that the calling class should give us a progress bar. Scope: public See Also: BitmapImportOptions. More... | |
Defines | |
#define | new CAM_DEBUG_NEW |
Functions | |
ADDR | FindBytes (ADDR pStart, UINT32 BufferSize, ADDR pBytes, UINT32 BytesSize) |
Finds BytesSize bytes starting at pBytes in pStart, which is BufferSize long Searches for a string of bytes Scope: static Notes: This should be put somewhere useful really. (Templates!!) It could also be more efficient if necessary. |
|
Definition at line 158 of file imjpeg.cpp. |
|
Finds BytesSize bytes starting at pBytes in pStart, which is BufferSize long Searches for a string of bytes Scope: static Notes: This should be put somewhere useful really. (Templates!!) It could also be more efficient if necessary.
Definition at line 279 of file imjpeg.cpp. 00280 { 00281 UINT32 BytesRemaining = BufferSize; 00282 00283 ADDR pCurrentStart = pStart; 00284 while (BytesRemaining - BytesSize > 0) 00285 { 00286 ADDR pFirstFound = (ADDR)memchr(pCurrentStart, pBytes[0], BytesRemaining - BytesSize + 1); 00287 if (pFirstFound == NULL) 00288 { 00289 return NULL; 00290 } 00291 if (memcmp(pFirstFound + 1, pBytes + 1, BytesSize - 1) == 0) 00292 { 00293 return pFirstFound; 00294 } 00295 pCurrentStart = pFirstFound + 1; 00296 BytesRemaining = BufferSize - (pCurrentStart - pStart); 00297 } 00298 return NULL; 00299 }
|