net.sf.ffmpeg_java.AVFormatLibrary Interface Reference

Inheritance diagram for net.sf.ffmpeg_java.AVFormatLibrary:

Inheritance graph
[legend]
Collaboration diagram for net.sf.ffmpeg_java.AVFormatLibrary:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void av_destruct_packet_nofree (AVPacket pkt)
void av_destruct_packet (AVPacket pkt)
void av_init_packet (AVPacket pkt)
int av_new_packet (AVPacket pkt, int size)
int av_get_packet (ByteIOContext s, AVPacket pkt, int size)
int av_dup_packet (AVPacket pkt)
void av_free_packet (AVPacket pkt)
int av_guess_image2_codec (String filename)
void av_register_input_format (AVInputFormat format)
void av_register_output_format (AVOutputFormat format)
AVOutputFormat guess_stream_format (String short_name, String filename, String mime_type)
AVOutputFormat guess_format (String short_name, String filename, String mime_type)
int av_guess_codec (AVOutputFormat fmt, String short_name, String filename, String mime_type, int type)
void av_hex_dump (Pointer f, Pointer buf, int size)
void av_hex_dump_log (Pointer avcl, int level, Pointer buf, int size)
void av_pkt_dump (Pointer f, AVPacket pkt, int dump_payload)
void av_pkt_dump_log (Pointer avcl, int level, AVPacket pkt, int dump_payload)
void av_register_all ()
int av_codec_get_id (PointerByReference tags, int tag)
int av_codec_get_tag (PointerByReference tags, int id)
AVInputFormat av_find_input_format (String short_name)
AVInputFormat av_probe_input_format (AVProbeData pd, int is_opened)
int av_open_input_stream (PointerByReference ic_ptr, ByteIOContext pb, String filename, AVInputFormat fmt, AVFormatParameters ap)
int av_open_input_file (PointerByReference ic_ptr, String filename, AVInputFormat fmt, int buf_size, AVFormatParameters ap)
AVFormatContext av_alloc_format_context ()
int av_find_stream_info (AVFormatContext ic)
int av_read_packet (AVFormatContext s, AVPacket pkt)
int av_read_frame (AVFormatContext s, AVPacket pkt)
int av_seek_frame (AVFormatContext s, int stream_index, long timestamp, int flags)
int av_read_play (AVFormatContext s)
int av_read_pause (AVFormatContext s)
void av_close_input_file (AVFormatContext s)
AVStream av_new_stream (AVFormatContext s, int id)
void av_set_pts_info (AVStream s, int pts_wrap_bits, int pts_num, int pts_den)
int av_find_default_stream_index (AVFormatContext s)
int av_index_search_timestamp (AVStream st, long timestamp, int flags)
int av_add_index_entry (AVStream st, long pos, long timestamp, int size, int distance, int flags)
int av_seek_frame_binary (AVFormatContext s, int stream_index, long target_ts, int flags)
void av_update_cur_dts (AVFormatContext s, AVStream ref_st, long timestamp)
long av_gen_search (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, LongByReference ts_ret, Pointer read_timestamp)
int av_set_parameters (AVFormatContext s, AVFormatParameters ap)
int av_write_header (AVFormatContext s)
int av_write_frame (AVFormatContext s, AVPacket pkt)
int av_interleaved_write_frame (AVFormatContext s, AVPacket pkt)
int av_interleave_packet_per_dts (AVFormatContext s, AVPacket out, AVPacket pkt, int flush)
int av_write_trailer (AVFormatContext s)
void dump_format (AVFormatContext ic, int index, String url, int is_output)
int parse_image_size (IntByReference width_ptr, IntByReference height_ptr, String str)
int parse_frame_rate (IntByReference frame_rate, IntByReference frame_rate_base, String arg)
long parse_date (String datestr, int duration)
long av_gettime ()
long ffm_read_write_index (int fd)
void ffm_write_write_index (int fd, long pos)
void ffm_set_write_index (AVFormatContext s, long pos, long file_size)
int find_info_tag (Pointer arg, int arg_size, String tag1, String info)
int av_get_frame_filename (Pointer buf, int buf_size, String path, int number)
int av_filename_number_test (String filename)
int avf_sdp_create (Pointer ac, int n_files, Pointer buff, int size)
String small_strptime (String p, String fmt, Pointer dt)
int resolve_host (Pointer sin_addr, String hostname)
void url_split (Pointer proto, int proto_size, Pointer authorization, int authorization_size, Pointer hostname, int hostname_size, IntByReference port_ptr, Pointer path, int path_size, String url)
int match_ext (String filename, String extensions)
int url_open (PointerByReference h, String filename, int flags)
int url_read (URLContext h, Pointer buf, int size)
int url_write (URLContext h, Pointer buf, int size)
long url_seek (URLContext h, long pos, int whence)
int url_close (URLContext h)
int url_exist (String filename)
long url_filesize (URLContext h)
int url_get_max_packet_size (URLContext h)
void url_get_filename (URLContext h, Pointer buf, int buf_size)
void url_set_interrupt_cb (Pointer interrupt_cb)
int url_poll (URLPollEntry poll_table, int n, int timeout)
int init_put_byte (Pointer s, Pointer buffer, int buffer_size, int write_flag, Pointer opaque, Pointer read_packet, Pointer write_packet, Pointer seek)
void put_byte (ByteIOContext s, int b)
void put_buffer (ByteIOContext s, Pointer buf, int size)
void put_le64 (ByteIOContext s, long val)
void put_be64 (ByteIOContext s, long val)
void put_le32 (ByteIOContext s, int val)
void put_be32 (ByteIOContext s, int val)
void put_le24 (ByteIOContext s, int val)
void put_be24 (ByteIOContext s, int val)
void put_le16 (ByteIOContext s, int val)
void put_be16 (ByteIOContext s, int val)
void put_tag (ByteIOContext s, String tag)
void put_strz (ByteIOContext s, String buf)
long url_fseek (ByteIOContext s, long offset, int whence)
void url_fskip (ByteIOContext s, long offset)
long url_ftell (ByteIOContext s)
long url_fsize (ByteIOContext s)
int url_feof (ByteIOContext s)
int url_ferror (ByteIOContext s)
int url_fgetc (ByteIOContext s)
Pointer url_fgets (ByteIOContext s, Pointer buf, int buf_size)
void put_flush_packet (ByteIOContext s)
int get_buffer (ByteIOContext s, Pointer buf, int size)
int get_partial_buffer (ByteIOContext s, Pointer buf, int size)
int get_byte (ByteIOContext s)
int get_le24 (ByteIOContext s)
int get_le32 (ByteIOContext s)
long get_le64 (ByteIOContext s)
int get_le16 (ByteIOContext s)
Pointer get_strz (ByteIOContext s, Pointer buf, int maxlen)
int get_be16 (ByteIOContext s)
int get_be24 (ByteIOContext s)
int get_be32 (ByteIOContext s)
long get_be64 (ByteIOContext s)
int url_fdopen (ByteIOContext s, Pointer h)
int url_setbufsize (ByteIOContext s, int buf_size)
int url_fopen (ByteIOContext s, String filename, int flags)
int url_fclose (ByteIOContext s)
URLContext url_fileno (ByteIOContext s)
int url_fget_max_packet_size (Pointer s)
int url_open_buf (ByteIOContext s, Pointer buf, int buf_size, int flags)
int url_close_buf (ByteIOContext s)
int url_open_dyn_buf (ByteIOContext s)
int url_open_dyn_packet_buf (ByteIOContext s, int max_packet_size)
int url_close_dyn_buf (ByteIOContext s, PointerByReference pbuffer)
NativeLong get_checksum (ByteIOContext s)
void init_checksum (ByteIOContext s, Pointer update_checksum, NativeLong checksum)
int udp_set_remote_url (URLContext h, String uri)
int udp_get_local_port (URLContext h)
int udp_get_file_handle (URLContext h)

