summaryrefslogtreecommitdiff
path: root/src/jpeglib.vapi
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2013-10-05 15:29:30 +0100
committerAlessio Treglia <alessio@debian.org>2013-10-05 15:29:30 +0100
commite51f2bbb5a0f25b37330891d769b996a2c13d277 (patch)
tree25d429c588012a476c15b6ca5b4bf393613beca3 /src/jpeglib.vapi
parent438230655b539ad6aa15b017a792cab8ca7f6d89 (diff)
parent2d71d20a62ca8f6989d86db58ce64c7a862675dd (diff)
Merge tag 'upstream/3.10.0'
Upstream version 3.10.0
Diffstat (limited to 'src/jpeglib.vapi')
-rw-r--r--src/jpeglib.vapi57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/jpeglib.vapi b/src/jpeglib.vapi
deleted file mode 100644
index 3022b5b..0000000
--- a/src/jpeglib.vapi
+++ /dev/null
@@ -1,57 +0,0 @@
-[CCode (cheader_filename = "jpeglib.h", cprefix = "jpeg_")]
-namespace JPEG {
- [CCode (cprefix = "JCS_")]
- public enum ColorSpace
- {
- UNKNOWN,
- GRAYSCALE,
- RGB,
- YCbCr,
- CMYK,
- YCCK
- }
-
- public ErrorManager std_error (out ErrorManager err);
-
- [CCode (cname = "struct jpeg_compress_struct", cprefix = "jpeg_", destroy_function = "jpeg_destroy_compress")]
- public struct Compress
- {
- public DestinationManager* dest;
- public int image_width;
- public int image_height;
- public int input_components;
- public ColorSpace in_color_space;
- public ErrorManager* err;
-
- public void create_compress ();
- public void set_defaults ();
- public void start_compress (bool write_all_tables);
- public void write_scanlines ([CCode (array_length = false)] uint8*[] scanlines, int num_Lines);
- public void finish_compress ();
- }
-
- [CCode (cname = "struct jpeg_error_mgr")]
- public struct ErrorManager
- {
- [CCode (cname = "jpeg_std_error")]
- public ErrorManager* std_error ();
- }
-
- [CCode (has_target = false)]
- public delegate void InitDestinationFunc (Compress cinfo);
- [CCode (has_target = false)]
- public delegate bool EmptyOutputBufferFunc (Compress cinfo);
- [CCode (has_target = false)]
- public delegate void TermDestinationFunc (Compress cinfo);
-
- [CCode (cname = "struct jpeg_destination_mgr")]
- public struct DestinationManager
- {
- [CCode (array_length = false)]
- public unowned uint8[] next_output_byte;
- public int free_in_buffer;
- public InitDestinationFunc init_destination;
- public EmptyOutputBufferFunc empty_output_buffer;
- public TermDestinationFunc term_destination;
- }
-}