img_par Struct Reference

ImageParameters. More...

#include <global.h>

Collaboration diagram for img_par:

Collaboration graph
[legend]

Data Fields

InputParametersp_Inp
pic_parameter_set_rbsp_t * active_pps
seq_parameter_set_rbsp_t * active_sps
struct sei_params * p_SEI
struct decodersp_decs
int number
int start_frame_no
int gop_number
int frm_number
int cur_frm_number
int last_idr_number
int idr_gop_number
int rewind_frame
int LevelIndex
int MaxVmvR [6]
int MaxHmvR [6]
int current_mb_nr
short current_slice_nr
short type
PictureStructure structure
int base_dist
int num_ref_frames
int max_num_references
int masterQP
int qp
int qpsp
struct search_window searchRange
ImageData imgData
ImageData imgData0
ImageData imgData1
ImageData imgData2
struct image_structure imgSRC
struct image_structure imgREF
struct image_structure imgRGB_src
struct image_structure imgRGB_ref
int ** imgY_sub_tmp
imgpel ** imgY_com
imgpel *** imgUV_com
imgpel ** pCurImg
imgpel ** pImgOrg [MAX_PLANE]
Picture * p_frame_pic
Picture ** frame_pic
Picture ** field_pic
Picture * frame_pic_si
byteMapUnitToSliceGroupMap
bytebuf
byteibuf
long * Bit_Buffer
unsigned long total_frame_buffer
unsigned int log2_max_frame_num_minus4
unsigned int log2_max_pic_order_cnt_lsb_minus4
unsigned int max_frame_num
unsigned int max_pic_order_cnt_lsb
int64 me_tot_time
int64 tot_time
int64 me_time
byte mixedModeEdgeFlag
int * RefreshPattern
int * IntraMBs
int WalkAround
int NumberOfMBs
int NumberIntraPerPicture
short start_me_refinement_hp
short start_me_refinement_qp
struct umhex_struct * p_UMHex
struct umhex_smp_struct * p_UMHexSMP
struct me_full_fast * p_ffast_me
struct search_window * p_search_window
struct epzs_struct * sdiamond
struct epzs_struct * square
struct epzs_struct * ediamond
struct epzs_struct * ldiamond
struct epzs_struct * sbdiamond
struct epzs_struct * pmvfast
int precalcUnaryLevelTab [128][MAX_PREC_COEFF]
int AdaptRndWeight
int AdaptRndCrWeight
byte MBPairIsField
byte ** pixel_map
byte ** refresh_map
int intras
int RCMinQP
int RCMaxQP
float framerate
int width
int width_padded
int width_blk
int width_cr
int height
int height_padded
int height_blk
int height_cr
int height_cr_frame
int size
int size_cr
int is_v_block
int mb_y_upd
int mb_y_intra
char ** ipredmode
char ** ipredmode8x8
int cod_counter
int *** nz_coeff
int pix_x
int pix_y
imgpel min_IPCM_value
int pic_bin_count
int **** ARCofAdj4x4
int **** ARCofAdj8x8
Picture * currentPicture
struct slicecurrentSlice
Macroblockmb_data
Block8x8Infob8x8info
int * intra_block
int frame_no
int fld_type
byte fld_flag
unsigned int rd_pass
int redundant_coding
int key_frame
int redundant_ref_idx
int frm_no_in_file
double frame_interval
int b_frame_to_code
char DFDisableIdc
char DFAlphaC0Offset
char DFBetaOffset
char direct_spatial_mv_pred_flag
int pad_size_uv_x
int pad_size_uv_y
unsigned char chroma_mask_mv_y
unsigned char chroma_mask_mv_x
int chroma_shift_y
int chroma_shift_x
int shift_cr_x
int shift_cr_x2
int shift_cr_y
int padded_size_x
int padded_size_x_m8x8
int padded_size_x_m4x4
int cr_padded_size_x
int cr_padded_size_x_m8
int cr_padded_size_x2
int cr_padded_size_x4
int num_ref_idx_l0_active
int num_ref_idx_l1_active
Boolean field_mode
Boolean top_field
int buf_cycle
int layer
int AdaptiveRounding
int redundant_pic_cnt
Boolean MbaffFrameFlag
unsigned int pic_order_cnt_type
Boolean delta_pic_order_always_zero_flag
int offset_for_non_ref_pic
int offset_for_top_to_bottom_field
unsigned int num_ref_frames_in_pic_order_cnt_cycle
int offset_for_ref_frame [1]
unsigned int pic_order_cnt_lsb
int delta_pic_order_cnt_bottom
int delta_pic_order_cnt [2]
int frm_iter
unsigned int field_picture
signed int toppoc
signed int bottompoc
signed int framepoc
signed int ThisPOC
unsigned int frame_num
signed int start_tr_gop
unsigned int PicWidthInMbs
unsigned int PicHeightInMapUnits
unsigned int FrameHeightInMbs
unsigned int PicSizeInMbs
unsigned int FrameSizeInMbs
Boolean bottom_field_pic_order_in_frame_present_flag
int nal_reference_idc
int adaptive_ref_pic_buffering_flag
int no_output_of_prior_pics_flag
Boolean long_term_reference_flag
DecRefPicMarking_tdec_ref_pic_marking_buffer
int * mvbits
int * refbits
int NumberofCodedMacroBlocks
int BasicUnitQP
int NumberofMBTextureBits
int NumberofMBHeaderBits
unsigned int BasicUnit
byte write_macroblock
byte bot_MB
int write_mbaff_frame
int DeblockCall
int last_pic_bottom_field
int last_has_mmco_5
int pre_frame_num
int slice_group_change_cycle
short bitdepth_luma
short bitdepth_chroma
int bitdepth_scale [2]
int bitdepth_luma_qp_scale
int bitdepth_chroma_qp_scale
int bitdepth_lambda_scale
int max_bitCount
int max_qp_delta
int min_qp_delta
LambdaParams ** lambda
double ** lambda_md
double *** lambda_me
int *** lambda_mf
double ** lambda_mf_factor
imgpel dc_pred_value_comp [MAX_PLANE]
imgpel dc_pred_value
int max_pel_value_comp [MAX_PLANE]
int max_imgpel_value_comp_sq [MAX_PLANE]
short max_imgpel_value
int num_blk8x8_uv
int num_cdc_coeff
ColorFormat yuv_format
int P444_joined
int lossless_qpprime_flag
short mb_cr_size_x
short mb_cr_size_y
int mb_size [MAX_PLANE][2]
int chroma_qp_offset [2]
int auto_crop_right
int auto_crop_bottom
short checkref
int last_valid_reference
int bytes_in_picture
int AverageFrameQP
int SumFrameQP
int GopLevels
int ChromaArrayType
Macroblockmb_data_JV [MAX_PLANE]
char colour_plane_id
int lastIDRnumber
int lastIntraNumber
int lastINTRA
int last_ref_idc
int idr_refresh
int p_dec
int frame_statistic_start
int initial_Bframes
int cabac_encoding
unsigned int primary_pic_type
int frameOffsetTotal [2][MAX_REFERENCE_PICTURES]
int frameOffsetCount [2][MAX_REFERENCE_PICTURES]
short frameOffset [2][MAX_REFERENCE_PICTURES]
int frameOffsetAvail
double * mb16x16_cost_frame
double mb16x16_cost
int ** lrec
int *** lrec_uv
Boolean si_frame_indicator
Boolean sp2_frame_indicator
int number_sp2_frames
Boolean giRDOpt_B8OnlyFlag
int frameNuminGOP
imgpel ** imgY_tmp
imgpel ** imgUV_tmp [2]
int Motion_Selected
int CbCr_predmode_8x8 [4]
int **** motion_cost
int *** initialized
int *** modelNumber
int num_mb_per_slice
int number_of_slices
int imgpel_abs_range
GOP_DATAgop_structure
byteMBAmap
unsigned int PicSizeInMapUnits
int FirstMBInSlice [MAXSLICEGROUPIDS]
MotionVectorspiral_search
MotionVectorspiral_hpel_search
MotionVectorspiral_qpel_search
FILE * p_log
FILE * f_annexb
FILE * f_rtp
int CurrentRTPTimestamp
uint16 CurrentRTPSequenceNumber
struct storable_picture ** listX [6]
char listXsize [6]
DistortionParams * p_Dist
struct stat_parameters * p_Stats
pic_parameter_set_rbsp_t * PicParSet [MAXPPS]
struct decoded_picture_bufferp_Dpb
struct frame_storeout_buffer
struct storable_pictureenc_picture
struct storable_picture ** enc_frame_picture
struct storable_picture ** enc_field_picture
struct storable_pictureenc_frame_picture_JV [MAX_PLANE]
struct quant_params * p_Quant
struct scaling_list * p_QScale
RCGeneric * p_rc_gen
RCGeneric * p_rc_gen_init
RCGeneric * p_rc_gen_best
RCQuadratic * p_rc_quad
RCQuadratic * p_rc_quad_init
RCQuadratic * p_rc_quad_best
double entropy [128]
double enorm [128]
double probability [128]
FILE * expSFile
struct exp_seq_info * expSeq
struct wpx_object * pWPX
int offset_y
int offset_cr
int wka0
int wka1
int wka2
int wka3
int wka4
int(* updateQP )(struct img_par *p_Img, InputParameters *p_Inp, RCQuadratic *p_quad, RCGeneric *p_gen, int topfield)
void(* rc_update_pict_frame_ptr )(struct img_par *p_Img, InputParameters *p_Inp, RCQuadratic *p_quad, RCGeneric *p_gen, int nbits)
void(* rc_update_picture_ptr )(struct img_par *p_Img, InputParameters *p_Inp, int bits)
void(* rc_init_pict_ptr )(struct img_par *p_Img, InputParameters *p_Inp, RCQuadratic *p_quad, RCGeneric *p_gen, int fieldpic, int topfield, int targetcomputation, float mult)
void(* buf2img )(imgpel **imgX, unsigned char *buf, int size_x, int size_y, int o_size_x, int o_size_y, int symbol_size_in_bytes, int bitshift)
void(* getNeighbour )(Macroblock *currMB, int xN, int yN, int mb_size[2], PixelPos *pix)
void(* get_mb_block_pos )(int mb_addr, short *x, short *y)
int(* WriteNALU )(struct img_par *p_Img, NALU_t *n)
void(* error_conceal_picture )(struct img_par *p_Img, struct storable_picture *enc_pic, int decoder)
void(* OneComponentChromaPrediction4x4 )(Macroblock *currMB, imgpel *, int, int, short ***, struct storable_picture *listX, int)
void(* GetStrength )(byte Strength[16], Macroblock *MbQ, int dir, int edge, int mvlimit)
void(* EdgeLoopLuma )(ColorPlane pl, imgpel **Img, byte Strength[16], Macroblock *MbQ, int dir, int edge, int width)
void(* EdgeLoopChroma )(imgpel **Img, byte Strength[16], Macroblock *MbQ, int dir, int edge, int width, int uv)
void(* EstimateWPBSlice )(struct slice *currSlice)
void(* EstimateWPPSlice )(struct slice *currSlice, int offset)
int(* TestWPPSlice )(struct img_par *p_Img, InputParameters *p_Inp, int offset)
int(* TestWPBSlice )(struct img_par *p_Img, InputParameters *p_Inp, int method)
int(* distortion4x4 )(int *, int)
int(* distortion8x8 )(int *, int)
int(* computeUniPred [6])(struct storable_picture *ref1, struct me_block *, int, MotionVector *)
int(* computeBiPred1 [3])(struct storable_picture *ref1, struct storable_picture *ref2, struct me_block *, int, MotionVector *, MotionVector *)
int(* computeBiPred2 [3])(struct storable_picture *ref1, struct storable_picture *ref2, struct me_block *, int, MotionVector *, MotionVector *)

