| Package | Description |
|---|---|
| io.humble.video |
The Humble Video library for decoding and encoding audio and pictures (i.e.
|
| io.humble.video.awt |
A collection of utilities for transforming Humble Video images
into AWT images
|
| Modifier and Type | Method and Description |
|---|---|
PixelFormat.Type |
MediaPicture.getFormat() |
PixelFormat.Type |
PixelFormatDescriptor.getFormat() |
static PixelFormat.Type |
PixelFormat.getFormat(String name)
Return the pixel format corresponding to name.
If there is no pixel format with name name, then looks for a pixel format with the name corresponding to the native endian format of name. For example in a little-endian system, first looks for "gray16", then for "gray16le". Finally if no pixel format has been found, returns AV_PIX_FMT_NONE. |
PixelFormat.Type |
MediaPictureResampler.getInputFormat()
Get the input pixel format.
|
PixelFormat.Type |
MediaPictureResampler.getOutputFormat()
Get the output pixel format.
|
PixelFormat.Type |
Coder.getPixelFormat()
For Video streams, get the Pixel Format in use by the stream.
|
PixelFormat.Type |
FilterLink.getPixelFormat() |
PixelFormat.Type |
Codec.getSupportedVideoPixelFormat(int index)
Return the supported video pixel format at the given index.
|
static PixelFormat.Type |
PixelFormat.swapEndianness(PixelFormat.Type pix_fmt)
Utility function to swap the endianness of a pixel format.
pix_fmt the pixel format |
static PixelFormat.Type |
PixelFormat.Type.swigToEnum(int swigValue) |
static PixelFormat.Type |
PixelFormat.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PixelFormat.Type[] |
PixelFormat.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<PixelFormat.Type> |
Codec.getSupportedVideoPixelFormats()
Returns a list of supported pixel formats this codec can encode
video in.
|
| Modifier and Type | Method and Description |
|---|---|
FilterPictureSink |
FilterGraph.addPictureSink(String name,
PixelFormat.Type format)
Add a FilterPictureSink.
|
FilterPictureSource |
FilterGraph.addPictureSource(String name,
int width,
int height,
PixelFormat.Type format,
Rational timeBase,
Rational pixelAspectRatio)
Add a FilterPictureSource.
|
static int |
PixelFormat.getBufferSizeNeeded(int width,
int height,
PixelFormat.Type pix_fmt)
Find the buffer size that would be necessary to store an image
with the given qualities. |
static PixelFormatDescriptor |
PixelFormat.getDescriptor(PixelFormat.Type pix_fmt) |
static String |
PixelFormat.getFormatName(PixelFormat.Type pix_fmt)
Return the short name for a pixel format, NULL in case pix_fmt is
unknown. |
static int |
PixelFormat.getNumPlanes(PixelFormat.Type pix_fmt) |
static MediaPicture |
MediaPicture.make(Buffer buffer,
int width,
int height,
PixelFormat.Type format)
Create a media picture using a buffer as the memory backing it.
|
static MediaPicture |
MediaPicture.make(int width,
int height,
PixelFormat.Type format)
Create a media picture.
|
static MediaPictureResampler |
MediaPictureResampler.make(int outputWidth,
int outputHeight,
PixelFormat.Type outputFmt,
int inputWidth,
int inputHeight,
PixelFormat.Type inputFmt,
int flags)
Get a new picture resampler.
|
void |
Coder.setPixelFormat(PixelFormat.Type pixelFmt)
Set the pixel format to ENCODE with.
|
static PixelFormat.Type |
PixelFormat.swapEndianness(PixelFormat.Type pix_fmt)
Utility function to swap the endianness of a pixel format.
pix_fmt the pixel format |
| Modifier and Type | Method and Description |
|---|---|
PixelFormat.Type |
MediaPictureConverter.getPictureType()
Get the picture type, as defined by
PixelFormat.Type, which this converter
recognizes. |
PixelFormat.Type |
MediaPictureConverterFactory.Type.getPictureType()
Get the
PixelFormat.Type which the
picture must be in to convert it to a BufferedImage |
| Modifier and Type | Method and Description |
|---|---|
static MediaPictureConverter |
MediaPictureConverterFactory.createConverter(BufferedImage image,
PixelFormat.Type pictureType)
Create a converter which translates between
BufferedImage
and MediaPicture types. |
static MediaPictureConverter |
MediaPictureConverterFactory.createConverter(String converterDescriptor,
PixelFormat.Type pictureType,
int width,
int height)
Create a converter which translates between
BufferedImage
and MediaPicture types. |
static MediaPictureConverter |
MediaPictureConverterFactory.createConverter(String converterDescriptor,
PixelFormat.Type pictureType,
int pictureWidth,
int pictureHeight,
int imageWidth,
int imageHeight)
Create a converter which translates betewen
BufferedImage
and MediaPicture types. |
| Constructor and Description |
|---|
Type(String descriptor,
Class<? extends MediaPictureConverter> converterClass,
PixelFormat.Type pictureType,
int imageType)
Construct a complete converter type description.
|
Copyright © 2018 Humble Software. All rights reserved.