Skip to content

Commit

Permalink
expose externs for jcopy_markers_setup, jcopy_markers_execute, and JC…
Browse files Browse the repository at this point in the history
…OPY_OPTION
  • Loading branch information
joshstoik1 committed May 19, 2024
1 parent 9ae864d commit 41c3f9c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ pub const JCROP_CODE_JCROP_POS: JCROP_CODE = 1;
pub const JCROP_CODE_JCROP_NEG: JCROP_CODE = 2;
pub const JCROP_CODE_JCROP_FORCE: JCROP_CODE = 3;
pub type JCROP_CODE = ::std::os::raw::c_uint;
pub const JCOPY_OPTION_JCOPYOPT_NONE: JCOPY_OPTION = 0;
pub const JCOPY_OPTION_JCOPYOPT_COMMENTS: JCOPY_OPTION = 1;
pub const JCOPY_OPTION_JCOPYOPT_ALL: JCOPY_OPTION = 2;
pub const JCOPY_OPTION_JCOPYOPT_ALL_EXCEPT_ICC: JCOPY_OPTION = 3;
pub const JCOPY_OPTION_JCOPYOPT_ICC: JCOPY_OPTION = 4;
pub type JCOPY_OPTION = ::std::os::raw::c_uint;

#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down Expand Up @@ -73,5 +79,16 @@ extern "C-unwind" {
srcinfo: j_decompress_ptr,
info: *mut jpeg_transform_info,
) -> boolean;

pub fn jcopy_markers_setup(
srcinfo: j_decompress_ptr,
option: JCOPY_OPTION,
);

pub fn jcopy_markers_execute(
srcinfo: j_decompress_ptr,
dstinfo: j_compress_ptr,
option: JCOPY_OPTION,
);
}

0 comments on commit 41c3f9c

Please sign in to comment.