public class avformat extends avformat
| Modifier and Type | Class and Description |
|---|---|
static class |
avformat.av_format_control_message
Callback used by devices to communicate with application.
|
static class |
avformat.AVBPrint |
static class |
avformat.AVChapter |
static class |
avformat.AVCodecTag |
static class |
avformat.AVDeviceCapabilitiesQuery |
static class |
avformat.AVDeviceInfoList |
static class |
avformat.AVFormatContext
Format I/O context.
|
static class |
avformat.AVFormatInternal |
static class |
avformat.AVFrac
The exact value of the fractional number is: 'val + num / den'.
|
static class |
avformat.AVIndexEntry |
static class |
avformat.AVInputFormat |
static class |
avformat.AVIOContext
Bytestream IO Context.
|
static class |
avformat.AVIODirContext |
static class |
avformat.AVIODirEntry
Describes single entry of the directory.
|
static class |
avformat.AVIOInterruptCB
Callback for checking whether to abort blocking functions.
|
static class |
avformat.AVOpenCallback |
static class |
avformat.AVOutputFormat |
static class |
avformat.AVPacketList |
static class |
avformat.AVProbeData
This structure contains the data a format has to probe a file.
|
static class |
avformat.AVProgram
New fields can be added to the end with minor version bumps.
|
static class |
avformat.AVStream
Stream structure.
|
static class |
avformat.Read_packet_Pointer_byte___int |
static class |
avformat.Read_packet_Pointer_ByteBuffer_int |
static class |
avformat.Read_packet_Pointer_BytePointer_int
Allocate and initialize an AVIOContext for buffered I/O.
|
static class |
avformat.Seek_Pointer_long_int |
static class |
avformat.Write_packet_Pointer_byte___int |
static class |
avformat.Write_packet_Pointer_ByteBuffer_int |
static class |
avformat.Write_packet_Pointer_BytePointer_int |
| Modifier and Type | Field and Description |
|---|---|
static int |
AV_DISPOSITION_ATTACHED_PIC
The stream is stored in the file as an attached picture/"cover art" (e.g.
|
static int |
AV_DISPOSITION_CAPTIONS
To specify text track kind (different from subtitles default).
|
static int |
AV_DISPOSITION_CLEAN_EFFECTS
stream without voice
|
static int |
AV_DISPOSITION_COMMENT |
static int |
AV_DISPOSITION_DEFAULT |
static int |
AV_DISPOSITION_DESCRIPTIONS |
static int |
AV_DISPOSITION_DUB |
static int |
AV_DISPOSITION_FORCED
Track should be used during playback by default.
|
static int |
AV_DISPOSITION_HEARING_IMPAIRED
stream for hearing impaired audiences
|
static int |
AV_DISPOSITION_KARAOKE |
static int |
AV_DISPOSITION_LYRICS |
static int |
AV_DISPOSITION_METADATA |
static int |
AV_DISPOSITION_ORIGINAL |
static int |
AV_DISPOSITION_VISUAL_IMPAIRED
stream for visual impaired audiences
|
static int |
AV_PROGRAM_RUNNING |
static int |
AV_PTS_WRAP_ADD_OFFSET
add the format specific offset on wrap detection
|
static int |
AV_PTS_WRAP_IGNORE
ignore the wrap
|
static int |
AV_PTS_WRAP_SUB_OFFSET
subtract the format specific offset on wrap detection
|
static int |
AVFMT_ALLOW_FLUSH
Format allows flushing.
|
static int |
AVFMT_DURATION_FROM_BITRATE
enum AVDurationEstimationMethod
|
static int |
AVFMT_DURATION_FROM_PTS
enum AVDurationEstimationMethod
|
static int |
AVFMT_DURATION_FROM_STREAM
enum AVDurationEstimationMethod
|
static int |
AVFMT_GENERIC_INDEX
Use generic index building code.
|
static int |
AVFMT_GLOBALHEADER
Format wants global header.
|
static int |
AVFMT_NEEDNUMBER
Needs '%d' in filename.
|
static int |
AVFMT_NO_BYTE_SEEK
Format does not allow seeking by bytes
|
static int |
AVFMT_NOBINSEARCH
Format does not allow to fall back on binary search via read_timestamp
|
static int |
AVFMT_NODIMENSIONS
Format does not need width/height
|
static int |
AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
|
static int |
AVFMT_NOGENSEARCH
Format does not allow to fall back on generic search
|
static int |
AVFMT_NOSTREAMS
Format does not require any streams
|
static int |
AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
|
static int |
AVFMT_RAWPICTURE
Format wants AVPicture structure for
raw picture data.
|
static int |
AVFMT_SEEK_TO_PTS
Seeking is based on PTS
|
static int |
AVFMT_SHOW_IDS
Show format stream IDs numbers.
|
static int |
AVFMT_TS_DISCONT
Format allows timestamp discontinuities.
|
static int |
AVFMT_TS_NEGATIVE
Format allows muxing negative
timestamps.
|
static int |
AVFMT_TS_NONSTRICT
Format does not require strictly
increasing timestamps, but they must
still be monotonic
|
static int |
AVFMT_VARIABLE_FPS
Format allows variable fps.
|
static int |
AVFMTCTX_NOHEADER
signal that no header is present
(streams are added dynamically)
|
static int |
AVIO_ENTRY_BLOCK_DEVICE
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_CHARACTER_DEVICE
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_DIRECTORY
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_FILE
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_NAMED_PIPE
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_SERVER
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_SHARE
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_SOCKET
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_SYMBOLIC_LINK
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_UNKNOWN
enum AVIODirEntryType
|
static int |
AVIO_ENTRY_WORKGROUP
enum AVIODirEntryType
|
static int |
AVIO_FLAG_DIRECT
Use direct mode.
|
static int |
AVIO_FLAG_NONBLOCK
Use non-blocking mode.
|
static int |
AVIO_FLAG_READ
read-only
|
static int |
AVIO_FLAG_READ_WRITE
read-write pseudo flag
|
static int |
AVIO_FLAG_WRITE
write-only
|
static int |
AVIO_SEEKABLE_NORMAL
Seeking works like for a local file
|
static int |
AVPROBE_PADDING_SIZE
extra allocated bytes at the end of the probe buffer
|
static int |
AVPROBE_SCORE_EXTENSION
score for file extension
|
static int |
AVPROBE_SCORE_MAX
maximum score
|
static int |
AVPROBE_SCORE_MIME
score for file mime type
|
static int |
AVPROBE_SCORE_RETRY |
static int |
AVPROBE_SCORE_STREAM_RETRY |
static int |
AVSEEK_FLAG_ANY
seek to any frame, even non-keyframes
|
static int |
AVSEEK_FLAG_BACKWARD
seek backward
|
static int |
AVSEEK_FLAG_BYTE
seeking based on position in bytes
|
static int |
AVSEEK_FLAG_FRAME
seeking based on frame number
|
static int |
AVSEEK_FORCE
Oring this flag as into the "whence" parameter to a seek function causes it to
seek by any means (like reopening and linear reading) or other normally unreasonable
means that can be extremely slow.
|
static int |
AVSEEK_SIZE
Passing this as the "whence" parameter to a seek function causes it to
return the filesize without seeking anywhere.
|
static int |
AVSTREAM_PARSE_FULL
enum AVStreamParseType
|
static int |
AVSTREAM_PARSE_FULL_ONCE
enum AVStreamParseType
|
static int |
AVSTREAM_PARSE_FULL_RAW |
static int |
AVSTREAM_PARSE_HEADERS
enum AVStreamParseType
|
static int |
AVSTREAM_PARSE_NONE
enum AVStreamParseType
|
static int |
AVSTREAM_PARSE_TIMESTAMPS
enum AVStreamParseType
|
| Constructor and Description |
|---|
avformat() |
| Modifier and Type | Method and Description |
|---|---|
static int |
av_add_index_entry(avformat.AVStream st,
long pos,
long timestamp,
int size,
int distance,
int flags)
Add an index entry into a sorted list.
|
static int |
av_append_packet(avformat.AVIOContext s,
avcodec.AVPacket pkt,
int size)
Read data and append it to the current content of the AVPacket.
|
static int |
av_codec_get_id(avformat.AVCodecTag tags,
int tag) |
static int |
av_codec_get_id(PointerPointer tags,
int tag)
Get the AVCodecID for the given codec tag tag.
|
static int |
av_codec_get_tag(avformat.AVCodecTag tags,
int id) |
static int |
av_codec_get_tag(PointerPointer tags,
int id)
Get the codec tag for the given codec id id.
|
static int |
av_codec_get_tag2(avformat.AVCodecTag tags,
int id,
int[] tag) |
static int |
av_codec_get_tag2(avformat.AVCodecTag tags,
int id,
IntBuffer tag) |
static int |
av_codec_get_tag2(avformat.AVCodecTag tags,
int id,
IntPointer tag) |
static int |
av_codec_get_tag2(PointerPointer tags,
int id,
IntPointer tag)
Get the codec tag for the given codec id.
|
static int |
av_demuxer_open(avformat.AVFormatContext ic)
Deprecated.
|
static void |
av_dump_format(avformat.AVFormatContext ic,
int index,
BytePointer url,
int is_output)
Print detailed information about the input or output format, such as
duration, bitrate, streams, container, programs, metadata, side data,
codec and time base.
|
static void |
av_dump_format(avformat.AVFormatContext ic,
int index,
String url,
int is_output) |
static int |
av_filename_number_test(BytePointer filename)
Check whether filename actually is a numbered sequence generator.
|
static int |
av_filename_number_test(String filename) |
static int |
av_find_best_stream(avformat.AVFormatContext ic,
int type,
int wanted_stream_nb,
int related_stream,
avcodec.AVCodec decoder_ret,
int flags) |
static int |
av_find_best_stream(avformat.AVFormatContext ic,
int type,
int wanted_stream_nb,
int related_stream,
PointerPointer decoder_ret,
int flags)
Find the "best" stream in the file.
|
static int |
av_find_default_stream_index(avformat.AVFormatContext s) |
static avformat.AVInputFormat |
av_find_input_format(BytePointer short_name)
Find AVInputFormat based on the short name of the input format.
|
static avformat.AVInputFormat |
av_find_input_format(String short_name) |
static avformat.AVProgram |
av_find_program_from_stream(avformat.AVFormatContext ic,
avformat.AVProgram last,
int s)
Find the programs which belong to a given stream.
|
static int |
av_fmt_ctx_get_duration_estimation_method(avformat.AVFormatContext ctx)
Returns the method used to set ctx->duration.
|
static avcodec.AVCodec |
av_format_get_audio_codec(avformat.AVFormatContext s) |
static avformat.av_format_control_message |
av_format_get_control_message_cb(avformat.AVFormatContext s) |
static avcodec.AVCodec |
av_format_get_data_codec(avformat.AVFormatContext s) |
static int |
av_format_get_metadata_header_padding(avformat.AVFormatContext s) |
static Pointer |
av_format_get_opaque(avformat.AVFormatContext s) |
static avformat.AVOpenCallback |
av_format_get_open_cb(avformat.AVFormatContext s) |
static int |
av_format_get_probe_score(avformat.AVFormatContext s) |
static avcodec.AVCodec |
av_format_get_subtitle_codec(avformat.AVFormatContext s) |
static avcodec.AVCodec |
av_format_get_video_codec(avformat.AVFormatContext s) |
static void |
av_format_inject_global_side_data(avformat.AVFormatContext s)
This function will cause global side data to be injected in the next packet
of each stream as well as after any subsequent seek.
|
static void |
av_format_set_audio_codec(avformat.AVFormatContext s,
avcodec.AVCodec c) |
static void |
av_format_set_control_message_cb(avformat.AVFormatContext s,
avformat.av_format_control_message callback) |
static void |
av_format_set_data_codec(avformat.AVFormatContext s,
avcodec.AVCodec c) |
static void |
av_format_set_metadata_header_padding(avformat.AVFormatContext s,
int c) |
static void |
av_format_set_opaque(avformat.AVFormatContext s,
Pointer opaque) |
static void |
av_format_set_open_cb(avformat.AVFormatContext s,
avformat.AVOpenCallback callback) |
static void |
av_format_set_subtitle_codec(avformat.AVFormatContext s,
avcodec.AVCodec c) |
static void |
av_format_set_video_codec(avformat.AVFormatContext s,
avcodec.AVCodec c) |
static int |
av_get_frame_filename(byte[] buf,
int buf_size,
BytePointer path,
int number) |
static int |
av_get_frame_filename(byte[] buf,
int buf_size,
String path,
int number) |
static int |
av_get_frame_filename(ByteBuffer buf,
int buf_size,
BytePointer path,
int number) |
static int |
av_get_frame_filename(ByteBuffer buf,
int buf_size,
String path,
int number) |
static int |
av_get_frame_filename(BytePointer buf,
int buf_size,
BytePointer path,
int number)
Return in 'buf' the path with '%d' replaced by a number.
|
static int |
av_get_frame_filename(BytePointer buf,
int buf_size,
String path,
int number) |
static int |
av_get_output_timestamp(avformat.AVFormatContext s,
int stream,
long[] dts,
long[] wall) |
static int |
av_get_output_timestamp(avformat.AVFormatContext s,
int stream,
LongBuffer dts,
LongBuffer wall) |
static int |
av_get_output_timestamp(avformat.AVFormatContext s,
int stream,
LongPointer dts,
LongPointer wall)
Get timing information for the data currently output.
|
static int |
av_get_packet(avformat.AVIOContext s,
avcodec.AVPacket pkt,
int size)
Allocate and read the payload of a packet and initialize its
fields with default values.
|
static int |
av_guess_codec(avformat.AVOutputFormat fmt,
BytePointer short_name,
BytePointer filename,
BytePointer mime_type,
int type)
Guess the codec ID based upon muxer and filename.
|
static int |
av_guess_codec(avformat.AVOutputFormat fmt,
String short_name,
String filename,
String mime_type,
int type) |
static avformat.AVOutputFormat |
av_guess_format(BytePointer short_name,
BytePointer filename,
BytePointer mime_type)
Return the output format in the list of registered output formats
which best matches the provided parameters, or return NULL if
there is no match.
|
static avformat.AVOutputFormat |
av_guess_format(String short_name,
String filename,
String mime_type) |
static avutil.AVRational |
av_guess_frame_rate(avformat.AVFormatContext ctx,
avformat.AVStream stream,
avutil.AVFrame frame)
Guess the frame rate, based on both the container and codec information.
|
static avutil.AVRational |
av_guess_sample_aspect_ratio(avformat.AVFormatContext format,
avformat.AVStream stream,
avutil.AVFrame frame)
Guess the sample aspect ratio of a frame, based on both the stream and the
frame aspect ratio.
|
static void |
av_hex_dump_log(Pointer avcl,
int level,
byte[] buf,
int size) |
static void |
av_hex_dump_log(Pointer avcl,
int level,
ByteBuffer buf,
int size) |
static void |
av_hex_dump_log(Pointer avcl,
int level,
BytePointer buf,
int size)
Send a nice hexadecimal dump of a buffer to the log.
|
static void |
av_hex_dump(Pointer f,
byte[] buf,
int size) |
static void |
av_hex_dump(Pointer f,
ByteBuffer buf,
int size) |
static void |
av_hex_dump(Pointer f,
BytePointer buf,
int size)
Send a nice hexadecimal dump of a buffer to the specified file stream.
|
static avformat.AVInputFormat |
av_iformat_next(avformat.AVInputFormat f)
If f is NULL, returns the first registered input format,
if f is non-NULL, returns the next registered input format after f
or NULL if f is the last one.
|
static int |
av_index_search_timestamp(avformat.AVStream st,
long timestamp,
int flags)
Get the index for a specific timestamp.
|
static int |
av_interleaved_write_frame(avformat.AVFormatContext s,
avcodec.AVPacket pkt)
Write a packet to an output media file ensuring correct interleaving.
|
static int |
av_interleaved_write_uncoded_frame(avformat.AVFormatContext s,
int stream_index,
avutil.AVFrame frame)
Write a uncoded frame to an output media file.
|
static int |
av_match_ext(BytePointer filename,
BytePointer extensions)
Return a positive value if the given filename has one of the given
extensions, 0 otherwise.
|
static int |
av_match_ext(String filename,
String extensions) |
static avformat.AVProgram |
av_new_program(avformat.AVFormatContext s,
int id) |
static avformat.AVOutputFormat |
av_oformat_next(avformat.AVOutputFormat f)
If f is NULL, returns the first registered output format,
if f is non-NULL, returns the next registered output format after f
or NULL if f is the last one.
|
static void |
av_pkt_dump_log2(Pointer avcl,
int level,
avcodec.AVPacket pkt,
int dump_payload,
avformat.AVStream st)
Send a nice dump of a packet to the log.
|
static void |
av_pkt_dump2(Pointer f,
avcodec.AVPacket pkt,
int dump_payload,
avformat.AVStream st)
Send a nice dump of a packet to the specified file stream.
|
static int |
av_probe_input_buffer(avformat.AVIOContext pb,
avformat.AVInputFormat fmt,
BytePointer filename,
Pointer logctx,
int offset,
int max_probe_size) |
static int |
av_probe_input_buffer(avformat.AVIOContext pb,
avformat.AVInputFormat fmt,
String filename,
Pointer logctx,
int offset,
int max_probe_size) |
static int |
av_probe_input_buffer(avformat.AVIOContext pb,
PointerPointer fmt,
BytePointer filename,
Pointer logctx,
int offset,
int max_probe_size)
Like av_probe_input_buffer2() but returns 0 on success
|
static int |
av_probe_input_buffer2(avformat.AVIOContext pb,
avformat.AVInputFormat fmt,
BytePointer filename,
Pointer logctx,
int offset,
int max_probe_size) |
static int |
av_probe_input_buffer2(avformat.AVIOContext pb,
avformat.AVInputFormat fmt,
String filename,
Pointer logctx,
int offset,
int max_probe_size) |
static int |
av_probe_input_buffer2(avformat.AVIOContext pb,
PointerPointer fmt,
BytePointer filename,
Pointer logctx,
int offset,
int max_probe_size)
Probe a bytestream to determine the input format.
|
static avformat.AVInputFormat |
av_probe_input_format(avformat.AVProbeData pd,
int is_opened)
Guess the file format.
|
static avformat.AVInputFormat |
av_probe_input_format2(avformat.AVProbeData pd,
int is_opened,
int[] score_max) |
static avformat.AVInputFormat |
av_probe_input_format2(avformat.AVProbeData pd,
int is_opened,
IntBuffer score_max) |
static avformat.AVInputFormat |
av_probe_input_format2(avformat.AVProbeData pd,
int is_opened,
IntPointer score_max)
Guess the file format.
|
static avformat.AVInputFormat |
av_probe_input_format3(avformat.AVProbeData pd,
int is_opened,
int[] score_ret) |
static avformat.AVInputFormat |
av_probe_input_format3(avformat.AVProbeData pd,
int is_opened,
IntBuffer score_ret) |
static avformat.AVInputFormat |
av_probe_input_format3(avformat.AVProbeData pd,
int is_opened,
IntPointer score_ret)
Guess the file format.
|
static int |
av_read_frame(avformat.AVFormatContext s,
avcodec.AVPacket pkt)
Return the next frame of a stream.
|
static int |
av_read_pause(avformat.AVFormatContext s)
Pause a network-based stream (e.g.
|
static int |
av_read_play(avformat.AVFormatContext s)
Start playing a network-based stream (e.g.
|
static void |
av_register_all()
Initialize libavformat and register all the muxers, demuxers and
protocols.
|
static void |
av_register_input_format(avformat.AVInputFormat format) |
static void |
av_register_output_format(avformat.AVOutputFormat format) |
static int |
av_sdp_create(avformat.AVFormatContext ac,
int n_files,
byte[] buf,
int size) |
static int |
av_sdp_create(avformat.AVFormatContext ac,
int n_files,
ByteBuffer buf,
int size) |
static int |
av_sdp_create(avformat.AVFormatContext ac,
int n_files,
BytePointer buf,
int size) |
static int |
av_sdp_create(PointerPointer ac,
int n_files,
BytePointer buf,
int size)
Generate an SDP for an RTP session.
|
static int |
av_seek_frame(avformat.AVFormatContext s,
int stream_index,
long timestamp,
int flags)
Seek to the keyframe at timestamp.
|
static long |
av_stream_get_end_pts(avformat.AVStream st)
Returns the pts of the last muxed packet + its duration
the retuned value is undefined when used with a demuxer.
|
static avcodec.AVCodecParserContext |
av_stream_get_parser(avformat.AVStream s) |
static avutil.AVRational |
av_stream_get_r_frame_rate(avformat.AVStream s) |
static BytePointer |
av_stream_get_recommended_encoder_configuration(avformat.AVStream s) |
static byte[] |
av_stream_get_side_data(avformat.AVStream stream,
int type,
int[] size) |
static ByteBuffer |
av_stream_get_side_data(avformat.AVStream stream,
int type,
IntBuffer size) |
static BytePointer |
av_stream_get_side_data(avformat.AVStream stream,
int type,
IntPointer size)
Get side information from stream.
|
static void |
av_stream_set_r_frame_rate(avformat.AVStream s,
avutil.AVRational r) |
static void |
av_stream_set_recommended_encoder_configuration(avformat.AVStream s,
byte[] configuration) |
static void |
av_stream_set_recommended_encoder_configuration(avformat.AVStream s,
ByteBuffer configuration) |
static void |
av_stream_set_recommended_encoder_configuration(avformat.AVStream s,
BytePointer configuration) |
static void |
av_url_split(byte[] proto,
int proto_size,
byte[] authorization,
int authorization_size,
byte[] hostname,
int hostname_size,
int[] port_ptr,
byte[] path,
int path_size,
BytePointer url) |
static void |
av_url_split(byte[] proto,
int proto_size,
byte[] authorization,
int authorization_size,
byte[] hostname,
int hostname_size,
int[] port_ptr,
byte[] path,
int path_size,
String url) |
static void |
av_url_split(ByteBuffer proto,
int proto_size,
ByteBuffer authorization,
int authorization_size,
ByteBuffer hostname,
int hostname_size,
IntBuffer port_ptr,
ByteBuffer path,
int path_size,
BytePointer url) |
static void |
av_url_split(ByteBuffer proto,
int proto_size,
ByteBuffer authorization,
int authorization_size,
ByteBuffer hostname,
int hostname_size,
IntBuffer port_ptr,
ByteBuffer path,
int path_size,
String url) |
static void |
av_url_split(BytePointer proto,
int proto_size,
BytePointer authorization,
int authorization_size,
BytePointer hostname,
int hostname_size,
IntPointer port_ptr,
BytePointer path,
int path_size,
BytePointer url)
Split a URL string into components.
|
static void |
av_url_split(BytePointer proto,
int proto_size,
BytePointer authorization,
int authorization_size,
BytePointer hostname,
int hostname_size,
IntPointer port_ptr,
BytePointer path,
int path_size,
String url) |
static int |
av_write_frame(avformat.AVFormatContext s,
avcodec.AVPacket pkt)
Write a packet to an output media file.
|
static int |
av_write_trailer(avformat.AVFormatContext s)
Write the stream trailer to an output media file and free the
file private data.
|
static int |
av_write_uncoded_frame_query(avformat.AVFormatContext s,
int stream_index)
Test whether a muxer supports uncoded frame.
|
static int |
av_write_uncoded_frame(avformat.AVFormatContext s,
int stream_index,
avutil.AVFrame frame)
Write a uncoded frame to an output media file.
|
static avformat.AVFormatContext |
avformat_alloc_context()
Allocate an AVFormatContext.
|
static int |
avformat_alloc_output_context2(avformat.AVFormatContext ctx,
avformat.AVOutputFormat oformat,
BytePointer format_name,
BytePointer filename) |
static int |
avformat_alloc_output_context2(avformat.AVFormatContext ctx,
avformat.AVOutputFormat oformat,
String format_name,
String filename) |
static int |
avformat_alloc_output_context2(PointerPointer ctx,
avformat.AVOutputFormat oformat,
BytePointer format_name,
BytePointer filename)
Allocate an AVFormatContext for an output format.
|
static void |
avformat_close_input(avformat.AVFormatContext s) |
static void |
avformat_close_input(PointerPointer s)
Close an opened input AVFormatContext.
|
static BytePointer |
avformat_configuration()
Return the libavformat build-time configuration.
|
static int |
avformat_find_stream_info(avformat.AVFormatContext ic,
avutil.AVDictionary options) |
static int |
avformat_find_stream_info(avformat.AVFormatContext ic,
PointerPointer options)
Read packets of a media file to get stream information.
|
static int |
avformat_flush(avformat.AVFormatContext s)
Discard all internally buffered data.
|
static void |
avformat_free_context(avformat.AVFormatContext s)
Free an AVFormatContext and all its streams.
|
static avutil.AVClass |
avformat_get_class()
Get the AVClass for AVFormatContext.
|
static avformat.AVCodecTag |
avformat_get_mov_audio_tags() |
static avformat.AVCodecTag |
avformat_get_mov_video_tags() |
static avformat.AVCodecTag |
avformat_get_riff_audio_tags() |
static avformat.AVCodecTag |
avformat_get_riff_video_tags() |
static BytePointer |
avformat_license()
Return the libavformat license.
|
static int |
avformat_match_stream_specifier(avformat.AVFormatContext s,
avformat.AVStream st,
BytePointer spec)
Check if the stream st contained in s is matched by the stream specifier
spec.
|
static int |
avformat_match_stream_specifier(avformat.AVFormatContext s,
avformat.AVStream st,
String spec) |
static int |
avformat_network_deinit()
Undo the initialization done by avformat_network_init.
|
static int |
avformat_network_init()
Do global initialization of network components.
|
static avformat.AVStream |
avformat_new_stream(avformat.AVFormatContext s,
avcodec.AVCodec c)
Add a new stream to a media file.
|
static int |
avformat_open_input(avformat.AVFormatContext ps,
BytePointer filename,
avformat.AVInputFormat fmt,
avutil.AVDictionary options) |
static int |
avformat_open_input(avformat.AVFormatContext ps,
String filename,
avformat.AVInputFormat fmt,
avutil.AVDictionary options) |
static int |
avformat_open_input(PointerPointer ps,
BytePointer filename,
avformat.AVInputFormat fmt,
PointerPointer options)
Open an input stream and read the header.
|
static int |
avformat_query_codec(avformat.AVOutputFormat ofmt,
int codec_id,
int std_compliance)
Test if the given container can store a codec.
|
static int |
avformat_queue_attached_pictures(avformat.AVFormatContext s) |
static int |
avformat_seek_file(avformat.AVFormatContext s,
int stream_index,
long min_ts,
long ts,
long max_ts,
int flags)
Seek to timestamp ts.
|
static int |
avformat_version()
Return the LIBAVFORMAT_VERSION_INT constant.
|
static int |
avformat_write_header(avformat.AVFormatContext s,
avutil.AVDictionary options) |
static int |
avformat_write_header(avformat.AVFormatContext s,
PointerPointer options)
Allocate the stream private data and write the stream header to
an output media file.
|
static avformat.AVIOContext |
avio_alloc_context(byte[] buffer,
int buffer_size,
int write_flag,
Pointer opaque,
avformat.Read_packet_Pointer_byte___int read_packet,
avformat.Write_packet_Pointer_byte___int write_packet,
avformat.Seek_Pointer_long_int seek) |
static avformat.AVIOContext |
avio_alloc_context(ByteBuffer buffer,
int buffer_size,
int write_flag,
Pointer opaque,
avformat.Read_packet_Pointer_ByteBuffer_int read_packet,
avformat.Write_packet_Pointer_ByteBuffer_int write_packet,
avformat.Seek_Pointer_long_int seek) |
static avformat.AVIOContext |
avio_alloc_context(BytePointer buffer,
int buffer_size,
int write_flag,
Pointer opaque,
avformat.Read_packet_Pointer_BytePointer_int read_packet,
avformat.Write_packet_Pointer_BytePointer_int write_packet,
avformat.Seek_Pointer_long_int seek) |
static int |
avio_check(BytePointer url,
int flags)
Return AVIO_FLAG_* access flags corresponding to the access permissions
of the resource in url, or a negative value corresponding to an
AVERROR code in case of failure.
|
static int |
avio_check(String url,
int flags) |
static int |
avio_close_dir(avformat.AVIODirContext s) |
static int |
avio_close_dir(PointerPointer s)
Close directory.
|
static int |
avio_close_dyn_buf(avformat.AVIOContext s,
byte[] pbuffer) |
static int |
avio_close_dyn_buf(avformat.AVIOContext s,
ByteBuffer pbuffer) |
static int |
avio_close_dyn_buf(avformat.AVIOContext s,
BytePointer pbuffer) |
static int |
avio_close_dyn_buf(avformat.AVIOContext s,
PointerPointer pbuffer)
Return the written size and a pointer to the buffer.
|
static int |
avio_close(avformat.AVIOContext s)
Close the resource accessed by the AVIOContext s and free it.
|
static int |
avio_closep(avformat.AVIOContext s) |
static int |
avio_closep(PointerPointer s)
Close the resource accessed by the AVIOContext *s, free it
and set the pointer pointing to it to NULL.
|
static BytePointer |
avio_enum_protocols(Pointer opaque,
int output) |
static BytePointer |
avio_enum_protocols(PointerPointer opaque,
int output)
Iterate through names of available protocols.
|
static int |
avio_feof(avformat.AVIOContext s)
feof() equivalent for AVIOContext.
|
static BytePointer |
avio_find_protocol_name(BytePointer url)
Return the name of the protocol that will handle the passed URL.
|
static String |
avio_find_protocol_name(String url) |
static void |
avio_flush(avformat.AVIOContext s)
Force flushing of buffered data.
|
static void |
avio_free_directory_entry(avformat.AVIODirEntry entry) |
static void |
avio_free_directory_entry(PointerPointer entry)
Free entry allocated by avio_read_dir().
|
static int |
avio_get_str(avformat.AVIOContext pb,
int maxlen,
byte[] buf,
int buflen) |
static int |
avio_get_str(avformat.AVIOContext pb,
int maxlen,
ByteBuffer buf,
int buflen) |
static int |
avio_get_str(avformat.AVIOContext pb,
int maxlen,
BytePointer buf,
int buflen)
Read a string from pb into buf.
|
static int |
avio_get_str16be(avformat.AVIOContext pb,
int maxlen,
byte[] buf,
int buflen) |
static int |
avio_get_str16be(avformat.AVIOContext pb,
int maxlen,
ByteBuffer buf,
int buflen) |
static int |
avio_get_str16be(avformat.AVIOContext pb,
int maxlen,
BytePointer buf,
int buflen) |
static int |
avio_get_str16le(avformat.AVIOContext pb,
int maxlen,
byte[] buf,
int buflen) |
static int |
avio_get_str16le(avformat.AVIOContext pb,
int maxlen,
ByteBuffer buf,
int buflen) |
static int |
avio_get_str16le(avformat.AVIOContext pb,
int maxlen,
BytePointer buf,
int buflen)
Read a UTF-16 string from pb and convert it to UTF-8.
|
static int |
avio_open_dir(avformat.AVIODirContext s,
BytePointer url,
avutil.AVDictionary options) |
static int |
avio_open_dir(avformat.AVIODirContext s,
String url,
avutil.AVDictionary options) |
static int |
avio_open_dir(PointerPointer s,
BytePointer url,
PointerPointer options)
Open directory for reading.
|
static int |
avio_open_dyn_buf(avformat.AVIOContext s) |
static int |
avio_open_dyn_buf(PointerPointer s)
Open a write only memory stream.
|
static int |
avio_open(avformat.AVIOContext s,
BytePointer url,
int flags) |
static int |
avio_open(avformat.AVIOContext s,
String url,
int flags) |
static int |
avio_open(PointerPointer s,
BytePointer url,
int flags)
Create and initialize a AVIOContext for accessing the
resource indicated by url.
|
static int |
avio_open2(avformat.AVIOContext s,
BytePointer url,
int flags,
avformat.AVIOInterruptCB int_cb,
avutil.AVDictionary options) |
static int |
avio_open2(avformat.AVIOContext s,
String url,
int flags,
avformat.AVIOInterruptCB int_cb,
avutil.AVDictionary options) |
static int |
avio_open2(PointerPointer s,
BytePointer url,
int flags,
avformat.AVIOInterruptCB int_cb,
PointerPointer options)
Create and initialize a AVIOContext for accessing the
resource indicated by url.
|
static int |
avio_pause(avformat.AVIOContext h,
int pause)
Pause and resume playing - only meaningful if using a network streaming
protocol (e.g.
|
static int |
avio_printf(avformat.AVIOContext s,
BytePointer fmt) |
static int |
avio_printf(avformat.AVIOContext s,
String fmt) |
static int |
avio_put_str(avformat.AVIOContext s,
BytePointer str)
Write a NULL-terminated string.
|
static int |
avio_put_str(avformat.AVIOContext s,
String str) |
static int |
avio_put_str16be(avformat.AVIOContext s,
BytePointer str)
Convert an UTF-8 string to UTF-16BE and write it.
|
static int |
avio_put_str16be(avformat.AVIOContext s,
String str) |
static int |
avio_put_str16le(avformat.AVIOContext s,
BytePointer str)
Convert an UTF-8 string to UTF-16LE and write it.
|
static int |
avio_put_str16le(avformat.AVIOContext s,
String str) |
static int |
avio_r8(avformat.AVIOContext s) |
static int |
avio_rb16(avformat.AVIOContext s) |
static int |
avio_rb24(avformat.AVIOContext s) |
static int |
avio_rb32(avformat.AVIOContext s) |
static long |
avio_rb64(avformat.AVIOContext s) |
static int |
avio_read_dir(avformat.AVIODirContext s,
avformat.AVIODirEntry next) |
static int |
avio_read_dir(avformat.AVIODirContext s,
PointerPointer next)
Get next directory entry.
|
static int |
avio_read_to_bprint(avformat.AVIOContext h,
avformat.AVBPrint pb,
long max_size)
Read contents of h into print buffer, up to max_size bytes, or up to EOF.
|
static int |
avio_read(avformat.AVIOContext s,
byte[] buf,
int size) |
static int |
avio_read(avformat.AVIOContext s,
ByteBuffer buf,
int size) |
static int |
avio_read(avformat.AVIOContext s,
BytePointer buf,
int size)
Read size bytes from AVIOContext into buf.
|
static int |
avio_rl16(avformat.AVIOContext s) |
static int |
avio_rl24(avformat.AVIOContext s) |
static int |
avio_rl32(avformat.AVIOContext s) |
static long |
avio_rl64(avformat.AVIOContext s) |
static long |
avio_seek_time(avformat.AVIOContext h,
int stream_index,
long timestamp,
int flags)
Seek to a given timestamp relative to some component stream.
|
static long |
avio_seek(avformat.AVIOContext s,
long offset,
int whence)
fseek() equivalent for AVIOContext.
|
static long |
avio_size(avformat.AVIOContext s)
Get the filesize.
|
static long |
avio_skip(avformat.AVIOContext s,
long offset)
Skip given number of bytes forward
|
static long |
avio_tell(avformat.AVIOContext s)
ftell() equivalent for AVIOContext.
|
static void |
avio_w8(avformat.AVIOContext s,
int b) |
static void |
avio_wb16(avformat.AVIOContext s,
int val) |
static void |
avio_wb24(avformat.AVIOContext s,
int val) |
static void |
avio_wb32(avformat.AVIOContext s,
int val) |
static void |
avio_wb64(avformat.AVIOContext s,
long val) |
static void |
avio_wl16(avformat.AVIOContext s,
int val) |
static void |
avio_wl24(avformat.AVIOContext s,
int val) |
static void |
avio_wl32(avformat.AVIOContext s,
int val) |
static void |
avio_wl64(avformat.AVIOContext s,
long val) |
static void |
avio_write(avformat.AVIOContext s,
byte[] buf,
int size) |
static void |
avio_write(avformat.AVIOContext s,
ByteBuffer buf,
int size) |
static void |
avio_write(avformat.AVIOContext s,
BytePointer buf,
int size) |
static int |
AVPROBE_SCORE_RETRY() |
static int |
AVPROBE_SCORE_STREAM_RETRY() |
static int |
AVSTREAM_PARSE_FULL_RAW() |
static int |
url_feof(avformat.AVIOContext s)
Deprecated.
use avio_feof()
|
public static final int AVIO_SEEKABLE_NORMAL
public static final int AVIO_ENTRY_UNKNOWN
public static final int AVIO_ENTRY_BLOCK_DEVICE
public static final int AVIO_ENTRY_CHARACTER_DEVICE
public static final int AVIO_ENTRY_DIRECTORY
public static final int AVIO_ENTRY_NAMED_PIPE
public static final int AVIO_ENTRY_SYMBOLIC_LINK
public static final int AVIO_ENTRY_SOCKET
public static final int AVIO_ENTRY_FILE
public static final int AVIO_ENTRY_SERVER
public static final int AVIO_ENTRY_SHARE
public static final int AVIO_ENTRY_WORKGROUP
public static final int AVSEEK_SIZE
public static final int AVSEEK_FORCE
public static final int AVIO_FLAG_READ
public static final int AVIO_FLAG_WRITE
public static final int AVIO_FLAG_READ_WRITE
public static final int AVIO_FLAG_NONBLOCK
public static final int AVIO_FLAG_DIRECT
public static final int AVPROBE_SCORE_RETRY
public static final int AVPROBE_SCORE_STREAM_RETRY
public static final int AVPROBE_SCORE_EXTENSION
public static final int AVPROBE_SCORE_MIME
public static final int AVPROBE_SCORE_MAX
public static final int AVPROBE_PADDING_SIZE
public static final int AVFMT_NOFILE
public static final int AVFMT_NEEDNUMBER
public static final int AVFMT_SHOW_IDS
public static final int AVFMT_RAWPICTURE
public static final int AVFMT_GLOBALHEADER
public static final int AVFMT_NOTIMESTAMPS
public static final int AVFMT_GENERIC_INDEX
public static final int AVFMT_TS_DISCONT
public static final int AVFMT_VARIABLE_FPS
public static final int AVFMT_NODIMENSIONS
public static final int AVFMT_NOSTREAMS
public static final int AVFMT_NOBINSEARCH
public static final int AVFMT_NOGENSEARCH
public static final int AVFMT_NO_BYTE_SEEK
public static final int AVFMT_ALLOW_FLUSH
public static final int AVFMT_TS_NONSTRICT
public static final int AVFMT_TS_NEGATIVE
public static final int AVFMT_SEEK_TO_PTS
public static final int AVSTREAM_PARSE_NONE
public static final int AVSTREAM_PARSE_FULL
public static final int AVSTREAM_PARSE_HEADERS
public static final int AVSTREAM_PARSE_TIMESTAMPS
public static final int AVSTREAM_PARSE_FULL_ONCE
public static final int AVSTREAM_PARSE_FULL_RAW
public static final int AV_DISPOSITION_DEFAULT
public static final int AV_DISPOSITION_DUB
public static final int AV_DISPOSITION_ORIGINAL
public static final int AV_DISPOSITION_COMMENT
public static final int AV_DISPOSITION_LYRICS
public static final int AV_DISPOSITION_KARAOKE
public static final int AV_DISPOSITION_FORCED
public static final int AV_DISPOSITION_HEARING_IMPAIRED
public static final int AV_DISPOSITION_VISUAL_IMPAIRED
public static final int AV_DISPOSITION_CLEAN_EFFECTS
public static final int AV_DISPOSITION_ATTACHED_PIC
public static final int AV_DISPOSITION_CAPTIONS
public static final int AV_DISPOSITION_DESCRIPTIONS
public static final int AV_DISPOSITION_METADATA
public static final int AV_PTS_WRAP_IGNORE
public static final int AV_PTS_WRAP_ADD_OFFSET
public static final int AV_PTS_WRAP_SUB_OFFSET
public static final int AV_PROGRAM_RUNNING
public static final int AVFMTCTX_NOHEADER
public static final int AVFMT_DURATION_FROM_PTS
public static final int AVFMT_DURATION_FROM_STREAM
public static final int AVFMT_DURATION_FROM_BITRATE
public static final int AVSEEK_FLAG_BACKWARD
public static final int AVSEEK_FLAG_BYTE
public static final int AVSEEK_FLAG_ANY
public static final int AVSEEK_FLAG_FRAME
@Cast(value="const char*") public static BytePointer avio_find_protocol_name(@Cast(value="const char*") BytePointer url)
public static int avio_check(@Cast(value="const char*") BytePointer url, int flags)
public static int avio_check(String url, int flags)
public static int avio_open_dir(@Cast(value="AVIODirContext**") PointerPointer s, @Cast(value="const char*") BytePointer url, @Cast(value="AVDictionary**") PointerPointer options)
s - directory read context. Pointer to a NULL pointer must be passed.url - directory to be listed.options - A dictionary filled with protocol-private options. On return
this parameter will be destroyed and replaced with a dictionary
containing options that were not found. May be NULL.public static int avio_open_dir(@ByPtrPtr avformat.AVIODirContext s, @Cast(value="const char*") BytePointer url, @ByPtrPtr avutil.AVDictionary options)
public static int avio_open_dir(@ByPtrPtr avformat.AVIODirContext s, String url, @ByPtrPtr avutil.AVDictionary options)
public static int avio_read_dir(avformat.AVIODirContext s, @Cast(value="AVIODirEntry**") PointerPointer next)
s - directory read context.public static int avio_read_dir(avformat.AVIODirContext s, @ByPtrPtr avformat.AVIODirEntry next)
public static int avio_close_dir(@Cast(value="AVIODirContext**") PointerPointer s)
s - directory read context.public static int avio_close_dir(@ByPtrPtr avformat.AVIODirContext s)
public static void avio_free_directory_entry(@Cast(value="AVIODirEntry**") PointerPointer entry)
entry - entry to be freed.public static void avio_free_directory_entry(@ByPtrPtr avformat.AVIODirEntry entry)
public static avformat.AVIOContext avio_alloc_context(@Cast(value="unsigned char*") BytePointer buffer, int buffer_size, int write_flag, Pointer opaque, avformat.Read_packet_Pointer_BytePointer_int read_packet, avformat.Write_packet_Pointer_BytePointer_int write_packet, avformat.Seek_Pointer_long_int seek)
public static avformat.AVIOContext avio_alloc_context(@Cast(value="unsigned char*") ByteBuffer buffer, int buffer_size, int write_flag, Pointer opaque, avformat.Read_packet_Pointer_ByteBuffer_int read_packet, avformat.Write_packet_Pointer_ByteBuffer_int write_packet, avformat.Seek_Pointer_long_int seek)
public static avformat.AVIOContext avio_alloc_context(@Cast(value="unsigned char*") byte[] buffer, int buffer_size, int write_flag, Pointer opaque, avformat.Read_packet_Pointer_byte___int read_packet, avformat.Write_packet_Pointer_byte___int write_packet, avformat.Seek_Pointer_long_int seek)
public static void avio_w8(avformat.AVIOContext s, int b)
public static void avio_write(avformat.AVIOContext s, @Cast(value="const unsigned char*") BytePointer buf, int size)
public static void avio_write(avformat.AVIOContext s, @Cast(value="const unsigned char*") ByteBuffer buf, int size)
public static void avio_write(avformat.AVIOContext s, @Cast(value="const unsigned char*") byte[] buf, int size)
public static void avio_wl64(avformat.AVIOContext s, @Cast(value="uint64_t") long val)
public static void avio_wb64(avformat.AVIOContext s, @Cast(value="uint64_t") long val)
public static void avio_wl32(avformat.AVIOContext s, @Cast(value="unsigned int") int val)
public static void avio_wb32(avformat.AVIOContext s, @Cast(value="unsigned int") int val)
public static void avio_wl24(avformat.AVIOContext s, @Cast(value="unsigned int") int val)
public static void avio_wb24(avformat.AVIOContext s, @Cast(value="unsigned int") int val)
public static void avio_wl16(avformat.AVIOContext s, @Cast(value="unsigned int") int val)
public static void avio_wb16(avformat.AVIOContext s, @Cast(value="unsigned int") int val)
public static int avio_put_str(avformat.AVIOContext s, @Cast(value="const char*") BytePointer str)
public static int avio_put_str(avformat.AVIOContext s, String str)
public static int avio_put_str16le(avformat.AVIOContext s, @Cast(value="const char*") BytePointer str)
s - the AVIOContextstr - NULL-terminated UTF-8 stringpublic static int avio_put_str16le(avformat.AVIOContext s, String str)
public static int avio_put_str16be(avformat.AVIOContext s, @Cast(value="const char*") BytePointer str)
s - the AVIOContextstr - NULL-terminated UTF-8 stringpublic static int avio_put_str16be(avformat.AVIOContext s, String str)
public static long avio_seek(avformat.AVIOContext s, long offset, int whence)
public static long avio_skip(avformat.AVIOContext s, long offset)
public static long avio_tell(avformat.AVIOContext s)
public static long avio_size(avformat.AVIOContext s)
public static int avio_feof(avformat.AVIOContext s)
@Deprecated public static int url_feof(avformat.AVIOContext s)
public static int avio_printf(avformat.AVIOContext s, @Cast(value="const char*") BytePointer fmt)
public static int avio_printf(avformat.AVIOContext s, String fmt)
public static void avio_flush(avformat.AVIOContext s)
public static int avio_read(avformat.AVIOContext s, @Cast(value="unsigned char*") BytePointer buf, int size)
public static int avio_read(avformat.AVIOContext s, @Cast(value="unsigned char*") ByteBuffer buf, int size)
public static int avio_read(avformat.AVIOContext s, @Cast(value="unsigned char*") byte[] buf, int size)
public static int avio_r8(avformat.AVIOContext s)
@Cast(value="unsigned int") public static int avio_rl16(avformat.AVIOContext s)
@Cast(value="unsigned int") public static int avio_rl24(avformat.AVIOContext s)
@Cast(value="unsigned int") public static int avio_rl32(avformat.AVIOContext s)
@Cast(value="uint64_t") public static long avio_rl64(avformat.AVIOContext s)
@Cast(value="unsigned int") public static int avio_rb16(avformat.AVIOContext s)
@Cast(value="unsigned int") public static int avio_rb24(avformat.AVIOContext s)
@Cast(value="unsigned int") public static int avio_rb32(avformat.AVIOContext s)
@Cast(value="uint64_t") public static long avio_rb64(avformat.AVIOContext s)
public static int avio_get_str(avformat.AVIOContext pb, int maxlen, @Cast(value="char*") BytePointer buf, int buflen)
public static int avio_get_str(avformat.AVIOContext pb, int maxlen, @Cast(value="char*") ByteBuffer buf, int buflen)
public static int avio_get_str(avformat.AVIOContext pb, int maxlen, @Cast(value="char*") byte[] buf, int buflen)
public static int avio_get_str16le(avformat.AVIOContext pb, int maxlen, @Cast(value="char*") BytePointer buf, int buflen)
public static int avio_get_str16le(avformat.AVIOContext pb, int maxlen, @Cast(value="char*") ByteBuffer buf, int buflen)
public static int avio_get_str16le(avformat.AVIOContext pb, int maxlen, @Cast(value="char*") byte[] buf, int buflen)
public static int avio_get_str16be(avformat.AVIOContext pb, int maxlen, @Cast(value="char*") BytePointer buf, int buflen)
public static int avio_get_str16be(avformat.AVIOContext pb, int maxlen, @Cast(value="char*") ByteBuffer buf, int buflen)
public static int avio_get_str16be(avformat.AVIOContext pb, int maxlen, @Cast(value="char*") byte[] buf, int buflen)
public static int avio_open(@Cast(value="AVIOContext**") PointerPointer s, @Cast(value="const char*") BytePointer url, int flags)
s - Used to return the pointer to the created AVIOContext.
In case of failure the pointed to value is set to NULL.url - resource to accessflags - flags which control how the resource indicated by url
is to be openedpublic static int avio_open(@ByPtrPtr avformat.AVIOContext s, @Cast(value="const char*") BytePointer url, int flags)
public static int avio_open(@ByPtrPtr avformat.AVIOContext s, String url, int flags)
public static int avio_open2(@Cast(value="AVIOContext**") PointerPointer s, @Cast(value="const char*") BytePointer url, int flags, @Const avformat.AVIOInterruptCB int_cb, @Cast(value="AVDictionary**") PointerPointer options)
s - Used to return the pointer to the created AVIOContext.
In case of failure the pointed to value is set to NULL.url - resource to accessflags - flags which control how the resource indicated by url
is to be openedint_cb - an interrupt callback to be used at the protocols leveloptions - A dictionary filled with protocol-private options. On return
this parameter will be destroyed and replaced with a dict containing options
that were not found. May be NULL.public static int avio_open2(@ByPtrPtr avformat.AVIOContext s, @Cast(value="const char*") BytePointer url, int flags, @Const avformat.AVIOInterruptCB int_cb, @ByPtrPtr avutil.AVDictionary options)
public static int avio_open2(@ByPtrPtr avformat.AVIOContext s, String url, int flags, @Const avformat.AVIOInterruptCB int_cb, @ByPtrPtr avutil.AVDictionary options)
public static int avio_close(avformat.AVIOContext s)
avio_closeppublic static int avio_closep(@Cast(value="AVIOContext**") PointerPointer s)
avio_closepublic static int avio_closep(@ByPtrPtr avformat.AVIOContext s)
public static int avio_open_dyn_buf(@Cast(value="AVIOContext**") PointerPointer s)
s - new IO contextpublic static int avio_open_dyn_buf(@ByPtrPtr avformat.AVIOContext s)
public static int avio_close_dyn_buf(avformat.AVIOContext s, @Cast(value="uint8_t**") PointerPointer pbuffer)
s - IO contextpbuffer - pointer to a byte bufferpublic static int avio_close_dyn_buf(avformat.AVIOContext s, @Cast(value="uint8_t**") @ByPtrPtr BytePointer pbuffer)
public static int avio_close_dyn_buf(avformat.AVIOContext s, @Cast(value="uint8_t**") @ByPtrPtr ByteBuffer pbuffer)
public static int avio_close_dyn_buf(avformat.AVIOContext s, @Cast(value="uint8_t**") @ByPtrPtr byte[] pbuffer)
@Cast(value="const char*") public static BytePointer avio_enum_protocols(@Cast(value="void**") PointerPointer opaque, int output)
opaque - A private pointer representing current protocol.
It must be a pointer to NULL on first iteration and will
be updated by successive calls to avio_enum_protocols.output - If set to 1, iterate over output protocols,
otherwise over input protocols.@Cast(value="const char*") public static BytePointer avio_enum_protocols(@Cast(value="void**") @ByPtrPtr Pointer opaque, int output)
public static int avio_pause(avformat.AVIOContext h, int pause)
h - IO context from which to call the read_pause function pointerpause - 1 for pause, 0 for resumepublic static long avio_seek_time(avformat.AVIOContext h, int stream_index, long timestamp, int flags)
h - IO context from which to call the seek function pointersstream_index - The stream index that the timestamp is relative to.
If stream_index is (-1) the timestamp should be in AV_TIME_BASE
units from the beginning of the presentation.
If a stream_index >= 0 is used and the protocol does not support
seeking based on component streams, the call will fail.timestamp - timestamp in AVStream.time_base units
or if there is no stream specified then in AV_TIME_BASE units.flags - Optional combination of AVSEEK_FLAG_BACKWARD, AVSEEK_FLAG_BYTE
and AVSEEK_FLAG_ANY. The protocol may silently ignore
AVSEEK_FLAG_BACKWARD and AVSEEK_FLAG_ANY, but AVSEEK_FLAG_BYTE will
fail if used and not supported.AVInputFormat::read_seekpublic static int avio_read_to_bprint(avformat.AVIOContext h, avformat.AVBPrint pb, @Cast(value="size_t") long max_size)
public static int av_get_packet(avformat.AVIOContext s, avcodec.AVPacket pkt, int size)
s - associated IO contextpkt - packetsize - desired payload sizepublic static int av_append_packet(avformat.AVIOContext s, avcodec.AVPacket pkt, int size)
s - associated IO contextpkt - packetsize - amount of data to read@MemberGetter public static int AVPROBE_SCORE_RETRY()
@MemberGetter public static int AVPROBE_SCORE_STREAM_RETRY()
@MemberGetter public static int AVSTREAM_PARSE_FULL_RAW()
@ByVal public static avutil.AVRational av_stream_get_r_frame_rate(@Const avformat.AVStream s)
public static void av_stream_set_r_frame_rate(avformat.AVStream s, @ByVal avutil.AVRational r)
public static avcodec.AVCodecParserContext av_stream_get_parser(@Const avformat.AVStream s)
@Cast(value="char*") public static BytePointer av_stream_get_recommended_encoder_configuration(@Const avformat.AVStream s)
public static void av_stream_set_recommended_encoder_configuration(avformat.AVStream s, @Cast(value="char*") BytePointer configuration)
public static void av_stream_set_recommended_encoder_configuration(avformat.AVStream s, @Cast(value="char*") ByteBuffer configuration)
public static void av_stream_set_recommended_encoder_configuration(avformat.AVStream s, @Cast(value="char*") byte[] configuration)
public static long av_stream_get_end_pts(@Const avformat.AVStream st)
public static int av_format_get_probe_score(@Const avformat.AVFormatContext s)
public static avcodec.AVCodec av_format_get_video_codec(@Const avformat.AVFormatContext s)
public static void av_format_set_video_codec(avformat.AVFormatContext s, avcodec.AVCodec c)
public static avcodec.AVCodec av_format_get_audio_codec(@Const avformat.AVFormatContext s)
public static void av_format_set_audio_codec(avformat.AVFormatContext s, avcodec.AVCodec c)
public static avcodec.AVCodec av_format_get_subtitle_codec(@Const avformat.AVFormatContext s)
public static void av_format_set_subtitle_codec(avformat.AVFormatContext s, avcodec.AVCodec c)
public static avcodec.AVCodec av_format_get_data_codec(@Const avformat.AVFormatContext s)
public static void av_format_set_data_codec(avformat.AVFormatContext s, avcodec.AVCodec c)
public static int av_format_get_metadata_header_padding(@Const avformat.AVFormatContext s)
public static void av_format_set_metadata_header_padding(avformat.AVFormatContext s, int c)
public static Pointer av_format_get_opaque(@Const avformat.AVFormatContext s)
public static void av_format_set_opaque(avformat.AVFormatContext s, Pointer opaque)
public static avformat.av_format_control_message av_format_get_control_message_cb(@Const avformat.AVFormatContext s)
public static void av_format_set_control_message_cb(avformat.AVFormatContext s, avformat.av_format_control_message callback)
public static avformat.AVOpenCallback av_format_get_open_cb(@Const avformat.AVFormatContext s)
public static void av_format_set_open_cb(avformat.AVFormatContext s, avformat.AVOpenCallback callback)
public static void av_format_inject_global_side_data(avformat.AVFormatContext s)
@Cast(value="AVDurationEstimationMethod") public static int av_fmt_ctx_get_duration_estimation_method(@Const avformat.AVFormatContext ctx)
@Cast(value="unsigned") public static int avformat_version()
@Cast(value="const char*") public static BytePointer avformat_configuration()
@Cast(value="const char*") public static BytePointer avformat_license()
public static void av_register_all()
av_register_input_format(),
av_register_output_format()public static void av_register_input_format(avformat.AVInputFormat format)
public static void av_register_output_format(avformat.AVOutputFormat format)
public static int avformat_network_init()
public static int avformat_network_deinit()
public static avformat.AVInputFormat av_iformat_next(@Const avformat.AVInputFormat f)
public static avformat.AVOutputFormat av_oformat_next(@Const avformat.AVOutputFormat f)
public static avformat.AVFormatContext avformat_alloc_context()
public static void avformat_free_context(avformat.AVFormatContext s)
s - context to free@Const public static avutil.AVClass avformat_get_class()
av_opt_find().public static avformat.AVStream avformat_new_stream(avformat.AVFormatContext s, @Const avcodec.AVCodec c)
s - media file handlec - If non-NULL, the AVCodecContext corresponding to the new stream
will be initialized to use this codec. This is needed for e.g. codec-specific
defaults to be set, so codec should be provided if it is known.@Cast(value="uint8_t*") public static BytePointer av_stream_get_side_data(avformat.AVStream stream, @Cast(value="AVPacketSideDataType") int type, IntPointer size)
stream - streamtype - desired side information typesize - pointer for side information size to store (optional)@Cast(value="uint8_t*") public static ByteBuffer av_stream_get_side_data(avformat.AVStream stream, @Cast(value="AVPacketSideDataType") int type, IntBuffer size)
@Cast(value="uint8_t*") public static byte[] av_stream_get_side_data(avformat.AVStream stream, @Cast(value="AVPacketSideDataType") int type, int[] size)
public static avformat.AVProgram av_new_program(avformat.AVFormatContext s, int id)
public static int avformat_alloc_output_context2(@Cast(value="AVFormatContext**") PointerPointer ctx, avformat.AVOutputFormat oformat, @Cast(value="const char*") BytePointer format_name, @Cast(value="const char*") BytePointer filename)
*ctx - is set to the created format context, or to NULL in
case of failureoformat - format to use for allocating the context, if NULL
format_name and filename are used insteadformat_name - the name of output format to use for allocating the
context, if NULL filename is used insteadfilename - the name of the filename to use for allocating the
context, may be NULLpublic static int avformat_alloc_output_context2(@ByPtrPtr avformat.AVFormatContext ctx, avformat.AVOutputFormat oformat, @Cast(value="const char*") BytePointer format_name, @Cast(value="const char*") BytePointer filename)
public static int avformat_alloc_output_context2(@ByPtrPtr avformat.AVFormatContext ctx, avformat.AVOutputFormat oformat, String format_name, String filename)
public static avformat.AVInputFormat av_find_input_format(@Cast(value="const char*") BytePointer short_name)
public static avformat.AVInputFormat av_find_input_format(String short_name)
public static avformat.AVInputFormat av_probe_input_format(avformat.AVProbeData pd, int is_opened)
pd - data to be probedis_opened - Whether the file is already opened; determines whether
demuxers with or without AVFMT_NOFILE are probed.public static avformat.AVInputFormat av_probe_input_format2(avformat.AVProbeData pd, int is_opened, IntPointer score_max)
pd - data to be probedis_opened - Whether the file is already opened; determines whether
demuxers with or without AVFMT_NOFILE are probed.score_max - A probe score larger that this is required to accept a
detection, the variable is set to the actual detection
score afterwards.
If the score is <= AVPROBE_SCORE_MAX / 4 it is recommended
to retry with a larger probe buffer.public static avformat.AVInputFormat av_probe_input_format2(avformat.AVProbeData pd, int is_opened, IntBuffer score_max)
public static avformat.AVInputFormat av_probe_input_format2(avformat.AVProbeData pd, int is_opened, int[] score_max)
public static avformat.AVInputFormat av_probe_input_format3(avformat.AVProbeData pd, int is_opened, IntPointer score_ret)
is_opened - Whether the file is already opened; determines whether
demuxers with or without AVFMT_NOFILE are probed.score_ret - The score of the best detection.public static avformat.AVInputFormat av_probe_input_format3(avformat.AVProbeData pd, int is_opened, IntBuffer score_ret)
public static avformat.AVInputFormat av_probe_input_format3(avformat.AVProbeData pd, int is_opened, int[] score_ret)
public static int av_probe_input_buffer2(avformat.AVIOContext pb, @Cast(value="AVInputFormat**") PointerPointer fmt, @Cast(value="const char*") BytePointer filename, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
pb - the bytestream to probefmt - the input format is put herefilename - the filename of the streamlogctx - the log contextoffset - the offset within the bytestream to probe frommax_probe_size - the maximum probe buffer size (zero for default)public static int av_probe_input_buffer2(avformat.AVIOContext pb, @ByPtrPtr avformat.AVInputFormat fmt, @Cast(value="const char*") BytePointer filename, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
public static int av_probe_input_buffer2(avformat.AVIOContext pb, @ByPtrPtr avformat.AVInputFormat fmt, String filename, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
public static int av_probe_input_buffer(avformat.AVIOContext pb, @Cast(value="AVInputFormat**") PointerPointer fmt, @Cast(value="const char*") BytePointer filename, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
public static int av_probe_input_buffer(avformat.AVIOContext pb, @ByPtrPtr avformat.AVInputFormat fmt, @Cast(value="const char*") BytePointer filename, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
public static int av_probe_input_buffer(avformat.AVIOContext pb, @ByPtrPtr avformat.AVInputFormat fmt, String filename, Pointer logctx, @Cast(value="unsigned int") int offset, @Cast(value="unsigned int") int max_probe_size)
public static int avformat_open_input(@Cast(value="AVFormatContext**") PointerPointer ps, @Cast(value="const char*") BytePointer filename, avformat.AVInputFormat fmt, @Cast(value="AVDictionary**") PointerPointer options)
ps - Pointer to user-supplied AVFormatContext (allocated by avformat_alloc_context).
May be a pointer to NULL, in which case an AVFormatContext is allocated by this
function and written into ps.
Note that a user-supplied AVFormatContext will be freed on failure.filename - Name of the stream to open.fmt - If non-NULL, this parameter forces a specific input format.
Otherwise the format is autodetected.options - A dictionary filled with AVFormatContext and demuxer-private options.
On return this parameter will be destroyed and replaced with a dict containing
options that were not found. May be NULL.public static int avformat_open_input(@ByPtrPtr avformat.AVFormatContext ps, @Cast(value="const char*") BytePointer filename, avformat.AVInputFormat fmt, @ByPtrPtr avutil.AVDictionary options)
public static int avformat_open_input(@ByPtrPtr avformat.AVFormatContext ps, String filename, avformat.AVInputFormat fmt, @ByPtrPtr avutil.AVDictionary options)
@Deprecated public static int av_demuxer_open(avformat.AVFormatContext ic)
public static int avformat_find_stream_info(avformat.AVFormatContext ic, @Cast(value="AVDictionary**") PointerPointer options)
ic - media file handleoptions - If non-NULL, an ic.nb_streams long array of pointers to
dictionaries, where i-th member contains options for
codec corresponding to i-th stream.
On return each dictionary will be filled with options that were not found.public static int avformat_find_stream_info(avformat.AVFormatContext ic, @ByPtrPtr avutil.AVDictionary options)
public static avformat.AVProgram av_find_program_from_stream(avformat.AVFormatContext ic, avformat.AVProgram last, int s)
ic - media file handlelast - the last found program, the search will start after this
program, or from the beginning if it is NULLs - stream indexpublic static int av_find_best_stream(avformat.AVFormatContext ic, @Cast(value="AVMediaType") int type, int wanted_stream_nb, int related_stream, @Cast(value="AVCodec**") PointerPointer decoder_ret, int flags)
ic - media file handletype - stream type: video, audio, subtitles, etc.wanted_stream_nb - user-requested stream number,
or -1 for automatic selectionrelated_stream - try to find a stream related (eg. in the same
program) to this one, or -1 if nonedecoder_ret - if non-NULL, returns the decoder for the
selected streamflags - flags; none are currently definedpublic static int av_find_best_stream(avformat.AVFormatContext ic, @Cast(value="AVMediaType") int type, int wanted_stream_nb, int related_stream, @ByPtrPtr avcodec.AVCodec decoder_ret, int flags)
public static int av_read_frame(avformat.AVFormatContext s, avcodec.AVPacket pkt)
public static int av_seek_frame(avformat.AVFormatContext s, int stream_index, long timestamp, int flags)
s - media file handlestream_index - If stream_index is (-1), a default
stream is selected, and timestamp is automatically converted
from AV_TIME_BASE units to the stream specific time_base.timestamp - Timestamp in AVStream.time_base units
or, if no stream is specified, in AV_TIME_BASE units.flags - flags which select direction and seeking modepublic static int avformat_seek_file(avformat.AVFormatContext s, int stream_index, long min_ts, long ts, long max_ts, int flags)
s - media file handlestream_index - index of the stream which is used as time base referencemin_ts - smallest acceptable timestampts - target timestampmax_ts - largest acceptable timestampflags - flagspublic static int avformat_flush(avformat.AVFormatContext s)
s - media file handlepublic static int av_read_play(avformat.AVFormatContext s)
public static int av_read_pause(avformat.AVFormatContext s)
public static void avformat_close_input(@Cast(value="AVFormatContext**") PointerPointer s)
public static void avformat_close_input(@ByPtrPtr avformat.AVFormatContext s)
public static int avformat_write_header(avformat.AVFormatContext s, @Cast(value="AVDictionary**") PointerPointer options)
s - Media file handle, must be allocated with avformat_alloc_context().
Its oformat field must be set to the desired output format;
Its pb field must be set to an already opened AVIOContext.options - An AVDictionary filled with AVFormatContext and muxer-private options.
On return this parameter will be destroyed and replaced with a dict containing
options that were not found. May be NULL.av_opt_find, av_dict_set, avio_open, av_oformat_next.public static int avformat_write_header(avformat.AVFormatContext s, @ByPtrPtr avutil.AVDictionary options)
public static int av_write_frame(avformat.AVFormatContext s, avcodec.AVPacket pkt)
s - media file handlepkt - The packet containing the data to be written. Note that unlike
av_interleaved_write_frame(), this function does not take
ownership of the packet passed to it (though some muxers may make
an internal reference to the input packet).
av_interleaved_write_frame()public static int av_interleaved_write_frame(avformat.AVFormatContext s, avcodec.AVPacket pkt)
s - media file handlepkt - The packet containing the data to be written.
av_write_frame(), AVFormatContext.max_interleave_deltapublic static int av_write_uncoded_frame(avformat.AVFormatContext s, int stream_index, avutil.AVFrame frame)
public static int av_interleaved_write_uncoded_frame(avformat.AVFormatContext s, int stream_index, avutil.AVFrame frame)
public static int av_write_uncoded_frame_query(avformat.AVFormatContext s, int stream_index)
public static int av_write_trailer(avformat.AVFormatContext s)
s - media file handlepublic static avformat.AVOutputFormat av_guess_format(@Cast(value="const char*") BytePointer short_name, @Cast(value="const char*") BytePointer filename, @Cast(value="const char*") BytePointer mime_type)
short_name - if non-NULL checks if short_name matches with the
names of the registered formatsfilename - if non-NULL checks if filename terminates with the
extensions of the registered formatsmime_type - if non-NULL checks if mime_type matches with the
MIME type of the registered formatspublic static avformat.AVOutputFormat av_guess_format(String short_name, String filename, String mime_type)
@Cast(value="AVCodecID") public static int av_guess_codec(avformat.AVOutputFormat fmt, @Cast(value="const char*") BytePointer short_name, @Cast(value="const char*") BytePointer filename, @Cast(value="const char*") BytePointer mime_type, @Cast(value="AVMediaType") int type)
@Cast(value="AVCodecID") public static int av_guess_codec(avformat.AVOutputFormat fmt, String short_name, String filename, String mime_type, @Cast(value="AVMediaType") int type)
public static int av_get_output_timestamp(avformat.AVFormatContext s, int stream, LongPointer dts, LongPointer wall)
s - media file handlestream - stream in the media filepublic static int av_get_output_timestamp(avformat.AVFormatContext s, int stream, LongBuffer dts, LongBuffer wall)
public static int av_get_output_timestamp(avformat.AVFormatContext s, int stream, long[] dts, long[] wall)
public static void av_hex_dump(@Cast(value="FILE*") Pointer f, @Cast(value="const uint8_t*") BytePointer buf, int size)
f - The file stream pointer where the dump should be sent to.buf - buffersize - buffer sizeav_hex_dump_log, av_pkt_dump2, av_pkt_dump_log2public static void av_hex_dump(@Cast(value="FILE*") Pointer f, @Cast(value="const uint8_t*") ByteBuffer buf, int size)
public static void av_hex_dump(@Cast(value="FILE*") Pointer f, @Cast(value="const uint8_t*") byte[] buf, int size)
public static void av_hex_dump_log(Pointer avcl, int level, @Cast(value="const uint8_t*") BytePointer buf, int size)
avcl - A pointer to an arbitrary struct of which the first field is a
pointer to an AVClass struct.level - The importance level of the message, lower values signifying
higher importance.buf - buffersize - buffer sizeav_hex_dump, av_pkt_dump2, av_pkt_dump_log2public static void av_hex_dump_log(Pointer avcl, int level, @Cast(value="const uint8_t*") ByteBuffer buf, int size)
public static void av_hex_dump_log(Pointer avcl, int level, @Cast(value="const uint8_t*") byte[] buf, int size)
public static void av_pkt_dump2(@Cast(value="FILE*") Pointer f, @Const avcodec.AVPacket pkt, int dump_payload, @Const avformat.AVStream st)
f - The file stream pointer where the dump should be sent to.pkt - packet to dumpdump_payload - True if the payload must be displayed, too.st - AVStream that the packet belongs topublic static void av_pkt_dump_log2(Pointer avcl, int level, @Const avcodec.AVPacket pkt, int dump_payload, @Const avformat.AVStream st)
avcl - A pointer to an arbitrary struct of which the first field is a
pointer to an AVClass struct.level - The importance level of the message, lower values signifying
higher importance.pkt - packet to dumpdump_payload - True if the payload must be displayed, too.st - AVStream that the packet belongs to@Cast(value="AVCodecID") public static int av_codec_get_id(@Cast(value="const AVCodecTag*const*") PointerPointer tags, @Cast(value="unsigned int") int tag)
tags - list of supported codec_id-codec_tag pairs, as stored
in AVInputFormat.codec_tag and AVOutputFormat.codec_tagtag - codec tag to match to a codec ID@Cast(value="AVCodecID") public static int av_codec_get_id(@Const @ByPtrPtr avformat.AVCodecTag tags, @Cast(value="unsigned int") int tag)
@Cast(value="unsigned int") public static int av_codec_get_tag(@Cast(value="const AVCodecTag*const*") PointerPointer tags, @Cast(value="AVCodecID") int id)
tags - list of supported codec_id-codec_tag pairs, as stored
in AVInputFormat.codec_tag and AVOutputFormat.codec_tagid - codec ID to match to a codec tag@Cast(value="unsigned int") public static int av_codec_get_tag(@Const @ByPtrPtr avformat.AVCodecTag tags, @Cast(value="AVCodecID") int id)
public static int av_codec_get_tag2(@Cast(value="const AVCodecTag*const*") PointerPointer tags, @Cast(value="AVCodecID") int id, @Cast(value="unsigned int*") IntPointer tag)
tags - list of supported codec_id - codec_tag pairs, as stored
in AVInputFormat.codec_tag and AVOutputFormat.codec_tagid - codec id that should be searched for in the listtag - A pointer to the found tagpublic static int av_codec_get_tag2(@Const @ByPtrPtr avformat.AVCodecTag tags, @Cast(value="AVCodecID") int id, @Cast(value="unsigned int*") IntPointer tag)
public static int av_codec_get_tag2(@Const @ByPtrPtr avformat.AVCodecTag tags, @Cast(value="AVCodecID") int id, @Cast(value="unsigned int*") IntBuffer tag)
public static int av_codec_get_tag2(@Const @ByPtrPtr avformat.AVCodecTag tags, @Cast(value="AVCodecID") int id, @Cast(value="unsigned int*") int[] tag)
public static int av_find_default_stream_index(avformat.AVFormatContext s)
public static int av_index_search_timestamp(avformat.AVStream st, long timestamp, int flags)
st - stream that the timestamp belongs totimestamp - timestamp to retrieve the index forflags - if AVSEEK_FLAG_BACKWARD then the returned index will correspond
to the timestamp which is <= the requested one, if backward
is 0, then it will be >=
if AVSEEK_FLAG_ANY seek to any frame, only keyframes otherwisepublic static int av_add_index_entry(avformat.AVStream st, long pos, long timestamp, int size, int distance, int flags)
timestamp - timestamp in the time base of the given streampublic static void av_url_split(@Cast(value="char*") BytePointer proto, int proto_size, @Cast(value="char*") BytePointer authorization, int authorization_size, @Cast(value="char*") BytePointer hostname, int hostname_size, IntPointer port_ptr, @Cast(value="char*") BytePointer path, int path_size, @Cast(value="const char*") BytePointer url)
proto - the buffer for the protocolproto_size - the size of the proto bufferauthorization - the buffer for the authorizationauthorization_size - the size of the authorization bufferhostname - the buffer for the host namehostname_size - the size of the hostname bufferport_ptr - a pointer to store the port number inpath - the buffer for the pathpath_size - the size of the path bufferurl - the URL to splitpublic static void av_url_split(@Cast(value="char*") ByteBuffer proto, int proto_size, @Cast(value="char*") ByteBuffer authorization, int authorization_size, @Cast(value="char*") ByteBuffer hostname, int hostname_size, IntBuffer port_ptr, @Cast(value="char*") ByteBuffer path, int path_size, String url)
public static void av_url_split(@Cast(value="char*") byte[] proto, int proto_size, @Cast(value="char*") byte[] authorization, int authorization_size, @Cast(value="char*") byte[] hostname, int hostname_size, int[] port_ptr, @Cast(value="char*") byte[] path, int path_size, @Cast(value="const char*") BytePointer url)
public static void av_url_split(@Cast(value="char*") BytePointer proto, int proto_size, @Cast(value="char*") BytePointer authorization, int authorization_size, @Cast(value="char*") BytePointer hostname, int hostname_size, IntPointer port_ptr, @Cast(value="char*") BytePointer path, int path_size, String url)
public static void av_url_split(@Cast(value="char*") ByteBuffer proto, int proto_size, @Cast(value="char*") ByteBuffer authorization, int authorization_size, @Cast(value="char*") ByteBuffer hostname, int hostname_size, IntBuffer port_ptr, @Cast(value="char*") ByteBuffer path, int path_size, @Cast(value="const char*") BytePointer url)
public static void av_url_split(@Cast(value="char*") byte[] proto, int proto_size, @Cast(value="char*") byte[] authorization, int authorization_size, @Cast(value="char*") byte[] hostname, int hostname_size, int[] port_ptr, @Cast(value="char*") byte[] path, int path_size, String url)
public static void av_dump_format(avformat.AVFormatContext ic, int index, @Cast(value="const char*") BytePointer url, int is_output)
ic - the context to analyzeindex - index of the stream to dump information abouturl - the URL to print, such as source or destination fileis_output - Select whether the specified context is an input(0) or output(1)public static void av_dump_format(avformat.AVFormatContext ic, int index, String url, int is_output)
public static int av_get_frame_filename(@Cast(value="char*") BytePointer buf, int buf_size, @Cast(value="const char*") BytePointer path, int number)
buf - destination bufferbuf_size - destination buffer sizepath - numbered sequence stringnumber - frame numberpublic static int av_get_frame_filename(@Cast(value="char*") ByteBuffer buf, int buf_size, String path, int number)
public static int av_get_frame_filename(@Cast(value="char*") byte[] buf, int buf_size, @Cast(value="const char*") BytePointer path, int number)
public static int av_get_frame_filename(@Cast(value="char*") BytePointer buf, int buf_size, String path, int number)
public static int av_get_frame_filename(@Cast(value="char*") ByteBuffer buf, int buf_size, @Cast(value="const char*") BytePointer path, int number)
public static int av_get_frame_filename(@Cast(value="char*") byte[] buf, int buf_size, String path, int number)
public static int av_filename_number_test(@Cast(value="const char*") BytePointer filename)
filename - possible numbered sequence stringpublic static int av_filename_number_test(String filename)
public static int av_sdp_create(@Cast(value="AVFormatContext**") PointerPointer ac, int n_files, @Cast(value="char*") BytePointer buf, int size)
ac - array of AVFormatContexts describing the RTP streams. If the
array is composed by only one context, such context can contain
multiple AVStreams (one AVStream per RTP stream). Otherwise,
all the contexts in the array (an AVCodecContext per RTP stream)
must contain only one AVStream.n_files - number of AVCodecContexts contained in acbuf - buffer where the SDP will be stored (must be allocated by
the caller)size - the size of the bufferpublic static int av_sdp_create(@ByPtrPtr avformat.AVFormatContext ac, int n_files, @Cast(value="char*") BytePointer buf, int size)
public static int av_sdp_create(@ByPtrPtr avformat.AVFormatContext ac, int n_files, @Cast(value="char*") ByteBuffer buf, int size)
public static int av_sdp_create(@ByPtrPtr avformat.AVFormatContext ac, int n_files, @Cast(value="char*") byte[] buf, int size)
public static int av_match_ext(@Cast(value="const char*") BytePointer filename, @Cast(value="const char*") BytePointer extensions)
filename - file name to check against the given extensionsextensions - a comma-separated list of filename extensionspublic static int avformat_query_codec(@Const avformat.AVOutputFormat ofmt, @Cast(value="AVCodecID") int codec_id, int std_compliance)
ofmt - container to check for compatibilitycodec_id - codec to potentially store in containerstd_compliance - standards compliance level, one of FF_COMPLIANCE_*@Const public static avformat.AVCodecTag avformat_get_riff_video_tags()
@Const public static avformat.AVCodecTag avformat_get_riff_audio_tags()
@Const public static avformat.AVCodecTag avformat_get_mov_video_tags()
@Const public static avformat.AVCodecTag avformat_get_mov_audio_tags()
@ByVal public static avutil.AVRational av_guess_sample_aspect_ratio(avformat.AVFormatContext format, avformat.AVStream stream, avutil.AVFrame frame)
format - the format context which the stream is part ofstream - the stream which the frame is part offrame - the frame with the aspect ratio to be determined@ByVal public static avutil.AVRational av_guess_frame_rate(avformat.AVFormatContext ctx, avformat.AVStream stream, avutil.AVFrame frame)
ctx - the format context which the stream is part ofstream - the stream which the frame is part offrame - the frame for which the frame rate should be determined, may be NULLpublic static int avformat_match_stream_specifier(avformat.AVFormatContext s, avformat.AVStream st, @Cast(value="const char*") BytePointer spec)
public static int avformat_match_stream_specifier(avformat.AVFormatContext s, avformat.AVStream st, String spec)
public static int avformat_queue_attached_pictures(avformat.AVFormatContext s)
Copyright © 2015. All Rights Reserved.