Static Public Attributes

static final AVFormatLibrary INSTANCE
static final int PKT_FLAG_KEY = 0x0001
static final int AVPROBE_SCORE_MAX = 100
 max score, half of that is used for file extension based detection
static final int AVPROBE_PADDING_SIZE = 32
 extra allocated bytes at the end of the probe buffer
static final int AVFMT_NOFILE = 0x0001
static final int AVFMT_NEEDNUMBER = 0x0002
static final int AVFMT_SHOW_IDS = 0x0008
static final int AVFMT_RAWPICTURE = 0x0020
static final int AVFMT_GLOBALHEADER = 0x0040
static final int AVFMT_NOTIMESTAMPS = 0x0080
static final int AVFMT_GENERIC_INDEX = 0x0100
static final int AVSTREAM_PARSE_NONE = 0
static final int AVSTREAM_PARSE_FULL = 1
static final int AVSTREAM_PARSE_HEADERS = 2
static final int AVSTREAM_PARSE_TIMESTAMPS = 3
static final int AVFMTCTX_NOHEADER = 0x0001
static final int MAX_STREAMS = 20
static final int AVSEEK_FLAG_BACKWARD = 1
 seek backward
static final int AVSEEK_FLAG_BYTE = 2
 seeking based on position in bytes
static final int AVSEEK_FLAG_ANY = 4
 seek to any frame, even non keyframes
