Class AbstractVideoCodec
java.lang.Object
org.monte.media.av.AbstractCodec
org.monte.media.av.codec.video.AbstractVideoCodec
- All Implemented Interfaces:
Codec
- Direct Known Subclasses:
AnimationCodec,ColorAdjustCodec,DIBCodec,FFRtoVFRConverter,FrameRateConverter,JPEGCodec,PNGCodec,RawCodec,RunLengthCodec,ScaleImageCodec,TechSmithCodec,ZMBVCodec
AbstractVideoCodec.- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from class org.monte.media.av.AbstractCodec
inputFormat, inputFormats, name, outputFormat, outputFormatsFields inherited from interface org.monte.media.av.Codec
CODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED -
Constructor Summary
ConstructorsConstructorDescriptionAbstractVideoCodec(Format[] supportedInputFormats, Format[] supportedOutputFormats) -
Method Summary
Modifier and TypeMethodDescriptionprotected static BufferedImagecopyImage(BufferedImage img) Copies a buffered image.protected int[]Gets 32-bit ARGB pixels from a buffer.protected BufferedImagegetBufferedImage(Buffer buf) Gets a buffered image from a buffer.protected ColorModelgetColorModel(Buffer buf) protected byte[]getIndexed8(Buffer buf) Gets 8-bit indexed pixels from a buffer.protected short[]Gets 15-bit RGB pixels from a buffer.protected short[]Gets 16-bit RGB-5-6-5 pixels from a buffer.protected int[]Gets 24-bit RGB pixels from a buffer.protected voidwriteInt24(ImageOutputStream out, int v) protected voidwriteInt24LE(ImageOutputStream out, int v) protected voidwriteInts24(ImageOutputStream out, int[] i, int off, int len) protected voidwriteInts24LE(ImageOutputStream out, int[] i, int off, int len) Methods inherited from class org.monte.media.av.AbstractCodec
getInputFormat, getInputFormats, getName, getOutputFormat, getOutputFormats, reset, setInputFormat, setOutputFormat, toString
-
Constructor Details
-
AbstractVideoCodec
-
-
Method Details
-
getIndexed8
Gets 8-bit indexed pixels from a buffer. Returns null if conversion failed. -
getColorModel
-
getRGB15
Gets 15-bit RGB pixels from a buffer. Returns null if conversion failed. -
getRGB16
Gets 16-bit RGB-5-6-5 pixels from a buffer. Returns null if conversion failed. -
getRGB24
Gets 24-bit RGB pixels from a buffer. Returns null if conversion failed. -
getARGB32
Gets 32-bit ARGB pixels from a buffer. Returns null if conversion failed. -
getBufferedImage
Gets a buffered image from a buffer. Returns null if conversion failed. -
writeInt24
- Throws:
IOException
-
writeInt24LE
- Throws:
IOException
-
writeInts24
- Throws:
IOException
-
writeInts24LE
- Throws:
IOException
-
copyImage
Copies a buffered image.
-