
Go to the source code of this file.
Functions | |
| double | RDCost_for_4x4IntraBlocks (Slice *currSlice, Macroblock *currMB, int *nonzero, int b8, int b4, int ipmode, double lambda, int mostProbableMode, int c_nzCbCr[3], int is_cavlc) |
| int | valid_intra_mode (int ipmode) |
| void | compute_comp_cost (imgpel **cur_img, imgpel **prd_img, int pic_opix_x, int *cost) |
| void | generate_pred_error (imgpel **cur_img, imgpel **prd_img, imgpel **cur_prd, int **mb_rres, int pic_opix_x, int block_x) |
| void | clear_rdopt (InputParameters *params) |
| void | init_rdopt (InputParameters *params) |
| void | copy_4x4block (imgpel **oblock, imgpel **iblock, int o_xoffset, int i_xoffset) |
| void | update_qp_cbp (Macroblock *currMB, short best_mode) |
| void | update_qp_cbp_tmp (Macroblock *currMB, int cbp, int best_mode) |
Variables | |
| int ***** | coefAC8x8 |
| int **** | cofAC |
| int *** | cofDC |
| int ** | cofAC4x4 |
| int | cbp |
| int | cbp8x8 |
| int | cnt_nonz_8x8 |
| int | cbp_blk8x8 |
| char ** | l0_refframe |
| char ** | l1_refframe |
| short | b8mode [4] |
| short | b8pdir [4] |
| int | best_c_imode |
| int | best_i16offset |
| short | best_mode |
| int | luma_transform_size_8x8_flag |
| int ***** | cofAC8x8ts |
| int ** | cofAC4x4CbCr [2] |
| int64 | cbp_blk8_8x8ts |
| int | cbp8_8x8ts |
| int | cost8_8x8ts |
| int | cnt_nonz8_8x8ts |
| double | mb16x16_cost |
| double | lambda_mf_factor |
| int(* | Mode_Decision_for_4x4IntraBlocks )(Slice *currSlice, Macroblock *currMB, int b8, int b4, double lambda, double *min_cost, int cr_cbp[3], int is_cavlc) |
Definition in file rdopt.h.
| void clear_rdopt | ( | InputParameters * | params | ) |
delete structure for RD-optimized mode decision
Definition at line 127 of file rdopt.c.
References delete_coding_state(), free_mem2D(), free_mem2Dint(), free_mem2Dpel(), free_mem3Dint(), free_mem3Dpel(), free_mem5Dshort(), free_mem_ACcoeff(), free_mem_ACcoeff_new(), free_mem_DCcoeff(), and InputParameters::Transform8x8Mode.
Referenced by free_encoder_memory().

| void copy_4x4block | ( | imgpel ** | oblock, | |
| imgpel ** | iblock, | |||
| int | o_xoffset, | |||
| int | i_xoffset | |||
| ) |
copy data in iblock to oblock
Definition at line 2664 of file rdopt.c.
Referenced by Mode_Decision_for_4x4IntraBlocks_JM_High().
| void init_rdopt | ( | InputParameters * | params | ) |
create structure for RD-optimized mode decision
Definition at line 177 of file rdopt.c.
References create_coding_state(), InputParameters::CtxAdptLagrangeMult, distortionSSE(), encode_one_macroblock_high(), encode_one_macroblock_highfast(), encode_one_macroblock_highloss(), encode_one_macroblock_low(), find_sad_16x16_JM(), get_mem2D(), get_mem2Dint(), get_mem2Dpel(), get_mem3Dint(), get_mem3Dpel(), get_mem5Dshort(), get_mem_ACcoeff(), get_mem_ACcoeff_new(), get_mem_DCcoeff(), Mode_Decision_for_4x4IntraBlocks_JM_High(), Mode_Decision_for_4x4IntraBlocks_JM_Low(), Mode_Decision_for_8x8IntraBlocks_JM_High(), Mode_Decision_for_8x8IntraBlocks_JM_Low(), InputParameters::rdopt, and InputParameters::Transform8x8Mode.
Referenced by init_encoder().

| double RDCost_for_4x4IntraBlocks | ( | Slice * | currSlice, | |
| Macroblock * | currMB, | |||
| int * | nonzero, | |||
| int | b8, | |||
| int | b4, | |||
| int | ipmode, | |||
| double | lambda, | |||
| int | mostProbableMode, | |||
| int | c_nzCbCr[3], | |||
| int | is_cavlc | |||
| ) |
R-D Cost for an 4x4 Intra block.
Definition at line 470 of file rdopt.c.
References assignSE2partition, syntaxelement::context, storable_picture::imgY, syntaxelement::len, ImageParameters::opix_y, ImageParameters::P444_joined, storable_picture::p_curr_img, Slice::partArr, InputParameters::partition_mode, pCurImg, ImageParameters::pix_x, ImageParameters::pix_y, select_plane(), syntaxelement::type, syntaxelement::value1, writeCoeff4x4_CABAC(), and writeCoeff4x4_CAVLC().
Referenced by Mode_Decision_for_4x4IntraBlocks_JM_High().

| void update_qp_cbp | ( | Macroblock * | currMB, | |
| short | best_mode | |||
| ) |
Update QP Parameters (in case of SKIP MBs or MBAFF).
Definition at line 2838 of file rdopt.c.
References macroblock::cbp, RD_DATA::delta_qp, macroblock::delta_qp, InputParameters::MbInterlace, RD_DATA::prev_cbp, macroblock::prev_cbp, macroblock::prev_qp, RD_DATA::qp, ImageParameters::qp, macroblock::qp, and update_qp().
Referenced by encode_one_macroblock_high(), encode_one_macroblock_highfast(), encode_one_macroblock_highloss(), and encode_one_macroblock_low().
