com.twilight.h264.decoder
Class DSPContext

java.lang.Object
  extended by com.twilight.h264.decoder.DSPContext

public class DSPContext
extends Object


Nested Class Summary
static interface DSPContext.Ih264_chroma_mc_func
          h264 Chroma MC
static interface DSPContext.Ih264_qpel_mc_func
          h264 Qpel MC
 
Field Summary
 DSPContext.Ih264_chroma_mc_func[] avg_h264_chroma_pixels_tab
           
static DSPContext.Ih264_qpel_mc_func[][] avg_h264_qpel_pixels_tab
           
static int FF_NO_IDCT_PERM
           
 int[] idct_permutation
          idct input permutation.
 int idct_permutation_type
           
 DSPContext.Ih264_chroma_mc_func[] put_h264_chroma_pixels_tab
           
static DSPContext.Ih264_qpel_mc_func[][] put_h264_qpel_pixels_tab
           
 
Constructor Summary
DSPContext()
           
 
Method Summary
 void add_pixels4(int[] pixels, int pixel_offset, short[] block, int block_offset, int line_size)
           
 void add_pixels8(int[] pixels, int pixel_offset, short[] block, int block_offset, int line_size)
           
 void avg_h264_chroma_mc2_c(int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride, int h, int x, int y)
           
 void avg_h264_chroma_mc4_c(int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride, int h, int x, int y)
           
 void avg_h264_chroma_mc8_c(int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride, int h, int x, int y)
           
 void clear_block(short[] block)
           
 void clear_blocks(short[] blocks)
           
 void clear_blocks(short[][] blocks, int first_block_index)
          memset(blocks, 0, sizeof(DCTELEM)*6*64)
static void copy_block(int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int dstStride, int srcStride, int h)
           
 void draw_edges(int[] buf_base, int buf_offset, int wrap, int width, int height, int w)
           
 void dsputil_init(MpegEncContext s)
           
 void ff_emulated_edge_mc(int[] buf_base, int buf_offset, int[] src_base, int src_offset, int linesize, int block_w, int block_h, int src_x, int src_y, int w, int h)
          Copy a rectangular area of samples to a temporary buffer and replicate the border samples.
static void h264_qpel_h_lowpass(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int dstStride, int srcStride)
           
static void h264_qpel_hv_lowpass(int opcode, int size, int[] dst_base, int dst_offset, int[] tmp_base, int tmp_offset, int[] src_base, int src_offset, int dstStride, int tmpStride, int srcStride)
           
static void h264_qpel_mc00_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc01_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc02_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc03_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc10_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc11_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc12_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc13_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc20_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc21_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc22_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc23_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc30_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc31_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc32_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_mc33_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride)
           
static void h264_qpel_v_lowpass(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int dstStride, int srcStride)
           
static int op_avg(int a, int b, int[] cm_base, int cm_offset)
           
static int op_avg2(int a, int b, int[] cm_base, int cm_offset)
           
static int op_put(int a, int b, int[] cm_base, int cm_offset)
           
static int op_put2(int a, int b, int[] cm_base, int cm_offset)
           
static void pixels_c(int opcode, int size, int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride, int height)
           
static void pixels_l2(int opcode, int size, int[] dst_base, int dst_offset, int[] src1_base, int src1_offset, int[] src2_base, int src2_offset, int dst_stride, int src_stride1, int src_stride2, int h)
           
 void put_h264_chroma_mc2_c(int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride, int h, int x, int y)
           
 void put_h264_chroma_mc4_c(int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride, int h, int x, int y)
           
 void put_h264_chroma_mc8_c(int[] dst_base, int dst_offset, int[] src_base, int src_offset, int stride, int h, int x, int y)
           
