Package net.sf.ffmpeg_java
Interface AVFormatLibrary
-
- All Superinterfaces:
FFMPEGLibrary,com.sun.jna.Library
public interface AVFormatLibrary extends FFMPEGLibrary
Based on FFMPEG Aug 12 2007. From avformat.h, avio.h- Author:
- Ken Larson
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAVFormatLibrary.AVFormatContextstatic classAVFormatLibrary.AVFormatParametersstatic classAVFormatLibrary.AVFracstatic classAVFormatLibrary.AVIndexEntry< full parsing and interpolation of timestamps for frames not starting on packet boundarystatic classAVFormatLibrary.AVInputFormatstatic classAVFormatLibrary.AVOutputFormat< use generic index building codestatic classAVFormatLibrary.AVPacketstatic classAVFormatLibrary.AVPacketListstatic classAVFormatLibrary.AVProbeDatathis structure contains the data a format has to probe a filestatic classAVFormatLibrary.AVStreamstatic classAVFormatLibrary.ByteIOContextstatic interfaceAVFormatLibrary.Destructstatic interfaceAVFormatLibrary.URLClosestatic classAVFormatLibrary.URLContextstatic interfaceAVFormatLibrary.URLOpenstatic classAVFormatLibrary.URLPollEntrystatic classAVFormatLibrary.URLProtocolstatic interfaceAVFormatLibrary.URLReadstatic interfaceAVFormatLibrary.URLSeekstatic interfaceAVFormatLibrary.URLWrite-
Nested classes/interfaces inherited from interface net.sf.ffmpeg_java.FFMPEGLibrary
FFMPEGLibrary.AVClass, FFMPEGLibrary.AVRational
-
-
Field Summary
Fields Modifier and Type Field Description static intAVFMT_GENERIC_INDEX< format does not need / have any timestampsstatic intAVFMT_GLOBALHEADER< format wants AVPicture structure for raw picture datastatic intAVFMT_NEEDNUMBERstatic intAVFMT_NOFILEstatic intAVFMT_NOTIMESTAMPS< format wants global headerstatic intAVFMT_RAWPICTURE< show format stream IDs numbersstatic intAVFMT_SHOW_IDS< needs '%d' in filenamestatic intAVFMTCTX_NOHEADERstatic intAVPROBE_PADDING_SIZEstatic intAVPROBE_SCORE_MAXstatic intAVSEEK_FLAG_ANYstatic intAVSEEK_FLAG_BACKWARDstatic intAVSEEK_FLAG_BYTEstatic intAVSEEK_SIZEstatic intAVSTREAM_PARSE_FULLstatic intAVSTREAM_PARSE_HEADERS< full parsing and repackstatic intAVSTREAM_PARSE_NONEstatic intAVSTREAM_PARSE_TIMESTAMPS< only parse headers, don't repackstatic intFFM_PACKET_SIZEstatic AVFormatLibraryINSTANCEstatic intLIBAVFORMAT_BUILDstatic java.lang.StringLIBAVFORMAT_IDENTstatic java.lang.StringLIBAVFORMAT_VERSIONstatic intLIBAVFORMAT_VERSION_INTstatic intMAX_STREAMS< signal that no header is present (streams are added dynamically)static intPKT_FLAG_KEYstatic intURL_EOFstatic intURL_RDONLYstatic intURL_RDWRstatic intURL_WRONLY-
Fields inherited from interface net.sf.ffmpeg_java.FFMPEGLibrary
PIX_FMT_BGR24, PIX_FMT_BGR32, PIX_FMT_BGR32_1, PIX_FMT_BGR4, PIX_FMT_BGR4_BYTE, PIX_FMT_BGR555, PIX_FMT_BGR565, PIX_FMT_BGR8, PIX_FMT_GRAY16BE, PIX_FMT_GRAY16LE, PIX_FMT_GRAY8, PIX_FMT_MONOBLACK, PIX_FMT_MONOWHITE, PIX_FMT_NB, PIX_FMT_NONE, PIX_FMT_NV12, PIX_FMT_NV21, PIX_FMT_PAL8, PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_RGB32_1, PIX_FMT_RGB4, PIX_FMT_RGB4_BYTE, PIX_FMT_RGB555, PIX_FMT_RGB565, PIX_FMT_RGB8, PIX_FMT_UYVY422, PIX_FMT_UYYVYY411, PIX_FMT_XVMC_MPEG2_IDCT, PIX_FMT_XVMC_MPEG2_MC, PIX_FMT_YUV410P, PIX_FMT_YUV411P, PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV440P, PIX_FMT_YUV444P, PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, PIX_FMT_YUVJ440P, PIX_FMT_YUVJ444P, PIX_FMT_YUYV422
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intav_add_index_entry(AVFormatLibrary.AVStream st, long pos, long timestamp, int size, int distance, int flags)AVFormatLibrary.AVFormatContextav_alloc_format_context()voidav_close_input_file(AVFormatLibrary.AVFormatContext s)intav_codec_get_id(com.sun.jna.ptr.PointerByReference tags, int tag)intav_codec_get_tag(com.sun.jna.ptr.PointerByReference tags, int id)voidav_destruct_packet(AVFormatLibrary.AVPacket pkt)voidav_destruct_packet_nofree(AVFormatLibrary.AVPacket pkt)intav_dup_packet(AVFormatLibrary.AVPacket pkt)intav_filename_number_test(java.lang.String filename)intav_find_default_stream_index(AVFormatLibrary.AVFormatContext s)AVFormatLibrary.AVInputFormatav_find_input_format(java.lang.String short_name)intav_find_stream_info(AVFormatLibrary.AVFormatContext ic)voidav_free_packet(AVFormatLibrary.AVPacket pkt)longav_gen_search(AVFormatLibrary.AVFormatContext s, int stream_index, long target_ts, long pos_min, long pos_max, long pos_limit, long ts_min, long ts_max, int flags, com.sun.jna.ptr.LongByReference ts_ret, com.sun.jna.Pointer read_timestamp)intav_get_frame_filename(com.sun.jna.Pointer buf, int buf_size, java.lang.String path, int number)intav_get_packet(AVFormatLibrary.ByteIOContext s, AVFormatLibrary.AVPacket pkt, int size)longav_gettime()intav_guess_codec(AVFormatLibrary.AVOutputFormat fmt, java.lang.String short_name, java.lang.String filename, java.lang.String mime_type, int type)intav_guess_image2_codec(java.lang.String filename)voidav_hex_dump(com.sun.jna.Pointer f, com.sun.jna.Pointer buf, int size)voidav_hex_dump_log(com.sun.jna.Pointer avcl, int level, com.sun.jna.Pointer buf, int size)intav_index_search_timestamp(AVFormatLibrary.AVStream st, long timestamp, int flags)voidav_init_packet(AVFormatLibrary.AVPacket pkt)intav_interleave_packet_per_dts(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket out, AVFormatLibrary.AVPacket pkt, int flush)intav_interleaved_write_frame(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)intav_new_packet(AVFormatLibrary.AVPacket pkt, int size)AVFormatLibrary.AVStreamav_new_stream(AVFormatLibrary.AVFormatContext s, int id)intav_open_input_file(com.sun.jna.ptr.PointerByReference ic_ptr, java.lang.String filename, AVFormatLibrary.AVInputFormat fmt, int buf_size, AVFormatLibrary.AVFormatParameters ap)Open a media file as input.intav_open_input_stream(com.sun.jna.ptr.PointerByReference ic_ptr, AVFormatLibrary.ByteIOContext pb, java.lang.String filename, AVFormatLibrary.AVInputFormat fmt, AVFormatLibrary.AVFormatParameters ap)Allocates all the structures needed to read an input stream.voidav_pkt_dump(com.sun.jna.Pointer f, AVFormatLibrary.AVPacket pkt, int dump_payload)voidav_pkt_dump_log(com.sun.jna.Pointer avcl, int level, AVFormatLibrary.AVPacket pkt, int dump_payload)AVFormatLibrary.AVInputFormatav_probe_input_format(AVFormatLibrary.AVProbeData pd, int is_opened)intav_read_frame(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)Return the next frame of a stream.intav_read_packet(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)intav_read_pause(AVFormatLibrary.AVFormatContext s)Pause a network based stream (e.g.intav_read_play(AVFormatLibrary.AVFormatContext s)start playing a network based stream (e.g.voidav_register_all()voidav_register_input_format(AVFormatLibrary.AVInputFormat format)voidav_register_output_format(AVFormatLibrary.AVOutputFormat format)intav_seek_frame(AVFormatLibrary.AVFormatContext s, int stream_index, long timestamp, int flags)Seek to the key frame at timestamp.intav_seek_frame_binary(AVFormatLibrary.AVFormatContext s, int stream_index, long target_ts, int flags)intav_set_parameters(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVFormatParameters ap)voidav_set_pts_info(AVFormatLibrary.AVStream s, int pts_wrap_bits, int pts_num, int pts_den)voidav_update_cur_dts(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVStream ref_st, long timestamp)intav_write_frame(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)intav_write_header(AVFormatLibrary.AVFormatContext s)intav_write_trailer(AVFormatLibrary.AVFormatContext s)intavf_sdp_create(com.sun.jna.Pointer ac, int n_files, com.sun.jna.Pointer buff, int size)voiddump_format(AVFormatLibrary.AVFormatContext ic, int index, java.lang.String url, int is_output)longffm_read_write_index(int fd)voidffm_set_write_index(AVFormatLibrary.AVFormatContext s, long pos, long file_size)voidffm_write_write_index(int fd, long pos)intfind_info_tag(com.sun.jna.Pointer arg, int arg_size, java.lang.String tag1, java.lang.String info)intget_be16(AVFormatLibrary.ByteIOContext s)intget_be24(AVFormatLibrary.ByteIOContext s)intget_be32(AVFormatLibrary.ByteIOContext s)longget_be64(AVFormatLibrary.ByteIOContext s)intget_buffer(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int size)intget_byte(AVFormatLibrary.ByteIOContext s)note return 0 if EOF, so you cannot use it if EOF handling is necessarycom.sun.jna.NativeLongget_checksum(AVFormatLibrary.ByteIOContext s)intget_le16(AVFormatLibrary.ByteIOContext s)intget_le24(AVFormatLibrary.ByteIOContext s)intget_le32(AVFormatLibrary.ByteIOContext s)longget_le64(AVFormatLibrary.ByteIOContext s)intget_partial_buffer(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int size)com.sun.jna.Pointerget_strz(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int maxlen)AVFormatLibrary.AVOutputFormatguess_format(java.lang.String short_name, java.lang.String filename, java.lang.String mime_type)AVFormatLibrary.AVOutputFormatguess_stream_format(java.lang.String short_name, java.lang.String filename, java.lang.String mime_type)voidinit_checksum(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer update_checksum, com.sun.jna.NativeLong checksum)intinit_put_byte(com.sun.jna.Pointer s, com.sun.jna.Pointer buffer, int buffer_size, int write_flag, com.sun.jna.Pointer opaque, com.sun.jna.Pointer read_packet, com.sun.jna.Pointer write_packet, com.sun.jna.Pointer seek)intmatch_ext(java.lang.String filename, java.lang.String extensions)longparse_date(java.lang.String datestr, int duration)intparse_frame_rate(com.sun.jna.ptr.IntByReference frame_rate, com.sun.jna.ptr.IntByReference frame_rate_base, java.lang.String arg)Deprecated.intparse_image_size(com.sun.jna.ptr.IntByReference width_ptr, com.sun.jna.ptr.IntByReference height_ptr, java.lang.String str)Deprecated.voidput_be16(AVFormatLibrary.ByteIOContext s, int val)voidput_be24(AVFormatLibrary.ByteIOContext s, int val)voidput_be32(AVFormatLibrary.ByteIOContext s, int val)voidput_be64(AVFormatLibrary.ByteIOContext s, long val)voidput_buffer(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int size)voidput_byte(AVFormatLibrary.ByteIOContext s, int b)voidput_flush_packet(AVFormatLibrary.ByteIOContext s)voidput_le16(AVFormatLibrary.ByteIOContext s, int val)voidput_le24(AVFormatLibrary.ByteIOContext s, int val)voidput_le32(AVFormatLibrary.ByteIOContext s, int val)voidput_le64(AVFormatLibrary.ByteIOContext s, long val)voidput_strz(AVFormatLibrary.ByteIOContext s, java.lang.String buf)voidput_tag(AVFormatLibrary.ByteIOContext s, java.lang.String tag)intregister_protocol(AVFormatLibrary.URLProtocol protocol)intresolve_host(com.sun.jna.Pointer sin_addr, java.lang.String hostname)java.lang.Stringsmall_strptime(java.lang.String p, java.lang.String fmt, com.sun.jna.Pointer dt)intudp_get_file_handle(AVFormatLibrary.URLContext h)intudp_get_local_port(AVFormatLibrary.URLContext h)intudp_set_remote_url(AVFormatLibrary.URLContext h, java.lang.String uri)inturl_close(AVFormatLibrary.URLContext h)inturl_close_buf(AVFormatLibrary.ByteIOContext s)return the written or read sizeinturl_close_dyn_buf(AVFormatLibrary.ByteIOContext s, com.sun.jna.ptr.PointerByReference pbuffer)Return the written size and a pointer to the buffer.inturl_exist(java.lang.String filename)inturl_fclose(AVFormatLibrary.ByteIOContext s)inturl_fdopen(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer h)inturl_feof(AVFormatLibrary.ByteIOContext s)inturl_ferror(AVFormatLibrary.ByteIOContext s)inturl_fget_max_packet_size(com.sun.jna.Pointer s)Return the maximum packet size associated to packetized buffered file handle.inturl_fgetc(AVFormatLibrary.ByteIOContext s)com.sun.jna.Pointerurl_fgets(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int buf_size)note unlike fgets, the EOL character is not returned and a whole line is parsed.AVFormatLibrary.URLContexturl_fileno(AVFormatLibrary.ByteIOContext s)longurl_filesize(AVFormatLibrary.URLContext h)inturl_fopen(AVFormatLibrary.ByteIOContext s, java.lang.String filename, int flags)note when opened as read/write, the buffers are only used for readinglongurl_fseek(AVFormatLibrary.ByteIOContext s, long offset, int whence)longurl_fsize(AVFormatLibrary.ByteIOContext s)voidurl_fskip(AVFormatLibrary.ByteIOContext s, long offset)longurl_ftell(AVFormatLibrary.ByteIOContext s)voidurl_get_filename(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int buf_size)inturl_get_max_packet_size(AVFormatLibrary.URLContext h)inturl_open(com.sun.jna.ptr.PointerByReference h, java.lang.String filename, int flags)inturl_open_buf(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int buf_size, int flags)inturl_open_dyn_buf(AVFormatLibrary.ByteIOContext s)Open a write only memory stream.inturl_open_dyn_packet_buf(AVFormatLibrary.ByteIOContext s, int max_packet_size)Open a write only packetized memory stream with a maximum packet size of 'max_packet_size'.inturl_poll(AVFormatLibrary.URLPollEntry poll_table, int n, int timeout)inturl_read(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int size)longurl_seek(AVFormatLibrary.URLContext h, long pos, int whence)voidurl_set_interrupt_cb(com.sun.jna.Pointer interrupt_cb)inturl_setbufsize(AVFormatLibrary.ByteIOContext s, int buf_size)warning must be called before any I/Ovoidurl_split(com.sun.jna.Pointer proto, int proto_size, com.sun.jna.Pointer authorization, int authorization_size, com.sun.jna.Pointer hostname, int hostname_size, com.sun.jna.ptr.IntByReference port_ptr, com.sun.jna.Pointer path, int path_size, java.lang.String url)inturl_write(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int size)
-
-
-
Field Detail
-
INSTANCE
static final AVFormatLibrary INSTANCE
-
LIBAVFORMAT_VERSION_INT
static final int LIBAVFORMAT_VERSION_INT
- See Also:
- Constant Field Values
-
LIBAVFORMAT_VERSION
static final java.lang.String LIBAVFORMAT_VERSION
- See Also:
- Constant Field Values
-
LIBAVFORMAT_BUILD
static final int LIBAVFORMAT_BUILD
- See Also:
- Constant Field Values
-
LIBAVFORMAT_IDENT
static final java.lang.String LIBAVFORMAT_IDENT
- See Also:
- Constant Field Values
-
PKT_FLAG_KEY
static final int PKT_FLAG_KEY
- See Also:
- Constant Field Values
-
AVPROBE_SCORE_MAX
static final int AVPROBE_SCORE_MAX
- See Also:
- Constant Field Values
-
AVPROBE_PADDING_SIZE
static final int AVPROBE_PADDING_SIZE
- See Also:
- Constant Field Values
-
AVFMT_NOFILE
static final int AVFMT_NOFILE
- See Also:
- Constant Field Values
-
AVFMT_NEEDNUMBER
static final int AVFMT_NEEDNUMBER
- See Also:
- Constant Field Values
-
AVFMT_SHOW_IDS
static final int AVFMT_SHOW_IDS
< needs '%d' in filename- See Also:
- Constant Field Values
-
AVFMT_RAWPICTURE
static final int AVFMT_RAWPICTURE
< show format stream IDs numbers- See Also:
- Constant Field Values
-
AVFMT_GLOBALHEADER
static final int AVFMT_GLOBALHEADER
< format wants AVPicture structure for raw picture data- See Also:
- Constant Field Values
-
AVFMT_NOTIMESTAMPS
static final int AVFMT_NOTIMESTAMPS
< format wants global header- See Also:
- Constant Field Values
-
AVFMT_GENERIC_INDEX
static final int AVFMT_GENERIC_INDEX
< format does not need / have any timestamps- See Also:
- Constant Field Values
-
AVSTREAM_PARSE_NONE
static final int AVSTREAM_PARSE_NONE
- See Also:
- Constant Field Values
-
AVSTREAM_PARSE_FULL
static final int AVSTREAM_PARSE_FULL
- See Also:
- Constant Field Values
-
AVSTREAM_PARSE_HEADERS
static final int AVSTREAM_PARSE_HEADERS
< full parsing and repack- See Also:
- Constant Field Values
-
AVSTREAM_PARSE_TIMESTAMPS
static final int AVSTREAM_PARSE_TIMESTAMPS
< only parse headers, don't repack- See Also:
- Constant Field Values
-
AVFMTCTX_NOHEADER
static final int AVFMTCTX_NOHEADER
- See Also:
- Constant Field Values
-
MAX_STREAMS
static final int MAX_STREAMS
< signal that no header is present (streams are added dynamically)- See Also:
- Constant Field Values
-
AVSEEK_FLAG_BACKWARD
static final int AVSEEK_FLAG_BACKWARD
- See Also:
- Constant Field Values
-
AVSEEK_FLAG_BYTE
static final int AVSEEK_FLAG_BYTE
- See Also:
- Constant Field Values
-
AVSEEK_FLAG_ANY
static final int AVSEEK_FLAG_ANY
- See Also:
- Constant Field Values
-
FFM_PACKET_SIZE
static final int FFM_PACKET_SIZE
- See Also:
- Constant Field Values
-
URL_RDONLY
static final int URL_RDONLY
- See Also:
- Constant Field Values
-
URL_WRONLY
static final int URL_WRONLY
- See Also:
- Constant Field Values
-
URL_RDWR
static final int URL_RDWR
- See Also:
- Constant Field Values
-
AVSEEK_SIZE
static final int AVSEEK_SIZE
- See Also:
- Constant Field Values
-
URL_EOF
static final int URL_EOF
- See Also:
- Constant Field Values
-
-
Method Detail
-
av_destruct_packet_nofree
void av_destruct_packet_nofree(AVFormatLibrary.AVPacket pkt)
-
av_destruct_packet
void av_destruct_packet(AVFormatLibrary.AVPacket pkt)
-
av_init_packet
void av_init_packet(AVFormatLibrary.AVPacket pkt)
-
av_new_packet
int av_new_packet(AVFormatLibrary.AVPacket pkt, int size)
-
av_get_packet
int av_get_packet(AVFormatLibrary.ByteIOContext s, AVFormatLibrary.AVPacket pkt, int size)
-
av_dup_packet
int av_dup_packet(AVFormatLibrary.AVPacket pkt)
-
av_free_packet
void av_free_packet(AVFormatLibrary.AVPacket pkt)
-
av_guess_image2_codec
int av_guess_image2_codec(java.lang.String filename)
-
av_register_input_format
void av_register_input_format(AVFormatLibrary.AVInputFormat format)
-
av_register_output_format
void av_register_output_format(AVFormatLibrary.AVOutputFormat format)
-
guess_stream_format
AVFormatLibrary.AVOutputFormat guess_stream_format(java.lang.String short_name, java.lang.String filename, java.lang.String mime_type)
-
guess_format
AVFormatLibrary.AVOutputFormat guess_format(java.lang.String short_name, java.lang.String filename, java.lang.String mime_type)
-
av_guess_codec
int av_guess_codec(AVFormatLibrary.AVOutputFormat fmt, java.lang.String short_name, java.lang.String filename, java.lang.String mime_type, int type)
-
av_hex_dump
void av_hex_dump(com.sun.jna.Pointer f, com.sun.jna.Pointer buf, int size)
-
av_hex_dump_log
void av_hex_dump_log(com.sun.jna.Pointer avcl, int level, com.sun.jna.Pointer buf, int size)
-
av_pkt_dump
void av_pkt_dump(com.sun.jna.Pointer f, AVFormatLibrary.AVPacket pkt, int dump_payload)
-
av_pkt_dump_log
void av_pkt_dump_log(com.sun.jna.Pointer avcl, int level, AVFormatLibrary.AVPacket pkt, int dump_payload)
-
av_register_all
void av_register_all()
-
av_codec_get_id
int av_codec_get_id(com.sun.jna.ptr.PointerByReference tags, int tag)
-
av_codec_get_tag
int av_codec_get_tag(com.sun.jna.ptr.PointerByReference tags, int id)
-
av_find_input_format
AVFormatLibrary.AVInputFormat av_find_input_format(java.lang.String short_name)
-
av_probe_input_format
AVFormatLibrary.AVInputFormat av_probe_input_format(AVFormatLibrary.AVProbeData pd, int is_opened)
-
av_open_input_stream
int av_open_input_stream(com.sun.jna.ptr.PointerByReference ic_ptr, AVFormatLibrary.ByteIOContext pb, java.lang.String filename, AVFormatLibrary.AVInputFormat fmt, AVFormatLibrary.AVFormatParameters ap)Allocates all the structures needed to read an input stream. This does not open the needed codecs for decoding the stream[s].
-
av_open_input_file
int av_open_input_file(com.sun.jna.ptr.PointerByReference ic_ptr, java.lang.String filename, AVFormatLibrary.AVInputFormat fmt, int buf_size, AVFormatLibrary.AVFormatParameters ap)Open a media file as input. The codecs are not opened. Only the file header (if present) is read.- Parameters:
ic_ptr- the opened media file handle is put herefilename- filename to open.fmt- if non NULL, force the file format to usebuf_size- optional buffer size (zero if default is OK)ap- additional parameters needed when opening the file (NULL if default)- Returns:
- 0 if OK. AVERROR_xxx otherwise.
-
av_alloc_format_context
AVFormatLibrary.AVFormatContext av_alloc_format_context()
-
av_find_stream_info
int av_find_stream_info(AVFormatLibrary.AVFormatContext ic)
-
av_read_packet
int av_read_packet(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)
-
av_read_frame
int av_read_frame(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)
Return the next frame of a stream. The returned packet is valid until the next av_read_frame() or until av_close_input_file() and must be freed with av_free_packet. For video, the packet contains exactly one frame. For audio, it contains an integer number of frames if each frame has a known fixed size (e.g. PCM or ADPCM data). If the audio frames have a variable size (e.g. MPEG audio), then it contains one frame. pkt->pts, pkt->dts and pkt->duration are always set to correct values in AVStream.timebase units (and guessed if the format cannot provided them). pkt->pts can be AV_NOPTS_VALUE if the video format has B frames, so it is better to rely on pkt->dts if you do not decompress the payload.- Returns:
- 0 if OK, < 0 if error or end of file.
-
av_seek_frame
int av_seek_frame(AVFormatLibrary.AVFormatContext s, int stream_index, long timestamp, int flags)
Seek to the key frame at timestamp. 'timestamp' in 'stream_index'.- Parameters:
stream_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 there is no stream specified then in AV_TIME_BASE unitsflags- flags which select direction and seeking mode- Returns:
- >= 0 on success
-
av_read_play
int av_read_play(AVFormatLibrary.AVFormatContext s)
start playing a network based stream (e.g. RTSP stream) at the current position
-
av_read_pause
int av_read_pause(AVFormatLibrary.AVFormatContext s)
Pause a network based stream (e.g. RTSP stream). Use av_read_play() to resume it.
-
av_close_input_file
void av_close_input_file(AVFormatLibrary.AVFormatContext s)
-
av_new_stream
AVFormatLibrary.AVStream av_new_stream(AVFormatLibrary.AVFormatContext s, int id)
-
av_set_pts_info
void av_set_pts_info(AVFormatLibrary.AVStream s, int pts_wrap_bits, int pts_num, int pts_den)
-
av_find_default_stream_index
int av_find_default_stream_index(AVFormatLibrary.AVFormatContext s)
-
av_index_search_timestamp
int av_index_search_timestamp(AVFormatLibrary.AVStream st, long timestamp, int flags)
-
av_add_index_entry
int av_add_index_entry(AVFormatLibrary.AVStream st, long pos, long timestamp, int size, int distance, int flags)
-
av_seek_frame_binary
int av_seek_frame_binary(AVFormatLibrary.AVFormatContext s, int stream_index, long target_ts, int flags)
-
av_update_cur_dts
void av_update_cur_dts(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVStream ref_st, long timestamp)
-
av_gen_search
long av_gen_search(AVFormatLibrary.AVFormatContext s, int stream_index, long target_ts, long pos_min, long pos_max, long pos_limit, long ts_min, long ts_max, int flags, com.sun.jna.ptr.LongByReference ts_ret, com.sun.jna.Pointer read_timestamp)
-
av_set_parameters
int av_set_parameters(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVFormatParameters ap)
-
av_write_header
int av_write_header(AVFormatLibrary.AVFormatContext s)
-
av_write_frame
int av_write_frame(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)
-
av_interleaved_write_frame
int av_interleaved_write_frame(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)
-
av_interleave_packet_per_dts
int av_interleave_packet_per_dts(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket out, AVFormatLibrary.AVPacket pkt, int flush)
-
av_write_trailer
int av_write_trailer(AVFormatLibrary.AVFormatContext s)
-
dump_format
void dump_format(AVFormatLibrary.AVFormatContext ic, int index, java.lang.String url, int is_output)
-
parse_image_size
int parse_image_size(com.sun.jna.ptr.IntByReference width_ptr, com.sun.jna.ptr.IntByReference height_ptr, java.lang.String str)Deprecated.
-
parse_frame_rate
int parse_frame_rate(com.sun.jna.ptr.IntByReference frame_rate, com.sun.jna.ptr.IntByReference frame_rate_base, java.lang.String arg)Deprecated.
-
parse_date
long parse_date(java.lang.String datestr, int duration)
-
av_gettime
long av_gettime()
-
ffm_read_write_index
long ffm_read_write_index(int fd)
-
ffm_write_write_index
void ffm_write_write_index(int fd, long pos)
-
ffm_set_write_index
void ffm_set_write_index(AVFormatLibrary.AVFormatContext s, long pos, long file_size)
-
find_info_tag
int find_info_tag(com.sun.jna.Pointer arg, int arg_size, java.lang.String tag1, java.lang.String info)
-
av_get_frame_filename
int av_get_frame_filename(com.sun.jna.Pointer buf, int buf_size, java.lang.String path, int number)
-
av_filename_number_test
int av_filename_number_test(java.lang.String filename)
-
avf_sdp_create
int avf_sdp_create(com.sun.jna.Pointer ac, int n_files, com.sun.jna.Pointer buff, int size)
-
small_strptime
java.lang.String small_strptime(java.lang.String p, java.lang.String fmt, com.sun.jna.Pointer dt)
-
resolve_host
int resolve_host(com.sun.jna.Pointer sin_addr, java.lang.String hostname)
-
url_split
void url_split(com.sun.jna.Pointer proto, int proto_size, com.sun.jna.Pointer authorization, int authorization_size, com.sun.jna.Pointer hostname, int hostname_size, com.sun.jna.ptr.IntByReference port_ptr, com.sun.jna.Pointer path, int path_size, java.lang.String url)
-
match_ext
int match_ext(java.lang.String filename, java.lang.String extensions)
-
url_open
int url_open(com.sun.jna.ptr.PointerByReference h, java.lang.String filename, int flags)
-
url_read
int url_read(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int size)
-
url_write
int url_write(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int size)
-
url_seek
long url_seek(AVFormatLibrary.URLContext h, long pos, int whence)
-
url_close
int url_close(AVFormatLibrary.URLContext h)
-
url_exist
int url_exist(java.lang.String filename)
-
url_filesize
long url_filesize(AVFormatLibrary.URLContext h)
-
url_get_max_packet_size
int url_get_max_packet_size(AVFormatLibrary.URLContext h)
-
url_get_filename
void url_get_filename(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int buf_size)
-
url_set_interrupt_cb
void url_set_interrupt_cb(com.sun.jna.Pointer interrupt_cb)
-
url_poll
int url_poll(AVFormatLibrary.URLPollEntry poll_table, int n, int timeout)
-
register_protocol
int register_protocol(AVFormatLibrary.URLProtocol protocol)
-
init_put_byte
int init_put_byte(com.sun.jna.Pointer s, com.sun.jna.Pointer buffer, int buffer_size, int write_flag, com.sun.jna.Pointer opaque, com.sun.jna.Pointer read_packet, com.sun.jna.Pointer write_packet, com.sun.jna.Pointer seek)
-
put_byte
void put_byte(AVFormatLibrary.ByteIOContext s, int b)
-
put_buffer
void put_buffer(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int size)
-
put_le64
void put_le64(AVFormatLibrary.ByteIOContext s, long val)
-
put_be64
void put_be64(AVFormatLibrary.ByteIOContext s, long val)
-
put_le32
void put_le32(AVFormatLibrary.ByteIOContext s, int val)
-
put_be32
void put_be32(AVFormatLibrary.ByteIOContext s, int val)
-
put_le24
void put_le24(AVFormatLibrary.ByteIOContext s, int val)
-
put_be24
void put_be24(AVFormatLibrary.ByteIOContext s, int val)
-
put_le16
void put_le16(AVFormatLibrary.ByteIOContext s, int val)
-
put_be16
void put_be16(AVFormatLibrary.ByteIOContext s, int val)
-
put_tag
void put_tag(AVFormatLibrary.ByteIOContext s, java.lang.String tag)
-
put_strz
void put_strz(AVFormatLibrary.ByteIOContext s, java.lang.String buf)
-
url_fseek
long url_fseek(AVFormatLibrary.ByteIOContext s, long offset, int whence)
-
url_fskip
void url_fskip(AVFormatLibrary.ByteIOContext s, long offset)
-
url_ftell
long url_ftell(AVFormatLibrary.ByteIOContext s)
-
url_fsize
long url_fsize(AVFormatLibrary.ByteIOContext s)
-
url_feof
int url_feof(AVFormatLibrary.ByteIOContext s)
-
url_ferror
int url_ferror(AVFormatLibrary.ByteIOContext s)
-
url_fgetc
int url_fgetc(AVFormatLibrary.ByteIOContext s)
-
url_fgets
com.sun.jna.Pointer url_fgets(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int buf_size)
note unlike fgets, the EOL character is not returned and a whole line is parsed. return NULL if first char read was EOF
-
put_flush_packet
void put_flush_packet(AVFormatLibrary.ByteIOContext s)
-
get_buffer
int get_buffer(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int size)
-
get_partial_buffer
int get_partial_buffer(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int size)
-
get_byte
int get_byte(AVFormatLibrary.ByteIOContext s)
note return 0 if EOF, so you cannot use it if EOF handling is necessary
-
get_le24
int get_le24(AVFormatLibrary.ByteIOContext s)
-
get_le32
int get_le32(AVFormatLibrary.ByteIOContext s)
-
get_le64
long get_le64(AVFormatLibrary.ByteIOContext s)
-
get_le16
int get_le16(AVFormatLibrary.ByteIOContext s)
-
get_strz
com.sun.jna.Pointer get_strz(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int maxlen)
-
get_be16
int get_be16(AVFormatLibrary.ByteIOContext s)
-
get_be24
int get_be24(AVFormatLibrary.ByteIOContext s)
-
get_be32
int get_be32(AVFormatLibrary.ByteIOContext s)
-
get_be64
long get_be64(AVFormatLibrary.ByteIOContext s)
-
url_fdopen
int url_fdopen(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer h)
-
url_setbufsize
int url_setbufsize(AVFormatLibrary.ByteIOContext s, int buf_size)
warning must be called before any I/O
-
url_fopen
int url_fopen(AVFormatLibrary.ByteIOContext s, java.lang.String filename, int flags)
note when opened as read/write, the buffers are only used for reading
-
url_fclose
int url_fclose(AVFormatLibrary.ByteIOContext s)
-
url_fileno
AVFormatLibrary.URLContext url_fileno(AVFormatLibrary.ByteIOContext s)
-
url_fget_max_packet_size
int url_fget_max_packet_size(com.sun.jna.Pointer s)
Return the maximum packet size associated to packetized buffered file handle. If the file is not packetized (stream like http or file on disk), then 0 is returned.- Parameters:
s- buffered file handle- Returns:
- maximum packet size in bytes
-
url_open_buf
int url_open_buf(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int buf_size, int flags)
-
url_close_buf
int url_close_buf(AVFormatLibrary.ByteIOContext s)
return the written or read size
-
url_open_dyn_buf
int url_open_dyn_buf(AVFormatLibrary.ByteIOContext s)
Open a write only memory stream.- Parameters:
s- new IO context- Returns:
- zero if no error.
-
url_open_dyn_packet_buf
int url_open_dyn_packet_buf(AVFormatLibrary.ByteIOContext s, int max_packet_size)
Open a write only packetized memory stream with a maximum packet size of 'max_packet_size'. The stream is stored in a memory buffer with a big endian 4 byte header giving the packet size in bytes.- Parameters:
s- new IO contextmax_packet_size- maximum packet size (must be > 0)- Returns:
- zero if no error.
-
url_close_dyn_buf
int url_close_dyn_buf(AVFormatLibrary.ByteIOContext s, com.sun.jna.ptr.PointerByReference pbuffer)
Return the written size and a pointer to the buffer. The buffer must be freed with av_free().- Parameters:
s- IO contextpbuffer- to a byte buffer- Returns:
- the length of the byte buffer
-
get_checksum
com.sun.jna.NativeLong get_checksum(AVFormatLibrary.ByteIOContext s)
-
init_checksum
void init_checksum(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer update_checksum, com.sun.jna.NativeLong checksum)
-
udp_set_remote_url
int udp_set_remote_url(AVFormatLibrary.URLContext h, java.lang.String uri)
-
udp_get_local_port
int udp_get_local_port(AVFormatLibrary.URLContext h)
-
udp_get_file_handle
int udp_get_file_handle(AVFormatLibrary.URLContext h)
-
-