Type Alias OrthancPluginTranscoderCallback

Source
pub type OrthancPluginTranscoderCallback = Option<unsafe extern "C" fn(transcoded: *mut OrthancPluginMemoryBuffer, buffer: *const c_void, size: u64, allowedSyntaxes: *const *const c_char, countSyntaxes: u32, allowNewSopInstanceUid: u8) -> OrthancPluginErrorCode>;
Expand description

@brief Signature of a callback function to transcode a DICOM instance. @param transcoded Target memory buffer. It must be allocated by the plugin using OrthancPluginCreateMemoryBuffer(). @param buffer Memory buffer containing the source DICOM instance. @param size Size of the source memory buffer. @param allowedSyntaxes A C array of possible transfer syntaxes UIDs for the result of the transcoding. The plugin must choose by itself the transfer syntax that will be used for the resulting DICOM image. @param countSyntaxes The number of transfer syntaxes that are contained in the “allowedSyntaxes” array. @param allowNewSopInstanceUid Whether the transcoding plugin can select a transfer syntax that will change the SOP instance UID (or, in other terms, whether the plugin can transcode using lossy compression). @return 0 if success (i.e. image successfully transcoded and stored into “transcoded”), or the error code if failure. @ingroup Callbacks

Aliased Type§

enum OrthancPluginTranscoderCallback {
    None,
    Some(unsafe extern "C" fn(*mut OrthancPluginMemoryBuffer, *const c_void, u64, *const *const i8, u32, u8) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut OrthancPluginMemoryBuffer, *const c_void, u64, *const *const i8, u32, u8) -> i32)

Some value of type T.