@Properties(inherit=avutil.class) public class AVFrame extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
AV_FRAME_FLAG_CORRUPT
The frame data may be corrupted, e.g.
|
static int |
AV_FRAME_FLAG_DISCARD
A flag to mark the frames which need to be decoded, but shouldn't be output.
|
static int |
AV_NUM_DATA_POINTERS |
static int |
FF_DECODE_ERROR_CONCEALMENT_ACTIVE |
static int |
FF_DECODE_ERROR_DECODE_SLICES |
static int |
FF_DECODE_ERROR_INVALID_BITSTREAM |
static int |
FF_DECODE_ERROR_MISSING_REFERENCE |
Constructor and Description |
---|
AVFrame()
Default native constructor.
|
AVFrame(long size)
Native array allocator.
|
AVFrame(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
best_effort_timestamp()
frame timestamp estimated using various heuristics, in stream time base
- encoding: unused
- decoding: set by libavcodec, read by user.
|
AVFrame |
best_effort_timestamp(long setter) |
PointerPointer |
buf() |
AVBufferRef |
buf(int i)
AVBuffer references backing the data for this frame.
|
AVFrame |
buf(int i,
AVBufferRef setter) |
long |
channel_layout()
Channel layout of the audio data.
|
AVFrame |
channel_layout(long setter) |
int |
channels()
number of audio channels, only used for audio.
|
AVFrame |
channels(int setter) |
int |
chroma_location() |
AVFrame |
chroma_location(int setter) |
int |
coded_picture_number()
picture number in bitstream order
|
AVFrame |
coded_picture_number(int setter) |
int |
color_primaries() |
AVFrame |
color_primaries(int setter) |
int |
color_range()
MPEG vs JPEG YUV range.
|
AVFrame |
color_range(int setter) |
int |
color_trc() |
AVFrame |
color_trc(int setter) |
int |
colorspace()
YUV colorspace type.
|
AVFrame |
colorspace(int setter) |
long |
crop_bottom() |
AVFrame |
crop_bottom(long setter) |
long |
crop_left() |
AVFrame |
crop_left(long setter) |
long |
crop_right() |
AVFrame |
crop_right(long setter) |
long |
crop_top()
\anchor cropping
\name Cropping
Video frames only.
|
AVFrame |
crop_top(long setter) |
PointerPointer |
data() |
BytePointer |
data(int i)
pointer to the picture/channel planes.
|
AVFrame |
data(int i,
BytePointer setter) |
int |
decode_error_flags()
decode error flags of the frame, set to a combination of
FF_DECODE_ERROR_xxx flags if the decoder produced a frame, but there
were errors during the decoding.
|
AVFrame |
decode_error_flags(int setter) |
int |
display_picture_number()
picture number in display order
|
AVFrame |
display_picture_number(int setter) |
LongPointer |
error()
Deprecated.
|
long |
error(int i)
Deprecated.
unused
|
AVFrame |
error(int i,
long setter) |
PointerPointer |
extended_buf() |
AVBufferRef |
extended_buf(int i)
For planar audio which requires more than AV_NUM_DATA_POINTERS
AVBufferRef pointers, this array will hold all the references which
cannot fit into AVFrame.buf.
|
AVFrame |
extended_buf(int i,
AVBufferRef setter) |
AVFrame |
extended_buf(PointerPointer setter) |
PointerPointer |
extended_data() |
BytePointer |
extended_data(int i)
pointers to the data planes/channels.
|
AVFrame |
extended_data(int i,
BytePointer setter) |
AVFrame |
extended_data(PointerPointer setter) |
int |
flags()
Frame flags, a combination of \ref lavu_frame_flags
|
AVFrame |
flags(int setter) |
int |
format()
format of the frame, -1 if unknown or unset
Values correspond to enum AVPixelFormat for video frames,
enum AVSampleFormat for audio)
|
AVFrame |
format(int setter) |
int |
height() |
AVFrame |
height(int setter) |
AVBufferRef |
hw_frames_ctx()
For hwaccel-format frames, this should be a reference to the
AVHWFramesContext describing the frame.
|
AVFrame |
hw_frames_ctx(AVBufferRef setter) |
int |
interlaced_frame()
The content of the picture is interlaced.
|
AVFrame |
interlaced_frame(int setter) |
int |
key_frame()
1 -> keyframe, 0-> not
|
AVFrame |
key_frame(int setter) |
IntPointer |
linesize() |
int |
linesize(int i)
For video, size in bytes of each picture line.
|
AVFrame |
linesize(int i,
int setter) |
AVDictionary |
metadata()
metadata.
|
AVFrame |
metadata(AVDictionary setter) |
int |
nb_extended_buf()
Number of elements in extended_buf.
|
AVFrame |
nb_extended_buf(int setter) |
int |
nb_samples()
number of audio samples (per channel) described by this frame
|
AVFrame |
nb_samples(int setter) |
int |
nb_side_data() |
AVFrame |
nb_side_data(int setter) |
AVBufferRef |
opaque_ref()
AVBufferRef for free use by the API user.
|
AVFrame |
opaque_ref(AVBufferRef setter) |
Pointer |
opaque()
for some private data of the user
|
AVFrame |
opaque(Pointer setter) |
int |
palette_has_changed()
Tell user application that palette has changed from previous frame.
|
AVFrame |
palette_has_changed(int setter) |
int |
pict_type()
Picture type of the frame.
|
AVFrame |
pict_type(int setter) |
long |
pkt_dts()
DTS copied from the AVPacket that triggered returning this frame.
|
AVFrame |
pkt_dts(long setter) |
long |
pkt_duration()
duration of the corresponding packet, expressed in
AVStream->time_base units, 0 if unknown.
|
AVFrame |
pkt_duration(long setter) |
long |
pkt_pos()
reordered pos from the last AVPacket that has been input into the decoder
- encoding: unused
- decoding: Read by user.
|
AVFrame |
pkt_pos(long setter) |
long |
pkt_pts()
Deprecated.
use the pts field instead
|
AVFrame |
pkt_pts(long setter) |
int |
pkt_size()
size of the corresponding packet containing the compressed
frame.
|
AVFrame |
pkt_size(int setter) |
AVFrame |
position(long position) |
AVBufferRef |
private_ref()
AVBufferRef for internal use by a single libav* library.
|
AVFrame |
private_ref(AVBufferRef setter) |
long |
pts()
Presentation timestamp in time_base units (time when frame should be shown to user).
|
AVFrame |
pts(long setter) |
AVBufferRef |
qp_table_buf()
Deprecated.
|
AVFrame |
qp_table_buf(AVBufferRef setter) |
BytePointer |
qscale_table()
Deprecated.
|
AVFrame |
qscale_table(BytePointer setter) |
int |
qscale_type()
Deprecated.
|
AVFrame |
qscale_type(int setter) |
int |
qstride()
Deprecated.
|
AVFrame |
qstride(int setter) |
int |
quality()
quality (between 1 (good) and FF_LAMBDA_MAX (bad))
|
AVFrame |
quality(int setter) |
long |
reordered_opaque()
reordered opaque 64 bits (generally an integer or a double precision float
PTS but can be anything).
|
AVFrame |
reordered_opaque(long setter) |
int |
repeat_pict()
When decoding, this signals how much the picture must be delayed.
|
AVFrame |
repeat_pict(int setter) |
AVRational |
sample_aspect_ratio()
Sample aspect ratio for the video frame, 0/1 if unknown/unspecified.
|
AVFrame |
sample_aspect_ratio(AVRational setter) |
int |
sample_rate()
Sample rate of the audio data.
|
AVFrame |
sample_rate(int setter) |
PointerPointer |
side_data() |
AVFrameSideData |
side_data(int i) |
AVFrame |
side_data(int i,
AVFrameSideData setter) |
AVFrame |
side_data(PointerPointer setter) |
int |
top_field_first()
If the content is interlaced, is top field displayed first.
|
AVFrame |
top_field_first(int setter) |
int |
width()
\name Video dimensions
Video frames only.
|
AVFrame |
width(int setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public static final int AV_NUM_DATA_POINTERS
public static final int AV_FRAME_FLAG_CORRUPT
public static final int AV_FRAME_FLAG_DISCARD
public static final int FF_DECODE_ERROR_INVALID_BITSTREAM
public static final int FF_DECODE_ERROR_MISSING_REFERENCE
public static final int FF_DECODE_ERROR_CONCEALMENT_ACTIVE
public static final int FF_DECODE_ERROR_DECODE_SLICES
public AVFrame()
public AVFrame(long size)
Pointer.position(long)
.public AVFrame(Pointer p)
Pointer.Pointer(Pointer)
.@Cast(value="uint8_t*") public BytePointer data(int i)
public AVFrame data(int i, BytePointer setter)
@MemberGetter @Cast(value="uint8_t**") public PointerPointer data()
public int linesize(int i)
public AVFrame linesize(int i, int setter)
@MemberGetter public IntPointer linesize()
@Cast(value="uint8_t*") public BytePointer extended_data(int i)
public AVFrame extended_data(int i, BytePointer setter)
@Cast(value="uint8_t**") public PointerPointer extended_data()
public AVFrame extended_data(PointerPointer setter)
public int width()
public AVFrame width(int setter)
public int height()
public AVFrame height(int setter)
public int nb_samples()
public AVFrame nb_samples(int setter)
public int format()
public AVFrame format(int setter)
public int key_frame()
public AVFrame key_frame(int setter)
public AVFrame pict_type(int setter)
@ByRef public AVRational sample_aspect_ratio()
public AVFrame sample_aspect_ratio(AVRational setter)
@Cast(value="int64_t") public long pts()
public AVFrame pts(long setter)
@Cast(value="int64_t") @Deprecated public long pkt_pts()
public AVFrame pkt_pts(long setter)
@Cast(value="int64_t") public long pkt_dts()
public AVFrame pkt_dts(long setter)
public int coded_picture_number()
public AVFrame coded_picture_number(int setter)
public int display_picture_number()
public AVFrame display_picture_number(int setter)
public int quality()
public AVFrame quality(int setter)
public Pointer opaque()
@Cast(value="uint64_t") @Deprecated public long error(int i)
public AVFrame error(int i, long setter)
@MemberGetter @Cast(value="uint64_t*") @Deprecated public LongPointer error()
public int repeat_pict()
public AVFrame repeat_pict(int setter)
public int interlaced_frame()
public AVFrame interlaced_frame(int setter)
public int top_field_first()
public AVFrame top_field_first(int setter)
public int palette_has_changed()
public AVFrame palette_has_changed(int setter)
@Cast(value="int64_t") public long reordered_opaque()
public AVFrame reordered_opaque(long setter)
public int sample_rate()
public AVFrame sample_rate(int setter)
@Cast(value="uint64_t") public long channel_layout()
public AVFrame channel_layout(long setter)
public AVBufferRef buf(int i)
public AVFrame buf(int i, AVBufferRef setter)
@MemberGetter @Cast(value="AVBufferRef**") public PointerPointer buf()
public AVBufferRef extended_buf(int i)
public AVFrame extended_buf(int i, AVBufferRef setter)
@Cast(value="AVBufferRef**") public PointerPointer extended_buf()
public AVFrame extended_buf(PointerPointer setter)
public int nb_extended_buf()
public AVFrame nb_extended_buf(int setter)
public AVFrameSideData side_data(int i)
public AVFrame side_data(int i, AVFrameSideData setter)
@Cast(value="AVFrameSideData**") public PointerPointer side_data()
public AVFrame side_data(PointerPointer setter)
public int nb_side_data()
public AVFrame nb_side_data(int setter)
public int flags()
public AVFrame flags(int setter)
@Cast(value="AVColorRange") public int color_range()
public AVFrame color_range(int setter)
public AVFrame color_primaries(int setter)
public AVFrame color_trc(int setter)
@Cast(value="AVColorSpace") public int colorspace()
public AVFrame colorspace(int setter)
public AVFrame chroma_location(int setter)
@Cast(value="int64_t") public long best_effort_timestamp()
public AVFrame best_effort_timestamp(long setter)
@Cast(value="int64_t") public long pkt_pos()
public AVFrame pkt_pos(long setter)
@Cast(value="int64_t") public long pkt_duration()
public AVFrame pkt_duration(long setter)
public AVDictionary metadata()
public AVFrame metadata(AVDictionary setter)
public int decode_error_flags()
public AVFrame decode_error_flags(int setter)
public int channels()
public AVFrame channels(int setter)
public int pkt_size()
public AVFrame pkt_size(int setter)
@Deprecated public BytePointer qscale_table()
public AVFrame qscale_table(BytePointer setter)
@Deprecated public int qstride()
public AVFrame qstride(int setter)
@Deprecated public int qscale_type()
public AVFrame qscale_type(int setter)
@Deprecated public AVBufferRef qp_table_buf()
public AVFrame qp_table_buf(AVBufferRef setter)
public AVBufferRef hw_frames_ctx()
public AVFrame hw_frames_ctx(AVBufferRef setter)
public AVBufferRef opaque_ref()
public AVFrame opaque_ref(AVBufferRef setter)
@Cast(value="size_t") public long crop_top()
public AVFrame crop_top(long setter)
public AVFrame crop_bottom(long setter)
public AVFrame crop_left(long setter)
public AVFrame crop_right(long setter)
public AVBufferRef private_ref()
public AVFrame private_ref(AVBufferRef setter)
Copyright © 2020. All rights reserved.