@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
The call resulted in updated metadata.
|
static int |
MAX_REORDER_DELAY |
static int |
MAX_STD_TIMEBASES
All fields below this line are not part of the public API.
|
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) |
AVRational |
display_aspect_ratio()
display aspect ratio (0 if unknown)
- encoding: unused
- decoding: Set by libavformat to calculate sample_aspect_ratio internally
|
AVStream |
display_aspect_ratio(AVRational setter) |
int |
disposition()
AV_DISPOSITION_* bit field
|
AVStream |
disposition(int setter) |
byte |
dts_misordered() |
AVStream |
dts_misordered(byte setter) |
byte |
dts_ordered() |
AVStream |
dts_ordered(byte setter) |
long |
duration()
Decoding: duration of the stream, in stream time base.
|
AVStream |
duration(long setter) |
int |
event_flags()
Flags for the user to detect events happening on the stream.
|
AVStream |
event_flags(int setter) |
long |
first_discard_sample()
If not 0, the first audio sample that should be discarded from the stream.
|
AVStream |
first_discard_sample(long setter) |
long |
first_dts()
Timestamp corresponding to the last dts sync point.
|
AVStream |
first_dts(long setter) |
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) |
long |
info_codec_info_duration_fields(int i) |
AVStream |
info_codec_info_duration_fields(int i,
long setter) |
long |
info_codec_info_duration(int i) |
AVStream |
info_codec_info_duration(int i,
long setter) |
int |
info_duration_count(int i) |
AVStream |
info_duration_count(int i,
int setter) |
DoublePointer |
info_duration_error(int i) |
long |
info_duration_gcd(int i) |
AVStream |
info_duration_gcd(int i,
long setter) |
int |
info_found_decoder(int i)
0 -> decoder has not been searched for yet.
|
AVStream |
info_found_decoder(int i,
int setter) |
int |
info_fps_first_dts_idx(int i) |
AVStream |
info_fps_first_dts_idx(int i,
int setter) |
long |
info_fps_first_dts(int i)
Those are used for average framerate estimation.
|
AVStream |
info_fps_first_dts(int i,
long setter) |
int |
info_fps_last_dts_idx(int i) |
AVStream |
info_fps_last_dts_idx(int i,
int setter) |
long |
info_fps_last_dts(int i) |
AVStream |
info_fps_last_dts(int i,
long setter) |
int |
info_frame_delay_evidence(int i) |
AVStream |
info_frame_delay_evidence(int i,
int setter) |
long |
info_last_dts(int i)
Stream information used internally by avformat_find_stream_info()
|
AVStream |
info_last_dts(int i,
long setter) |
long |
info_last_duration(int i) |
AVStream |
info_last_duration(int i,
long setter) |
long |
info_rfps_duration_sum(int i) |
AVStream |
info_rfps_duration_sum(int i,
long setter) |
int |
inject_global_side_data()
Internal data to inject global side data
|
AVStream |
inject_global_side_data(int setter) |
long |
interleaver_chunk_duration() |
AVStream |
interleaver_chunk_duration(long setter) |
long |
interleaver_chunk_size() |
AVStream |
interleaver_chunk_size(long setter) |
AVStreamInternal |
internal()
An opaque field for libavformat internal usage.
|
AVStream |
internal(AVStreamInternal setter) |
long |
last_discard_sample()
The sample after last sample that is intended to be discarded after
first_discard_sample.
|
AVStream |
last_discard_sample(long setter) |
long |
last_dts_for_order_check()
Internal data to analyze DTS and detect faulty mpeg streams
|
AVStream |
last_dts_for_order_check(long setter) |
AVPacketList |
last_in_packet_buffer()
last packet in packet_buffer for this stream when muxing.
|
AVStream |
last_in_packet_buffer(AVPacketList 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 |
mux_ts_offset()
Timestamp offset added to timestamps before muxing
NOT PART OF PUBLIC API
|
AVStream |
mux_ts_offset(long setter) |
int |
nb_decoded_frames()
Number of internally decoded frames, used internally in libavformat, do not access
its lifetime differs from info which is why it is not in that structure.
|
AVStream |
nb_decoded_frames(int 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) |
int |
pmt_stream_idx() |
AVStream |
pmt_stream_idx(int setter) |
int |
pmt_version() |
AVStream |
pmt_version(int setter) |
AVStream |
position(long position) |
Pointer |
priv_data() |
AVStream |
priv_data(Pointer setter) |
AVProbeData |
probe_data() |
AVStream |
probe_data(AVProbeData setter) |
int |
probe_packets()
Number of packets to buffer for codec probing
|
AVStream |
probe_packets(int setter) |
int |
program_num()
Details of the MPEG-TS program which created this stream.
|
AVStream |
program_num(int setter) |
LongPointer |
pts_buffer() |
long |
pts_buffer(int i) |
AVStream |
pts_buffer(int i,
long setter) |
BytePointer |
pts_reorder_error_count() |
byte |
pts_reorder_error_count(int i) |
AVStream |
pts_reorder_error_count(int i,
byte setter) |
LongPointer |
pts_reorder_error() |
long |
pts_reorder_error(int i)
Internal data to generate dts from pts
|
AVStream |
pts_reorder_error(int i,
long setter) |
int |
pts_wrap_behavior()
Options for behavior, when a wrap is detected.
|
AVStream |
pts_wrap_behavior(int setter) |
int |
pts_wrap_bits()
number of bits in pts (used for wrapping control)
|
AVStream |
pts_wrap_bits(int setter) |
long |
pts_wrap_reference()
Internal data to check for wrapping of the time stamp
|
AVStream |
pts_wrap_reference(long 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) |
int |
request_probe()
stream probing state
-1 -> probing finished
0 -> no probing requested
rest -> perform probing with request_probe being the minimum score to accept.
|
AVStream |
request_probe(int 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) |
int |
skip_samples()
Number of samples to skip at the start of the frame decoded from the next packet.
|
AVStream |
skip_samples(int setter) |
int |
skip_to_keyframe()
Indicates that everything up to the next keyframe
should be discarded.
|
AVStream |
skip_to_keyframe(int setter) |
long |
start_skip_samples()
If not 0, the number of samples that should be skipped from the start of
the stream (the samples are removed from packets with pts==0, which also
assumes negative timestamps do not happen).
|
AVStream |
start_skip_samples(long 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) |
int |
update_initial_durations_done()
Internal data to prevent doing update_initial_durations() twice
|
AVStream |
update_initial_durations_done(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 AVSTREAM_EVENT_FLAG_METADATA_UPDATED
public static final int MAX_STD_TIMEBASES
public static final int MAX_REORDER_DELAY
public AVStream()
public AVStream(long size)
Pointer.position(long)
.public AVStream(Pointer p)
Pointer.Pointer(Pointer)
.public 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)
@Name(value={"info",".last_dts"}) @Cast(value="int64_t") public long info_last_dts(int i)
public AVStream info_last_dts(int i, long setter)
@Name(value={"info",".duration_gcd"}) @Cast(value="int64_t") public long info_duration_gcd(int i)
public AVStream info_duration_gcd(int i, long setter)
public AVStream info_duration_count(int i, int setter)
@Name(value={"info",".rfps_duration_sum"}) @Cast(value="int64_t") public long info_rfps_duration_sum(int i)
public AVStream info_rfps_duration_sum(int i, long setter)
@Name(value={"info",".duration_error"}) @MemberGetter @Cast(value="double*") public DoublePointer info_duration_error(int i)
@Name(value={"info",".codec_info_duration"}) @Cast(value="int64_t") public long info_codec_info_duration(int i)
public AVStream info_codec_info_duration(int i, long setter)
@Name(value={"info",".codec_info_duration_fields"}) @Cast(value="int64_t") public long info_codec_info_duration_fields(int i)
public AVStream info_codec_info_duration_fields(int i, long setter)
@Name(value={"info",".frame_delay_evidence"}) public int info_frame_delay_evidence(int i)
public AVStream info_frame_delay_evidence(int i, int setter)
@Name(value={"info",".found_decoder"}) public int info_found_decoder(int i)
public AVStream info_found_decoder(int i, int setter)
@Name(value={"info",".last_duration"}) @Cast(value="int64_t") public long info_last_duration(int i)
public AVStream info_last_duration(int i, long setter)
@Name(value={"info",".fps_first_dts"}) @Cast(value="int64_t") public long info_fps_first_dts(int i)
public AVStream info_fps_first_dts(int i, long setter)
@Name(value={"info",".fps_first_dts_idx"}) public int info_fps_first_dts_idx(int i)
public AVStream info_fps_first_dts_idx(int i, int setter)
@Name(value={"info",".fps_last_dts"}) @Cast(value="int64_t") public long info_fps_last_dts(int i)
public AVStream info_fps_last_dts(int i, long setter)
@Name(value={"info",".fps_last_dts_idx"}) public int info_fps_last_dts_idx(int i)
public AVStream info_fps_last_dts_idx(int i, int setter)
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 AVPacketList last_in_packet_buffer()
public AVStream last_in_packet_buffer(AVPacketList setter)
@ByRef public AVProbeData probe_data()
public AVStream probe_data(AVProbeData setter)
public AVStream pts_buffer(int i, long setter)
@MemberGetter @Cast(value="int64_t*") public LongPointer pts_buffer()
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 program_num()
public AVStream program_num(int setter)
public int pmt_version()
public AVStream pmt_version(int setter)
public int pmt_stream_idx()
public AVStream pmt_stream_idx(int setter)
public AVStream interleaver_chunk_size(long setter)
public AVStream interleaver_chunk_duration(long setter)
public int request_probe()
public AVStream request_probe(int setter)
public int skip_to_keyframe()
public AVStream skip_to_keyframe(int setter)
public int skip_samples()
public AVStream skip_samples(int setter)
@Cast(value="int64_t") public long start_skip_samples()
public AVStream start_skip_samples(long setter)
@Cast(value="int64_t") public long first_discard_sample()
public AVStream first_discard_sample(long setter)
@Cast(value="int64_t") public long last_discard_sample()
public AVStream last_discard_sample(long setter)
public int nb_decoded_frames()
public AVStream nb_decoded_frames(int setter)
@Cast(value="int64_t") public long mux_ts_offset()
public AVStream mux_ts_offset(long setter)
@Cast(value="int64_t") public long pts_wrap_reference()
public AVStream pts_wrap_reference(long setter)
public int pts_wrap_behavior()
public AVStream pts_wrap_behavior(int setter)
public int update_initial_durations_done()
public AVStream update_initial_durations_done(int setter)
@Cast(value="int64_t") public long pts_reorder_error(int i)
public AVStream pts_reorder_error(int i, long setter)
@MemberGetter @Cast(value="int64_t*") public LongPointer pts_reorder_error()
public AVStream pts_reorder_error_count(int i, byte setter)
@MemberGetter @Cast(value="uint8_t*") public BytePointer pts_reorder_error_count()
@Cast(value="int64_t") public long last_dts_for_order_check()
public AVStream last_dts_for_order_check(long setter)
public AVStream dts_ordered(byte setter)
public AVStream dts_misordered(byte setter)
public int inject_global_side_data()
public AVStream inject_global_side_data(int setter)
@ByRef public AVRational display_aspect_ratio()
public AVStream display_aspect_ratio(AVRational setter)
public AVStreamInternal internal()
public AVStream internal(AVStreamInternal setter)
Copyright © 2020. All rights reserved.