@Properties(inherit=avformat.class) public class AVStream extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
AVSTREAM_EVENT_FLAG_METADATA_UPDATED
- demuxing: the demuxer read new metadata from the file and updated
AVStream.metadata accordingly
- muxing: the user updated AVStream.metadata and wishes the muxer to write
it into the file
|
static int |
AVSTREAM_EVENT_FLAG_NEW_PACKETS
- demuxing: new packets for this stream were read from the file.
|
Constructor and Description |
---|
AVStream()
Default native constructor.
|
AVStream(long size)
Native array allocator.
|
AVStream(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
AVPacket |
attached_pic()
For streams with AV_DISPOSITION_ATTACHED_PIC disposition, this packet
will contain the attached picture.
|
AVStream |
attached_pic(AVPacket setter) |
AVRational |
avg_frame_rate()
Average framerate
- demuxing: May be set by libavformat when creating the stream or in
avformat_find_stream_info().
|
AVStream |
avg_frame_rate(AVRational setter) |
AVCodecParameters |
codecpar()
Codec parameters associated with this stream.
|
AVStream |
codecpar(AVCodecParameters setter) |
int |
discard()
Selects which packets can be discarded at will and do not need to be demuxed.
|
AVStream |
discard(int setter) |
int |
disposition()
Stream disposition - a combination of AV_DISPOSITION_* flags.
|
AVStream |
disposition(int setter) |
long |
duration()
Decoding: duration of the stream, in stream time base.
|
AVStream |
duration(long setter) |
int |
event_flags()
Flags indicating events happening on the stream, a combination of
AVSTREAM_EVENT_FLAG_*.
|
AVStream |
event_flags(int setter) |
AVStream |
getPointer(long i) |
int |
id()
Format-specific stream ID.
|
AVStream |
id(int setter) |
int |
index()
stream index in AVFormatContext
|
AVStream |
index(int setter) |
AVDictionary |
metadata() |
AVStream |
metadata(AVDictionary setter) |
long |
nb_frames()
number of frames in this stream if known or 0
|
AVStream |
nb_frames(long setter) |
int |
nb_side_data()
The number of elements in the AVStream.side_data array.
|
AVStream |
nb_side_data(int setter) |
AVStream |
position(long position) |
Pointer |
priv_data() |
AVStream |
priv_data(Pointer setter) |
int |
pts_wrap_bits()
Number of bits in timestamps.
|
AVStream |
pts_wrap_bits(int setter) |
AVRational |
r_frame_rate()
Real base framerate of the stream.
|
AVStream |
r_frame_rate(AVRational setter) |
AVRational |
sample_aspect_ratio()
sample aspect ratio (0 if unknown)
- encoding: Set by user.
|
AVStream |
sample_aspect_ratio(AVRational setter) |
AVPacketSideData |
side_data()
An array of side data that applies to the whole stream (i.e.
|
AVStream |
side_data(AVPacketSideData setter) |
long |
start_time()
Decoding: pts of the first frame of the stream in presentation order, in stream time base.
|
AVStream |
start_time(long setter) |
AVRational |
time_base()
This is the fundamental unit of time (in seconds) in terms
of which frame timestamps are represented.
|
AVStream |
time_base(AVRational setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public static final int AVSTREAM_EVENT_FLAG_METADATA_UPDATED
public static final int AVSTREAM_EVENT_FLAG_NEW_PACKETS
public AVStream()
public AVStream(long size)
Pointer.position(long)
.public AVStream(Pointer p)
Pointer(Pointer)
.public AVStream getPointer(long i)
getPointer
in class Pointer
public int index()
public AVStream index(int setter)
public int id()
public AVStream id(int setter)
public Pointer priv_data()
@ByRef public AVRational time_base()
public AVStream time_base(AVRational setter)
@Cast(value="int64_t") public long start_time()
public AVStream start_time(long setter)
@Cast(value="int64_t") public long duration()
public AVStream duration(long setter)
@Cast(value="int64_t") public long nb_frames()
public AVStream nb_frames(long setter)
public int disposition()
public AVStream disposition(int setter)
@Cast(value="AVDiscard") public int discard()
public AVStream discard(int setter)
@ByRef public AVRational sample_aspect_ratio()
public AVStream sample_aspect_ratio(AVRational setter)
public AVDictionary metadata()
public AVStream metadata(AVDictionary setter)
@ByRef public AVRational avg_frame_rate()
public AVStream avg_frame_rate(AVRational setter)
@ByRef public AVPacket attached_pic()
public AVPacketSideData side_data()
av_format_inject_global_side_data()
public AVStream side_data(AVPacketSideData setter)
public int nb_side_data()
public AVStream nb_side_data(int setter)
public int event_flags()
public AVStream event_flags(int setter)
@ByRef public AVRational r_frame_rate()
public AVStream r_frame_rate(AVRational setter)
public AVCodecParameters codecpar()
public AVStream codecpar(AVCodecParameters setter)
public int pts_wrap_bits()
public AVStream pts_wrap_bits(int setter)
Copyright © 2022. All rights reserved.