Struct AVResult32
Represents a 32-bit integer result from an AV operation.
Inherited Members
Namespace: FFmpeg.Utils
Assembly: FFmpeg.dll
Syntax
public readonly struct AVResult32 : IEquatable<AVResult32>, IEquatable<int>
Constructors
View SourceAVResult32()
Initializes a new instance of the AVResult32 class with a value of 0.
Declaration
public AVResult32()
AVResult32(int)
Initializes a new instance of the AVResult32 class with the specified value.
Declaration
public AVResult32(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The 32-bit integer value to initialize with. |
Properties
View SourceArgumentListTooLong
Argument list too long (E2BIG)
Declaration
public static int ArgumentListTooLong { get; }
Property Value
| Type | Description |
|---|---|
| int |
BadAddress
Bad address (EFAULT)
Declaration
public static int BadAddress { get; }
Property Value
| Type | Description |
|---|---|
| int |
BadFileDescriptor
Bad file descriptor (EBADF)
Declaration
public static int BadFileDescriptor { get; }
Property Value
| Type | Description |
|---|---|
| int |
BitstreamFilterNotFound
Bitstream filter not found.
Declaration
public static int BitstreamFilterNotFound { get; }
Property Value
| Type | Description |
|---|---|
| int |
BlockDeviceRequired
Block device required (ENOTBLK)
Declaration
public static int BlockDeviceRequired { get; }
Property Value
| Type | Description |
|---|---|
| int |
BrokenPipe
Broken pipe (EPIPE)
Declaration
public static int BrokenPipe { get; }
Property Value
| Type | Description |
|---|---|
| int |
BufferTooSmall
Buffer too small.
Declaration
public static int BufferTooSmall { get; }
Property Value
| Type | Description |
|---|---|
| int |
Bug
Internal bug, also see Bug2
Declaration
public static int Bug { get; }
Property Value
| Type | Description |
|---|---|
| int |
Bug2
This is semantically identical to Bug it has been introduced in Libav after our AVERROR_BUG and with a modified value.
Declaration
public static int Bug2 { get; }
Property Value
| Type | Description |
|---|---|
| int |
CrossDeviceLink
Cross-device link (EXDEV)
Declaration
public static int CrossDeviceLink { get; }
Property Value
| Type | Description |
|---|---|
| int |
DecoderNotFound
Decoder not found.
Declaration
public static int DecoderNotFound { get; }
Property Value
| Type | Description |
|---|---|
| int |
DemuxerNotFound
Demuxer not found.
Declaration
public static int DemuxerNotFound { get; }
Property Value
| Type | Description |
|---|---|
| int |
DeviceOrResourceBusy
Device or resource busy (EBUSY)
Declaration
public static int DeviceOrResourceBusy { get; }
Property Value
| Type | Description |
|---|---|
| int |
EncoderNotFound
Encoder not found.
Declaration
public static int EncoderNotFound { get; }
Property Value
| Type | Description |
|---|---|
| int |
EndOfFile
End of file.
Declaration
public static int EndOfFile { get; }
Property Value
| Type | Description |
|---|---|
| int |
ExecFormatError
Exec format error (ENOEXEC)
Declaration
public static int ExecFormatError { get; }
Property Value
| Type | Description |
|---|---|
| int |
Exit
Immediate exit was requested; the called function should not be restarted.
Declaration
public static int Exit { get; }
Property Value
| Type | Description |
|---|---|
| int |
ExperimentalFeature
Requested feature is flagged experimental. Notify strict_std_compliance if you really want to use it.
Declaration
public static int ExperimentalFeature { get; }
Property Value
| Type | Description |
|---|---|
| int |
ExternalError
Generic error in an external library.
Declaration
public static int ExternalError { get; }
Property Value
| Type | Description |
|---|---|
| int |
FileExists
File exists (EEXIST)
Declaration
public static int FileExists { get; }
Property Value
| Type | Description |
|---|---|
| int |
FileTooLarge
File too large (EFBIG)
Declaration
public static int FileTooLarge { get; }
Property Value
| Type | Description |
|---|---|
| int |
FilterNotFound
Filter not found.
Declaration
public static int FilterNotFound { get; }
Property Value
| Type | Description |
|---|---|
| int |
HttpBadRequest
HTTP 400 Bad Request.
Declaration
public static int HttpBadRequest { get; }
Property Value
| Type | Description |
|---|---|
| int |
HttpForbidden
HTTP 403 Forbidden.
Declaration
public static int HttpForbidden { get; }
Property Value
| Type | Description |
|---|---|
| int |
HttpNotFound
HTTP 404 Not Found.
Declaration
public static int HttpNotFound { get; }
Property Value
| Type | Description |
|---|---|
| int |
HttpOther4xx
HTTP other 4xx errors.
Declaration
public static int HttpOther4xx { get; }
Property Value
| Type | Description |
|---|---|
| int |
HttpServerError
HTTP server error (5xx).
Declaration
public static int HttpServerError { get; }
Property Value
| Type | Description |
|---|---|
| int |
HttpTooManyRequests
HTTP 429 Too Many Requests.
Declaration
public static int HttpTooManyRequests { get; }
Property Value
| Type | Description |
|---|---|
| int |
HttpUnauthorized
HTTP 401 Unauthorized.
Declaration
public static int HttpUnauthorized { get; }
Property Value
| Type | Description |
|---|---|
| int |
IOError
I/O error (EIO)
Declaration
public static int IOError { get; }
Property Value
| Type | Description |
|---|---|
| int |
IllegalSeek
Illegal seek (ESPIPE)
Declaration
public static int IllegalSeek { get; }
Property Value
| Type | Description |
|---|---|
| int |
InputChanged
Input changed between calls. Reconfiguration is required. (can be OR-ed with OutputChanged)
Declaration
public static int InputChanged { get; }
Property Value
| Type | Description |
|---|---|
| int |
InterruptedSystemCall
Interrupted system call (EINTR)
Declaration
public static int InterruptedSystemCall { get; }
Property Value
| Type | Description |
|---|---|
| int |
InvalidArgument
Invalid argument (EINVAL)
Declaration
public static int InvalidArgument { get; }
Property Value
| Type | Description |
|---|---|
| int |
InvalidData
Invalid data found when processing input.
Declaration
public static int InvalidData { get; }
Property Value
| Type | Description |
|---|---|
| int |
IsADirectory
Is a directory (EISDIR)
Declaration
public static int IsADirectory { get; }
Property Value
| Type | Description |
|---|---|
| int |
IsError
Gets a value indicating whether the result represents an error.
Declaration
public bool IsError { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
IsTryAgain
Declaration
public bool IsTryAgain { get; }
Property Value
| Type | Description |
|---|---|
| bool |
MuxerNotFound
Muxer not found.
Declaration
public static int MuxerNotFound { get; }
Property Value
| Type | Description |
|---|---|
| int |
NoChildProcesses
No child processes (ECHILD)
Declaration
public static int NoChildProcesses { get; }
Property Value
| Type | Description |
|---|---|
| int |
NoSpaceLeftOnDevice
No space left on device (ENOSPC)
Declaration
public static int NoSpaceLeftOnDevice { get; }
Property Value
| Type | Description |
|---|---|
| int |
NoSuchDevice
No such device (ENODEV)
Declaration
public static int NoSuchDevice { get; }
Property Value
| Type | Description |
|---|---|
| int |
NoSuchDeviceOrAddress
No such device or address (ENXIO)
Declaration
public static int NoSuchDeviceOrAddress { get; }
Property Value
| Type | Description |
|---|---|
| int |
NoSuchFileOrDirectory
No such file or directory (ENOENT)
Declaration
public static int NoSuchFileOrDirectory { get; }
Property Value
| Type | Description |
|---|---|
| int |
NoSuchProcess
No such process (ESRCH)
Declaration
public static int NoSuchProcess { get; }
Property Value
| Type | Description |
|---|---|
| int |
NotADirectory
Not a directory (ENOTDIR)
Declaration
public static int NotADirectory { get; }
Property Value
| Type | Description |
|---|---|
| int |
NotATypewriter
Not a typewriter (ENOTTY)
Declaration
public static int NotATypewriter { get; }
Property Value
| Type | Description |
|---|---|
| int |
OperationNotPermitted
Operation not permitted (EPERM)
Declaration
public static int OperationNotPermitted { get; }
Property Value
| Type | Description |
|---|---|
| int |
OptionNotFound
Option not found.
Declaration
public static int OptionNotFound { get; }
Property Value
| Type | Description |
|---|---|
| int |
OutOfMemory
Out of memory (ENOMEM)
Declaration
public static int OutOfMemory { get; }
Property Value
| Type | Description |
|---|---|
| int |
OutOfRange
The value was out of range (ERANGE)
Declaration
public static int OutOfRange { get; }
Property Value
| Type | Description |
|---|---|
| int |
OutputChanged
Output changed between calls. Reconfiguration is required. (can be OR-ed with InputChanged)
Declaration
public static int OutputChanged { get; }
Property Value
| Type | Description |
|---|---|
| int |
PatchWelcome
Not yet implemented in FFmpeg, patches welcome.
Declaration
public static int PatchWelcome { get; }
Property Value
| Type | Description |
|---|---|
| int |
PermissionDenied
Permission denied (EACCES)
Declaration
public static int PermissionDenied { get; }
Property Value
| Type | Description |
|---|---|
| int |
ProtocolNotFound
Protocol not found.
Declaration
public static int ProtocolNotFound { get; }
Property Value
| Type | Description |
|---|---|
| int |
ReadOnlyFileSystem
Read-only file system (EROFS)
Declaration
public static int ReadOnlyFileSystem { get; }
Property Value
| Type | Description |
|---|---|
| int |
StreamNotFound
Stream not found.
Declaration
public static int StreamNotFound { get; }
Property Value
| Type | Description |
|---|---|
| int |
TextFileBusy
Text file busy (ETXTBSY)
Declaration
public static int TextFileBusy { get; }
Property Value
| Type | Description |
|---|---|
| int |
TooManyLinks
Too many links (EMLINK)
Declaration
public static int TooManyLinks { get; }
Property Value
| Type | Description |
|---|---|
| int |
TooManyOpenFiles
Too many open files (EMFILE)
Declaration
public static int TooManyOpenFiles { get; }
Property Value
| Type | Description |
|---|---|
| int |
TooManyOpenFilesInSystem
Too many open files in system (ENFILE)
Declaration
public static int TooManyOpenFilesInSystem { get; }
Property Value
| Type | Description |
|---|---|
| int |
TryAgain
Try again (EAGAIN)
Declaration
public static int TryAgain { get; }
Property Value
| Type | Description |
|---|---|
| int |
UnknownError
Unknown error, typically from an external library.
Declaration
public static int UnknownError { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
View SourceEquals(AVResult32)
Declaration
public bool Equals(AVResult32 other)
Parameters
| Type | Name | Description |
|---|---|---|
| AVResult32 | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
View SourceThrowIfError()
Throws an FFmpegException if the specified error code is negative.
Declaration
public void ThrowIfError()
Exceptions
| Type | Condition |
|---|---|
| FFmpegException | Thrown if the error code is negative. |
| OutOfMemoryException | Thrown if the error code is ENOMEM. |
| IOException | Thrown if the error code is EPIPE. |
| ArgumentException | Thrown if the error code is EINVAL or E2BIG. |
| ArgumentOutOfRangeException | Thrown if the error code is ERANGE. |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
Operators
View Sourceoperator ==(AVResult32, AVResult32)
Determines whether two AVResult32 instances are equal.
Declaration
public static bool operator ==(AVResult32 left, AVResult32 right)
Parameters
| Type | Name | Description |
|---|---|---|
| AVResult32 | left | The first AVResult32 instance to compare. |
| AVResult32 | right | The second AVResult32 instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
explicit operator uint(AVResult32)
Explicitly converts an AVResult32 to an uint.
Declaration
public static explicit operator uint(AVResult32 result)
Parameters
| Type | Name | Description |
|---|---|---|
| AVResult32 | result | The AVResult32 instance to convert. |
Returns
| Type | Description |
|---|---|
| uint | The underlying integer value of the AVResult32 instance, cast to uint. |
explicit operator ulong(AVResult32)
Explicitly converts an AVResult32 to an ulong.
Declaration
public static explicit operator ulong(AVResult32 result)
Parameters
| Type | Name | Description |
|---|---|---|
| AVResult32 | result | The AVResult32 instance to convert. |
Returns
| Type | Description |
|---|---|
| ulong | The underlying integer value of the AVResult32 instance, cast to ulong. |
implicit operator int(AVResult32)
Implicitly converts an AVResult32 to an int.
Declaration
public static implicit operator int(AVResult32 result)
Parameters
| Type | Name | Description |
|---|---|---|
| AVResult32 | result | The AVResult32 instance to convert. |
Returns
| Type | Description |
|---|---|
| int | The underlying integer value of the AVResult32 instance. |
implicit operator long(AVResult32)
Implicitly converts an AVResult32 to an long.
Declaration
public static implicit operator long(AVResult32 result)
Parameters
| Type | Name | Description |
|---|---|---|
| AVResult32 | result | The AVResult32 instance to convert. |
Returns
| Type | Description |
|---|---|
| long | The underlying int value of the AVResult32 instance. |
implicit operator AVResult32(int)
Implicitly converts an int to an AVResult32.
Declaration
public static implicit operator AVResult32(int result)
Parameters
| Type | Name | Description |
|---|---|---|
| int | result | The integer value to convert. |
Returns
| Type | Description |
|---|---|
| AVResult32 | A new AVResult32 instance initialized with the specified value. |
implicit operator AVResult32(long)
Explicitly converts an long to an AVResult32.
Declaration
public static implicit operator AVResult32(long result)
Parameters
| Type | Name | Description |
|---|---|---|
| long | result | The long value to convert. |
Returns
| Type | Description |
|---|---|
| AVResult32 | A new AVResult32 instance initialized with the specified value. |
implicit operator AVResult32(uint)
Explicitly converts an uint to an AVResult32.
Declaration
public static implicit operator AVResult32(uint result)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | result | The unsigned integer value to convert. |
Returns
| Type | Description |
|---|---|
| AVResult32 | A new AVResult32 instance initialized with the specified value. |
implicit operator AVResult32(ulong)
Explicitly converts an ulong to an AVResult32.
Declaration
public static implicit operator AVResult32(ulong result)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | result | The unsigned long value to convert. |
Returns
| Type | Description |
|---|---|
| AVResult32 | A new AVResult32 instance initialized with the specified value. |
operator !=(AVResult32, AVResult32)
Determines whether two AVResult32 instances are not equal.
Declaration
public static bool operator !=(AVResult32 left, AVResult32 right)
Parameters
| Type | Name | Description |
|---|---|---|
| AVResult32 | left | The first AVResult32 instance to compare. |
| AVResult32 | right | The second AVResult32 instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|