Show / Hide Table of Contents

Class DeviceContext

Represents a hardware device context in FFmpeg, encapsulating the buffer reference for hardware acceleration.

Inheritance
object
DeviceContext
Implements
IDisposable
IEquatable<DeviceContext>
IAVPointer<_AVHWDeviceContext>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: FFmpeg.HW
Assembly: FFmpeg.dll
Syntax
public class DeviceContext : IDisposable, IEquatable<DeviceContext?>, IAVPointer<_AVHWDeviceContext>

Methods

View Source

Dispose()

Releases the resources used by this DeviceContext instance and un-references the buffer.

Declaration
public void Dispose()
View Source

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.

View Source

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
object.Equals(object)
View Source

GetHashCode()

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
object.GetHashCode()

Operators

View Source

operator ==(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.

View Source

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.

Implements

IDisposable
IEquatable<T>
IAVPointer<T>
  • View Source
In this article
Back to top Generated by DocFX