
public class MediaPicture extends MediaSampled
| Modifier and Type | Class and Description |
|---|---|
static class |
MediaPicture.Type
The different types of images that we can set.
|
DEFAULT_TIME_STAMP_FORMAT| Modifier and Type | Method and Description |
|---|---|
MediaPicture |
copyReference()
Create a new MediaPicture 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.
|
int |
getCodedPictureNumber()
picture number in bitstream order
|
Buffer |
getData(int plane)
Get any underlying raw data available for this object.
|
int |
getDataPlaneSize(int plane)
The total number of bytes in #getData() that represent valid image data.
|
int |
getDisplayPictureNumber()
picture number in display order
|
long |
getError(int dataPlane)
Get the error flags (if any) that the decoder set for this image on any given plane.
|
PixelFormat.Type |
getFormat() |
int |
getHeight() |
int |
getLineSize(int plane)
The width in pixels of a line of the image in the given plane.
The plane from the data. |
int |
getNumDataPlanes()
Returns the number of data planes in this object.
|
int |
getQuality()
quality (between 1 (good) and FF_LAMBDA_MAX (bad))
|
int |
getRepeatPicture()
When decoding, this signals how much the picture must be delayed.
extra_delay = repeat_pict / (2*fps) |
MediaPicture.Type |
getType()
Get the type of picture this object was decoded from when in a encoded stream
(or give a hint to an encoder about how you think it should be encoded). |
int |
getWidth() |
int |
hashCode()
Get a hashable value for this object.
|
boolean |
isComplete()
Returns true if the data in this picture is marked as complete.
|
boolean |
isInterlacedFrame()
The content of the picture is interlaced.
|
boolean |
isPaletteChanged()
Tell user application that palette has changed from previous frame.
|
boolean |
isTopFieldFirst()
If the content is interlaced, is top field displayed first.
|
static 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 |
make(int width,
int height,
PixelFormat.Type format)
Create a media picture.
|
static MediaPicture |
make(MediaPicture src,
boolean copy)
Create a media picture from src.
|
void |
setCodedPictureNumber(int n)
set picture number
|
void |
setComplete(boolean complete)
Set this frame to complete.
|
void |
setDisplayPictureNumber(int n)
set picture number in display order
|
void |
setInterlacedFrame(boolean val) |
void |
setPaletteChange(boolean val) |
void |
setQuality(int q)
set quality.
|
void |
setRepeatPicture(int n) |
void |
setTopFieldFirst(boolean val) |
void |
setType(MediaPicture.Type type) |
String |
toString()
info about this picture
|
getNumSamplesgetBestEffortTimeStamp, getMetaData, getPacketDts, getPacketDuration, getPacketPts, getPacketSize, getPts, getTimeBase, getTimeStamp, isKey, setTimeBase, setTimeStampgetFormattedTimeStamp, getFormattedTimeStampdelete, getCurrentRefCountpublic MediaPicture copyReference()
copyReference in class MediaSampledpublic boolean equals(Object obj)
equals in class MediaSampledpublic int hashCode()
hashCode in class MediaSampledpublic String toString()
public static MediaPicture make(int width, int height, PixelFormat.Type format)
width - Number of pixels wide.height - Number of pixels high.format - PixelFormat.Type of the MediaPictureInvalidArgument - if width or height or negative, of format is PixelFormat.Type.PIX_FMT_NONEpublic static MediaPicture make(Buffer buffer, int width, int height, PixelFormat.Type format)
buffer - A buffer of data to use for the image.width - Number of pixels wide.height - Number of pixels high.format - PixelFormat.Type of the MediaPictureInvalidArgument - if buffer is null or too small for the image, width or height or negative, of format is PixelFormat.Type.PIX_FMT_NONEpublic static MediaPicture make(MediaPicture src, boolean copy)
src - A source MediaPicture.copy - If true then all data is copied from src into the new object. If false, then the new object just copies meta-data but references the same underlying buffers.InvalidArgument - if src is null.public Buffer getData(int plane)
plane - The plane number if getFormat() is Planar (rather than packed) image data. Pass zero for packed data.public int getDataPlaneSize(int plane)
public int getNumDataPlanes()
public int getLineSize(int plane)
public void setComplete(boolean complete)
setComplete in class MediaRawcomplete - is the object complete or not.Media.isComplete()public boolean isComplete()
isComplete in class Media#setComplete(int)public int getWidth()
public int getHeight()
public PixelFormat.Type getFormat()
public int getCodedPictureNumber()
public void setCodedPictureNumber(int n)
getCodedPictureNumber()public int getDisplayPictureNumber()
public void setDisplayPictureNumber(int n)
getDisplayPictureNumber()public int getQuality()
public void setQuality(int q)
getQuality()public long getError(int dataPlane)
dataPlane - The plane to search for error flags.public int getRepeatPicture()
public void setRepeatPicture(int n)
public boolean isInterlacedFrame()
public void setInterlacedFrame(boolean val)
public boolean isTopFieldFirst()
public void setTopFieldFirst(boolean val)
public boolean isPaletteChanged()
public void setPaletteChange(boolean val)
public MediaPicture.Type getType()
public void setType(MediaPicture.Type type)
Copyright © 2018 Humble Software. All rights reserved.