public static class avutil.AVFrame extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Modifier and Type | Field and Description |
|---|---|
static int |
AV_FRAME_FLAG_CORRUPT
The frame data may be corrupted, e.g.
|
static int |
AV_NUM_DATA_POINTERS |
static int |
FF_DECODE_ERROR_INVALID_BITSTREAM |
static int |
FF_DECODE_ERROR_MISSING_REFERENCE |
| Constructor and Description |
|---|
AVFrame()
Default native constructor.
|
AVFrame(int size)
Native array allocator.
|
AVFrame(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PointerPointer |
base()
Deprecated.
|
BytePointer |
base(int i)
Deprecated.
|
avutil.AVFrame |
base(int i,
BytePointer base) |
long |
best_effort_timestamp()
frame timestamp estimated using various heuristics, in stream time base
Code outside libavcodec should access this field using:
av_frame_get_best_effort_timestamp(frame)
- encoding: unused
- decoding: set by libavcodec, read by user.
|
avutil.AVFrame |
best_effort_timestamp(long best_effort_timestamp) |
PointerPointer |
buf() |
avutil.AVBufferRef |
buf(int i)
AVBuffer references backing the data for this frame.
|
avutil.AVFrame |
buf(int i,
avutil.AVBufferRef buf) |
int |
buffer_hints()
Deprecated.
|
avutil.AVFrame |
buffer_hints(int buffer_hints) |
long |
channel_layout()
Channel layout of the audio data.
|
avutil.AVFrame |
channel_layout(long channel_layout) |
int |
channels()
number of audio channels, only used for audio.
|
avutil.AVFrame |
channels(int channels) |
int |
chroma_location() |
avutil.AVFrame |
chroma_location(int chroma_location) |
int |
coded_picture_number()
picture number in bitstream order
|
avutil.AVFrame |
coded_picture_number(int coded_picture_number) |
int |
color_primaries() |
avutil.AVFrame |
color_primaries(int color_primaries) |
int |
color_range()
MPEG vs JPEG YUV range.
|
avutil.AVFrame |
color_range(int color_range) |
int |
color_trc() |
avutil.AVFrame |
color_trc(int color_trc) |
int |
colorspace()
YUV colorspace type.
|
avutil.AVFrame |
colorspace(int colorspace) |
PointerPointer |
data() |
BytePointer |
data(int i)
pointer to the picture/channel planes.
|
avutil.AVFrame |
data(int i,
BytePointer data) |
ShortPointer |
dct_coeff()
Deprecated.
|
avutil.AVFrame |
dct_coeff(ShortPointer dct_coeff) |
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.
|
avutil.AVFrame |
decode_error_flags(int decode_error_flags) |
int |
display_picture_number()
picture number in display order
|
avutil.AVFrame |
display_picture_number(int display_picture_number) |
LongPointer |
error() |
long |
error(int i)
error
|
avutil.AVFrame |
error(int i,
long error) |
PointerPointer |
extended_buf() |
avutil.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.
|
avutil.AVFrame |
extended_buf(int i,
avutil.AVBufferRef extended_buf) |
PointerPointer |
extended_data() |
BytePointer |
extended_data(int i)
pointers to the data planes/channels.
|
avutil.AVFrame |
extended_data(int i,
BytePointer extended_data) |
int |
flags()
Frame flags, a combination of @ref lavu_frame_flags
|
avutil.AVFrame |
flags(int flags) |
int |
format()
format of the frame, -1 if unknown or unset
Values correspond to enum AVPixelFormat for video frames,
enum AVSampleFormat for audio)
|
avutil.AVFrame |
format(int format) |
int |
height() |
avutil.AVFrame |
height(int height) |
Pointer |
hwaccel_picture_private()
Deprecated.
this field is unused
|
avutil.AVFrame |
hwaccel_picture_private(Pointer hwaccel_picture_private) |
int |
interlaced_frame()
The content of the picture is interlaced.
|
avutil.AVFrame |
interlaced_frame(int interlaced_frame) |
int |
key_frame()
1 -> keyframe, 0-> not
|
avutil.AVFrame |
key_frame(int key_frame) |
IntPointer |
linesize() |
int |
linesize(int i)
For video, size in bytes of each picture line.
|
avutil.AVFrame |
linesize(int i,
int linesize) |
IntPointer |
mb_type()
Deprecated.
|
avutil.AVFrame |
mb_type(IntPointer mb_type) |
BytePointer |
mbskip_table()
Deprecated.
|
avutil.AVFrame |
mbskip_table(BytePointer mbskip_table) |
avutil.AVDictionary |
metadata()
metadata.
|
avutil.AVFrame |
metadata(avutil.AVDictionary metadata) |
byte |
motion_subsample_log2()
log2 of the size of the block which a single vector in motion_val represents:
(4->16x16, 3->8x8, 2-> 4x4, 1-> 2x2)
|
avutil.AVFrame |
motion_subsample_log2(byte motion_subsample_log2) |
ShortPointer |
motion_val() |
short |
motion_val(int i,
int j,
int k)
motion vector table
|
avutil.AVFrame |
motion_val(int i,
int j,
int k,
short motion_val) |
int |
nb_extended_buf()
Number of elements in extended_buf.
|
avutil.AVFrame |
nb_extended_buf(int nb_extended_buf) |
int |
nb_samples()
number of audio samples (per channel) described by this frame
|
avutil.AVFrame |
nb_samples(int nb_samples) |
int |
nb_side_data() |
avutil.AVFrame |
nb_side_data(int nb_side_data) |
Pointer |
opaque()
for some private data of the user
|
avutil.AVFrame |
opaque(Pointer opaque) |
Pointer |
owner()
Deprecated.
|
avutil.AVFrame |
owner(Pointer owner) |
int |
palette_has_changed()
Tell user application that palette has changed from previous frame.
|
avutil.AVFrame |
palette_has_changed(int palette_has_changed) |
Pointer |
pan_scan()
Deprecated.
|
avutil.AVFrame |
pan_scan(Pointer pan_scan) |
int |
pict_type()
Picture type of the frame.
|
avutil.AVFrame |
pict_type(int pict_type) |
long |
pkt_dts()
DTS copied from the AVPacket that triggered returning this frame.
|
avutil.AVFrame |
pkt_dts(long pkt_dts) |
long |
pkt_duration()
duration of the corresponding packet, expressed in
AVStream->time_base units, 0 if unknown.
|
avutil.AVFrame |
pkt_duration(long pkt_duration) |
long |
pkt_pos()
reordered pos from the last AVPacket that has been input into the decoder
Code outside libavcodec should access this field using:
av_frame_get_pkt_pos(frame)
- encoding: unused
- decoding: Read by user.
|
avutil.AVFrame |
pkt_pos(long pkt_pos) |
long |
pkt_pts()
PTS copied from the AVPacket that was decoded to produce this frame.
|
avutil.AVFrame |
pkt_pts(long pkt_pts) |
int |
pkt_size()
size of the corresponding packet containing the compressed
frame.
|
avutil.AVFrame |
pkt_size(int pkt_size) |
avutil.AVFrame |
position(int position) |
long |
pts()
Presentation timestamp in time_base units (time when frame should be shown to user).
|
avutil.AVFrame |
pts(long pts) |
avutil.AVBufferRef |
qp_table_buf()
Not to be accessed directly from outside libavutil
|
avutil.AVFrame |
qp_table_buf(avutil.AVBufferRef qp_table_buf) |
BytePointer |
qscale_table()
Deprecated.
|
avutil.AVFrame |
qscale_table(BytePointer qscale_table) |
int |
qscale_type()
Deprecated.
|
avutil.AVFrame |
qscale_type(int qscale_type) |
int |
qstride()
Deprecated.
|
avutil.AVFrame |
qstride(int qstride) |
int |
quality()
quality (between 1 (good) and FF_LAMBDA_MAX (bad))
|
avutil.AVFrame |
quality(int quality) |
PointerPointer |
ref_index()
Deprecated.
|
BytePointer |
ref_index(int i)
Deprecated.
|
avutil.AVFrame |
ref_index(int i,
BytePointer ref_index) |
int |
reference()
Deprecated.
|
avutil.AVFrame |
reference(int reference) |
long |
reordered_opaque()
Deprecated.
in favor of pkt_pts
|
avutil.AVFrame |
reordered_opaque(long reordered_opaque) |
int |
repeat_pict()
When decoding, this signals how much the picture must be delayed.
|
avutil.AVFrame |
repeat_pict(int repeat_pict) |
avutil.AVRational |
sample_aspect_ratio()
Sample aspect ratio for the video frame, 0/1 if unknown/unspecified.
|
avutil.AVFrame |
sample_aspect_ratio(avutil.AVRational sample_aspect_ratio) |
int |
sample_rate()
Sample rate of the audio data.
|
avutil.AVFrame |
sample_rate(int sample_rate) |
PointerPointer |
side_data() |
avutil.AVFrameSideData |
side_data(int i) |
avutil.AVFrame |
side_data(int i,
avutil.AVFrameSideData side_data) |
Pointer |
thread_opaque()
Deprecated.
|
avutil.AVFrame |
thread_opaque(Pointer thread_opaque) |
int |
top_field_first()
If the content is interlaced, is top field displayed first.
|
avutil.AVFrame |
top_field_first(int top_field_first) |
int |
type()
Deprecated.
|
avutil.AVFrame |
type(int type) |
int |
width()
width and height of the video frame
|
avutil.AVFrame |
width(int width) |
address, asBuffer, asByteBuffer, capacity, capacity, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, withDeallocator, zeropublic static final int AV_NUM_DATA_POINTERS
public static final int AV_FRAME_FLAG_CORRUPT
public static final int FF_DECODE_ERROR_INVALID_BITSTREAM
public static final int FF_DECODE_ERROR_MISSING_REFERENCE
public AVFrame()
public AVFrame(int size)
Pointer.position(int).public AVFrame(Pointer p)
Pointer.Pointer(Pointer).public avutil.AVFrame position(int position)
@Cast(value="uint8_t*") public BytePointer data(int i)
public avutil.AVFrame data(int i, BytePointer data)
@MemberGetter @Cast(value="uint8_t**") public PointerPointer data()
public int linesize(int i)
public avutil.AVFrame linesize(int i, int linesize)
@MemberGetter public IntPointer linesize()
@Cast(value="uint8_t*") public BytePointer extended_data(int i)
public avutil.AVFrame extended_data(int i, BytePointer extended_data)
@MemberGetter @Cast(value="uint8_t**") public PointerPointer extended_data()
public int width()
public avutil.AVFrame width(int width)
public int height()
public avutil.AVFrame height(int height)
public int nb_samples()
public avutil.AVFrame nb_samples(int nb_samples)
public int format()
public avutil.AVFrame format(int format)
public int key_frame()
public avutil.AVFrame key_frame(int key_frame)
public avutil.AVFrame pict_type(int pict_type)
@Cast(value="uint8_t*") @Deprecated public BytePointer base(int i)
public avutil.AVFrame base(int i, BytePointer base)
@MemberGetter @Cast(value="uint8_t**") @Deprecated public PointerPointer base()
@ByRef public avutil.AVRational sample_aspect_ratio()
public avutil.AVFrame sample_aspect_ratio(avutil.AVRational sample_aspect_ratio)
public long pts()
public avutil.AVFrame pts(long pts)
public long pkt_pts()
public avutil.AVFrame pkt_pts(long pkt_pts)
public long pkt_dts()
public avutil.AVFrame pkt_dts(long pkt_dts)
public int coded_picture_number()
public avutil.AVFrame coded_picture_number(int coded_picture_number)
public int display_picture_number()
public avutil.AVFrame display_picture_number(int display_picture_number)
public int quality()
public avutil.AVFrame quality(int quality)
@Deprecated public int reference()
public avutil.AVFrame reference(int reference)
@Deprecated public BytePointer qscale_table()
public avutil.AVFrame qscale_table(BytePointer qscale_table)
@Deprecated public int qstride()
public avutil.AVFrame qstride(int qstride)
@Deprecated public int qscale_type()
public avutil.AVFrame qscale_type(int qscale_type)
@Cast(value="uint8_t*") @Deprecated public BytePointer mbskip_table()
public avutil.AVFrame mbskip_table(BytePointer mbskip_table)
public short motion_val(int i,
int j,
int k)
public avutil.AVFrame motion_val(int i, int j, int k, short motion_val)
@MemberGetter @Cast(value="int16_t(*)[2]") public ShortPointer motion_val()
@Cast(value="uint32_t*") @Deprecated public IntPointer mb_type()
public avutil.AVFrame mb_type(IntPointer mb_type)
@Deprecated public ShortPointer dct_coeff()
public avutil.AVFrame dct_coeff(ShortPointer dct_coeff)
@Deprecated public BytePointer ref_index(int i)
public avutil.AVFrame ref_index(int i, BytePointer ref_index)
@MemberGetter @Cast(value="int8_t**") @Deprecated public PointerPointer ref_index()
public Pointer opaque()
public avutil.AVFrame opaque(Pointer opaque)
public avutil.AVFrame error(int i, long error)
@MemberGetter @Cast(value="uint64_t*") public LongPointer error()
@Deprecated public int type()
public avutil.AVFrame type(int type)
public int repeat_pict()
public avutil.AVFrame repeat_pict(int repeat_pict)
public int interlaced_frame()
public avutil.AVFrame interlaced_frame(int interlaced_frame)
public int top_field_first()
public avutil.AVFrame top_field_first(int top_field_first)
public int palette_has_changed()
public avutil.AVFrame palette_has_changed(int palette_has_changed)
@Deprecated public int buffer_hints()
public avutil.AVFrame buffer_hints(int buffer_hints)
@Cast(value="AVPanScan*") @Deprecated public Pointer pan_scan()
public avutil.AVFrame pan_scan(Pointer pan_scan)
public long reordered_opaque()
public avutil.AVFrame reordered_opaque(long reordered_opaque)
@Deprecated public Pointer hwaccel_picture_private()
public avutil.AVFrame hwaccel_picture_private(Pointer hwaccel_picture_private)
@Cast(value="AVCodecContext*") @Deprecated public Pointer owner()
public avutil.AVFrame owner(Pointer owner)
@Deprecated public Pointer thread_opaque()
public avutil.AVFrame thread_opaque(Pointer thread_opaque)
@Cast(value="uint8_t") public byte motion_subsample_log2()
public avutil.AVFrame motion_subsample_log2(byte motion_subsample_log2)
public int sample_rate()
public avutil.AVFrame sample_rate(int sample_rate)
@Cast(value="uint64_t") public long channel_layout()
public avutil.AVFrame channel_layout(long channel_layout)
public avutil.AVBufferRef buf(int i)
public avutil.AVFrame buf(int i, avutil.AVBufferRef buf)
@MemberGetter @Cast(value="AVBufferRef**") public PointerPointer buf()
public avutil.AVBufferRef extended_buf(int i)
public avutil.AVFrame extended_buf(int i, avutil.AVBufferRef extended_buf)
@MemberGetter @Cast(value="AVBufferRef**") public PointerPointer extended_buf()
public int nb_extended_buf()
public avutil.AVFrame nb_extended_buf(int nb_extended_buf)
public avutil.AVFrameSideData side_data(int i)
public avutil.AVFrame side_data(int i, avutil.AVFrameSideData side_data)
@MemberGetter @Cast(value="AVFrameSideData**") public PointerPointer side_data()
public int nb_side_data()
public avutil.AVFrame nb_side_data(int nb_side_data)
public int flags()
public avutil.AVFrame flags(int flags)
@Cast(value="AVColorRange") public int color_range()
public avutil.AVFrame color_range(int color_range)
public avutil.AVFrame color_primaries(int color_primaries)
public avutil.AVFrame color_trc(int color_trc)
@Cast(value="AVColorSpace") public int colorspace()
public avutil.AVFrame colorspace(int colorspace)
public avutil.AVFrame chroma_location(int chroma_location)
public long best_effort_timestamp()
public avutil.AVFrame best_effort_timestamp(long best_effort_timestamp)
public long pkt_pos()
public avutil.AVFrame pkt_pos(long pkt_pos)
public long pkt_duration()
public avutil.AVFrame pkt_duration(long pkt_duration)
public avutil.AVDictionary metadata()
public avutil.AVFrame metadata(avutil.AVDictionary metadata)
public int decode_error_flags()
public avutil.AVFrame decode_error_flags(int decode_error_flags)
public int channels()
public avutil.AVFrame channels(int channels)
public int pkt_size()
public avutil.AVFrame pkt_size(int pkt_size)
public avutil.AVBufferRef qp_table_buf()
public avutil.AVFrame qp_table_buf(avutil.AVBufferRef qp_table_buf)
Copyright © 2015. All Rights Reserved.