A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sumatrapdfreader/sumatrapdf/commit/683babb7e0f8ae41e49d19e758664c467747d563 below:

update to latest mupdf · sumatrapdfreader/sumatrapdf@683babb · GitHub

154 files changed

+26831

-25930

lines changed Original file line number Diff line number Diff line change

@@ -19,7 +19,7 @@

19 19

and tar files are included.

20 20

*/

21 21 22 -

typedef struct fz_archive_s fz_archive;

22 +

typedef struct fz_archive fz_archive;

23 23 24 24

/*

25 25

Open a zip or tar archive

@@ -201,7 +201,7 @@ fz_archive *fz_open_zip_archive_with_stream(fz_context *ctx, fz_stream *file);

201 201

implementation.

202 202

*/

203 203 204 -

typedef struct fz_zip_writer_s fz_zip_writer;

204 +

typedef struct fz_zip_writer fz_zip_writer;

205 205 206 206

/*

207 207

Create a new zip writer that writes to a given file.

@@ -243,7 +243,7 @@ void fz_drop_zip_writer(fz_context *ctx, fz_zip_writer *zip);

243 243

Implementation details: Subject to change.

244 244

*/

245 245 246 -

struct fz_archive_s

246 +

struct fz_archive

247 247

{

248 248

fz_stream *file;

249 249

const char *format;

Original file line number Diff line number Diff line change

@@ -8,7 +8,7 @@

8 8

/*

9 9

fz_band_writer

10 10

*/

11 -

typedef struct fz_band_writer_s fz_band_writer;

11 +

typedef struct fz_band_writer fz_band_writer;

12 12 13 13

/*

14 14

Cause a band writer to write the header for

@@ -44,6 +44,12 @@ void fz_write_header(fz_context *ctx, fz_band_writer *writer, int w, int h, int

44 44

*/

45 45

void fz_write_band(fz_context *ctx, fz_band_writer *writer, int stride, int band_height, const unsigned char *samples);

46 46 47 +

/*

48 +

Drop the reference to the band writer, causing it to be

49 +

destroyed.

50 + 51 +

Never throws an exception.

52 +

*/

47 53

void fz_drop_band_writer(fz_context *ctx, fz_band_writer *writer);

48 54 49 55

/* Implementation details: subject to change. */

@@ -53,7 +59,7 @@ typedef void (fz_write_band_fn)(fz_context *ctx, fz_band_writer *writer, int str

53 59

typedef void (fz_write_trailer_fn)(fz_context *ctx, fz_band_writer *writer);

54 60

typedef void (fz_drop_band_writer_fn)(fz_context *ctx, fz_band_writer *writer);

55 61 56 -

struct fz_band_writer_s

62 +

struct fz_band_writer

57 63

{

58 64

fz_drop_band_writer_fn *drop;

59 65

fz_write_header_fn *header;

Original file line number Diff line number Diff line change

@@ -22,15 +22,17 @@

22 22 23 23

#include "mupdf/fitz/system.h"

24 24 25 -

typedef enum fz_bidi_direction_e

25 +

/* Implementation details: subject to change. */

26 + 27 +

typedef enum

26 28

{

27 29

FZ_BIDI_LTR = 0,

28 30

FZ_BIDI_RTL = 1,

29 31

FZ_BIDI_NEUTRAL = 2

30 32

}

31 33

fz_bidi_direction;

32 34 33 -

typedef enum fz_bidi_flags_e

35 +

typedef enum

34 36

{

35 37

FZ_BIDI_CLASSIFY_WHITE_SPACE = 1,

36 38

FZ_BIDI_REPLACE_TAB = 2

Original file line number Diff line number Diff line change

@@ -9,10 +9,33 @@

9 9

Bitmaps have 1 bit per component. Only used for creating

10 10

halftoned versions of contone buffers, and saving out. Samples

11 11

are stored msb first, akin to pbms.

12 + 13 +

The internals of this struct are considered implementation

14 +

details and subject to change. Where possible, accessor

15 +

functions should be used in preference.

12 16

*/

13 -

typedef struct fz_bitmap_s fz_bitmap;

17 +

typedef struct

18 +

{

19 +

int refs;

20 +

int w, h, stride, n;

21 +

int xres, yres;

22 +

unsigned char *samples;

23 +

} fz_bitmap;

24 + 25 +

/*

26 +

Take an additional reference to the bitmap. The same pointer

27 +

is returned.

14 28 29 +

Never throws exceptions.

30 +

*/

15 31

fz_bitmap *fz_keep_bitmap(fz_context *ctx, fz_bitmap *bit);

32 + 33 +

/*

34 +

Drop a reference to the bitmap. When the reference count reaches

35 +

zero, the bitmap will be destroyed.

36 + 37 +

Never throws exceptions.

38 +

*/

16 39

void fz_drop_bitmap(fz_context *ctx, fz_bitmap *bit);

17 40 18 41

/*

@@ -22,7 +45,7 @@ void fz_drop_bitmap(fz_context *ctx, fz_bitmap *bit);

22 45

for operating on 1 component plus alpha pixmaps (where the alpha

23 46

is ignored). This is signified by a fz_halftone pointer to NULL.

24 47

*/

25 -

typedef struct fz_halftone_s fz_halftone;

48 +

typedef struct fz_halftone fz_halftone;

26 49 27 50

/*

28 51

Make a bitmap from a pixmap and a halftone.

@@ -85,6 +108,11 @@ fz_bitmap *fz_new_bitmap(fz_context *ctx, int w, int h, int n, int xres, int yre

85 108

*/

86 109

void fz_bitmap_details(fz_bitmap *bitmap, int *w, int *h, int *n, int *stride);

87 110 111 +

/*

112 +

Set the entire bitmap to 0.

113 + 114 +

Never throws exceptions.

115 +

*/

88 116

void fz_clear_bitmap(fz_context *ctx, fz_bitmap *bit);

89 117 90 118

/*

@@ -99,17 +127,20 @@ void fz_clear_bitmap(fz_context *ctx, fz_bitmap *bit);

99 127

*/

100 128

fz_halftone *fz_default_halftone(fz_context *ctx, int num_comps);

101 129 130 +

/*

131 +

Take an additional reference to the halftone. The same pointer

132 +

is returned.

133 + 134 +

Never throws exceptions.

135 +

*/

102 136

fz_halftone *fz_keep_halftone(fz_context *ctx, fz_halftone *half);

103 -

void fz_drop_halftone(fz_context *ctx, fz_halftone *ht);

104 137 105 -

/* Implementation details: subject to change. */

138 +

/*

139 +

Drop a reference to the halftone. When the reference count

140 +

reaches zero, the halftone is destroyed.

106 141 107 -

struct fz_bitmap_s

108 -

{

109 -

int refs;

110 -

int w, h, stride, n;

111 -

int xres, yres;

112 -

unsigned char *samples;

113 -

};

142 +

Never throws exceptions.

143 +

*/

144 +

void fz_drop_halftone(fz_context *ctx, fz_halftone *ht);

114 145 115 146

#endif

Original file line number Diff line number Diff line change

@@ -10,10 +10,34 @@

10 10 11 11

Buffers have a capacity (the number of bytes storage immediately

12 12

available) and a current size.

13 + 14 +

The contents of the structure are considered implementation

15 +

details and are subject to change. Users should use the accessor

16 +

functions in preference.

13 17

*/

14 -

typedef struct fz_buffer_s fz_buffer;

18 +

typedef struct

19 +

{

20 +

int refs;

21 +

unsigned char *data;

22 +

size_t cap, len;

23 +

int unused_bits;

24 +

int shared;

25 +

} fz_buffer;

26 + 27 +

/*

28 +

Take an additional reference to the buffer. The same pointer

29 +

is returned.

15 30 31 +

Never throws exceptions.

32 +

*/

16 33

fz_buffer *fz_keep_buffer(fz_context *ctx, fz_buffer *buf);

34 + 35 +

/*

36 +

Drop a reference to the buffer. When the reference count reaches

37 +

zero, the buffer is destroyed.

38 + 39 +

Never throws exceptions.

40 +

*/

17 41

void fz_drop_buffer(fz_context *ctx, fz_buffer *buf);

18 42 19 43

/*

@@ -84,8 +108,20 @@ void fz_grow_buffer(fz_context *ctx, fz_buffer *buf);

84 108

*/

85 109

void fz_trim_buffer(fz_context *ctx, fz_buffer *buf);

86 110 111 +

/*

112 +

Empties the buffer. Storage is not freed, but is held ready

113 +

to be reused as the buffer is refilled.

114 + 115 +

Never throws exceptions.

116 +

*/

87 117

void fz_clear_buffer(fz_context *ctx, fz_buffer *buf);

88 118 119 +

/*

120 +

Append the contents of the source buffer onto the end of the

121 +

destination buffer, extending automatically as required.

122 + 123 +

Ownership of buffers does not change.

124 +

*/

89 125

void fz_append_buffer(fz_context *ctx, fz_buffer *destination, fz_buffer *source);

90 126 91 127

/*

@@ -140,10 +176,16 @@ void fz_append_vprintf(fz_context *ctx, fz_buffer *buffer, const char *fmt, va_l

140 176

*/

141 177

void fz_terminate_buffer(fz_context *ctx, fz_buffer *buf);

142 178 179 +

/*

180 +

Create an MD5 digest from buffer contents.

181 + 182 +

Never throws exceptions.

183 +

*/

143 184

void fz_md5_buffer(fz_context *ctx, fz_buffer *buffer, unsigned char digest[16]);

144 185 145 186

/*

146 187

Take ownership of buffer contents.

188 + 147 189

Performs the same task as fz_buffer_storage, but ownership of

148 190

the data buffer returns with this call. The buffer is left

149 191

empty.

@@ -157,15 +199,4 @@ void fz_md5_buffer(fz_context *ctx, fz_buffer *buffer, unsigned char digest[16])

157 199

*/

158 200

size_t fz_buffer_extract(fz_context *ctx, fz_buffer *buf, unsigned char **data);

159 201 160 -

/* Implementation details: subject to change. */

161 - 162 -

struct fz_buffer_s

163 -

{

164 -

int refs;

165 -

unsigned char *data;

166 -

size_t cap, len;

167 -

int unused_bits;

168 -

int shared;

169 -

};

170 - 171 202

#endif

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3