Detailed Description

ImageParameters.

Definition at line 729 of file global.h.


Field Documentation

int**** ARCofAdj4x4

int**** ARCofAdj8x8

signed int bottompoc

for completeness - poc of bottom field of a frame (always = poc+1)

Definition at line 957 of file global.h.

Referenced by adaptive_memory_management(), ExplicitUpdateImgParams(), field_picture(), init_frame_params(), prepare_enc_frame_picture(), prepare_second_layer(), and SliceHeader().

offset for qp for chroma [0-Cb, 1-Cr]

Definition at line 1034 of file global.h.

Referenced by init_img().

Current count of number of skipped macroblocks in a row.

Definition at line 866 of file global.h.

Referenced by encode_one_slice(), encode_one_slice_MBAFF(), end_macroblock(), RDCost_for_macroblocks(), start_macroblock(), writeMBLayerBSlice(), and writeMBLayerPSlice().

colour_plane_id of the current coded slice (valid only when separate_colour_plane_flag is 1)

Definition at line 1049 of file global.h.

Referenced by change_plane_JV(), code_a_picture(), compute_colocated_JV(), encode_one_slice(), encode_one_slice_MBAFF(), init_img(), init_slice(), SliceHeader(), and update_offset_params().

current image number to be encoded (in all layers)