static final int FFM_PACKET_SIZE = 4096
static final int URL_RDONLY = 0
static final int URL_WRONLY = 1
static final int URL_RDWR = 2
static final int AVSEEK_SIZE = 0x10000
static final int URL_EOF = -1

Classes

class  AVFormatContext
class  AVFormatParameters
class  AVFrac
class  AVIndexEntry
class  AVInputFormat
class  AVOutputFormat
class  AVPacket
class  AVPacketList
class  AVProbeData
class  AVStream
class  ByteIOContext
interface  Destruct
class  URLContext
class  URLPollEntry

Detailed Description

Based on FFMPEG Aug 12 2007. From avformat.h, avio.h
Author:
Ken Larson

Definition at line 17 of file AVFormatLibrary.java.


Member Function Documentation

void net.sf.ffmpeg_java.AVFormatLibrary.av_destruct_packet_nofree ( AVPacket  pkt  ) 

void net.sf.ffmpeg_java.AVFormatLibrary.av_destruct_packet ( AVPacket  pkt  ) 

void net.sf.ffmpeg_java.AVFormatLibrary.av_init_packet ( AVPacket  pkt  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.av_new_packet ( AVPacket  pkt,
int  size 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_get_packet ( ByteIOContext  s,
AVPacket  pkt,
int  size 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_dup_packet ( AVPacket  pkt  ) 

void net.sf.ffmpeg_java.AVFormatLibrary.av_free_packet ( AVPacket  pkt  ) 

Free a packet

Parameters:
pkt packet to free

int net.sf.ffmpeg_java.AVFormatLibrary.av_guess_image2_codec ( String  filename  ) 

void net.sf.ffmpeg_java.AVFormatLibrary.av_register_input_format ( AVInputFormat  format  ) 

void net.sf.ffmpeg_java.AVFormatLibrary.av_register_output_format ( AVOutputFormat  format  ) 

AVOutputFormat net.sf.ffmpeg_java.AVFormatLibrary.guess_stream_format ( String  short_name,
String  filename,
String  mime_type 
)

AVOutputFormat net.sf.ffmpeg_java.AVFormatLibrary.guess_format ( String  short_name,
String  filename,
String  mime_type 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_guess_codec ( AVOutputFormat  fmt,
String  short_name,
String  filename,
String  mime_type,
int  type 
)

void net.sf.ffmpeg_java.AVFormatLibrary.av_hex_dump ( Pointer  f,
Pointer  buf,
int  size 
)

void net.sf.ffmpeg_java.AVFormatLibrary.av_hex_dump_log ( Pointer  avcl,
int  level,
Pointer  buf,
int  size 
)

void net.sf.ffmpeg_java.AVFormatLibrary.av_pkt_dump ( Pointer  f,
AVPacket  pkt,
int  dump_payload 
)

void net.sf.ffmpeg_java.AVFormatLibrary.av_pkt_dump_log ( Pointer  avcl,
int  level,
AVPacket  pkt,
int  dump_payload 
)

void net.sf.ffmpeg_java.AVFormatLibrary.av_register_all (  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.av_codec_get_id ( PointerByReference  tags,
int  tag 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_codec_get_tag ( PointerByReference  tags,
int  id 
)

AVInputFormat net.sf.ffmpeg_java.AVFormatLibrary.av_find_input_format ( String  short_name  ) 

AVInputFormat net.sf.ffmpeg_java.AVFormatLibrary.av_probe_input_format ( AVProbeData  pd,
int  is_opened 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_open_input_stream ( PointerByReference  ic_ptr,
ByteIOContext  pb,
String  filename,
AVInputFormat  fmt,
AVFormatParameters  ap 
)

Allocates all the structures needed to read an input stream. This does not open the needed codecs for decoding the stream[s].

int net.sf.ffmpeg_java.AVFormatLibrary.av_open_input_file ( PointerByReference  ic_ptr,
String  filename,
AVInputFormat  fmt,
int  buf_size,
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.

AVFormatContext net.sf.ffmpeg_java.AVFormatLibrary.av_alloc_format_context (  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.av_find_stream_info ( AVFormatContext  ic  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.av_read_packet ( AVFormatContext  s,
AVPacket  pkt 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_read_frame ( AVFormatContext  s,
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.

int net.sf.ffmpeg_java.AVFormatLibrary.av_seek_frame ( 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

int net.sf.ffmpeg_java.AVFormatLibrary.av_read_play ( AVFormatContext  s  ) 

start playing a network based stream (e.g. RTSP stream) at the current position

int net.sf.ffmpeg_java.AVFormatLibrary.av_read_pause ( AVFormatContext  s  ) 

Pause a network based stream (e.g. RTSP stream).

Use av_read_play() to resume it.

void net.sf.ffmpeg_java.AVFormatLibrary.av_close_input_file ( AVFormatContext  s  ) 

AVStream net.sf.ffmpeg_java.AVFormatLibrary.av_new_stream ( AVFormatContext  s,
int  id 
)

void net.sf.ffmpeg_java.AVFormatLibrary.av_set_pts_info ( AVStream  s,
int  pts_wrap_bits,
int  pts_num,
int  pts_den 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_find_default_stream_index ( AVFormatContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.av_index_search_timestamp ( AVStream  st,
long  timestamp,
int  flags 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_add_index_entry ( AVStream  st,
long  pos,
long  timestamp,
int  size,
int  distance,
int  flags 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_seek_frame_binary ( AVFormatContext  s,
int  stream_index,
long  target_ts,
int  flags 
)

void net.sf.ffmpeg_java.AVFormatLibrary.av_update_cur_dts ( AVFormatContext  s,
AVStream  ref_st,
long  timestamp 
)

long net.sf.ffmpeg_java.AVFormatLibrary.av_gen_search ( 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,
LongByReference  ts_ret,
Pointer  read_timestamp 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_set_parameters ( AVFormatContext  s,
AVFormatParameters  ap 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_write_header ( AVFormatContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.av_write_frame ( AVFormatContext  s,
AVPacket  pkt 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_interleaved_write_frame ( AVFormatContext  s,
AVPacket  pkt 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_interleave_packet_per_dts ( AVFormatContext  s,
AVPacket  out,
AVPacket  pkt,
int  flush 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_write_trailer ( AVFormatContext  s  ) 

void net.sf.ffmpeg_java.AVFormatLibrary.dump_format ( AVFormatContext  ic,
int  index,
String  url,
int  is_output 
)

int net.sf.ffmpeg_java.AVFormatLibrary.parse_image_size ( IntByReference  width_ptr,
IntByReference  height_ptr,
String  str 
)

Deprecated:

int net.sf.ffmpeg_java.AVFormatLibrary.parse_frame_rate ( IntByReference  frame_rate,
IntByReference  frame_rate_base,
String  arg 
)

Deprecated:

long net.sf.ffmpeg_java.AVFormatLibrary.parse_date ( String  datestr,
int  duration 
)

long net.sf.ffmpeg_java.AVFormatLibrary.av_gettime (  ) 

long net.sf.ffmpeg_java.AVFormatLibrary.ffm_read_write_index ( int  fd  ) 

void net.sf.ffmpeg_java.AVFormatLibrary.ffm_write_write_index ( int  fd,
long  pos 
)

void net.sf.ffmpeg_java.AVFormatLibrary.ffm_set_write_index ( AVFormatContext  s,
long  pos,
long  file_size 
)

int net.sf.ffmpeg_java.AVFormatLibrary.find_info_tag ( Pointer  arg,
int  arg_size,
String  tag1,
String  info 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_get_frame_filename ( Pointer  buf,
int  buf_size,
String  path,
int  number 
)

int net.sf.ffmpeg_java.AVFormatLibrary.av_filename_number_test ( String  filename  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.avf_sdp_create ( Pointer  ac,
int  n_files,
Pointer  buff,
int  size 
)

String net.sf.ffmpeg_java.AVFormatLibrary.small_strptime ( String  p,
String  fmt,
Pointer  dt 
)

int net.sf.ffmpeg_java.AVFormatLibrary.resolve_host ( Pointer  sin_addr,
String  hostname 
)

void net.sf.ffmpeg_java.AVFormatLibrary.url_split ( Pointer  proto,
int  proto_size,
Pointer  authorization,
int  authorization_size,
Pointer  hostname,
int  hostname_size,
IntByReference  port_ptr,
Pointer  path,
int  path_size,
String  url 
)

int net.sf.ffmpeg_java.AVFormatLibrary.match_ext ( String  filename,
String  extensions 
)

int net.sf.ffmpeg_java.AVFormatLibrary.url_open ( PointerByReference  h,
String  filename,
int  flags 
)

int net.sf.ffmpeg_java.AVFormatLibrary.url_read ( URLContext  h,
Pointer  buf,
int  size 
)

int net.sf.ffmpeg_java.AVFormatLibrary.url_write ( URLContext  h,
Pointer  buf,
int  size 
)

long net.sf.ffmpeg_java.AVFormatLibrary.url_seek ( URLContext  h,
long  pos,
int  whence 
)

int net.sf.ffmpeg_java.AVFormatLibrary.url_close ( URLContext  h  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.url_exist ( String  filename  ) 

long net.sf.ffmpeg_java.AVFormatLibrary.url_filesize ( URLContext  h  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.url_get_max_packet_size ( URLContext  h  ) 

void net.sf.ffmpeg_java.AVFormatLibrary.url_get_filename ( URLContext  h,
Pointer  buf,
int  buf_size 
)

void net.sf.ffmpeg_java.AVFormatLibrary.url_set_interrupt_cb ( Pointer  interrupt_cb  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.url_poll ( URLPollEntry  poll_table,
int  n,
int  timeout 
)

int net.sf.ffmpeg_java.AVFormatLibrary.init_put_byte ( Pointer  s,
Pointer  buffer,
int  buffer_size,
int  write_flag,
Pointer  opaque,
Pointer  read_packet,
Pointer  write_packet,
Pointer  seek 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_byte ( ByteIOContext  s,
int  b 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_buffer ( ByteIOContext  s,
Pointer  buf,
int  size 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_le64 ( ByteIOContext  s,
long  val 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_be64 ( ByteIOContext  s,
long  val 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_le32 ( ByteIOContext  s,
int  val 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_be32 ( ByteIOContext  s,
int  val 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_le24 ( ByteIOContext  s,
int  val 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_be24 ( ByteIOContext  s,
int  val 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_le16 ( ByteIOContext  s,
int  val 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_be16 ( ByteIOContext  s,
int  val 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_tag ( ByteIOContext  s,
String  tag 
)

void net.sf.ffmpeg_java.AVFormatLibrary.put_strz ( ByteIOContext  s,
String  buf 
)

long net.sf.ffmpeg_java.AVFormatLibrary.url_fseek ( ByteIOContext  s,
long  offset,
int  whence 
)

void net.sf.ffmpeg_java.AVFormatLibrary.url_fskip ( ByteIOContext  s,
long  offset 
)

long net.sf.ffmpeg_java.AVFormatLibrary.url_ftell ( ByteIOContext  s  ) 

long net.sf.ffmpeg_java.AVFormatLibrary.url_fsize ( ByteIOContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.url_feof ( ByteIOContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.url_ferror ( ByteIOContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.url_fgetc ( ByteIOContext  s  ) 

Pointer net.sf.ffmpeg_java.AVFormatLibrary.url_fgets ( ByteIOContext  s,
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

void net.sf.ffmpeg_java.AVFormatLibrary.put_flush_packet ( ByteIOContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.get_buffer ( ByteIOContext  s,
Pointer  buf,
int  size 
)

int net.sf.ffmpeg_java.AVFormatLibrary.get_partial_buffer ( ByteIOContext  s,
Pointer  buf,
int  size 
)

int net.sf.ffmpeg_java.AVFormatLibrary.get_byte ( ByteIOContext  s  ) 

Note:
return 0 if EOF, so you cannot use it if EOF handling is necessary

int net.sf.ffmpeg_java.AVFormatLibrary.get_le24 ( ByteIOContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.get_le32 ( ByteIOContext  s  ) 

long net.sf.ffmpeg_java.AVFormatLibrary.get_le64 ( ByteIOContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.get_le16 ( ByteIOContext  s  ) 

Pointer net.sf.ffmpeg_java.AVFormatLibrary.get_strz ( ByteIOContext  s,
Pointer  buf,
int  maxlen 
)

int net.sf.ffmpeg_java.AVFormatLibrary.get_be16 ( ByteIOContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.get_be24 ( ByteIOContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.get_be32 ( ByteIOContext  s  ) 

long net.sf.ffmpeg_java.AVFormatLibrary.get_be64 ( ByteIOContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.url_fdopen ( ByteIOContext  s,
Pointer  h 
)

int net.sf.ffmpeg_java.AVFormatLibrary.url_setbufsize ( ByteIOContext  s,
int  buf_size 
)

Warning:
must be called before any I/O

int net.sf.ffmpeg_java.AVFormatLibrary.url_fopen ( ByteIOContext  s,
String  filename,
int  flags 
)

Note:
when opened as read/write, the buffers are only used for reading

int net.sf.ffmpeg_java.AVFormatLibrary.url_fclose ( ByteIOContext  s  ) 

URLContext net.sf.ffmpeg_java.AVFormatLibrary.url_fileno ( ByteIOContext  s  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.url_fget_max_packet_size ( 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:
h buffered file handle
Returns:
maximum packet size in bytes

int net.sf.ffmpeg_java.AVFormatLibrary.url_open_buf ( ByteIOContext  s,
Pointer  buf,
int  buf_size,
int  flags 
)

int net.sf.ffmpeg_java.AVFormatLibrary.url_close_buf ( ByteIOContext  s  ) 

return the written or read size

int net.sf.ffmpeg_java.AVFormatLibrary.url_open_dyn_buf ( ByteIOContext  s  ) 

Open a write only memory stream.

Parameters:
s new IO context
Returns:
zero if no error.

int net.sf.ffmpeg_java.AVFormatLibrary.url_open_dyn_packet_buf ( 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.

int net.sf.ffmpeg_java.AVFormatLibrary.url_close_dyn_buf ( ByteIOContext  s,
PointerByReference  pbuffer 
)

Return the written size and a pointer to the buffer. The buffer must be freed with av_free().

Parameters:
s IO context
pointer to a byte buffer
Returns:
the length of the byte buffer

NativeLong net.sf.ffmpeg_java.AVFormatLibrary.get_checksum ( ByteIOContext  s  ) 

void net.sf.ffmpeg_java.AVFormatLibrary.init_checksum ( ByteIOContext  s,
Pointer  update_checksum,
NativeLong  checksum 
)

int net.sf.ffmpeg_java.AVFormatLibrary.udp_set_remote_url ( URLContext  h,
String  uri 
)

int net.sf.ffmpeg_java.AVFormatLibrary.udp_get_local_port ( URLContext  h  ) 

int net.sf.ffmpeg_java.AVFormatLibrary.udp_get_file_handle ( URLContext  h  ) 


Member Data Documentation

final AVFormatLibrary net.sf.ffmpeg_java.AVFormatLibrary.INSTANCE [static]

Initial value:

 (AVFormatLibrary) Native.loadLibrary(
                System.getProperty("avformat.lib",
                        System.getProperty("os.name").startsWith("Windows") ? "avformat-52" : "avformat"), 
                AVFormatLibrary.class)

Definition at line 20 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.PKT_FLAG_KEY = 0x0001 [static]

Definition at line 74 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVPROBE_SCORE_MAX = 100 [static]

max score, half of that is used for file extension based detection

Definition at line 126 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVPROBE_PADDING_SIZE = 32 [static]

extra allocated bytes at the end of the probe buffer

Definition at line 127 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVFMT_NOFILE = 0x0001 [static]

Definition at line 154 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVFMT_NEEDNUMBER = 0x0002 [static]

needs 'd' in filename

Definition at line 155 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVFMT_SHOW_IDS = 0x0008 [static]

show format stream IDs numbers

Definition at line 156 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVFMT_RAWPICTURE = 0x0020 [static]

format wants AVPicture structure for raw picture data

Definition at line 157 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVFMT_GLOBALHEADER = 0x0040 [static]

format wants global header

Definition at line 159 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVFMT_NOTIMESTAMPS = 0x0080 [static]

format does not need / have any timestamps

Definition at line 160 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVFMT_GENERIC_INDEX = 0x0100 [static]

use generic index building code

Definition at line 161 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVSTREAM_PARSE_NONE = 0 [static]

Definition at line 318 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVSTREAM_PARSE_FULL = 1 [static]

full parsing and repack

Definition at line 319 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVSTREAM_PARSE_HEADERS = 2 [static]

only parse headers, don't repack

Definition at line 320 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVSTREAM_PARSE_TIMESTAMPS = 3 [static]

full parsing and interpolation of timestamps for frames not starting on packet boundary

Definition at line 321 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVFMTCTX_NOHEADER = 0x0001 [static]

signal that no header is present (streams are added dynamically)

Definition at line 455 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.MAX_STREAMS = 20 [static]

Definition at line 458 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVSEEK_FLAG_BACKWARD = 1 [static]

seek backward

Definition at line 770 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVSEEK_FLAG_BYTE = 2 [static]

seeking based on position in bytes

Definition at line 771 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVSEEK_FLAG_ANY = 4 [static]

seek to any frame, even non keyframes

Definition at line 772 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.FFM_PACKET_SIZE = 4096 [static]

Definition at line 798 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.URL_RDONLY = 0 [static]

Definition at line 899 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.URL_WRONLY = 1 [static]

Definition at line 900 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.URL_RDWR = 2 [static]

Definition at line 901 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.AVSEEK_SIZE = 0x10000 [static]

Definition at line 917 of file AVFormatLibrary.java.

final int net.sf.ffmpeg_java.AVFormatLibrary.URL_EOF = -1 [static]

Definition at line 1012 of file AVFormatLibrary.java.


The documentation for this interface was generated from the following file:
Generated on Tue Apr 7 17:57:26 2009 for visclient by  doxygen 1.5.1