/Users/craigcornelius/Projects/SPRING Mac Release 0.2/jpeg.cpp File Reference

#include "jpeg.h"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <dlfcn.h>
#include <iostream>

Include dependency graph for jpeg.cpp:

Go to the source code of this file.

Defines

#define Pegasus   (*Peg)
#define PegasusQuery   (*PegQuery)
#define PegasusLibInit   (*PegLibInit)
#define PegasusLibThreadInit   (*PegLibThreadInit)
#define PegasusLibThreadTerm   (*PegLibThreadTerm)
#define MB_OK   0

Functions

PRIVATE LONG defer_function (PIC_PARM *p, RESPONSE res)
void InitPegasus ()
void MessageBox (void *dummy1, char *msg, void *dummy2, int ok)
LONG ExpandJPEGTo24BitDIB (LPBYTE pbInputBuffer, DWORD dwInputLength, LPBYTE *ppbOutputBuffer, DWORD *pdwOutputLength)
LONG CompressToJPEG (LPBYTE pbInputBuffer, DWORD dwInputLength, LPBYTE *ppbOutputBuffer, DWORD *pdwOutputLength, int code)

Variables

const unsigned int MAX_ALLOWED = 64 * 1024
const int put_buff_size = DEFAULT_PUT_QUEUE_SIZE
bool pegasusInitialized = false
void * Peg_handle
PUBLIC RESPONSE
DLLEXPORTWINAPI(* 
Peg )(PIC_PARM PICHUGE *p, REQUEST req)
PUBLIC BOOL
DLLEXPORTWINAPI(* 
PegQuery )(PIC_PARM PICHUGE *p)
PUBLIC LONG
DLLEXPORTWINAPI(* 
PegLoad )(OPERATION Op, LONG ParmVer, char PICFAR *Path)
PUBLIC LONG
DLLEXPORTWINAPI(* 
PegLoadFromRes )(OPERATION Op, LONG ParmVer, char PICFAR *Path, DWORD hInstance)
PUBLIC BOOL
DLLEXPORTWINAPI(* 
PegLibInit )(DWORD hInstance)
PUBLIC void
DLLEXPORTWINAPI(* 
PegLibTerm )(void)
PUBLIC void
DLLEXPORTWINAPI(* 
PegLibThreadInit )(void)
PUBLIC void
DLLEXPORTWINAPI(* 
PegLibThreadTerm )(void)


Define Documentation

#define MB_OK   0

Definition at line 120 of file jpeg.cpp.

#define Pegasus   (*Peg)

Definition at line 101 of file jpeg.cpp.

#define PegasusLibInit   (*PegLibInit)

Definition at line 103 of file jpeg.cpp.

#define PegasusLibThreadInit   (*PegLibThreadInit)

Definition at line 104 of file jpeg.cpp.

#define PegasusLibThreadTerm   (*PegLibThreadTerm)

Definition at line 105 of file jpeg.cpp.

#define PegasusQuery   (*PegQuery)

Definition at line 102 of file jpeg.cpp.


Function Documentation

LONG CompressToJPEG ( LPBYTE  pbInputBuffer,
DWORD  dwInputLength,
LPBYTE *  ppbOutputBuffer,
DWORD *  pdwOutputLength,
int  code 
)

Definition at line 230 of file jpeg.cpp.

PRIVATE LONG defer_function ( PIC_PARM *  p,
RESPONSE  res 
)

Definition at line 111 of file jpeg.cpp.

LONG ExpandJPEGTo24BitDIB ( LPBYTE  pbInputBuffer,
DWORD  dwInputLength,
LPBYTE *  ppbOutputBuffer,
DWORD *  pdwOutputLength 
)

Definition at line 134 of file jpeg.cpp.

void InitPegasus (  ) 

Definition at line 62 of file jpeg.cpp.

void MessageBox ( void *  dummy1,
char *  msg,
void *  dummy2,
int  ok 
)

Definition at line 118 of file jpeg.cpp.


Variable Documentation

const unsigned int MAX_ALLOWED = 64 * 1024

Definition at line 28 of file jpeg.cpp.

PUBLIC RESPONSE DLLEXPORTWINAPI(* Peg)(PIC_PARM PICHUGE *p, REQUEST req)

Definition at line 42 of file jpeg.cpp.

void* Peg_handle

Definition at line 41 of file jpeg.cpp.

bool pegasusInitialized = false

Definition at line 40 of file jpeg.cpp.

PUBLIC BOOL DLLEXPORTWINAPI(* PegLibInit)(DWORD hInstance)

Definition at line 54 of file jpeg.cpp.

PUBLIC void DLLEXPORTWINAPI(* PegLibTerm)(void)

Definition at line 56 of file jpeg.cpp.

PUBLIC void DLLEXPORTWINAPI(* PegLibThreadInit)(void)

Definition at line 58 of file jpeg.cpp.

PUBLIC void DLLEXPORTWINAPI(* PegLibThreadTerm)(void)

Definition at line 60 of file jpeg.cpp.

PUBLIC LONG DLLEXPORTWINAPI(* PegLoad)(OPERATION Op, LONG ParmVer, char PICFAR *Path)

Definition at line 44 of file jpeg.cpp.

PUBLIC LONG DLLEXPORTWINAPI(* PegLoadFromRes)(OPERATION Op, LONG ParmVer, char PICFAR *Path, DWORD hInstance)

Definition at line 49 of file jpeg.cpp.

PUBLIC BOOL DLLEXPORTWINAPI(* PegQuery)(PIC_PARM PICHUGE *p)

Definition at line 43 of file jpeg.cpp.

const int put_buff_size = DEFAULT_PUT_QUEUE_SIZE

Definition at line 29 of file jpeg.cpp.


Generated on Thu Aug 30 11:03:41 2007 for SPRING Mac by  doxygen 1.5.3