Definition at line 741 of file global.h.

Picture* currentPicture

The coded picture currently in the works (typically p_frame_pic, p_Img->field_pic[0], or p_Img->field_pic[1]).

Definition at line 881 of file global.h.

Referenced by adaptive_memory_management(), code_a_picture(), encode_one_frame(), encode_one_redundant_frame(), encode_sequence(), idr_memory_management(), init_slice(), malloc_slice(), store_picture_in_dpb(), and writeout_picture().

incremented with all P and I frames

The RTP sequence number of the current packet incremented by one for each sent packet

Definition at line 1123 of file global.h.

Referenced by WriteRTPNALU().

The RTP timestamp of the current packet,

Definition at line 1121 of file global.h.

Referenced by RTPUpdateTimestamp(), and WriteRTPNALU().

struct slice* currentSlice [read]

pointer to current Slice data struct

Definition at line 882 of file global.h.

Referenced by init_slice(), perform_mc(), perform_mc_concealment(), TestWPBSliceAlg0(), TestWPBSliceAlg1(), and TestWPBSliceAlg2().

imgpel dc_pred_value

DC prediction value for current component.

Definition at line 1020 of file global.h.

Referenced by init_img(), intrapred_16x16(), select_plane(), set_intrapred_4x4(), and set_intrapred_8x8().

