Package boofcv.io.jcodec
Class JCodecSimplified<T extends ImageBase<T>>
java.lang.Object
boofcv.io.jcodec.JCodecSimplified<T>
- All Implemented Interfaces:
SimpleImageSequence<T>
public class JCodecSimplified<T extends ImageBase<T>>
extends Object
implements SimpleImageSequence<T>
Reads movie files using JCodec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Call when done reading the image sequence.intReturns the number of the current frame in the sequence.<InternalImage>
InternalImageReturns the image in the original format that it was read in as.intReturns the height of the current imagegetImage()Returns the currently loaded image in the sequenceReturns the type of class used to store the output imageintgetWidth()Returns the width of the current imagebooleanhasNext()If a new image is available.next()Steps to the next image in the sequence and loads it.voidreset()Start reading the sequence from the startvoidsetLoop(boolean loop) Sets if the video should loop or not
-
Constructor Details
-
JCodecSimplified
-
-
Method Details
-
getWidth
public int getWidth()Description copied from interface:SimpleImageSequenceReturns the width of the current image- Specified by:
getWidthin interfaceSimpleImageSequence<T extends ImageBase<T>>
-
getHeight
public int getHeight()Description copied from interface:SimpleImageSequenceReturns the height of the current image- Specified by:
getHeightin interfaceSimpleImageSequence<T extends ImageBase<T>>
-
hasNext
public boolean hasNext()Description copied from interface:SimpleImageSequenceIf a new image is available.- Specified by:
hasNextin interfaceSimpleImageSequence<T extends ImageBase<T>>- Returns:
- true if a new image is available.
-
next
Description copied from interface:SimpleImageSequenceSteps to the next image in the sequence and loads it.- Specified by:
nextin interfaceSimpleImageSequence<T extends ImageBase<T>>- Returns:
- The next image in the sequence, which is now the current image.
-
getImage
Description copied from interface:SimpleImageSequenceReturns the currently loaded image in the sequence- Specified by:
getImagein interfaceSimpleImageSequence<T extends ImageBase<T>>
-
getGuiImage
public <InternalImage> InternalImage getGuiImage()Description copied from interface:SimpleImageSequenceReturns the image in the original format that it was read in as. When dealing with swing or any standard Java SE environment this will almost always be BufferedImage. The type has been abstracted out to provide better Android support.- Specified by:
getGuiImagein interfaceSimpleImageSequence<T extends ImageBase<T>>
-
close
public void close()Description copied from interface:SimpleImageSequenceCall when done reading the image sequence.- Specified by:
closein interfaceSimpleImageSequence<T extends ImageBase<T>>
-
getFrameNumber
public int getFrameNumber()Description copied from interface:SimpleImageSequenceReturns the number of the current frame in the sequence.- Specified by:
getFrameNumberin interfaceSimpleImageSequence<T extends ImageBase<T>>- Returns:
- Frame ID number.
-
setLoop
public void setLoop(boolean loop) Description copied from interface:SimpleImageSequenceSets if the video should loop or not- Specified by:
setLoopin interfaceSimpleImageSequence<T extends ImageBase<T>>- Parameters:
loop- true for looping forever, false for once
-
getImageType
Description copied from interface:SimpleImageSequenceReturns the type of class used to store the output image- Specified by:
getImageTypein interfaceSimpleImageSequence<T extends ImageBase<T>>
-
reset
public void reset()Description copied from interface:SimpleImageSequenceStart reading the sequence from the start- Specified by:
resetin interfaceSimpleImageSequence<T extends ImageBase<T>>
-