public static class avformat.AVStream extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| 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
Stream information used internally by avformat_find_stream_info()
|
| 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 |
|---|---|
avcodec.AVPacket |
attached_pic()
For streams with AV_DISPOSITION_ATTACHED_PIC disposition, this packet
will contain the attached picture.
|
avformat.AVStream |
attached_pic(avcodec.AVPacket attached_pic) |
avutil.AVRational |
avg_frame_rate()
Average framerate
- demuxing: May be set by libavformat when creating the stream or in
avformat_find_stream_info().
|
avformat.AVStream |
avg_frame_rate(avutil.AVRational avg_frame_rate) |
int |
codec_info_nb_frames()
Number of frames that have been demuxed during avformat_find_stream_info()
|
avformat.AVStream |
codec_info_nb_frames(int codec_info_nb_frames) |
avcodec.AVCodecContext |
codec()
Deprecated.
use the codecpar struct instead
|
avformat.AVStream |
codec(avcodec.AVCodecContext codec) |
avcodec.AVCodecParameters |
codecpar() |
avformat.AVStream |
codecpar(avcodec.AVCodecParameters codecpar) |
long |
cur_dts() |
avformat.AVStream |
cur_dts(long cur_dts) |
int |
discard()
Selects which packets can be discarded at will and do not need to be demuxed.
|
avformat.AVStream |
discard(int discard) |
avutil.AVRational |
display_aspect_ratio()
display aspect ratio (0 if unknown)
- encoding: unused
- decoding: Set by libavformat to calculate sample_aspect_ratio internally
|
avformat.AVStream |
display_aspect_ratio(avutil.AVRational display_aspect_ratio) |
int |
disposition()
AV_DISPOSITION_* bit field
|
avformat.AVStream |
disposition(int disposition) |
byte |
dts_misordered() |
avformat.AVStream |
dts_misordered(byte dts_misordered) |
byte |
dts_ordered() |
avformat.AVStream |
dts_ordered(byte dts_ordered) |
long |
duration()
Decoding: duration of the stream, in stream time base.
|
avformat.AVStream |
duration(long duration) |
int |
event_flags()
Flags for the user to detect events happening on the stream.
|
avformat.AVStream |
event_flags(int event_flags) |
long |
first_discard_sample()
If not 0, the first audio sample that should be discarded from the stream.
|
avformat.AVStream |
first_discard_sample(long first_discard_sample) |
long |
first_dts()
Timestamp corresponding to the last dts sync point.
|
avformat.AVStream |
first_dts(long first_dts) |
int |
id()
Format-specific stream ID.
|
avformat.AVStream |
id(int id) |
int |
index_entries_allocated_size() |
avformat.AVStream |
index_entries_allocated_size(int index_entries_allocated_size) |
avformat.AVIndexEntry |
index_entries()
Only used if the format does not
support seeking natively.
|
avformat.AVStream |
index_entries(avformat.AVIndexEntry index_entries) |
int |
index()
stream index in AVFormatContext
|
avformat.AVStream |
index(int index) |
long |
info_codec_info_duration_fields(int i) |
avformat.AVStream |
info_codec_info_duration_fields(int i,
long info_codec_info_duration_fields) |
long |
info_codec_info_duration(int i) |
avformat.AVStream |
info_codec_info_duration(int i,
long info_codec_info_duration) |
int |
info_duration_count(int i) |
avformat.AVStream |
info_duration_count(int i,
int info_duration_count) |
DoublePointer |
info_duration_error(int i) |
long |
info_duration_gcd(int i) |
avformat.AVStream |
info_duration_gcd(int i,
long info_duration_gcd) |
int |
info_found_decoder(int i)
0 -> decoder has not been searched for yet.
|
avformat.AVStream |
info_found_decoder(int i,
int info_found_decoder) |
int |
info_fps_first_dts_idx(int i) |
avformat.AVStream |
info_fps_first_dts_idx(int i,
int info_fps_first_dts_idx) |
long |
info_fps_first_dts(int i)
Those are used for average framerate estimation.
|
avformat.AVStream |
info_fps_first_dts(int i,
long info_fps_first_dts) |
int |
info_fps_last_dts_idx(int i) |
avformat.AVStream |
info_fps_last_dts_idx(int i,
int info_fps_last_dts_idx) |
long |
info_fps_last_dts(int i) |
avformat.AVStream |
info_fps_last_dts(int i,
long info_fps_last_dts) |
long |
info_last_dts(int i) |
avformat.AVStream |
info_last_dts(int i,
long info_last_dts) |
long |
info_last_duration(int i) |
avformat.AVStream |
info_last_duration(int i,
long info_last_duration) |
long |
info_rfps_duration_sum(int i) |
avformat.AVStream |
info_rfps_duration_sum(int i,
long info_rfps_duration_sum) |
int |
inject_global_side_data()
Internal data to inject global side data
|
avformat.AVStream |
inject_global_side_data(int inject_global_side_data) |
long |
interleaver_chunk_duration() |
avformat.AVStream |
interleaver_chunk_duration(long interleaver_chunk_duration) |
long |
interleaver_chunk_size() |
avformat.AVStream |
interleaver_chunk_size(long interleaver_chunk_size) |
avformat.AVStreamInternal |
internal()
An opaque field for libavformat internal usage.
|
avformat.AVStream |
internal(avformat.AVStreamInternal internal) |
long |
last_discard_sample()
The sample after last sample that is intended to be discarded after
first_discard_sample.
|
avformat.AVStream |
last_discard_sample(long last_discard_sample) |
long |
last_dts_for_order_check()
Internal data to analyze DTS and detect faulty mpeg streams
|
avformat.AVStream |
last_dts_for_order_check(long last_dts_for_order_check) |
avformat.AVPacketList |
last_in_packet_buffer()
last packet in packet_buffer for this stream when muxing.
|
avformat.AVStream |
last_in_packet_buffer(avformat.AVPacketList last_in_packet_buffer) |
int |
last_IP_duration() |
avformat.AVStream |
last_IP_duration(int last_IP_duration) |
long |
last_IP_pts() |
avformat.AVStream |
last_IP_pts(long last_IP_pts) |
avutil.AVDictionary |
metadata() |
avformat.AVStream |
metadata(avutil.AVDictionary metadata) |
long |
mux_ts_offset()
Timestamp offset added to timestamps before muxing
NOT PART OF PUBLIC API
|
avformat.AVStream |
mux_ts_offset(long mux_ts_offset) |
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.
|
avformat.AVStream |
nb_decoded_frames(int nb_decoded_frames) |
long |
nb_frames()
number of frames in this stream if known or 0
|
avformat.AVStream |
nb_frames(long nb_frames) |
int |
nb_index_entries() |
avformat.AVStream |
nb_index_entries(int nb_index_entries) |
int |
nb_side_data()
The number of elements in the AVStream.side_data array.
|
avformat.AVStream |
nb_side_data(int nb_side_data) |
int |
need_parsing() |
avformat.AVStream |
need_parsing(int need_parsing) |
avcodec.AVCodecParserContext |
parser() |
avformat.AVStream |
parser(avcodec.AVCodecParserContext parser) |
avformat.AVStream |
position(long position) |
Pointer |
priv_data() |
avformat.AVStream |
priv_data(Pointer priv_data) |
Pointer |
priv_pts() |
avformat.AVStream |
priv_pts(Pointer priv_pts) |
avformat.AVProbeData |
probe_data() |
avformat.AVStream |
probe_data(avformat.AVProbeData probe_data) |
int |
probe_packets()
Number of packets to buffer for codec probing
|
avformat.AVStream |
probe_packets(int probe_packets) |
LongPointer |
pts_buffer() |
long |
pts_buffer(int i) |
avformat.AVStream |
pts_buffer(int i,
long pts_buffer) |
BytePointer |
pts_reorder_error_count() |
byte |
pts_reorder_error_count(int i) |
avformat.AVStream |
pts_reorder_error_count(int i,
byte pts_reorder_error_count) |
LongPointer |
pts_reorder_error() |
long |
pts_reorder_error(int i)
Internal data to generate dts from pts
|
avformat.AVStream |
pts_reorder_error(int i,
long pts_reorder_error) |
int |
pts_wrap_behavior()
Options for behavior, when a wrap is detected.
|
avformat.AVStream |
pts_wrap_behavior(int pts_wrap_behavior) |
int |
pts_wrap_bits()
number of bits in pts (used for wrapping control)
|
avformat.AVStream |
pts_wrap_bits(int pts_wrap_bits) |
long |
pts_wrap_reference()
Internal data to check for wrapping of the time stamp
|
avformat.AVStream |
pts_wrap_reference(long pts_wrap_reference) |
avformat.AVFrac |
pts()
Deprecated.
this field is unused
|
avformat.AVStream |
pts(avformat.AVFrac pts) |
avutil.AVRational |
r_frame_rate()
Real base framerate of the stream.
|
avformat.AVStream |
r_frame_rate(avutil.AVRational r_frame_rate) |
BytePointer |
recommended_encoder_configuration()
String containing paris of key and values describing recommended encoder configuration.
|
avformat.AVStream |
recommended_encoder_configuration(BytePointer recommended_encoder_configuration) |
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.
|
avformat.AVStream |
request_probe(int request_probe) |
avutil.AVRational |
sample_aspect_ratio()
sample aspect ratio (0 if unknown)
- encoding: Set by user.
|
avformat.AVStream |
sample_aspect_ratio(avutil.AVRational sample_aspect_ratio) |
avcodec.AVPacketSideData |
side_data()
An array of side data that applies to the whole stream (i.e.
|
avformat.AVStream |
side_data(avcodec.AVPacketSideData side_data) |
int |
skip_samples()
Number of samples to skip at the start of the frame decoded from the next packet.
|
avformat.AVStream |
skip_samples(int skip_samples) |
int |
skip_to_keyframe()
Indicates that everything up to the next keyframe
should be discarded.
|
avformat.AVStream |
skip_to_keyframe(int skip_to_keyframe) |
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).
|
avformat.AVStream |
start_skip_samples(long start_skip_samples) |
long |
start_time()
Decoding: pts of the first frame of the stream in presentation order, in stream time base.
|
avformat.AVStream |
start_time(long start_time) |
int |
stream_identifier()
Stream Identifier
This is the MPEG-TS stream identifier +1
0 means unknown
|
avformat.AVStream |
stream_identifier(int stream_identifier) |
avutil.AVRational |
time_base()
This is the fundamental unit of time (in seconds) in terms
of which frame timestamps are represented.
|
avformat.AVStream |
time_base(avutil.AVRational time_base) |
int |
update_initial_durations_done()
Internal data to prevent doing update_initial_durations() twice
|
avformat.AVStream |
update_initial_durations_done(int update_initial_durations_done) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic 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 avformat.AVStream position(long position)
public int index()
public avformat.AVStream index(int index)
public int id()
public avformat.AVStream id(int id)
@Deprecated public avcodec.AVCodecContext codec()
public avformat.AVStream codec(avcodec.AVCodecContext codec)
public Pointer priv_data()
public avformat.AVStream priv_data(Pointer priv_data)
@Deprecated @ByRef public avformat.AVFrac pts()
public avformat.AVStream pts(avformat.AVFrac pts)
@ByRef public avutil.AVRational time_base()
public avformat.AVStream time_base(avutil.AVRational time_base)
@Cast(value="int64_t") public long start_time()
public avformat.AVStream start_time(long start_time)
@Cast(value="int64_t") public long duration()
public avformat.AVStream duration(long duration)
@Cast(value="int64_t") public long nb_frames()
public avformat.AVStream nb_frames(long nb_frames)
public int disposition()
public avformat.AVStream disposition(int disposition)
@Cast(value="AVDiscard") public int discard()
public avformat.AVStream discard(int discard)
@ByRef public avutil.AVRational sample_aspect_ratio()
public avformat.AVStream sample_aspect_ratio(avutil.AVRational sample_aspect_ratio)
public avutil.AVDictionary metadata()
public avformat.AVStream metadata(avutil.AVDictionary metadata)
@ByRef public avutil.AVRational avg_frame_rate()
public avformat.AVStream avg_frame_rate(avutil.AVRational avg_frame_rate)
@ByRef public avcodec.AVPacket attached_pic()
public avformat.AVStream attached_pic(avcodec.AVPacket attached_pic)
public avcodec.AVPacketSideData side_data()
av_format_inject_global_side_data()public avformat.AVStream side_data(avcodec.AVPacketSideData side_data)
public int nb_side_data()
public avformat.AVStream nb_side_data(int nb_side_data)
public int event_flags()
public avformat.AVStream event_flags(int event_flags)
@Name(value={"info",".last_dts"}) @Cast(value="int64_t") public long info_last_dts(int i)
public avformat.AVStream info_last_dts(int i, long info_last_dts)
@Name(value={"info",".duration_gcd"}) @Cast(value="int64_t") public long info_duration_gcd(int i)
public avformat.AVStream info_duration_gcd(int i, long info_duration_gcd)
public avformat.AVStream info_duration_count(int i, int info_duration_count)
@Name(value={"info",".rfps_duration_sum"}) @Cast(value="int64_t") public long info_rfps_duration_sum(int i)
public avformat.AVStream info_rfps_duration_sum(int i, long info_rfps_duration_sum)
@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 avformat.AVStream info_codec_info_duration(int i, long info_codec_info_duration)
@Name(value={"info",".codec_info_duration_fields"}) @Cast(value="int64_t") public long info_codec_info_duration_fields(int i)
public avformat.AVStream info_codec_info_duration_fields(int i, long info_codec_info_duration_fields)
@Name(value={"info",".found_decoder"}) public int info_found_decoder(int i)
public avformat.AVStream info_found_decoder(int i, int info_found_decoder)
@Name(value={"info",".last_duration"}) @Cast(value="int64_t") public long info_last_duration(int i)
public avformat.AVStream info_last_duration(int i, long info_last_duration)
@Name(value={"info",".fps_first_dts"}) @Cast(value="int64_t") public long info_fps_first_dts(int i)
public avformat.AVStream info_fps_first_dts(int i, long info_fps_first_dts)
@Name(value={"info",".fps_first_dts_idx"}) public int info_fps_first_dts_idx(int i)
public avformat.AVStream info_fps_first_dts_idx(int i, int info_fps_first_dts_idx)
@Name(value={"info",".fps_last_dts"}) @Cast(value="int64_t") public long info_fps_last_dts(int i)
public avformat.AVStream info_fps_last_dts(int i, long info_fps_last_dts)
@Name(value={"info",".fps_last_dts_idx"}) public int info_fps_last_dts_idx(int i)
public avformat.AVStream info_fps_last_dts_idx(int i, int info_fps_last_dts_idx)
public int pts_wrap_bits()
public avformat.AVStream pts_wrap_bits(int pts_wrap_bits)
@Cast(value="int64_t") public long first_dts()
public avformat.AVStream first_dts(long first_dts)
public avformat.AVStream cur_dts(long cur_dts)
public avformat.AVStream last_IP_pts(long last_IP_pts)
public int last_IP_duration()
public avformat.AVStream last_IP_duration(int last_IP_duration)
public int probe_packets()
public avformat.AVStream probe_packets(int probe_packets)
public int codec_info_nb_frames()
public avformat.AVStream codec_info_nb_frames(int codec_info_nb_frames)
public avformat.AVStream need_parsing(int need_parsing)
public avcodec.AVCodecParserContext parser()
public avformat.AVStream parser(avcodec.AVCodecParserContext parser)
public avformat.AVPacketList last_in_packet_buffer()
public avformat.AVStream last_in_packet_buffer(avformat.AVPacketList last_in_packet_buffer)
@ByRef public avformat.AVProbeData probe_data()
public avformat.AVStream probe_data(avformat.AVProbeData probe_data)
public avformat.AVStream pts_buffer(int i, long pts_buffer)
@MemberGetter @Cast(value="int64_t*") public LongPointer pts_buffer()
public avformat.AVIndexEntry index_entries()
public avformat.AVStream index_entries(avformat.AVIndexEntry index_entries)
public int nb_index_entries()
public avformat.AVStream nb_index_entries(int nb_index_entries)
public avformat.AVStream index_entries_allocated_size(int index_entries_allocated_size)
@ByRef public avutil.AVRational r_frame_rate()
public avformat.AVStream r_frame_rate(avutil.AVRational r_frame_rate)
public int stream_identifier()
public avformat.AVStream stream_identifier(int stream_identifier)
public avformat.AVStream interleaver_chunk_size(long interleaver_chunk_size)
public avformat.AVStream interleaver_chunk_duration(long interleaver_chunk_duration)
public int request_probe()
public avformat.AVStream request_probe(int request_probe)
public int skip_to_keyframe()
public avformat.AVStream skip_to_keyframe(int skip_to_keyframe)
public int skip_samples()
public avformat.AVStream skip_samples(int skip_samples)
@Cast(value="int64_t") public long start_skip_samples()
public avformat.AVStream start_skip_samples(long start_skip_samples)
@Cast(value="int64_t") public long first_discard_sample()
public avformat.AVStream first_discard_sample(long first_discard_sample)
@Cast(value="int64_t") public long last_discard_sample()
public avformat.AVStream last_discard_sample(long last_discard_sample)
public int nb_decoded_frames()
public avformat.AVStream nb_decoded_frames(int nb_decoded_frames)
@Cast(value="int64_t") public long mux_ts_offset()
public avformat.AVStream mux_ts_offset(long mux_ts_offset)
@Cast(value="int64_t") public long pts_wrap_reference()
public avformat.AVStream pts_wrap_reference(long pts_wrap_reference)
public int pts_wrap_behavior()
public avformat.AVStream pts_wrap_behavior(int pts_wrap_behavior)
public int update_initial_durations_done()
public avformat.AVStream update_initial_durations_done(int update_initial_durations_done)
@Cast(value="int64_t") public long pts_reorder_error(int i)
public avformat.AVStream pts_reorder_error(int i, long pts_reorder_error)
@MemberGetter @Cast(value="int64_t*") public LongPointer pts_reorder_error()
public avformat.AVStream pts_reorder_error_count(int i, byte pts_reorder_error_count)
@MemberGetter @Cast(value="uint8_t*") public BytePointer pts_reorder_error_count()
@Cast(value="int64_t") public long last_dts_for_order_check()
public avformat.AVStream last_dts_for_order_check(long last_dts_for_order_check)
public avformat.AVStream dts_ordered(byte dts_ordered)
public avformat.AVStream dts_misordered(byte dts_misordered)
public int inject_global_side_data()
public avformat.AVStream inject_global_side_data(int inject_global_side_data)
@Cast(value="char*") public BytePointer recommended_encoder_configuration()
public avformat.AVStream recommended_encoder_configuration(BytePointer recommended_encoder_configuration)
@ByRef public avutil.AVRational display_aspect_ratio()
public avformat.AVStream display_aspect_ratio(avutil.AVRational display_aspect_ratio)
public avformat.AVStream priv_pts(Pointer priv_pts)
public avformat.AVStreamInternal internal()
public avformat.AVStream internal(avformat.AVStreamInternal internal)
public avcodec.AVCodecParameters codecpar()
public avformat.AVStream codecpar(avcodec.AVCodecParameters codecpar)
Copyright © 2018. All rights reserved.