imgpel dc_pred_value_comp[MAX_PLANE]

component value for DC prediction (depends on component pel bit depth)

Definition at line 1019 of file global.h.

Referenced by clear_picture(), init_img(), intra_chroma_prediction(), and select_plane().

Direct Mode type to be used (0: Temporal, 1: Spatial).

Definition at line 904 of file global.h.

Referenced by init_frame(), init_slice(), and SliceHeader().

struct storable_picture* enc_frame_picture_JV[MAX_PLANE] [read]

enc_frame to be used during 4:4:4 independent mode encoding

Definition at line 1138 of file global.h.

Referenced by change_plane_JV(), encode_one_frame(), frame_picture(), and make_frame_picture_JV().

void(* error_conceal_picture)(struct img_par *p_Img, struct storable_picture *enc_pic, int decoder)

Hides the write function in Annex B or RTP.

Referenced by init_error_conceal(), and UpdateDecoders().

For MB level field/frame -- field mode on flag.

Definition at line 923 of file global.h.

Referenced by encode_one_slice_MBAFF(), intra_chroma_prediction(), and intra_chroma_RD_decision().

int fld_type

top or bottom field

Definition at line 888 of file global.h.

Referenced by init_field(), put_buffer_bot(), and put_buffer_top().

frame interval (frame_skip + 1)

Definition at line 896 of file global.h.

Referenced by CalculateFrameNumber(), init_img(), and prepare_second_layer().

unsigned int frame_num

signed int framepoc

int frm_iter

frame variations to create (useful for multiple coding passes)

Definition at line 953 of file global.h.

Referenced by encode_one_frame(), free_global_buffers(), init_global_buffers(), and init_img().

int height

Number of lines in blocks.

Definition at line 855 of file global.h.

