Skip to main content

Crate nvtiff_sys

Crate nvtiff_sys 

Source
Expand description

§nvtiff-sys

crates.io docs.rs

Rust bindings to nvTIFF via bindgen.

§Instructions

  1. Download and install from .deb at https://developer.nvidia.com/nvtiff-0-6-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Debian&target_version=12&target_type=deb_network

  2. Patch nvtiff.h file, change

    • L553 nvtiffTagDataType type, -> enum nvtiffTagDataType type, enum type

    For example, run these sed commands (with sudo) to apply the patch.

    sed --in-place "s/nvtiffTagDataType type/enum nvtiffTagDataType type/g" /usr/include/nvtiff.h
  3. Run cargo build

  4. Bindings should be generated in $CARGO_MANIFEST_DIR/src/nvtiff.rs file.

§Testing

  1. Download the following test files to the images/ folder:
  2. Run cargo test.

§Compatibility

nvtiff-sysnvTIFF
0.1.*0.5.*
0.2.*0.6.*

§Contributing

We welcome third-party patches. If you have any changes you’d like to make to nvtiff-sys, please send a patch to the nvtiff-sys-devel mailing list.

Re-exports§

pub use result::NvTiffResult;
pub use result::NvTiffResultCheck;
pub use nvtiff::*;

Modules§

nvtiff
result
A thin wrapper around nvtiffStatus_t providing Results with NvTiffError.