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
static class AVFormatLibrary.AVFormatContext
           
static class AVFormatLibrary.AVFormatParameters
           
static class AVFormatLibrary.AVFrac
           
static class AVFormatLibrary.AVIndexEntry
          < full parsing and interpolation of timestamps for frames not starting on packet boundary
static class AVFormatLibrary.AVInputFormat
           
static class AVFormatLibrary.AVOutputFormat
          < use generic index building code
static class AVFormatLibrary.AVPacket
           
static class AVFormatLibrary.AVPacketList
           
static class AVFormatLibrary.AVProbeData
          this structure contains the data a format has to probe a file
static class AVFormatLibrary.AVStream
           
static class AVFormatLibrary.ByteIOContext
           
static interface AVFormatLibrary.Destruct
           
static interface AVFormatLibrary.URLClose
           
static class AVFormatLibrary.URLContext
           
static interface AVFormatLibrary.URLOpen
           
static class AVFormatLibrary.URLPollEntry
           
static class AVFormatLibrary.URLProtocol
           
static interface AVFormatLibrary.URLRead
           
static interface AVFormatLibrary.URLSeek
           
static interface AVFormatLibrary.URLWrite
           
 
Nested classes/interfaces inherited from interface net.sf.ffmpeg_java.FFMPEGLibrary
FFMPEGLibrary.AVClass, FFMPEGLibrary.AVRational
 
Nested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.Handler
 
Field Summary
static int AVFMT_GENERIC_INDEX
          < format does not need / have any timestamps
static int AVFMT_GLOBALHEADER
          < format wants AVPicture structure for raw picture data
static int AVFMT_NEEDNUMBER
           
static int AVFMT_NOFILE
           
static int AVFMT_NOTIMESTAMPS
          < format wants global header
static int AVFMT_RAWPICTURE
          < show format stream IDs numbers
static int AVFMT_SHOW_IDS
          < needs '%d' in filename
static int AVFMTCTX_NOHEADER
           
static int AVPROBE_PADDING_SIZE
           
static int AVPROBE_SCORE_MAX
           
static int AVSEEK_FLAG_ANY
           
static int AVSEEK_FLAG_BACKWARD
           
static int AVSEEK_FLAG_BYTE
           
static int AVSEEK_SIZE
           
static int AVSTREAM_PARSE_FULL
           
static int AVSTREAM_PARSE_HEADERS
          < full parsing and repack
static int AVSTREAM_PARSE_NONE
           
static int AVSTREAM_PARSE_TIMESTAMPS
          < only parse headers, don't repack
static int FFM_PACKET_SIZE
           
static AVFormatLibrary INSTANCE
           
static int LIBAVFORMAT_BUILD
           
static java.lang.String LIBAVFORMAT_IDENT
           
static java.lang.String LIBAVFORMAT_VERSION
           
static int LIBAVFORMAT_VERSION_INT
           
static int MAX_STREAMS
          < signal that no header is present (streams are added dynamically)
static int PKT_FLAG_KEY
           
static int URL_EOF
           
static int URL_RDONLY
           
static int URL_RDWR
           
static int URL_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
 
Fields inherited from interface com.sun.jna.Library
OPTION_FUNCTION_MAPPER, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
 
