@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) |
int |
codec_info_nb_frames()
Number of frames that have been demuxed during avformat_find_stream_info()
|
AVStream |
codec_info_nb_frames(int setter) |
AVCodecContext |
codec()
Deprecated.
use the codecpar struct instead
|
AVStream |
codec(AVCodecContext setter) |
AVCodecParameters |
codecpar()
Codec parameters associated with this stream.
|
AVStream |
codecpar(AVCodecParameters setter) |
long |
cur_dts() |
AVStream |
cur_dts(long setter) |
int |
discard()
Selects which packets can be discarded at will and do not need to be demuxed.
|
AVStream |
discard(int setter) |
int |
disposition()
AV_DISPOSITION_* bit field
|
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) |
long |
first_dts()
Timestamp corresponding to the last dts sync point.
|
AVStream |
first_dts(long setter) |
AVStream |
getPointer(long i) |
int |
id()
Format-specific stream ID.
|
AVStream |
id(int setter) |
int |
index_entries_allocated_size() |
AVStream |
index_entries_allocated_size(int setter) |
AVIndexEntry |
index_entries()
Only used if the format does not
support seeking natively.
|
AVStream |
index_entries(AVIndexEntry setter) |
int |
index()
stream index in AVFormatContext
|
AVStream |
index(int setter) |
AVStreamInternal |
internal()
An opaque field for libavformat internal usage.
|
AVStream |
internal(AVStreamInternal setter) |
int |
last_IP_duration() |
AVStream |
last_IP_duration(int setter) |
long |
last_IP_pts() |
AVStream |
last_IP_pts(long 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_index_entries() |
AVStream |
nb_index_entries(int setter) |
int |
nb_side_data()
The number of elements in the AVStream.side_data array.
|
AVStream |
nb_side_data(int setter) |
int |
need_parsing() |
AVStream |
need_parsing(int setter) |
AVCodecParserContext |
parser() |
AVStream |
parser(AVCodecParserContext setter) |
AVStream |
position(long position) |
Pointer |
priv_data() |
AVStream |
priv_data(Pointer setter) |
int |
probe_packets()
Number of packets to buffer for codec probing
|
AVStream |
probe_packets(int setter) |
int |
pts_wrap_bits()
number of bits in pts (used for wrapping control)
|
AVStream |
pts_wrap_bits(int setter) |
AVRational |
r_frame_rate()
Real base framerate of the stream.
|
AVStream |
r_frame_rate(AVRational setter) |
BytePointer |
recommended_encoder_configuration()
Deprecated.
unused
|
AVStream |
recommended_encoder_configuration(BytePointer 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) |
int |
stream_identifier()
Stream Identifier
This is the MPEG-TS stream identifier +1
0 means unknown
|
AVStream |
stream_identifier(int 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) |
Pointer |
unused()
All fields below this line are not part of the public API.
|
AVStream |
unused(Pointer setter) |
int |
unused10() |
AVStream |
unused10(int setter) |
LongPointer |
unused5() |
long |
unused5(int i) |
AVStream |
unused5(int i,
long setter) |
AVProbeData |
unused6() |
AVStream |
unused6(AVProbeData setter) |
Pointer |
unused7() |
AVStream |
unused7(Pointer setter) |
int |
unused8() |
AVStream |
unused8(int setter) |
int |
unused9() |
AVStream |
unused9(int setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic 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 Pointerpublic int index()
public AVStream index(int setter)
public int id()
public AVStream id(int setter)
@Deprecated public AVCodecContext codec()
public AVStream codec(AVCodecContext 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)
@Cast(value="char*") @Deprecated public BytePointer recommended_encoder_configuration()
public AVStream recommended_encoder_configuration(BytePointer setter)
public AVCodecParameters codecpar()
public AVStream codecpar(AVCodecParameters setter)
public Pointer unused()
public int pts_wrap_bits()
public AVStream pts_wrap_bits(int setter)
@Cast(value="int64_t") public long first_dts()
public AVStream first_dts(long setter)
public AVStream cur_dts(long setter)
public AVStream last_IP_pts(long setter)
public int last_IP_duration()
public AVStream last_IP_duration(int setter)
public int probe_packets()
public AVStream probe_packets(int setter)
public int codec_info_nb_frames()
public AVStream codec_info_nb_frames(int setter)
public AVStream need_parsing(int setter)
public AVCodecParserContext parser()
public AVStream parser(AVCodecParserContext setter)
public Pointer unused7()
@ByRef public AVProbeData unused6()
public AVStream unused6(AVProbeData setter)
public AVStream unused5(int i, long setter)
@MemberGetter @Cast(value="int64_t*") public LongPointer unused5()
public AVIndexEntry index_entries()
public AVStream index_entries(AVIndexEntry setter)
public int nb_index_entries()
public AVStream nb_index_entries(int setter)
public AVStream index_entries_allocated_size(int setter)
public int stream_identifier()
public AVStream stream_identifier(int setter)
public int unused8()
public AVStream unused8(int setter)
public int unused9()
public AVStream unused9(int setter)
public int unused10()
public AVStream unused10(int setter)
public AVStreamInternal internal()
public AVStream internal(AVStreamInternal setter)
Copyright © 2021. All rights reserved.