com.twilight.h264.decoder
Class AVFrame

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

public class AVFrame
extends Object


Field Summary
 int age
          \ buffer age (1->was last buffer and dint change, 2->..., ...).\ Set to INT_MAX if the buffer has not been used yet.\ - encoding: unused\ - decoding: MUST be set by get_buffer().\
 int b_frame_score
           
 int[][] base
          \ pointer to the first allocated byte of the picture.
 int buffer_hints
          \ codec suggestion on buffer type if != 0\ - encoding: unused\ - decoding: Set by libavcodec.
 int coded_picture_number
          \ picture number in bitstream order\ - encoding: set by\ - decoding: Set by libavcodec.\
 int[][] data_base
          \ pointer to the picture planes.\ This might be different from the first allocated byte\ - encoding: \ - decoding: \
 int[] data_offset
           
 short[] dct_coeff
          \ DCT coefficients\ - encoding: unused\ - decoding: Set by libavcodec.\
 int display_picture_number
          \ picture number in display order\ - encoding: set by\ - decoding: Set by libavcodec.\
 long[] error
          \ error\ - encoding: Set by libavcodec.
 int[] field_poc
           
 int frame_num
           
 Object hwaccel_picture_private
          \ hardware accelerator private data (FFmpeg allocated)\ - encoding: unused\ - decoding: Set by libavcodec\
 int imageHeight
           
 int imageHeightWOEdge
           
 int imageWidth
           
 int imageWidthWOEdge
           
 int interlaced_frame
          \ The content of the picture is interlaced.\ - encoding: Set by user.\ - decoding: Set by libavcodec.
 int[] interpolated
          halfpel luma planes.
 int key_frame
          \ 1 -> keyframe, 0-> not\ - encoding: Set by libavcodec.\ - decoding: Set by libavcodec.\
 int[] linesize
           
 int long_ref
          < h264 pic_num (short -> no wrap version of pic_num, pic_num & max_pic_num; long -> long_pic_num)
 int[] mb_cmp_score
           
 int[] mb_mean
           
 long[] mb_type_base
           
 int mb_type_offset
          \ macroblock type table\ mb_type_base + mb_width + 2\ - encoding: Set by user.\ - decoding: Set by libavcodec.\
 int[] mb_var
           
 int mb_var_sum
           
 int mbaff
           
 int[] mbskip_table
          \ mbskip_table[mb]>=1 if MB didn't change\ stride= mb_width = (width+15)>>4\ - encoding: unused\ - decoding: Set by libavcodec.\
 int[] mc_mb_var
           
 int mc_mb_var_sum
           
 int mmco_reset
           
 int motion_subsample_log2
          \ log2 of the size of the block which a single vector in motion_val represents: \ (4->16x16, 3->8x8, 2-> 4x4, 1-> 2x2)\ - encoding: unused\ - decoding: Set by libavcodec.\
 int[][][] motion_val_base
           
 int[] motion_val_offset
          \ motion vector table\
 Object opaque
          \ for some private data of the user\ - encoding: unused\ - decoding: Set by user.\
 int palette_has_changed
          \ Tell user application that palette has changed from previous frame.\ - encoding: ??? (no palette-enabled encoder yet)\ - decoding: Set by libavcodec.
 AVPanScan pan_scan
          \ Pan scan.\ - encoding: Set by user.\ - decoding: Set by libavcodec.\
 int pic_id
           
 int pict_type
          \ Picture type of the frame, see ?_TYPE below.\ - encoding: Set by libavcodec.
 long pkt_dts
          \ dts from the last AVPacket that has been input into the decoder\ - encoding: unused\ - decoding: Read by user.\
 long pkt_pts
          \ reordered pts from the last AVPacket that has been input into the decoder\ - encoding: unused\ - decoding: Read by user.\
 int poc
           
 long pts
          \ presentation timestamp in time_base units (time when frame should be shown to user)\ If AV_NOPTS_VALUE then frame_rate = 1/time_base will be assumed.\ - encoding: MUST be set by user.\ - decoding: Set by libavcodec.\
 int[] qscale_table
          \ QP table\ - encoding: unused\ - decoding: Set by libavcodec.\
 int qscale_type
          \ \
 int qstride
          \ QP store stride\ - encoding: unused\ - decoding: Set by libavcodec.\
 int quality
          \ quality (between 1 (good) and FF_LAMBDA_MAX (bad)) \ - encoding: Set by libavcodec.
 int[][] ref_count
           
 int[][] ref_index
          \ motion reference frame index\ the order in which these are stored can depend on the codec.\ - encoding: Set by user.\ - decoding: Set by libavcodec.\
 int[][][] ref_poc
           
 int reference
          \ is this picture used as reference\ The values for this are the same as the MpegEncContext.picture_structure\ variable, that is 1->top field, 2->bottom field, 3->frame/both fields.\ Set to 4 for delayed, non-reference frames.\ - encoding: unused\ - decoding: Set by libavcodec.
 long reordered_opaque
          \ reordered opaque 64bit (generally an integer or a double precision float\ PTS but can be anything).
 int repeat_pict
          \ When decoding, this signals how much the picture must be delayed.\ extra_delay = repeat_pict / (2*fps)\ - encoding: unused\ - decoding: Set by libavcodec.\
 int top_field_first
          \ If the content is interlaced, is top field displayed first.\ - encoding: Set by user.\ - decoding: Set by libavcodec.\
 int type
          \ type of the buffer (to keep track of who has to deallocate data[*])\ - encoding: Set by the one who allocates it.\ - decoding: Set by the one who allocates it.\ Note: User allocated (direct rendering) & internal buffers cannot coexist currently.\
 
