SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.media.codec.video
Class FFMPEG

java.lang.Object
  extended by net.java.sip.communicator.impl.media.codec.video.FFMPEG

public class FFMPEG
extends Object

Author:
Lubomir Marinov

Field Summary
static int CODEC_FLAG_LOOP_FILTER
           
static int CODEC_ID_H264
           
static int FF_BUG_AUTODETECT
           
static int FF_CMP_CHROMA
           
static int FF_INPUT_BUFFER_PADDING_SIZE
           
static int FF_MB_DECISION_SIMPLE
           
static int PIX_FMT_RGB32
           
static int PIX_FMT_YUV420P
           
 
Constructor Summary
FFMPEG()
           
 
Method Summary
static void av_free(long ptr)
           
static long av_malloc(int size)
           
static void av_register_all()
           
static long avcodec_alloc_context()
           
static long avcodec_alloc_frame()
           
static int avcodec_close(long avctx)
           
static int avcodec_decode_video(long avctx, long frame, boolean[] got_picture, byte[] buf, int buf_size)
           
static int avcodec_encode_video(long avctx, byte[] buff, int buf_size, long frame)
           
static long avcodec_find_decoder(int id)
           
static long avcodec_find_encoder(int id)
           
static void avcodec_init()
           
static int avcodec_open(long avctx, long codec)
           
static void avcodeccontext_add_flags(long avctx, int flags)
           
static void avcodeccontext_add_partitions(long avctx, int partitions)
           
static int avcodeccontext_get_height(long avctx)
           
static int avcodeccontext_get_pix_fmt(long avctx)
           
static int avcodeccontext_get_width(long avctx)
           
static void avcodeccontext_set_bit_rate_tolerance(long avctx, int bit_rate_tolerance)
           
static void avcodeccontext_set_bit_rate(long avctx, int bit_rate)
           
static void avcodeccontext_set_crf(long avctx, float crf)
           
static void avcodeccontext_set_gop_size(long avctx, int gop_size)
           
static void avcodeccontext_set_i_quant_factor(long avctx, float i_quant_factor)
           
static void avcodeccontext_set_mb_decision(long avctx, int mb_decision)
           
static void avcodeccontext_set_me_cmp(long avctx, int me_cmp)
           
static void avcodeccontext_set_me_method(long avctx, int me_method)
           
static void avcodeccontext_set_me_range(long avctx, int me_range)
           
static void avcodeccontext_set_me_subpel_quality(long avctx, int me_subpel_quality)
           
static void avcodeccontext_set_pix_fmt(long avctx, int pix_fmt)
           
static void avcodeccontext_set_qcompress(long avctx, float qcompress)
           
static void avcodeccontext_set_quantizer(long avctx, int qmin, int qmax, int max_qdiff)
           
static void avcodeccontext_set_rc_buffer_size(long avctx, int rc_buffer_size)
           
static void avcodeccontext_set_rc_eq(long avctx, String rc_eq)
           
static void avcodeccontext_set_rc_max_rate(long avctx, int rc_max_rate)
           
static void avcodeccontext_set_sample_aspect_ratio(long avctx, int num, int den)
           
static void avcodeccontext_set_scenechange_threshold(long avctx, int scenechange_threshold)
           
static void avcodeccontext_set_size(long avctx, int width, int height)
           
static void avcodeccontext_set_thread_count(long avctx, int thread_count)
           
static void avcodeccontext_set_time_base(long avctx, int num, int den)
           
static void avcodeccontext_set_workaround_bugs(long avctx, int workaround_bugs)
           
static void avframe_set_data(long frame, long data0, long offset1, long offset2)
           
static void avframe_set_key_frame(long frame, boolean key_frame)
           
static void avframe_set_linesize(long frame, int linesize0, int linesize1, int linesize2)
           
static int avpicture_fill(long picture, long ptr, int pix_fmt, int width, int height)
           
static long avpicture_get_data0(long picture)
           
static int avpicture_get_size(int pix_fmt, int width, int height)
           
static int img_convert(long dst, int dst_pix_fmt, long src, int pix_fmt, int width, int height)
           
static void memcpy(int[] dst, int dst_offset, int dst_length, long src)
           
