Class VideoFrameHolder
java.lang.Object
com.zakgof.velvetvideo.impl.middle.VideoFrameHolder
- All Implemented Interfaces:
IFrameHolder,java.lang.AutoCloseable
public class VideoFrameHolder extends java.lang.Object implements java.lang.AutoCloseable, IFrameHolder
-
Field Summary
-
Constructor Summary
Constructors Constructor Description VideoFrameHolder(int width, int height, AVPixelFormat srcFormat, AVPixelFormat destFormat, AVRational timebase, boolean encode) -
Method Summary
Modifier and Type Method Description AVFramealloc(int width, int height, AVPixelFormat format)voidclose()IVideoFramedecode(AVFrame frame, VelvetVideoLib.DemuxerImpl.AbstractDecoderStream stream)AVFrameframe()java.awt.image.BufferedImagegetPixels(AVFrame f)AVFramesetPixels(java.awt.image.BufferedImage image)
-
Field Details
-
Constructor Details
-
VideoFrameHolder
public VideoFrameHolder(int width, int height, AVPixelFormat srcFormat, AVPixelFormat destFormat, AVRational timebase, boolean encode)
-
-
Method Details
-
alloc
-
setPixels
-
getPixels
-
decode
- Specified by:
decodein interfaceIFrameHolder
-
frame
- Specified by:
framein interfaceIFrameHolder
-
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceIFrameHolder
-