Constructor Summary
AVFrame()
           
 
Method Summary
static int add_sorted(AVFrame[] sorted_base, int sorted_offset, AVFrame[] src_base, int src_offset, int len, int limit, int dir)
           
static AVFrame avcodec_alloc_frame()
           
static int build_def_list(AVFrame[] def_base, int def_offset, AVFrame[] in_base, int in_offset, int len, int is_long, int sel)
           
 AVFrame copyTo(AVFrame ret)
           
static void pic_as_field(AVFrame pic, int parity)
           
 void resetToZero()
           
static int split_field_copy(AVFrame dest, AVFrame src, int parity, int id_add)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageWidthWOEdge

public int imageWidthWOEdge

imageHeightWOEdge

public int imageHeightWOEdge

imageWidth

public int imageWidth

imageHeight

public int imageHeight

data_base

public int[][] data_base
\ pointer to the picture planes.\ This might be different from the first allocated byte\ - encoding: \ - decoding: \


data_offset

public int[] data_offset

linesize

public int[] linesize

base

public int[][] base
\ pointer to the first allocated byte of the picture. Can be used in get_buffer/release_buffer.\ This isn't used by libavcodec unless the default get/release_buffer() is used.\ - encoding: \ - decoding: \


key_frame

public int key_frame
\ 1 -> keyframe, 0-> not\ - encoding: Set by libavcodec.\ - decoding: Set by libavcodec.\


pict_type

public int pict_type
\ Picture type of the frame, see ?_TYPE below.\ - encoding: Set by libavcodec. for coded_picture (and set by user for input).\ - decoding: Set by libavcodec.\


pts

public long pts
\ presentation timestamp in time_base units (time when frame should be shown to user)\ If AV_NOPTS_VALUE then frame_rate = 1/time_base will be assumed.\ - encoding: MUST be set by user.\ - decoding: Set by libavcodec.\


coded_picture_number

public int coded_picture_number
\ picture number in bitstream order\ - encoding: set by\ - decoding: Set by libavcodec.\


display_picture_number

public int display_picture_number
\ picture number in display order\ - encoding: set by\ - decoding: Set by libavcodec.\


quality

public int quality
\ quality (between 1 (good) and FF_LAMBDA_MAX (bad)) \ - encoding: Set by libavcodec. for coded_picture (and set by user for input).\ - decoding: Set by libavcodec.\


age

public int age
\ buffer age (1->was last buffer and dint change, 2->..., ...).\ Set to INT_MAX if the buffer has not been used yet.\ - encoding: unused\ - decoding: MUST be set by get_buffer().\


reference

public int reference
\ is this picture used as reference\ The values for this are the same as the MpegEncContext.picture_structure\ variable, that is 1->top field, 2->bottom field, 3->frame/both fields.\ Set to 4 for delayed, non-reference frames.\ - encoding: unused\ - decoding: Set by libavcodec. (before get_buffer() call)).\


qscale_table

public int[] qscale_table
\ QP table\ - encoding: unused\ - decoding: Set by libavcodec.\


qstride

public int qstride
\ QP store stride\ - encoding: unused\ - decoding: Set by libavcodec.\


mbskip_table

public int[] mbskip_table
\ mbskip_table[mb]>=1 if MB didn't change\ stride= mb_width = (width+15)>>4\ - encoding: unused\ - decoding: Set by libavcodec.\


motion_val_offset

public int[] motion_val_offset
\ motion vector table\


mb_type_offset

public int mb_type_offset
\ macroblock type table\ mb_type_base + mb_width + 2\ - encoding: Set by user.\ - decoding: Set by libavcodec.\


motion_subsample_log2

public int motion_subsample_log2
\ log2 of the size of the block which a single vector in motion_val represents: \ (4->16x16, 3->8x8, 2-> 4x4, 1-> 2x2)\ - encoding: unused\ - decoding: Set by libavcodec.\


