Class DeviceContext
Represents a hardware device context in FFmpeg, encapsulating the buffer reference for hardware acceleration.
Inherited Members
Namespace: FFmpeg.HW
Assembly: FFmpeg.dll
Syntax
public class DeviceContext : IDisposable, IEquatable<DeviceContext?>, IAVPointer<_AVHWDeviceContext>
Methods
View SourceDispose()
Releases the resources used by this DeviceContext instance and un-references the buffer.
Declaration
public void Dispose()
Equals(DeviceContext?)
Determines whether the specified DeviceContext is equal to the current one.
Declaration
public bool Equals(DeviceContext? other)
Parameters
| Type | Name | Description |
|---|---|---|
| DeviceContext | other | The DeviceContext to compare with. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified DeviceContext is equal to the current one; otherwise, false. |
Equals(object?)
Determines whether the specified object is equal to the current DeviceContext.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current DeviceContext. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current DeviceContext; otherwise, false. |
Overrides
View SourceGetHashCode()
Returns a hash code for the current DeviceContext.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current DeviceContext. |
Overrides
Operators
View Sourceoperator ==(DeviceContext?, DeviceContext?)
Determines whether two DeviceContext instances are equal.
Declaration
public static bool operator ==(DeviceContext? left, DeviceContext? right)
Parameters
| Type | Name | Description |
|---|---|---|
| DeviceContext | left | The first DeviceContext to compare. |
| DeviceContext | right | The second DeviceContext to compare. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified instances are equal; otherwise, false. |
operator !=(DeviceContext?, DeviceContext?)
Determines whether two DeviceContext instances are not equal.
Declaration
public static bool operator !=(DeviceContext? left, DeviceContext? right)
Parameters
| Type | Name | Description |
|---|---|---|
| DeviceContext | left | The first DeviceContext to compare. |
| DeviceContext | right | The second DeviceContext to compare. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified instances are not equal; otherwise, false. |