Class AVFrameFormat
- java.lang.Object
-
- javax.media.Format
-
- javax.media.format.VideoFormat
-
- org.jitsi.impl.neomedia.codec.video.AVFrameFormat
-
- All Implemented Interfaces:
Serializable,Cloneable
public class AVFrameFormat extends javax.media.format.VideoFormatImplements a VideoFormat for a Buffer carrying AVFrame as its data. While the AVFrameFormat class is not strictly necessary and VideoFormat could have be directly used, it is conceived as an appropriate way to avoid possible matching with other VideoFormats and a very obvious one.- Author:
- Lyubomir Marinov, Sebastien Vincent
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringAVFRAMEThe encoding of the AVFrameFormat instances.
-
Constructor Summary
Constructors Constructor Description AVFrameFormat()Initializes a new AVFrameFormat instance with unspecified size, frame rate and FFmpeg colorspace.AVFrameFormat(int pixFmt)Initializes a new AVFrameFormat instance with a specific FFmpeg colorspace and unspecified size and frame rate.AVFrameFormat(int pixFmt, int deviceSystemPixFmt)Initializes a new AVFrameFormat instance with a specific FFmpeg colorspace and unspecified size and frame rate.AVFrameFormat(Dimension size, float frameRate, int pixFmt)AVFrameFormat(Dimension size, float frameRate, int pixFmt, int deviceSystemPixFmt)Initializes a new AVFrameFormat instance with specific size, frame rate and FFmpeg colorspace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Initializes a new AVFrameFormat instance which has the same properties as this instance.protected voidcopy(javax.media.Format f)Copies the properties of the specified Format into this instance.booleanequals(Object obj)Determines whether a specific Object represents a value that is equal to the value represented by this instance.intgetDeviceSystemPixFmt()Gets the DeviceSystem-specific format represented by this instance.intgetPixFmt()Gets the native FFmpeg format represented by this instance.inthashCode()javax.media.Formatintersects(javax.media.Format format)Finds the attributes shared by two matching Formats.booleanmatches(javax.media.Format format)Determines whether a specific format matches this instance i.e.StringtoString()-
Methods inherited from class javax.media.format.VideoFormat
getFrameRate, getMaxDataLength, getSize, relax
-
-
-
-
Field Detail
-
AVFRAME
public static final String AVFRAME
The encoding of the AVFrameFormat instances.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AVFrameFormat
public AVFrameFormat()
Initializes a new AVFrameFormat instance with unspecified size, frame rate and FFmpeg colorspace.
-
AVFrameFormat
public AVFrameFormat(Dimension size, float frameRate, int pixFmt)
-
AVFrameFormat
public AVFrameFormat(Dimension size, float frameRate, int pixFmt, int deviceSystemPixFmt)
Initializes a new AVFrameFormat instance with specific size, frame rate and FFmpeg colorspace.- Parameters:
size- the Dimension of the new instanceframeRate- the frame rate of the new instancepixFmt- the FFmpeg colorspace to be represented by the new instancedeviceSystemPixFmt- the DeviceSystem-specific colorspace to be represented by the new instance
-
AVFrameFormat
public AVFrameFormat(int pixFmt)
Initializes a new AVFrameFormat instance with a specific FFmpeg colorspace and unspecified size and frame rate.- Parameters:
pixFmt- the FFmpeg colorspace to be represented by the new instance
-
AVFrameFormat
public AVFrameFormat(int pixFmt, int deviceSystemPixFmt)Initializes a new AVFrameFormat instance with a specific FFmpeg colorspace and unspecified size and frame rate.- Parameters:
pixFmt- the FFmpeg colorspace to be represented by the new instancedeviceSystemPixFmt- the DeviceSystem-specific colorspace to be represented by the new instance
-
-
Method Detail
-
clone
public Object clone()
Initializes a new AVFrameFormat instance which has the same properties as this instance.- Overrides:
clonein classjavax.media.format.VideoFormat- Returns:
- a new AVFrameFormat instance which has the same properties as this instance
-
copy
protected void copy(javax.media.Format f)
Copies the properties of the specified Format into this instance.- Overrides:
copyin classjavax.media.format.VideoFormat- Parameters:
f- the Format the properties of which are to be copied into this instance
-
equals
public boolean equals(Object obj)
Determines whether a specific Object represents a value that is equal to the value represented by this instance.- Overrides:
equalsin classjavax.media.format.VideoFormat- Parameters:
obj- the Object to be determined whether it represents a value that is equal to the value represented by this instance- Returns:
- true if the specified obj represents a value that is equal to the value represented by this instance; otherwise, false
-
getDeviceSystemPixFmt
public int getDeviceSystemPixFmt()
Gets the DeviceSystem-specific format represented by this instance.- Returns:
- the DeviceSystem-specific format represented by this instance
-
getPixFmt
public int getPixFmt()
Gets the native FFmpeg format represented by this instance.- Returns:
- the native FFmpeg format represented by this instance
-
intersects
public javax.media.Format intersects(javax.media.Format format)
Finds the attributes shared by two matching Formats. If the specified Format does not match this one, the result is undefined.- Overrides:
intersectsin classjavax.media.format.VideoFormat- Parameters:
format- the matching Format to intersect with this one- Returns:
- a Format with its attributes set to the attributes common to this instance and the specified format
-
matches
public boolean matches(javax.media.Format format)
Determines whether a specific format matches this instance i.e. whether their attributes match according to the definition of "match" given byFormat.matches(Format).- Overrides:
matchesin classjavax.media.format.VideoFormat- Parameters:
format- the Format to compare to this instance- Returns:
- true if the specified format matches this one; otherwise, false
-
toString
public String toString()
- Overrides:
toStringin classjavax.media.format.VideoFormat
-
-