Referenced by init_img(), and init_slice().

int height_cr

Number of lines chroma frame.

Definition at line 857 of file global.h.

Referenced by distortion_fld(), field_picture(), frame_mode_buffer(), and init_img().

Number in lines of padded picture.

Definition at line 854 of file global.h.

Referenced by init_global_buffers(), and init_img().

current idr image number to be encoded

Definition at line 743 of file global.h.

Referenced by encode_sequence(), init_img(), and prepare_second_layer().

ImageData imgData

ImageData imgData0

Input Image Data.

Definition at line 762 of file global.h.

Referenced by encode_one_frame(), free_global_buffers(), and init_global_buffers().

imgpel*** imgUV_com

Encoded croma images.

Definition at line 772 of file global.h.

Referenced by combine_field(), find_distortion(), free_global_buffers(), and init_global_buffers().

imgpel** imgY_com

Encoded luma images.

Definition at line 771 of file global.h.

Referenced by combine_field(), find_distortion(), free_global_buffers(), and init_global_buffers().

int** imgY_sub_tmp

Y picture temporary component (Quarter pel).

Definition at line 770 of file global.h.

Referenced by free_global_buffers(), getHorSubImageSixTap(), getVerSubImageSixTapTmp(), and init_global_buffers().

int intras

Counts the intra updates in each frame.

Definition at line 843 of file global.h.

Referenced by rd_picture_coding(), and write_macroblock().

char** ipredmode

char** ipredmode8x8

double** lambda_md

double*** lambda_me

Motion Estimation Lambda.

Definition at line 1014 of file global.h.

Referenced by free_global_buffers(), init_enc_mb_params(), and init_img().

int*** lambda_mf

Integer formatted Motion Estimation Lambda.

Definition at line 1015 of file global.h.

Referenced by free_global_buffers(), init_enc_mb_params(), init_img(), and submacroblock_mode_decision_low().

double** lambda_mf_factor

Motion Estimation Lamda Scale Factor.

Definition at line 1017 of file global.h.

Referenced by free_global_buffers(), and init_img().

int layer

which layer this picture belonged to

Definition at line 928 of file global.h.

Referenced by prepare_first_layer(), prepare_second_layer(), PrepareAggregationSEIMessage(), and write_non_vcl_nalu().

mapped level idc

Definition at line 745 of file global.h.

Referenced by SetLevelIndices(), and update_mv_limits().

int masterQP

int max_imgpel_value_comp_sq[MAX_PLANE]

max value that one picture element (pixel) can take (depends on pic_unit_bitdepth)

Definition at line 1022 of file global.h.

Referenced by init_img(), and report().

int max_pel_value_comp[MAX_PLANE]

int MaxHmvR[6]

maximum horizontal motion vector

Definition at line 747 of file global.h.

Referenced by clip_mv_range(), out_of_bounds_mvs(), SetupFastFullPelSearch(), test_clip_mvs(), and update_mv_limits().

int MaxVmvR[6]

maximum vertical motion vector

Definition at line 746 of file global.h.

Referenced by clip_mv_range(), out_of_bounds_mvs(), SetupFastFullPelSearch(), test_clip_mvs(), and update_mv_limits().

Macroblock* mb_data_JV[MAX_PLANE]

mb_data to be used during 4:4:4 independent mode encoding

Definition at line 1048 of file global.h.

Referenced by change_plane_JV(), free_global_buffers(), init_frame(), and init_img().

For MB level field/frame coding tools.

Definition at line 838 of file global.h.

Referenced by encode_one_slice_MBAFF().

number of reference frames to be used

Definition at line 753 of file global.h.

Referenced by check_num_ref(), and init_img().

int number

int*** nz_coeff

int p_dec

FILE* p_log

SNR file.

Definition at line 1115 of file global.h.

Referenced by init_encoder(), and report().

imgpel** pCurImg

Reference image. Luma for other profiles, can be any component for 4:4:4.

Definition at line 774 of file global.h.

