source: branches/v2.9/JPGPROC/source/jpgproc.h@ 20

Last change on this file since 20 was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

File size: 4.0 KB
Line 
1/*
2 * Copyright (c) Chris Wohlgemuth 2002
3 * All rights reserved.
4 *
5 * http://www.geocities.com/SiliconValley/Sector/5785/
6 * http://www.os2world.com/cdwriting
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. The authors name may not be used to endorse or promote products
17 * derived from this software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 */
32
33/********************** START OF SPECIFICATIONS *************************/
34/* */
35/* COPYRIGHT: */
36/* Chris Wohlgemuth 2002 */
37/* All Rights Reserved */
38/* */
39/* ABSTRACT: This file is the include/header file for use with the */
40/* JPG IOProc */
41/* */
42/*********************** END OF SPECIFICATIONS **************************/
43#include "gbm.h"
44
45#pragma pack(2)
46
47static char pszJPGExt [] = "JPG";
48
49typedef RGB FAR *PRGB;
50
51
52/****************************************
53 * IOProc information structure, used for every file opened
54 * by this IOProc
55 ****************************************/
56typedef struct _JPGFILESTATUS
57{
58 GBM gbm;
59 int ft; /* GBM index for the proc to use */
60 int fHandleGBM;
61
62 PBYTE lpRGBBuf; /* 24-bit RGB Buf for translated data */
63 ULONG ulRGBTotalBytes; /* Length of 24-bit RGBBuf */
64
65 LONG lImgBytePos; /* Current pos in RGB buf */
66
67 ULONG ulImgTotalBytes;
68 BOOL bSetHeader; /* TRUE if header set in WRITE mode*/
69
70 MMIMAGEHEADER mmImgHdr; /* Standard image header */
71} JPGFILESTATUS;
72typedef JPGFILESTATUS FAR *PJPGFILESTATUS;
73
74#define MMOTION_HEADER_SIZE sizeof (MMOTIONHEADER)
75#define ONE_BLOCK 6L
76#define FOURCC_JPG mmioFOURCC('J', 'P', 'E', 'G')
77
78/* RC file defines */
79
80#define HEX_FOURCC_JPG 0x4745504aL
81
82#define MMOTION_IOPROC_NAME_TABLE 7000
83#define MMOTION_NLS_CHARSET_INFO 7500
84
85#ifndef BITT_NONE
86#define BITT_NONE 0
87#define BI_NONE 0
88#endif
89
90/**********************
91 * Function Declarations
92 **********************/
93LONG EXPENTRY IOProc_Entry (PVOID pmmioStr, USHORT usMsg,
94 LONG lParam1, LONG lParam2);
95
96
97LONG GetFormatString (LONG lSearchId,
98 PSZ pszFormatString,
99 LONG lBytes);
100
101LONG GetFormatStringLength (LONG lSearchId,
102 PLONG plNameLength);
103
104ULONG APIENTRY GetNLSData (PULONG, PULONG);
105
106#pragma pack()
Note: See TracBrowser for help on using the repository browser.