
public class MediaPictureResampler extends MediaResampler
| Modifier and Type | Class and Description |
|---|---|
static class |
MediaPictureResampler.Flag |
MediaResampler.State| Modifier and Type | Method and Description |
|---|---|
MediaPictureResampler |
copyReference()
Create a new MediaPictureResampler object that is actually referring to the
exact same underlying native object.
|
boolean |
equals(Object obj)
Compares two values, returning true if the underlying objects in native code are the same object.
|
PixelFormat.Type |
getInputFormat()
Get the input pixel format.
|
int |
getInputHeight()
Get the height in pixels we expect on the input frame to the resampler.
|
int |
getInputWidth()
Get the width in pixels we expect on the input frame to the resampler.
|
PixelFormat.Type |
getOutputFormat()
Get the output pixel format.
|
int |
getOutputHeight()
Get the output height, in pixels.
|
int |
getOutputWidth()
Get the output width, in pixels.
|
int |
hashCode()
Get a hashable value for this object.
|
static MediaPictureResampler |
make(int outputWidth,
int outputHeight,
PixelFormat.Type outputFmt,
int inputWidth,
int inputHeight,
PixelFormat.Type inputFmt,
int flags)
Get a new picture resampler.
|
void |
open()
Opens the resampler so it can be ready for resampling.
You should NOT set options after you open this object. |
int |
resample(MediaSampled out,
MediaSampled in)
Resample in to out based on the resampler parameters.
Resamples the in picture based on the parameters set when this resampler was constructed. |
int |
resamplePicture(MediaPicture out,
MediaPicture in)
A more precisely typed way to call #resample
|
String |
toString() |
getStategetNumProperties, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsInt, getPropertyAsLong, getPropertyAsRational, getPropertyAsString, getPropertyMetaData, getPropertyMetaData, setProperty, setProperty, setProperty, setProperty, setProperty, setPropertydelete, getCurrentRefCountpublic MediaPictureResampler copyReference()
copyReference in class MediaResamplerpublic boolean equals(Object obj)
equals in class MediaResamplerpublic int hashCode()
hashCode in class MediaResamplerpublic int getInputWidth()
public int getInputHeight()
public PixelFormat.Type getInputFormat()
public int getOutputWidth()
public int getOutputHeight()
public PixelFormat.Type getOutputFormat()
public void open()
public int resample(MediaSampled out, MediaSampled in)
resample in class MediaResamplerout - The picture we'll resample to. Checkin - The picture we'll resample from.InvalidArgument - if in our out does not match the parameters thispublic int resamplePicture(MediaPicture out, MediaPicture in)
public static MediaPictureResampler make(int outputWidth, int outputHeight, PixelFormat.Type outputFmt, int inputWidth, int inputHeight, PixelFormat.Type inputFmt, int flags)
outputWidth - The width in pixels you want to output frame to have.outputHeight - The height in pixels you want to output frame to have.outputFmt - The pixel format of the output frame.inputWidth - The width in pixels the input frame will be in.inputHeight - The height in pixels the input frame will be in.inputFmt - The pixel format of the input frame.Copyright © 2018 Humble Software. All rights reserved.