Enum HeifErrorSubCode

Source
#[non_exhaustive]
#[repr(C)]
pub enum HeifErrorSubCode {
Show 77 variants Unspecified = 0, EndOfData = 100, InvalidBoxSize = 101, NoFtypBox = 102, NoIdatBox = 103, NoMetaBox = 104, NoHdlrBox = 105, NoHvccBox = 106, NoPitmBox = 107, NoIpcoBox = 108, NoIpmaBox = 109, NoIlocBox = 110, NoIinfBox = 111, NoIprpBox = 112, NoIrefBox = 113, NoPictHandler = 114, IpmaBoxReferencesNonExistingProperty = 115, NoPropertiesAssignedToItem = 116, NoItemData = 117, InvalidGridData = 118, MissingGridImages = 119, InvalidCleanAperture = 120, InvalidOverlayData = 121, OverlayImageOutsideOfCanvas = 122, AuxiliaryImageTypeUnspecified = 123, NoOrInvalidPrimaryItem = 124, NoInfeBox = 125, UnknownColorProfileType = 126, WrongTileImageChromaFormat = 127, InvalidFractionalNumber = 128, InvalidImageSize = 129, InvalidPixiBox = 130, NoAv1cBox = 131, WrongTileImagePixelDepth = 132, SecurityLimitExceeded = 1_000, NonExistingItemReferenced = 2_000, NullPointerArgument = 2_001, NonExistingImageChannelReferenced = 2_002, UnsupportedPluginVersion = 2_003, UnsupportedWriterVersion = 2_004, UnsupportedParameter = 2_005, InvalidParameterValue = 2_006, UnsupportedCodec = 3_000, UnsupportedImageType = 3_001, UnsupportedDataVersion = 3_002, UnsupportedColorConversion = 3_003, UnsupportedItemConstructionMethod = 3_004, UnsupportedBitDepth = 4_000, CannotWriteOutputData = 5_000, UnknownNclxColorPrimaries = 133, UnknownNclxTransferCharacteristics = 134, UnknownNclxMatrixCoefficients = 135, UnsupportedHeaderCompressionMethod = 3_005, PluginLoadingError = 6_000, PluginIsNotLoaded = 6_001, CannotReadPluginDirectory = 6_002, InvalidRegionData = 136, InvalidProperty = 2_007, ItemReferenceCycle = 2_008, EncoderInitialization = 5_001, EncoderEncoding = 5_002, EncoderCleanup = 5_003, TooManyRegions = 5_004, NoIspeProperty = 137, CameraIntrinsicMatrixUndefined = 138, CameraExtrinsicMatrixUndefined = 139, InvalidJ2kCodeStream = 140, NoVvccBox = 141, NoIcbrBox = 142, DecompressionInvalidData = 150, CompressionInitialisationError = 1_001, UnsupportedGenericCompressionMethod = 3_006, NoMatchingDecoderInstalled = 6_003, NoAvccBox = 143, InvalidMiniBox = 149, UnsupportedEssentialProperty = 3_007, Unknown = 3008,
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Unspecified = 0

§

EndOfData = 100

§

InvalidBoxSize = 101

§

NoFtypBox = 102

§

NoIdatBox = 103

§

NoMetaBox = 104

§

NoHdlrBox = 105

§

NoHvccBox = 106

§

NoPitmBox = 107

§

NoIpcoBox = 108

§

NoIpmaBox = 109

§

NoIlocBox = 110

§

NoIinfBox = 111

§

NoIprpBox = 112

§

NoIrefBox = 113

§

NoPictHandler = 114

§

IpmaBoxReferencesNonExistingProperty = 115

§

NoPropertiesAssignedToItem = 116

§

NoItemData = 117

§

InvalidGridData = 118

§

MissingGridImages = 119

§

InvalidCleanAperture = 120

§

InvalidOverlayData = 121

§

OverlayImageOutsideOfCanvas = 122

§

AuxiliaryImageTypeUnspecified = 123

§

NoOrInvalidPrimaryItem = 124

§

NoInfeBox = 125

§

UnknownColorProfileType = 126

§

WrongTileImageChromaFormat = 127

§

InvalidFractionalNumber = 128

§

InvalidImageSize = 129

§

InvalidPixiBox = 130

§

NoAv1cBox = 131

§

WrongTileImagePixelDepth = 132

§

SecurityLimitExceeded = 1_000

§

NonExistingItemReferenced = 2_000

§

NullPointerArgument = 2_001

§

NonExistingImageChannelReferenced = 2_002

§

UnsupportedPluginVersion = 2_003

§

UnsupportedWriterVersion = 2_004

§

UnsupportedParameter = 2_005

§

InvalidParameterValue = 2_006

§

UnsupportedCodec = 3_000

§

UnsupportedImageType = 3_001

§

UnsupportedDataVersion = 3_002

§

UnsupportedColorConversion = 3_003

§

UnsupportedItemConstructionMethod = 3_004

§

UnsupportedBitDepth = 4_000

§

CannotWriteOutputData = 5_000

§

UnknownNclxColorPrimaries = 133

§

UnknownNclxTransferCharacteristics = 134

§

UnknownNclxMatrixCoefficients = 135

§

UnsupportedHeaderCompressionMethod = 3_005

§

PluginLoadingError = 6_000

§

PluginIsNotLoaded = 6_001

§

CannotReadPluginDirectory = 6_002

§

InvalidRegionData = 136

§

InvalidProperty = 2_007

§

ItemReferenceCycle = 2_008

§

EncoderInitialization = 5_001

§

EncoderEncoding = 5_002

§

EncoderCleanup = 5_003

§

TooManyRegions = 5_004

§

NoIspeProperty = 137

Available on crate feature v1_18 only.
§

CameraIntrinsicMatrixUndefined = 138

Available on crate feature v1_18 only.
§

CameraExtrinsicMatrixUndefined = 139

Available on crate feature v1_18 only.
§

InvalidJ2kCodeStream = 140

Available on crate feature v1_18 only.
§

NoVvccBox = 141

Available on crate feature v1_18 only.
§

NoIcbrBox = 142

Available on crate feature v1_18 only.
§

DecompressionInvalidData = 150

Available on crate feature v1_18 only.
§

CompressionInitialisationError = 1_001

Available on crate feature v1_18 only.
§

UnsupportedGenericCompressionMethod = 3_006

Available on crate feature v1_18 only.
§

NoMatchingDecoderInstalled = 6_003

Available on crate feature v1_18 only.
§

NoAvccBox = 143

Available on crate feature v1_19 only.
§

InvalidMiniBox = 149

Available on crate feature v1_19 only.
§

UnsupportedEssentialProperty = 3_007

Available on crate feature v1_19 only.
§

Unknown = 3008

This value is used when library libheif returns unknown value of error sub-code.

Implementations§

Source§

impl HeifErrorSubCode

Source

pub fn n<REPR: Into<i64>>(value: REPR) -> Option<Self>

Trait Implementations§

Source§

impl Clone for HeifErrorSubCode

Source§

fn clone(&self) -> HeifErrorSubCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HeifErrorSubCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for HeifErrorSubCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.