Last change
on this file since 1468 was 1468, checked in by paynter, 24 years ago |
The wv Packages from www.wvware.com is used to convert Word documents into
HTML. This is an adaptation of wv version 0.5.44 for greenstone; it is
called by the gsConvert.pl script.
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
610 bytes
|
Line | |
---|
1 | #include <stdlib.h>
|
---|
2 | #include <stdio.h>
|
---|
3 | #include "wv.h"
|
---|
4 |
|
---|
5 | void wvGetDCS_internal(DCS *item,FILE *fd, U8 *pointer)
|
---|
6 | {
|
---|
7 | U16 temp16;
|
---|
8 | temp16 = dread_16ubit(fd,&pointer);
|
---|
9 | item->fdct = temp16 & 0x0007;
|
---|
10 | item->count = (temp16 & 0x00F8) >> 3;
|
---|
11 | item->reserved = (temp16 & 0xff00) >> 8;
|
---|
12 | }
|
---|
13 |
|
---|
14 | void wvGetDCS(DCS *item,FILE *fd)
|
---|
15 | {
|
---|
16 | wvGetDCS_internal(item,fd,NULL);
|
---|
17 | }
|
---|
18 |
|
---|
19 | void wvGetDCSFromBucket(DCS *item,U8 *pointer)
|
---|
20 | {
|
---|
21 | wvGetDCS_internal(item,NULL,pointer);
|
---|
22 | }
|
---|
23 |
|
---|
24 | void wvCopyDCS(DCS *dest,DCS *src)
|
---|
25 | {
|
---|
26 | memcpy(dest,src,sizeof(DCS));
|
---|
27 | }
|
---|
28 |
|
---|
29 | void wvInitDCS(DCS *item)
|
---|
30 | {
|
---|
31 | item->fdct = 0;
|
---|
32 | item->count = 0;
|
---|
33 | item->reserved = 0;
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.