static long rnd_avg32(long a, long b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FF_NO_IDCT_PERM

public static final int FF_NO_IDCT_PERM
See Also:
Constant Field Values

idct_permutation

public int[] idct_permutation
idct input permutation. several optimized IDCTs need a permutated input (relative to the normal order of the reference IDCT) this permutation must be performed before the idct_put/add, note, normally this can be merged with the zigzag/alternate scan
an example to avoid confusion: - (->decode coeffs -> zigzag reorder -> dequant -> reference idct ->...) - (x -> referece dct -> reference idct -> x) - (x -> referece dct -> simple_mmx_perm = idct_permutation -> simple_idct_mmx -> x) - (->decode coeffs -> zigzag reorder -> simple_mmx_perm -> dequant -> simple_idct_mmx ->...)


idct_permutation_type

public int idct_permutation_type

put_h264_qpel_pixels_tab

public static DSPContext.Ih264_qpel_mc_func[][] put_h264_qpel_pixels_tab

avg_h264_qpel_pixels_tab

public static DSPContext.Ih264_qpel_mc_func[][] avg_h264_qpel_pixels_tab

put_h264_chroma_pixels_tab

public DSPContext.Ih264_chroma_mc_func[] put_h264_chroma_pixels_tab

avg_h264_chroma_pixels_tab

public DSPContext.Ih264_chroma_mc_func[] avg_h264_chroma_pixels_tab
Constructor Detail

DSPContext

public DSPContext()
Method Detail

draw_edges

public void draw_edges(int[] buf_base,
                       int buf_offset,
                       int wrap,
                       int width,
                       int height,
                       int w)

ff_emulated_edge_mc

public void ff_emulated_edge_mc(int[] buf_base,
                                int buf_offset,
                                int[] src_base,
                                int src_offset,
                                int linesize,
                                int block_w,
                                int block_h,
                                int src_x,
                                int src_y,
                                int w,
                                int h)
Copy a rectangular area of samples to a temporary buffer and replicate the border samples.

Parameters:
buf - destination buffer
src - source buffer
linesize - number of bytes between 2 vertically adjacent samples in both the source and destination buffers
block_w - width of block
block_h - height of block
src_x - x coordinate of the top left sample of the block in the source buffer
src_y - y coordinate of the top left sample of the block in the source buffer
w - width of the source buffer
h - height of the source buffer

add_pixels8

public void add_pixels8(int[] pixels,
                        int pixel_offset,
                        short[] block,
                        int block_offset,
                        int line_size)

add_pixels4

public void add_pixels4(int[] pixels,
                        int pixel_offset,
                        short[] block,
                        int block_offset,
                        int line_size)

clear_block

public void clear_block(short[] block)

clear_blocks

public void clear_blocks(short[][] blocks,
                         int first_block_index)
memset(blocks, 0, sizeof(DCTELEM)*6*64)


clear_blocks

public void clear_blocks(short[] blocks)

put_h264_chroma_mc2_c

public void put_h264_chroma_mc2_c(int[] dst_base,
                                  int dst_offset,
                                  int[] src_base,
                                  int src_offset,
                                  int stride,
                                  int h,
                                  int x,
                                  int y)

put_h264_chroma_mc4_c

public void put_h264_chroma_mc4_c(int[] dst_base,
                                  int dst_offset,
                                  int[] src_base,
                                  int src_offset,
                                  int stride,
                                  int h,
                                  int x,
                                  int y)

put_h264_chroma_mc8_c

public void put_h264_chroma_mc8_c(int[] dst_base,
                                  int dst_offset,
                                  int[] src_base,
                                  int src_offset,
                                  int stride,
                                  int h,
                                  int x,
                                  int y)

avg_h264_chroma_mc2_c

public void avg_h264_chroma_mc2_c(int[] dst_base,
                                  int dst_offset,
                                  int[] src_base,
                                  int src_offset,
                                  int stride,
                                  int h,
                                  int x,
                                  int y)

avg_h264_chroma_mc4_c

public void avg_h264_chroma_mc4_c(int[] dst_base,
                                  int dst_offset,
                                  int[] src_base,
                                  int src_offset,
                                  int stride,
                                  int h,
                                  int x,
                                  int y)

avg_h264_chroma_mc8_c

public void avg_h264_chroma_mc8_c(int[] dst_base,
                                  int dst_offset,
                                  int[] src_base,
                                  int src_offset,
                                  int stride,
                                  int h,
                                  int x,
                                  int y)

copy_block

public static void copy_block(int size,
                              int[] dst_base,
                              int dst_offset,
                              int[] src_base,
                              int src_offset,
                              int dstStride,
                              int srcStride,
                              int h)

rnd_avg32

public static long rnd_avg32(long a,
                             long b)

pixels_l2

public static void pixels_l2(int opcode,
                             int size,
                             int[] dst_base,
                             int dst_offset,
                             int[] src1_base,
                             int src1_offset,
                             int[] src2_base,
                             int src2_offset,
                             int dst_stride,
                             int src_stride1,
                             int src_stride2,
                             int h)

pixels_c

public static void pixels_c(int opcode,
                            int size,
                            int[] dst_base,
                            int dst_offset,
                            int[] src_base,
                            int src_offset,
                            int stride,
                            int height)

op_avg

public static int op_avg(int a,
                         int b,
                         int[] cm_base,
                         int cm_offset)

op_put

public static int op_put(int a,
                         int b,
                         int[] cm_base,
                         int cm_offset)

op_avg2

public static int op_avg2(int a,
                          int b,
                          int[] cm_base,
                          int cm_offset)

op_put2

public static int op_put2(int a,
                          int b,
                          int[] cm_base,
                          int cm_offset)

h264_qpel_h_lowpass

public static void h264_qpel_h_lowpass(int opcode,
                                       int size,
                                       int[] dst_base,
                                       int dst_offset,
                                       int[] src_base,
                                       int src_offset,
                                       int dstStride,
                                       int srcStride)

h264_qpel_v_lowpass

public static void h264_qpel_v_lowpass(int opcode,
                                       int size,
                                       int[] dst_base,
                                       int dst_offset,
                                       int[] src_base,
                                       int src_offset,
                                       int dstStride,
                                       int srcStride)

h264_qpel_hv_lowpass

public static void h264_qpel_hv_lowpass(int opcode,
                                        int size,
                                        int[] dst_base,
                                        int dst_offset,
                                        int[] tmp_base,
                                        int tmp_offset,
                                        int[] src_base,
                                        int src_offset,
                                        int dstStride,
                                        int tmpStride,
                                        int srcStride)

h264_qpel_mc00_c

public static void h264_qpel_mc00_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc10_c

public static void h264_qpel_mc10_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc20_c

public static void h264_qpel_mc20_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc30_c

public static void h264_qpel_mc30_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc01_c

public static void h264_qpel_mc01_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc02_c

public static void h264_qpel_mc02_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc03_c

public static void h264_qpel_mc03_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc11_c

public static void h264_qpel_mc11_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc31_c

public static void h264_qpel_mc31_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc13_c

public static void h264_qpel_mc13_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc33_c

public static void h264_qpel_mc33_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc22_c

public static void h264_qpel_mc22_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc21_c

public static void h264_qpel_mc21_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc23_c

public static void h264_qpel_mc23_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc12_c

public static void h264_qpel_mc12_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

h264_qpel_mc32_c

public static void h264_qpel_mc32_c(int opcode,
                                    int size,
                                    int[] dst_base,
                                    int dst_offset,
                                    int[] src_base,
                                    int src_offset,
                                    int stride)

dsputil_init

public void dsputil_init(MpegEncContext s)


Copyright © 2013. All Rights Reserved.