Referenced by BIDPartitionCost(), BPredPartitionCost(), change_plane_JV(), compute_mode_RD_cost(), dct_16x16(), dct_16x16_ls(), distortion_fld(), distortionSSE(), encode_one_macroblock_high(), encode_one_macroblock_highfast(), encode_one_macroblock_highloss(), encode_one_macroblock_low(), EstimateWPBSliceAlg0(), EstimateWPBSliceAlg1(), EstimateWPBSliceAlg2(), EstimateWPPSliceAlg0(), EstimateWPPSliceAlg1(), EstimateWPPSliceAlg2(), fast_mode_intra_decision(), find_distortion(), find_sad_16x16_JM(), GetBestTransformP8x8(), GetDirectCost8x8(), GetSkipCostMB(), luma_residual_coding(), luma_residual_coding_8x8(), luma_residual_coding_p444_16x16(), luma_residual_coding_p444_8x8(), min_rdcost_16x16(), Mode_Decision_for_4x4IntraBlocks_JM_High(), Mode_Decision_for_4x4IntraBlocks_JM_High444(), Mode_Decision_for_4x4IntraBlocks_JM_Low(), Mode_Decision_for_4x4IntraBlocks_JM_Low444(), Mode_Decision_for_8x8IntraBlocks_JM_High(), Mode_Decision_for_8x8IntraBlocks_JM_Low(), Mode_Decision_for_8x8IntraBlocks_JM_Low444(), put_buffer_bot(), put_buffer_frame(), put_buffer_top(), rdcost_for_4x4_intra_blocks(), rdcost_for_4x4_intra_blocks_444(), rdcost_for_8x8_intra_blocks(), rdcost_for_8x8_intra_blocks_444(), RDCost_for_8x8blocks(), RDCost_for_macroblocks(), select_plane(), set_MB_parameters(), SetupFastFullPelSearch(), TestWPBSliceAlg0(), TestWPBSliceAlg1(), TestWPBSliceAlg2(), TestWPPSliceAlg0(), TestWPPSliceAlg1(), TestWPPSliceAlg2(), and TransformDecision().

int pix_x

current pixel horizontal

Definition at line 868 of file global.h.

int pix_y

current pixel vertical

Definition at line 869 of file global.h.

Shows the latest reference frame that is reliable for each pixel.

Definition at line 841 of file global.h.

Referenced by CheckReliabilityOfRef(), free_global_buffers(), init_global_buffers(), and UpdatePixelMap().

int qp

int qpsp

quant for the prediction frame of SP-frame

Definition at line 757 of file global.h.

Referenced by init_field(), init_frame(), SliceHeader(), and start_macroblock().

Stores the new values for pixel_map.

Definition at line 842 of file global.h.

Referenced by free_global_buffers(), init_global_buffers(), and UpdatePixelMap().

current image number to be encoded

Definition at line 744 of file global.h.

Referenced by CalculateFrameNumber(), and init_img().

int size

int size_cr

if set then recheck the center position when doing quarter-pel motion refinement

Definition at line 811 of file global.h.

Referenced by EPZSSubPelBlockMotionSearch(), EPZSSubPelBlockSearchBiPred(), Init_Motion_Search_Module(), smpUMHEXFullSubPelBlockMotionSearch(), SubPelBlockMotionSearch(), and SubPelBlockSearchBiPred().

signed int start_tr_gop

initial tr for current gop

Definition at line 961 of file global.h.

Referenced by CalculateFrameNumber(), init_img(), and prepare_second_layer().

PictureStructure structure

signed int ThisPOC

current picture POC

Definition at line 959 of file global.h.

Referenced by adaptive_memory_management(), encode_sequence(), field_picture(), init_slice(), and prepare_enc_frame_picture().

For MB level field/frame -- top field flag.

Definition at line 924 of file global.h.

Referenced by encode_one_slice_MBAFF().

signed int toppoc

int width

int width_blk

Number of columns in blocks.

Definition at line 851 of file global.h.

Referenced by init_img(), and init_slice().

int width_cr

Width in pels of padded picture.

Definition at line 850 of file global.h.

Referenced by init_global_buffers(), and init_img().


The documentation for this struct was generated from the following file:

Documentation generated with DoxyGen