Displaying 5 results from an estimated 5 matches for "z_finish".
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
...uint8 *data;
- z_stream z = { NULL, };
- int ret;
-
- z.zalloc = zalloc;
- z.zfree = zfree;
- z.opaque = NULL;
-
- data = g_malloc (len);
- z.next_in = (Bytef *) zptr;
- z.avail_in = zlen;
- z.next_out = data;
- z.avail_out = len;
-
- ret = inflateInit (&z);
- ret = inflate (&z, Z_FINISH);
- if (ret != Z_STREAM_END) {
- SWFDEC_WARNING ("lossless: ret == %d", ret);
- }
- inflateEnd (&z);
-
- return data;
-}
-
-
int
swfdec_image_jpegtables (SwfdecSwfDecoder * s)
{
@@ -267,7 +226,6 @@ static void
swfdec_image_jpeg3_load (SwfdecImage *image)
{
JpegRGBDecode...
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
...libswfdec/swfdec_image.c
index c9df0de..2810291 100644
--- a/libswfdec/swfdec_image.c
+++ b/libswfdec/swfdec_image.c
@@ -117,7 +117,7 @@ lossless (const guint8 *zptr, int zlen,
z.avail_out = len;
ret = inflateInit (&z);
- ret = inflate (&z, Z_SYNC_FLUSH);
+ ret = inflate (&z, Z_FINISH);
if (ret != Z_STREAM_END) {
SWFDEC_WARNING ("lossless: ret == %d", ret);
}
@@ -348,9 +348,8 @@ static void
swfdec_image_lossless_load (SwfdecImage *image)
{
int format;
- int color_table_size;
+ guint color_table_size;
unsigned char *ptr;
- unsigned char *endptr;...
2002 Jan 30
1
Patch: update zlib/* to 1.1.3
...much data as possible, and stops when the input
buffer becomes empty or the output buffer becomes full. It may introduce some
@@ -272,11 +272,12 @@
processed or more output produced), Z_STREAM_END if all input has been
consumed and all output has been produced (only when flush is set to
Z_FINISH), Z_STREAM_ERROR if the stream state was inconsistent (for example
- if next_in or next_out was NULL), Z_BUF_ERROR if no progress is possible.
+ if next_in or next_out was NULL), Z_BUF_ERROR if no progress is possible
+ (for example avail_in or avail_out was zero).
*/
-extern int ZEXPORT de...
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello,
the following patches should get multidisk access working.
The syntax accepted is the following:
(hdx,y)/path/to/file
where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk.
the other accepted syntax is using MBR's 32 bits disk signature so for example:
(mbr:0x12345678,2)/foo/bar
would address
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...libswfdec/swfdec_image.c
index c9df0de..2810291 100644
--- a/libswfdec/swfdec_image.c
+++ b/libswfdec/swfdec_image.c
@@ -117,7 +117,7 @@ lossless (const guint8 *zptr, int zlen,
z.avail_out = len;
ret = inflateInit (&z);
- ret = inflate (&z, Z_SYNC_FLUSH);
+ ret = inflate (&z, Z_FINISH);
if (ret != Z_STREAM_END) {
SWFDEC_WARNING ("lossless: ret == %d", ret);
}
@@ -348,9 +348,8 @@ static void
swfdec_image_lossless_load (SwfdecImage *image)
{
int format;
- int color_table_size;
+ guint color_table_size;
unsigned char *ptr;
- unsigned char *endptr;...