Method Summary
 int av_add_index_entry(AVFormatLibrary.AVStream st, long pos, long timestamp, int size, int distance, int flags)
           
 AVFormatLibrary.AVFormatContext av_alloc_format_context()
           
 void av_close_input_file(AVFormatLibrary.AVFormatContext s)
           
 int av_codec_get_id(com.sun.jna.ptr.PointerByReference tags, int tag)
           
 int av_codec_get_tag(com.sun.jna.ptr.PointerByReference tags, int id)
           
 void av_destruct_packet_nofree(AVFormatLibrary.AVPacket pkt)
           
 void av_destruct_packet(AVFormatLibrary.AVPacket pkt)
           
 int av_dup_packet(AVFormatLibrary.AVPacket pkt)
           
 int av_filename_number_test(java.lang.String filename)
           
 int av_find_default_stream_index(AVFormatLibrary.AVFormatContext s)
           
 AVFormatLibrary.AVInputFormat av_find_input_format(java.lang.String short_name)
           
 int av_find_stream_info(AVFormatLibrary.AVFormatContext ic)
           
 void av_free_packet(AVFormatLibrary.AVPacket pkt)
           
 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)
           
 int av_get_frame_filename(com.sun.jna.Pointer buf, int buf_size, java.lang.String path, int number)
           
 int av_get_packet(AVFormatLibrary.ByteIOContext s, AVFormatLibrary.AVPacket pkt, int size)
           
 long av_gettime()
           
 int av_guess_codec(AVFormatLibrary.AVOutputFormat fmt, java.lang.String short_name, java.lang.String filename, java.lang.String mime_type, int type)
           
 int av_guess_image2_codec(java.lang.String filename)
           
 void av_hex_dump_log(com.sun.jna.Pointer avcl, int level, com.sun.jna.Pointer buf, int size)
           
 void av_hex_dump(com.sun.jna.Pointer f, com.sun.jna.Pointer buf, int size)
           
 int av_index_search_timestamp(AVFormatLibrary.AVStream st, long timestamp, int flags)
           
 void av_init_packet(AVFormatLibrary.AVPacket pkt)
           
 int av_interleave_packet_per_dts(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket out, AVFormatLibrary.AVPacket pkt, int flush)
           
 int av_interleaved_write_frame(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)
           
 int av_new_packet(AVFormatLibrary.AVPacket pkt, int size)
           
 AVFormatLibrary.AVStream av_new_stream(AVFormatLibrary.AVFormatContext s, int id)
           
 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.
 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.
 void av_pkt_dump_log(com.sun.jna.Pointer avcl, int level, AVFormatLibrary.AVPacket pkt, int dump_payload)
           
 void av_pkt_dump(com.sun.jna.Pointer f, AVFormatLibrary.AVPacket pkt, int dump_payload)
           
 AVFormatLibrary.AVInputFormat av_probe_input_format(AVFormatLibrary.AVProbeData pd, int is_opened)
           
 int av_read_frame(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)
          Return the next frame of a stream.
 int av_read_packet(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)
           
 int av_read_pause(AVFormatLibrary.AVFormatContext s)
          Pause a network based stream (e.g.
 int av_read_play(AVFormatLibrary.AVFormatContext s)
          start playing a network based stream (e.g.
 void av_register_all()
           
 void av_register_input_format(AVFormatLibrary.AVInputFormat format)
           
 void av_register_output_format(AVFormatLibrary.AVOutputFormat format)
           
 int av_seek_frame_binary(AVFormatLibrary.AVFormatContext s, int stream_index, long target_ts, int flags)
           
 int av_seek_frame(AVFormatLibrary.AVFormatContext s, int stream_index, long timestamp, int flags)
          Seek to the key frame at timestamp.
 int av_set_parameters(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVFormatParameters ap)
           
 void av_set_pts_info(AVFormatLibrary.AVStream s, int pts_wrap_bits, int pts_num, int pts_den)
           
 void av_update_cur_dts(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVStream ref_st, long timestamp)
           
 int av_write_frame(AVFormatLibrary.AVFormatContext s, AVFormatLibrary.AVPacket pkt)
           
 int av_write_header(AVFormatLibrary.AVFormatContext s)
           
 int av_write_trailer(AVFormatLibrary.AVFormatContext s)
           
 int avf_sdp_create(com.sun.jna.Pointer ac, int n_files, com.sun.jna.Pointer buff, int size)
           
 void dump_format(AVFormatLibrary.AVFormatContext ic, int index, java.lang.String url, int is_output)
           
 long ffm_read_write_index(int fd)
           
 void ffm_set_write_index(AVFormatLibrary.AVFormatContext s, long pos, long file_size)
           
 void ffm_write_write_index(int fd, long pos)
           
 int find_info_tag(com.sun.jna.Pointer arg, int arg_size, java.lang.String tag1, java.lang.String info)
           
 int get_be16(AVFormatLibrary.ByteIOContext s)
           
 int get_be24(AVFormatLibrary.ByteIOContext s)
           
 int get_be32(AVFormatLibrary.ByteIOContext s)
           
 long get_be64(AVFormatLibrary.ByteIOContext s)
           
 int get_buffer(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int size)
           
 int get_byte(AVFormatLibrary.ByteIOContext s)
          note return 0 if EOF, so you cannot use it if EOF handling is necessary
 com.sun.jna.NativeLong get_checksum(AVFormatLibrary.ByteIOContext s)
           
 int get_le16(AVFormatLibrary.ByteIOContext s)
           
 int get_le24(AVFormatLibrary.ByteIOContext s)
           
 int get_le32(AVFormatLibrary.ByteIOContext s)
           
 long get_le64(AVFormatLibrary.ByteIOContext s)
           
 int get_partial_buffer(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int size)
           
 com.sun.jna.Pointer get_strz(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int maxlen)
           
 AVFormatLibrary.AVOutputFormat guess_format(java.lang.String short_name, java.lang.String filename, java.lang.String mime_type)
           
 AVFormatLibrary.AVOutputFormat guess_stream_format(java.lang.String short_name, java.lang.String filename, java.lang.String mime_type)
           
 void init_checksum(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer update_checksum, com.sun.jna.NativeLong checksum)
           
 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)
           
 int match_ext(java.lang.String filename, java.lang.String extensions)
           
 long parse_date(java.lang.String datestr, int duration)
           
 int parse_frame_rate(com.sun.jna.ptr.IntByReference frame_rate, com.sun.jna.ptr.IntByReference frame_rate_base, java.lang.String arg)
          Deprecated.  
 int parse_image_size(com.sun.jna.ptr.IntByReference width_ptr, com.sun.jna.ptr.IntByReference height_ptr, java.lang.String str)
          Deprecated.  
 void put_be16(AVFormatLibrary.ByteIOContext s, int val)
           
 void put_be24(AVFormatLibrary.ByteIOContext s, int val)
           
 void put_be32(AVFormatLibrary.ByteIOContext s, int val)
           
 void put_be64(AVFormatLibrary.ByteIOContext s, long val)
           
 void put_buffer(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int size)
           
 void put_byte(AVFormatLibrary.ByteIOContext s, int b)
           
 void put_flush_packet(AVFormatLibrary.ByteIOContext s)
           
 void put_le16(AVFormatLibrary.ByteIOContext s, int val)
           
 void put_le24(AVFormatLibrary.ByteIOContext s, int val)
           
 void put_le32(AVFormatLibrary.ByteIOContext s, int val)
           
 void put_le64(AVFormatLibrary.ByteIOContext s, long val)
           
 void put_strz(AVFormatLibrary.ByteIOContext s, java.lang.String buf)
           
 void put_tag(AVFormatLibrary.ByteIOContext s, java.lang.String tag)
           
 int register_protocol(AVFormatLibrary.URLProtocol protocol)
           
 int resolve_host(com.sun.jna.Pointer sin_addr, java.lang.String hostname)
           
 java.lang.String small_strptime(java.lang.String p, java.lang.String fmt, com.sun.jna.Pointer dt)
           
 int udp_get_file_handle(AVFormatLibrary.URLContext h)
           
 int udp_get_local_port(AVFormatLibrary.URLContext h)
           
 int udp_set_remote_url(AVFormatLibrary.URLContext h, java.lang.String uri)
           
 int url_close_buf(AVFormatLibrary.ByteIOContext s)
          return the written or read size
 int url_close_dyn_buf(AVFormatLibrary.ByteIOContext s, com.sun.jna.ptr.PointerByReference pbuffer)
          Return the written size and a pointer to the buffer.
 int url_close(AVFormatLibrary.URLContext h)
           
 int url_exist(java.lang.String filename)
           
 int url_fclose(AVFormatLibrary.ByteIOContext s)
           
 int url_fdopen(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer h)
           
 int url_feof(AVFormatLibrary.ByteIOContext s)
           
 int url_ferror(AVFormatLibrary.ByteIOContext s)
           
 int url_fget_max_packet_size(com.sun.jna.Pointer s)
          Return the maximum packet size associated to packetized buffered file handle.
 int url_fgetc(AVFormatLibrary.ByteIOContext s)
           
 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.
 AVFormatLibrary.URLContext url_fileno(AVFormatLibrary.ByteIOContext s)
           
 long url_filesize(AVFormatLibrary.URLContext h)
           
 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
 long url_fseek(AVFormatLibrary.ByteIOContext s, long offset, int whence)
           
 long url_fsize(AVFormatLibrary.ByteIOContext s)
           
 void url_fskip(AVFormatLibrary.ByteIOContext s, long offset)
           
 long url_ftell(AVFormatLibrary.ByteIOContext s)
           
 void url_get_filename(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int buf_size)
           
 int url_get_max_packet_size(AVFormatLibrary.URLContext h)
           
 int url_open_buf(AVFormatLibrary.ByteIOContext s, com.sun.jna.Pointer buf, int buf_size, int flags)
           
 int url_open_dyn_buf(AVFormatLibrary.ByteIOContext s)
          Open a write only memory stream.
 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'.
 int url_open(com.sun.jna.ptr.PointerByReference h, java.lang.String filename, int flags)
           
 int url_poll(AVFormatLibrary.URLPollEntry poll_table, int n, int timeout)
           
 int url_read(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int size)
           
 long url_seek(AVFormatLibrary.URLContext h, long pos, int whence)
           
 void url_set_interrupt_cb(com.sun.jna.Pointer interrupt_cb)
           
 int url_setbufsize(AVFormatLibrary.ByteIOContext s, int buf_size)
          warning must be called before any I/O
 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)
           
 int url_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 here
filename - filename to open.
fmt - if non NULL, force the file format to use
buf_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 units
flags - 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 context
max_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 context
pbuffer - 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)