opaque

public Object opaque
\ for some private data of the user\ - encoding: unused\ - decoding: Set by user.\


error

public long[] error
\ error\ - encoding: Set by libavcodec. if flags&CODEC_FLAG_PSNR.\ - decoding: unused\


type

public int type
\ type of the buffer (to keep track of who has to deallocate data[*])\ - encoding: Set by the one who allocates it.\ - decoding: Set by the one who allocates it.\ Note: User allocated (direct rendering) & internal buffers cannot coexist currently.\


repeat_pict

public int repeat_pict
\ When decoding, this signals how much the picture must be delayed.\ extra_delay = repeat_pict / (2*fps)\ - encoding: unused\ - decoding: Set by libavcodec.\


qscale_type

public int qscale_type
\ \


interlaced_frame

public int interlaced_frame
\ The content of the picture is interlaced.\ - encoding: Set by user.\ - decoding: Set by libavcodec. (default 0)\


top_field_first

public int top_field_first
\ If the content is interlaced, is top field displayed first.\ - encoding: Set by user.\ - decoding: Set by libavcodec.\


pan_scan

public AVPanScan pan_scan
\ Pan scan.\ - encoding: Set by user.\ - decoding: Set by libavcodec.\


palette_has_changed

public int palette_has_changed
\ Tell user application that palette has changed from previous frame.\ - encoding: ??? (no palette-enabled encoder yet)\ - decoding: Set by libavcodec. (default 0).\


buffer_hints

public int buffer_hints
\ codec suggestion on buffer type if != 0\ - encoding: unused\ - decoding: Set by libavcodec. (before get_buffer() call)).\


dct_coeff

public short[] dct_coeff
\ DCT coefficients\ - encoding: unused\ - decoding: Set by libavcodec.\


ref_index

public int[][] ref_index
\ motion reference frame index\ the order in which these are stored can depend on the codec.\ - encoding: Set by user.\ - decoding: Set by libavcodec.\


reordered_opaque

public long reordered_opaque
\ reordered opaque 64bit (generally an integer or a double precision float\ PTS but can be anything). \ The user sets AVCodecContext.reordered_opaque to represent the input at\ that time,\ the decoder reorders values as needed and sets AVFrame.reordered_opaque\ to exactly one of the values provided by the user through AVCodecContext.reordered_opaque \ - encoding: unused\ - decoding: Read by user.\


hwaccel_picture_private

public Object hwaccel_picture_private
\ hardware accelerator private data (FFmpeg allocated)\ - encoding: unused\ - decoding: Set by libavcodec\


pkt_pts

public long pkt_pts
\ reordered pts from the last AVPacket that has been input into the decoder\ - encoding: unused\ - decoding: Read by user.\


pkt_dts

public long pkt_dts
\ dts from the last AVPacket that has been input into the decoder\ - encoding: unused\ - decoding: Read by user.\


interpolated

public int[] interpolated
halfpel luma planes.


motion_val_base

public int[][][] motion_val_base

mb_type_base

public long[] mb_type_base

field_poc

public int[] field_poc

poc

public int poc

frame_num

public int frame_num

mmco_reset

public int mmco_reset

pic_id

public int pic_id

long_ref

public int long_ref
< h264 pic_num (short -> no wrap version of pic_num, pic_num & max_pic_num; long -> long_pic_num)


ref_poc

public int[][][] ref_poc

ref_count

public int[][] ref_count

mbaff

public int mbaff

mb_var_sum

public int mb_var_sum

mc_mb_var_sum

public int mc_mb_var_sum

mb_var

public int[] mb_var

mc_mb_var

public int[] mc_mb_var

mb_mean

public int[] mb_mean

mb_cmp_score

public int[] mb_cmp_score

b_frame_score

public int b_frame_score
Constructor Detail

AVFrame

public AVFrame()
Method Detail

copyTo

public AVFrame copyTo(AVFrame ret)

resetToZero

public void resetToZero()

pic_as_field

public static void pic_as_field(AVFrame pic,
                                int parity)

split_field_copy

public static int split_field_copy(AVFrame dest,
                                   AVFrame src,
                                   int parity,
                                   int id_add)

build_def_list

public static int build_def_list(AVFrame[] def_base,
                                 int def_offset,
                                 AVFrame[] in_base,
                                 int in_offset,
                                 int len,
                                 int is_long,
                                 int sel)

add_sorted

public static int add_sorted(AVFrame[] sorted_base,
                             int sorted_offset,
                             AVFrame[] src_base,
                             int src_offset,
                             int len,
                             int limit,
                             int dir)

avcodec_alloc_frame

public static AVFrame avcodec_alloc_frame()


Copyright © 2013. All Rights Reserved.