Skip to content

Commit

Permalink
Add JxlEncoderUseBoxes for metadata encode
Browse files Browse the repository at this point in the history
- Add metadata test, test encoder.use_box
  • Loading branch information
inflation committed May 18, 2024
1 parent 343d3b8 commit 552473a
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions jpegxl-sys/src/encode.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/*
This file is part of jpegxl-sys.
jpegxl-sys is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
jpegxl-sys is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with jpegxl-sys. If not, see <https://www.gnu.org/licenses/>.
*/
* This file is part of jpegxl-rs.
*
* jpegxl-rs is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* jpegxl-rs is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with jpegxl-rs. If not, see <https://www.gnu.org/licenses/>.
*/

use std::ffi::{c_char, c_void};

Expand Down Expand Up @@ -242,7 +242,7 @@ extern "C" {

pub fn JxlEncoderAddBox(
enc: *mut JxlEncoder,
box_type: &mut JxlBoxType,
box_type: *const JxlBoxType,
contents: *const u8,
size: usize,
compress_box: JxlBool,
Expand Down

0 comments on commit 552473a

Please sign in to comment.