static void memcpy(long dst, byte[] src, int src_offset, int src_length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODEC_FLAG_LOOP_FILTER

public static final int CODEC_FLAG_LOOP_FILTER
See Also:
Constant Field Values

CODEC_ID_H264

public static final int CODEC_ID_H264
See Also:
Constant Field Values

FF_BUG_AUTODETECT

public static final int FF_BUG_AUTODETECT
See Also:
Constant Field Values

FF_CMP_CHROMA

public static final int FF_CMP_CHROMA
See Also:
Constant Field Values

FF_INPUT_BUFFER_PADDING_SIZE

public static final int FF_INPUT_BUFFER_PADDING_SIZE
See Also:
Constant Field Values

FF_MB_DECISION_SIMPLE

public static final int FF_MB_DECISION_SIMPLE
See Also:
Constant Field Values

PIX_FMT_RGB32

public static final int PIX_FMT_RGB32
See Also:
Constant Field Values

PIX_FMT_YUV420P

public static final int PIX_FMT_YUV420P
See Also:
Constant Field Values
Constructor Detail

FFMPEG

public FFMPEG()
Method Detail

av_free

public static void av_free(long ptr)

av_malloc

public static long av_malloc(int size)

av_register_all

public static void av_register_all()

avcodec_alloc_context

public static long avcodec_alloc_context()

avcodec_alloc_frame

public static long avcodec_alloc_frame()

avcodec_close

public static int avcodec_close(long avctx)

avcodec_decode_video

public static int avcodec_decode_video(long avctx,
                                       long frame,
                                       boolean[] got_picture,
                                       byte[] buf,
                                       int buf_size)

avcodec_encode_video

public static int avcodec_encode_video(long avctx,
                                       byte[] buff,
                                       int buf_size,
                                       long frame)

avcodec_find_decoder

public static long avcodec_find_decoder(int id)

avcodec_find_encoder

public static long avcodec_find_encoder(int id)

avcodec_init

public static void avcodec_init()

avcodec_open

public static int avcodec_open(long avctx,
                               long codec)

avcodeccontext_add_flags

public static void avcodeccontext_add_flags(long avctx,
                                            int flags)

avcodeccontext_add_partitions

public static void avcodeccontext_add_partitions(long avctx,
                                                 int partitions)

avcodeccontext_get_height

public static int avcodeccontext_get_height(long avctx)

avcodeccontext_get_pix_fmt

public static int avcodeccontext_get_pix_fmt(long avctx)

avcodeccontext_get_width

public static int avcodeccontext_get_width(long avctx)

avcodeccontext_set_bit_rate

public static void avcodeccontext_set_bit_rate(long avctx,
                                               int bit_rate)

avcodeccontext_set_bit_rate_tolerance

public static void avcodeccontext_set_bit_rate_tolerance(long avctx,
                                                         int bit_rate_tolerance)

avcodeccontext_set_crf

public static void avcodeccontext_set_crf(long avctx,
                                          float crf)

avcodeccontext_set_gop_size

public static void avcodeccontext_set_gop_size(long avctx,
                                               int gop_size)

avcodeccontext_set_i_quant_factor

public static void avcodeccontext_set_i_quant_factor(long avctx,
                                                     float i_quant_factor)

avcodeccontext_set_mb_decision

public static void avcodeccontext_set_mb_decision(long avctx,
                                                  int mb_decision)

avcodeccontext_set_me_cmp

public static void avcodeccontext_set_me_cmp(long avctx,
                                             int me_cmp)

avcodeccontext_set_me_method

public static void avcodeccontext_set_me_method(long avctx,
                                                int me_method)

avcodeccontext_set_me_range

public static void avcodeccontext_set_me_range(long avctx,
                                               int me_range)

avcodeccontext_set_me_subpel_quality

public static void avcodeccontext_set_me_subpel_quality(long avctx,
                                                        int me_subpel_quality)

avcodeccontext_set_pix_fmt

public static void avcodeccontext_set_pix_fmt(long avctx,
                                              int pix_fmt)

avcodeccontext_set_qcompress

public static void avcodeccontext_set_qcompress(long avctx,
                                                float qcompress)

avcodeccontext_set_quantizer

public static void avcodeccontext_set_quantizer(long avctx,
                                                int qmin,
                                                int qmax,
                                                int max_qdiff)

avcodeccontext_set_rc_buffer_size

public static void avcodeccontext_set_rc_buffer_size(long avctx,
                                                     int rc_buffer_size)

avcodeccontext_set_rc_eq

public static void avcodeccontext_set_rc_eq(long avctx,
                                            String rc_eq)

avcodeccontext_set_rc_max_rate

public static void avcodeccontext_set_rc_max_rate(long avctx,
                                                  int rc_max_rate)

avcodeccontext_set_sample_aspect_ratio

public static void avcodeccontext_set_sample_aspect_ratio(long avctx,
                                                          int num,
                                                          int den)

avcodeccontext_set_scenechange_threshold

public static void avcodeccontext_set_scenechange_threshold(long avctx,
                                                            int scenechange_threshold)

avcodeccontext_set_size

public static void avcodeccontext_set_size(long avctx,
                                           int width,
                                           int height)

avcodeccontext_set_thread_count

public static void avcodeccontext_set_thread_count(long avctx,
                                                   int thread_count)

avcodeccontext_set_time_base

public static void avcodeccontext_set_time_base(long avctx,
                                                int num,
                                                int den)

avcodeccontext_set_workaround_bugs

public static void avcodeccontext_set_workaround_bugs(long avctx,
                                                      int workaround_bugs)

avframe_set_data

public static void avframe_set_data(long frame,
                                    long data0,
                                    long offset1,
                                    long offset2)

avframe_set_key_frame

public static void avframe_set_key_frame(long frame,
                                         boolean key_frame)

avframe_set_linesize

public static void avframe_set_linesize(long frame,
                                        int linesize0,
                                        int linesize1,
                                        int linesize2)

avpicture_fill

public static int avpicture_fill(long picture,
                                 long ptr,
                                 int pix_fmt,
                                 int width,
                                 int height)

avpicture_get_data0

public static long avpicture_get_data0(long picture)

avpicture_get_size

public static int avpicture_get_size(int pix_fmt,
                                     int width,
                                     int height)

img_convert

public static int img_convert(long dst,
                              int dst_pix_fmt,
                              long src,
                              int pix_fmt,
                              int width,
                              int height)

memcpy

public static void memcpy(int[] dst,
                          int dst_offset,
                          int dst_length,
                          long src)

memcpy

public static void memcpy(long dst,
                          byte[] src,
                          int src_offset,
                          int src_length)

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.