Package org.red5.codec
Class AV1Video
java.lang.Object
org.red5.codec.AbstractVideo
org.red5.codec.AV1Video
- All Implemented Interfaces:
IVideoStreamCodec
Red5 video codec for the AV1 video format. Portions of this AV1 code are based on the work of the Pion project.
- Author:
- The Red5 Project, Paul Gregoire (mondain@gmail.com)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.red5.codec.IVideoStreamCodec
IVideoStreamCodec.FrameData -
Field Summary
Fields inherited from class org.red5.codec.AbstractVideo
attributes, bufferInterframes, codec, enhanced, frameType, interframes, isDebug, isTrace, keyframes, keyframeTimestamp, log, multitrack, multitrackType, numInterframes, packetType, trackCodec, trackId, tracks, trackSizeFields inherited from interface org.red5.codec.IVideoStreamCodec
FLV_FRAME_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddData(org.apache.mina.core.buffer.IoBuffer data, int timestamp) Update the state of the codec with the passed data.booleanCheck if the codec supports frame dropping.Methods inherited from class org.red5.codec.AbstractVideo
addData, addData, canHandleData, equals, getAttribute, getCodec, getDecoderConfiguration, getFrameType, getInterframe, getKeyframe, getKeyframes, getMultitrackType, getName, getNumInterframes, getPacketType, getTrackCodec, getTrackCodec, getTrackId, hashCode, isBufferInterframes, isEnhanced, reset, setAttribute, setBufferInterframes, setTrackId, softReset, toString
-
Constructor Details
-
AV1Video
public AV1Video()
-
-
Method Details
-
canDropFrames
public boolean canDropFrames()Check if the codec supports frame dropping.- Specified by:
canDropFramesin interfaceIVideoStreamCodec- Overrides:
canDropFramesin classAbstractVideo- Returns:
- if the codec supports frame dropping.
-
addData
public boolean addData(org.apache.mina.core.buffer.IoBuffer data, int timestamp) Update the state of the codec with the passed data.- Specified by:
addDatain interfaceIVideoStreamCodec- Overrides:
addDatain classAbstractVideo- Parameters:
data- data to tell the codec we're addingtimestamp- time associated with the data- Returns:
- true for success. false for passing wrong video format or other error.
-