/dports/multimedia/jmref/JM/ldecod/src/ |
H A D | mb_access.c | 65 currMB->mbAvailB = (Boolean) (mb_is_available(currMB->mbAddrB, currMB)); in CheckAvailabilityOfNeighbors() 74 currMB->mbAddrB = currMB->mbAddrD + 1; in CheckAvailabilityOfNeighbors() 75 currMB->mbAddrC = currMB->mbAddrB + 1; in CheckAvailabilityOfNeighbors() 81 currMB->mbAvailB = (Boolean) (mb_is_available(currMB->mbAddrB, currMB)); in CheckAvailabilityOfNeighbors() 84 currMB->mb_left = (currMB->mbAvailA) ? &(currSlice->mb_data[currMB->mbAddrA]) : NULL; in CheckAvailabilityOfNeighbors() 85 currMB->mb_up = (currMB->mbAvailB) ? &(currSlice->mb_data[currMB->mbAddrB]) : NULL; in CheckAvailabilityOfNeighbors() 105 currMB->mbAddrB = currMB->mbAddrD + 1; in CheckAvailabilityOfNeighborsNormal() 106 currMB->mbAddrC = currMB->mbAddrB + 1; in CheckAvailabilityOfNeighborsNormal() 112 currMB->mbAvailB = (Boolean) (mb_is_available(currMB->mbAddrB, currMB)); in CheckAvailabilityOfNeighborsNormal() 115 currMB->mb_left = (currMB->mbAvailA) ? &(currSlice->mb_data[currMB->mbAddrA]) : NULL; in CheckAvailabilityOfNeighborsNormal() [all …]
|
H A D | macroblock.c | 179 currMB->qpc[i] = currMB->qpc[i] < 0 ? currMB->qpc[i] : QP_SCALE_CR[currMB->qpc[i]]; in set_chroma_qp() 193 currMB->qp = qp; in update_qp() 243 if ((currMB->b8pdir[0] == list || currMB->b8pdir[0] == BI_PRED)) in readMBRefPictureIdx() 278 refframe = currMB->readRefPictureIdx(currMB, currSE, dP, currMB->b8mode[k], list); in readMBRefPictureIdx() 303 if ((currMB->b8pdir[k] == list || currMB->b8pdir[k] == BI_PRED) && currMB->b8mode[k] != 0) in readMBRefPictureIdx() 306 refframe = currMB->readRefPictureIdx(currMB, currSE, dP, currMB->b8mode[k], list); in readMBRefPictureIdx() 333 if ((currMB->b8pdir[k] == list || currMB->b8pdir[k] == BI_PRED) && currMB->b8mode[k] != 0) in readMBRefPictureIdx() 336 refframe = currMB->readRefPictureIdx(currMB, currSE, dP, currMB->b8mode[k], list); in readMBRefPictureIdx() 565 (*currMB)->mb.y += ((*currMB)->mb.x & 0x01); in start_macroblock() 878 currMB->p_Slice->siblock[currMB->mb.y][currMB->mb.x]=1; in interpret_mb_mode_SI() [all …]
|
H A D | mb_read.c | 760 currMB->mb_field = currMB->mbAvailB ? p_Vid->mb_data[currMB->mbAddrB].mb_field : FALSE; in field_flag_inference() 1180 …currMB->block_y_aff = ((currSlice->mb_aff_frame_flag) && (currMB->mb_field)) ? (mb_nr&0x01) ? (cur… in read_one_macroblock_i_slice_cavlc() 1263 …currMB->block_y_aff = ((currSlice->mb_aff_frame_flag) && (currMB->mb_field)) ? (mb_nr&0x01) ? (cur… in read_one_macroblock_i_slice_cabac() 1391 currMB->block_y_aff = currMB->block_y; in read_one_macroblock_p_slice_cavlc() 1494 …currMB->block_y_aff = (currMB->mb_field) ? (mb_nr&0x01) ? (currMB->block_y - 4)>>1 : currMB->block… in read_one_macroblock_p_slice_cavlc() 1596 currMB->block_y_aff = currMB->block_y; in read_one_macroblock_p_slice_cabac() 1683 …currMB->block_y_aff = (currMB->mb_field) ? (mb_nr&0x01) ? (currMB->block_y - 4)>>1 : currMB->block… in read_one_macroblock_p_slice_cabac() 1793 currMB->block_y_aff = currMB->block_y; in read_one_macroblock_b_slice_cavlc() 1890 …currMB->block_y_aff = (currMB->mb_field) ? (mb_nr&0x01) ? (currMB->block_y - 4)>>1 : currMB->block… in read_one_macroblock_b_slice_cavlc() 2020 currMB->block_y_aff = currMB->block_y; in read_one_macroblock_b_slice_cabac() [all …]
|
H A D | read_comp_cabac.c | 555 currSE.type = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CABAC_420() 563 … currSE.mapping = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CABAC_420() 581 && currMB->mb_type != I8MB && currMB->mb_type != I4MB in read_CBP_and_coeffs_from_NAL_CABAC_420() 963 currSE.type = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CABAC_400() 971 … currSE.mapping = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CABAC_400() 990 && currMB->mb_type != I8MB && currMB->mb_type != I4MB in read_CBP_and_coeffs_from_NAL_CABAC_400() 1180 currSE.type = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CABAC_444() 1188 … currSE.mapping = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CABAC_444() 1207 && currMB->mb_type != I8MB && currMB->mb_type != I4MB in read_CBP_and_coeffs_from_NAL_CABAC_444() 1497 currSE.type = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CABAC_422() [all …]
|
H A D | read_comp_cavlc.c | 1068 currSE.type = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CAVLC_400() 1074 … currSE.mapping = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CAVLC_400() 1088 && currMB->mb_type != I8MB && currMB->mb_type != I4MB in read_CBP_and_coeffs_from_NAL_CAVLC_400() 1252 currSE.type = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CAVLC_422() 1258 … currSE.mapping = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CAVLC_422() 1272 && currMB->mb_type != I8MB && currMB->mb_type != I4MB in read_CBP_and_coeffs_from_NAL_CAVLC_422() 1595 currSE.type = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CAVLC_444() 1601 … currSE.mapping = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CAVLC_444() 1615 && currMB->mb_type != I8MB && currMB->mb_type != I4MB in read_CBP_and_coeffs_from_NAL_CAVLC_444() 1836 currSE.type = (currMB->mb_type == I4MB || currMB->mb_type == SI4MB || currMB->mb_type == I8MB) in read_CBP_and_coeffs_from_NAL_CAVLC_420() [all …]
|
H A D | mb_prediction.c | 72 currMB->itrans_4x4 (currMB, curr_plane, ioff, joff); in mb_pred_intra4x4() 84 if (currMB->cbp != 0) in mb_pred_intra4x4() 94 currMB->p_Slice->intra_pred_16x16(currMB, curr_plane, currMB->i16mode); in mb_pred_intra16x16() 95 currMB->ipmode_DPCM = (char) currMB->i16mode; //For residual DPCM in mb_pred_intra16x16() 139 if (currMB->cbp != 0) in mb_pred_intra8x8() 292 if (currMB->cbp != 0) in mb_pred_p_inter8x8() 306 if (currMB->cbp != 0) in mb_pred_p_inter16x16() 322 if (currMB->cbp != 0) in mb_pred_p_inter16x8() 338 if (currMB->cbp != 0) in mb_pred_p_inter8x16() 543 if (currMB->cbp == 0) in mb_pred_b_d8x8temporal() [all …]
|
H A D | cabac.c | 57 currMB->mb_up = NULL; in CheckAvailabilityOfNeighborsCABAC() 147 int a = currMB->mbAvailA ? currSlice->mb_data[currMB->mbAddrA].mb_field : 0; in readFieldModeInfo_CABAC() 148 int b = currMB->mbAvailB ? currSlice->mb_data[currMB->mbAddrB].mb_field : 0; in readFieldModeInfo_CABAC() 177 Macroblock *currMB; in check_next_mb_and_get_field_mode_CABAC_p_slice() local 188 …currMB->list_offset = ((currSlice->mb_aff_frame_flag)&&(currMB->mb_field))? (currMB->mbAddrX&0x01)… in check_next_mb_and_get_field_mode_CABAC_p_slice() 262 Macroblock *currMB; in check_next_mb_and_get_field_mode_CABAC_b_slice() local 273 …currMB->list_offset = ((currSlice->mb_aff_frame_flag)&&(currMB->mb_field))? (currMB->mbAddrX & 0x0… in check_next_mb_and_get_field_mode_CABAC_b_slice() 592 int a = (currMB->mb_left != NULL) ? (currMB->mb_left->skip_flag == 0) : 0; in read_skip_flag_CABAC_p_slice() 593 int b = (currMB->mb_up != NULL) ? (currMB->mb_up ->skip_flag == 0) : 0; in read_skip_flag_CABAC_p_slice() 1089 …get4x4Neighbour(currMB, currMB->subblock_x - 1, currMB->subblock_y , p_Vid->mb_size[IS_LUMA], &… in readRefFrame_CABAC() [all …]
|
/dports/multimedia/jmref/JM/lencod/src/ |
H A D | md_low.c | 437 currMB->mb_type = currMB->ar_mode = I8MB; in encode_one_macroblock_low() 492 currMB->mb_type = currMB->ar_mode = I4MB; in encode_one_macroblock_low() 534 currMB->cbp = currMB->residual_transform_quant_luma_16x16 (currMB, PLANE_Y); in encode_one_macroblock_low() 596 if ((currMB->best_mode!=I4MB)&&(currMB->best_mode != I8MB)) in encode_one_macroblock_low() 601 currMB->ar_mode = currMB->best_mode; in encode_one_macroblock_low() 616 if((currMB->cbp==0)&&(currMB->best_mode == 0)) in encode_one_macroblock_low() 627 if (((currMB->cbp&15) == 0) && currMB->mb_type != I4MB && currMB->mb_type != I8MB) in encode_one_macroblock_low() 641 currMB->i16offset = I16Offset (currMB->cbp, currMB->i16mode); in encode_one_macroblock_low() 654 …currMB->mb_type = currMB->b8x8[0].mode = currMB->b8x8[1].mode = currMB->b8x8[2].mode = currMB->b8x… in encode_one_macroblock_low() 663 …currMB->mb_type = currMB->b8x8[0].mode = currMB->b8x8[1].mode = currMB->b8x8[2].mode = currMB->b8x… in encode_one_macroblock_low() [all …]
|
H A D | mb_access.c | 66 …currMB->mbAvailA = (byte) (mb_is_available(currMB->mbAddrA, currMB) && ((PicPos[cur_mb_pair ].x… in CheckAvailabilityOfNeighbors() 67 currMB->mbAvailB = (byte) (mb_is_available(currMB->mbAddrB, currMB)); in CheckAvailabilityOfNeighbors() 68 …currMB->mbAvailC = (byte) (mb_is_available(currMB->mbAddrC, currMB) && ((PicPos[cur_mb_pair + 1].x… in CheckAvailabilityOfNeighbors() 69 …currMB->mbAvailD = (byte) (mb_is_available(currMB->mbAddrD, currMB) && ((PicPos[cur_mb_pair ].x… in CheckAvailabilityOfNeighbors() 78 …currMB->mbAvailA = (byte) (mb_is_available(currMB->mbAddrA, currMB) && ((PicPos[mb_nr ].x)!=0)); in CheckAvailabilityOfNeighbors() 79 currMB->mbAvailB = (byte) (mb_is_available(currMB->mbAddrB, currMB)); in CheckAvailabilityOfNeighbors() 80 …currMB->mbAvailC = (byte) (mb_is_available(currMB->mbAddrC, currMB) && ((PicPos[mb_nr + 1].x)!=0)); in CheckAvailabilityOfNeighbors() 81 …currMB->mbAvailD = (byte) (mb_is_available(currMB->mbAddrD, currMB) && ((PicPos[mb_nr ].x)!=0)); in CheckAvailabilityOfNeighbors() 84 if (currMB->mbAvailA) currMB->mb_left = &(p_Vid->mb_data[currMB->mbAddrA]); in CheckAvailabilityOfNeighbors() 85 if (currMB->mbAvailB) currMB->mb_up = &(p_Vid->mb_data[currMB->mbAddrB]); in CheckAvailabilityOfNeighbors() [all …]
|
H A D | md_highfast.c | 65 …SBE += iabs(p_Vid->pCurImg[currMB->opix_y][currMB->pix_x + i] - p_Vid->enc_picture->imgY[currMB->p… in fast_mode_intra_decision() 66 …SBE += iabs(p_Vid->pCurImg[currMB->opix_y + i][currMB->pix_x] - p_Vid->enc_picture->imgY[currMB->p… in fast_mode_intra_decision() 71 …E += iabs(p_Vid->pImgOrg[1][currMB->opix_c_y][currMB->pix_c_x + i] - p_Vid->enc_picture->imgUV[0][… in fast_mode_intra_decision() 72 …BE += iabs(p_Vid->pImgOrg[1][currMB->opix_c_y+i][currMB->pix_c_x] - p_Vid->enc_picture->imgUV[0][c… in fast_mode_intra_decision() 73 …E += iabs(p_Vid->pImgOrg[2][currMB->opix_c_y][currMB->pix_c_x + i] - p_Vid->enc_picture->imgUV[1][… in fast_mode_intra_decision() 74 …BE += iabs(p_Vid->pImgOrg[2][currMB->opix_c_y+i][currMB->pix_c_x] - p_Vid->enc_picture->imgUV[1][c… in fast_mode_intra_decision() 166 currMB->best_mode = 0; in encode_one_macroblock_highfast() 254 if ( currMB->cbp==0 && motion[currMB->block_y][currMB->block_x].ref_idx[LIST_0]==0 && in encode_one_macroblock_highfast() 355 …for (currMB->c_ipred_mode = chroma_pred_mode_range[0]; currMB->c_ipred_mode<=chroma_pred_mode_rang… in encode_one_macroblock_highfast() 409 …for (currMB->c_ipred_mode=chroma_pred_mode_range[0]; currMB->c_ipred_mode<=chroma_pred_mode_range[… in encode_one_macroblock_highfast() [all …]
|
H A D | macroblock.c | 83 p_Vid->get_mb_block_pos(p_Vid->PicPos, currMB->mbAddrX, &currMB->mb_x, &currMB->mb_y); in set_MB_parameters() 85 currMB->block_x = currMB->mb_x << 2; in set_MB_parameters() 86 currMB->block_y = currMB->mb_y << 2; in set_MB_parameters() 88 currMB->pix_x = currMB->block_x << 2; in set_MB_parameters() 89 currMB->pix_y = currMB->block_y << 2; in set_MB_parameters() 126 currMB->opix_y = currMB->block_y << 2; in set_MB_parameters() 132 currMB->opix_y = currMB->block_y << 2; in set_MB_parameters() 212 else if (currMB->mb_type >= 0 && currMB->mb_type <=3 && ((currMB->cbp&15) != 0)) in next_macroblock() 231 currMB->qpc[i] = (short) (currMB->qpc[i] < 0 ? currMB->qpc[i] : QP_SCALE_CR[currMB->qpc[i]]); in set_chroma_qp() 416 (*currMB)->prev_dqp = (*currMB)->prev_qp - (*currMB)->PrevMB->prev_qp; in start_macroblock() [all …]
|
H A D | md_high_updated.c | 243 …for (currMB->c_ipred_mode = chroma_pred_mode_range[0]; currMB->c_ipred_mode<=chroma_pred_mode_rang… in encode_one_macroblock_high_updated() 266 currMB->i16mode = 0; in encode_one_macroblock_high_updated() 288 if( !(currMB->best_mode == 1 && currMB->cbp==0 && in encode_one_macroblock_high_updated() 289 motion[currMB->block_y][currMB->block_x].ref_idx[LIST_0] == 0 && in encode_one_macroblock_high_updated() 298 motion[currMB->block_y][currMB->block_x].ref_idx[LIST_0] == 0 && in encode_one_macroblock_high_updated() 307 motion[currMB->block_y][currMB->block_x].ref_idx[LIST_0] == 0 && in encode_one_macroblock_high_updated() 321 if ( !(currMB->cbp == 0 || (currMB->best_mode == 1 && in encode_one_macroblock_high_updated() 349 …if (currMB->best_mode <=3 && currMB->best_cbp == 0 && (currMB->min_rdcost < weighted_cost(enc_mb.l… in encode_one_macroblock_high_updated() 368 restore_nz_coeff(currMB); in encode_one_macroblock_high_updated() 370 intra1 = is_intra(currMB); in encode_one_macroblock_high_updated() [all …]
|
H A D | md_common.c | 193 l0_ref = mv_info[currMB->block_y][currMB->block_x].ref_idx[LIST_0]; in SetMotionVectorsMBPSlice() 198 l0_ref = mv_info[currMB->block_y][currMB->block_x].ref_idx[LIST_0]; in SetMotionVectorsMBPSlice() 201 l0_ref = mv_info[currMB->block_y + 2][currMB->block_x].ref_idx[LIST_0]; in SetMotionVectorsMBPSlice() 206 l0_ref = mv_info[currMB->block_y][currMB->block_x].ref_idx[LIST_0]; in SetMotionVectorsMBPSlice() 209 l0_ref = mv_info[currMB->block_y][currMB->block_x + 2].ref_idx[LIST_0]; in SetMotionVectorsMBPSlice() 248 l0_ref = motion[currMB->block_y + pos][currMB->block_x].ref_idx[LIST_0]; in SetMVBSlice16x8() 255 l1_ref = motion[currMB->block_y + pos][currMB->block_x].ref_idx[LIST_1]; in SetMVBSlice16x8() 407 l0_ref = motion[currMB->block_y][currMB->block_x].ref_idx[LIST_0]; in SetMotionVectorsMBBSlice() 413 l1_ref = motion[currMB->block_y][currMB->block_x].ref_idx[LIST_1]; in SetMotionVectorsMBBSlice() 421 l0_ref = motion[currMB->block_y][currMB->block_x].ref_idx[LIST_0]; in SetMotionVectorsMBBSlice() [all …]
|
H A D | rdopt.c | 1906 currMB->i16offset = I16Offset (currMB->cbp, currMB->i16mode); in RDCost_for_macroblocks() 2066 currMB->best_i16offset = currMB->i16offset; in store_macroblock_parameters() 2067 currMB->best_i16mode = currMB->i16mode; in store_macroblock_parameters() 2068 currMB->best_cbp = currMB->cbp; in store_macroblock_parameters() 2410 currMB->c_ipred_mode = currMB->best_c_imode; in set_stored_macroblock_parameters_mpass() 2413 currMB->cbp = currMB->best_cbp; in set_stored_macroblock_parameters_mpass() 2628 currMB->cbp = currMB->best_cbp; in set_stored_macroblock_parameters() 2848 currMB->cbp = currMB->best_cbp; in set_stored_macroblock_parameters_sp() 3871 currMB->qp = currMB->prev_qp; in update_qp_cbp_tmp() 3872 currMB->p_Vid->qp = currMB->qp; in update_qp_cbp_tmp() [all …]
|
H A D | errdo_dist_mhyp.c | 86 …(&p_Vid->pCurImg[currMB->opix_y + pay], &p_Vid->enc_picture->de_mem->p_dec_img[0][k][currMB->opix_… in errdo_distortion_estimation_multihyp() 106 …SE16x16(&p_Vid->pImgOrg[0][currMB->opix_y], &p_Vid->enc_picture->de_mem->p_dec_img[0][k][currMB->p… in errdo_distortion_estimation_multihyp() 130 …pute_SSE_cr(&p_Vid->pImgOrg[1][currMB->opix_c_y], &p_Vid->enc_picture->imgUV[0][currMB->pix_c_y], … in errdo_distortion_estimation_multihyp() 138 …SE16x16(&p_Vid->pImgOrg[0][currMB->opix_y], &p_Vid->enc_picture->de_mem->p_dec_img[0][k][currMB->p… in errdo_distortion_estimation_multihyp() 303 i0 = currMB->pix_x; in decode_one_mb() 604 Macroblock* currMB; in copy_conceal_picture() local 616 mb_error = mb_error_map[currMB->mb_y][currMB->mb_x]; in copy_conceal_picture() 619 currMB->block_x = currMB ->mb_x << 2; in copy_conceal_picture() 620 currMB->block_y = currMB->mb_y << 2; in copy_conceal_picture() 621 currMB->pix_x = currMB->block_x << 2; in copy_conceal_picture() [all …]
|
H A D | md_highloss.c | 40 Slice *currSlice = currMB->p_Slice; in encode_one_macroblock_highloss() 193 currMB->valid_8x8 = FALSE; in encode_one_macroblock_highloss() 206 if(!currMB->valid_8x8) in encode_one_macroblock_highloss() 212 currMB->valid_4x4 = FALSE; in encode_one_macroblock_highloss() 224 if(!currMB->valid_4x4) in encode_one_macroblock_highloss() 247 …for (currMB->c_ipred_mode = chroma_pred_mode_range[0]; currMB->c_ipred_mode<=chroma_pred_mode_rang… in encode_one_macroblock_highloss() 265 currMB->i16mode = 0; in encode_one_macroblock_highloss() 281 …if (currMB->best_mode <=3 && currMB->best_cbp == 0 && (currMB->min_rdcost < weighted_cost(enc_mb.l… in encode_one_macroblock_highloss() 298 restore_nz_coeff(currMB); in encode_one_macroblock_highloss() 301 intra1 = is_intra(currMB); in encode_one_macroblock_highloss() [all …]
|
H A D | md_high.c | 40 Slice *currSlice = currMB->p_Slice; in encode_one_macroblock_high() 186 currMB->valid_8x8 = FALSE; in encode_one_macroblock_high() 199 if(!currMB->valid_8x8) in encode_one_macroblock_high() 206 currMB->valid_4x4 = FALSE; in encode_one_macroblock_high() 218 if(!currMB->valid_4x4) in encode_one_macroblock_high() 241 …for (currMB->c_ipred_mode = chroma_pred_mode_range[0]; currMB->c_ipred_mode<=chroma_pred_mode_rang… in encode_one_macroblock_high() 261 currMB->i16mode = 0; in encode_one_macroblock_high() 277 …if (currMB->best_mode <=3 && currMB->best_cbp == 0 && (currMB->min_rdcost < weighted_cost(enc_mb.l… in encode_one_macroblock_high() 296 restore_nz_coeff(currMB); in encode_one_macroblock_high() 298 intra1 = is_intra(currMB); in encode_one_macroblock_high() [all …]
|
H A D | rd_intra_jm.c | 363 currMB->cr_cbp[0] = 0; in Mode_Decision_for_IntraSubMBlocks() 364 currMB->cr_cbp[1] = 0; in Mode_Decision_for_IntraSubMBlocks() 365 currMB->cr_cbp[2] = 0; in Mode_Decision_for_IntraSubMBlocks() 436 return currMB->residual_transform_quant_luma_16x16 (currMB, PLANE_Y); in mode_decision_for_I16x16_MB() 469 currMB->mb_type = I16MB; in mode_decision_for_I16x16_MB_RDO() 490 currMB->cbp = currMB->residual_transform_quant_luma_16x16(currMB, PLANE_Y); in mode_decision_for_I16x16_MB_RDO() 491 …e_SSE16x16_thres(&p_Vid->pCurImg[currMB->opix_y], &p_Vid->enc_picture->p_curr_img[currMB->pix_y], … in mode_decision_for_I16x16_MB_RDO() 496 currMB->i16offset = I16Offset (currMB->cbp, currMB->i16mode); in mode_decision_for_I16x16_MB_RDO() 540 currMB->cbp = best_cbp; in mode_decision_for_I16x16_MB_RDO() 541 currMB->i16offset = I16Offset (currMB->cbp, currMB->i16mode); in mode_decision_for_I16x16_MB_RDO() [all …]
|
H A D | macroblock_P444.c | 39 int *cbp = &(currMB->cbp); in luma_residual_coding_p444_16x16() 40 int64 *cbp_blk = &(currMB->cbp_blk); in luma_residual_coding_p444_16x16() 41 Slice *currSlice = currMB->p_Slice; in luma_residual_coding_p444_16x16() 42 VideoParameters *p_Vid = currMB->p_Vid; in luma_residual_coding_p444_16x16() 124 … nonzero = currMB->residual_transform_quant_luma_8x8 (currMB, PLANE_Y, block8x8, &coeff_cost, 0); in luma_residual_coding_p444_16x16() 206 Slice *currSlice = currMB->p_Slice; in luma_residual_coding_p444_8x8() 392 currMB->cbp = 0; in luma_residual_coding_p444() 393 currMB->cbp_blk = 0; in luma_residual_coding_p444() 415 …sum_cnt_nonz[0] += luma_residual_coding_p444_8x8 (currMB, &(currMB->cbp), &(currMB->cbp_blk), bloc… in luma_residual_coding_p444() 430 currMB->cbp &= 0xfffff0 ; in luma_residual_coding_p444() [all …]
|
H A D | mode_decision.c | 73 update_qp_cbp(currMB); in end_encode_one_macroblock() 79 && !(field_flag_inference(currMB) == currMB->mb_field)) // top is skip in end_encode_one_macroblock() 91 UMHEX_skip_intrabk_SAD(currMB, currSlice->listXsize[currMB->list_offset]); in end_encode_one_macroblock() 101 p_Vid->intra_block[currMB->mbAddrX] = is_intra(currMB); in end_encode_one_macroblock() 156 if(check_for_SI16(p_Vid->lrec, currMB->pix_x, currMB->pix_y)) in init_enc_mb_params() 168 if(check_for_SI16(p_Vid->lrec, currMB->pix_x, currMB->pix_y)) in init_enc_mb_params() 218 for (l = currMB->list_offset; l <= currMB->list_offset + LIST_1; l++) in init_enc_mb_params() 232 for (l = currMB->list_offset; l <= currMB->list_offset + LIST_1; l++) in init_enc_mb_params() 282 int cur_list = list < BI_PRED ? currMB->list_offset + list : currMB->list_offset; in list_prediction_cost() 547 if (currMB->mb_left && currMB->mb_up) in get_initial_mb16x16_cost() [all …]
|
H A D | mode_decision_P8x8.c | 49 Slice *currSlice = currMB->p_Slice; in submacroblock_mode_decision_p_slice() 85 currMB->valid_8x8 = FALSE; in submacroblock_mode_decision_p_slice() 87 currMB->valid_4x4 = FALSE; in submacroblock_mode_decision_p_slice() 113 currMB->valid_8x8 = TRUE; in submacroblock_mode_decision_p_slice() 116 currMB->valid_4x4 = TRUE; in submacroblock_mode_decision_p_slice() 387 currMB->valid_8x8 = FALSE; in submacroblock_mode_decision_b_slice() 389 currMB->valid_4x4 = FALSE; in submacroblock_mode_decision_b_slice() 415 currMB->valid_8x8 = TRUE; in submacroblock_mode_decision_b_slice() 727 currMB->valid_8x8 = FALSE; in submacroblock_mode_decision_low() 729 currMB->valid_4x4 = FALSE; in submacroblock_mode_decision_low() [all …]
|
H A D | rdoq.c | 50 Slice *currSlice = currMB->p_Slice; in init_trellis_data_DC_cr_CAVLC() 230 void trellis_mp(Macroblock *currMB) in trellis_mp() argument 270 qp_left = (currMB->mb_left) ? currMB->mb_left->qp : p_Vid->masterQP; in trellis_mp() 271 qp_up = (currMB->mb_up) ? currMB->mb_up->qp : p_Vid->masterQP; in trellis_mp() 302 reset_macroblock(currMB); in trellis_mp() 304 update_qp (currMB); in trellis_mp() 329 reset_macroblock(currMB); in trellis_mp() 333 write_macroblock (currMB, 1); in trellis_mp() 375 trellis_mp(currMB); in trellis_coding() 379 trellis_sp(currMB); in trellis_coding() [all …]
|
H A D | rd_intra_jm_low.c | 41 VideoParameters *p_Vid = currMB->p_Vid; in mode_decision_for_I4x4_blocks_JM_Low() 42 InputParameters *p_Inp = currMB->p_Inp; in mode_decision_for_I4x4_blocks_JM_Low() 43 Slice *currSlice = currMB->p_Slice; in mode_decision_for_I4x4_blocks_JM_Low() 145 select_transform(currMB); in mode_decision_for_I4x4_blocks_JM_Low() 147 if (currMB->mb_type == I4MB) in mode_decision_for_I4x4_blocks_JM_Low() 148 …nonzero = currMB->cr_cbp[0] = residual_transform_quant_luma_4x4 (currMB, PLANE_Y, block_x, block_y… in mode_decision_for_I4x4_blocks_JM_Low() 150 …nonzero = currMB->cr_cbp[0] = currMB->residual_transform_quant_luma_4x4 (currMB, PLANE_Y, block_x,… in mode_decision_for_I4x4_blocks_JM_Low() 164 VideoParameters *p_Vid = currMB->p_Vid; in mode_decision_for_I8x8_blocks_JM_Low() 165 InputParameters *p_Inp = currMB->p_Inp; in mode_decision_for_I8x8_blocks_JM_Low() 166 Slice *currSlice = currMB->p_Slice; in mode_decision_for_I8x8_blocks_JM_Low() [all …]
|
H A D | rd_intra_jm444.c | 44 Slice *currSlice = currMB->p_Slice; in mode_decision_for_I4x4_blocks_JM_High444() 149 currMB->cbp_bits[0] = cbp_bits; in mode_decision_for_I4x4_blocks_JM_High444() 178 currMB->cr_cbp[uv + 1] = currMB->c_nzCbCr[uv + 1]; in mode_decision_for_I4x4_blocks_JM_High444() 234 …currMB->cr_cbp[k] = currMB->residual_transform_quant_luma_4x4(currMB, k, block_x,block_y,&dummy,1); in mode_decision_for_I4x4_blocks_JM_High444() 405 select_transform(currMB); in mode_decision_for_I4x4_blocks_JM_Low444() 406 …nonzero = currMB->cr_cbp[0] = currMB->residual_transform_quant_luma_4x4 (currMB, PLANE_Y, block_x,… in mode_decision_for_I4x4_blocks_JM_Low444() 426 …currMB->cr_cbp[k] = currMB->residual_transform_quant_luma_4x4 (currMB, k, block_x, block_y, &dummy… in mode_decision_for_I4x4_blocks_JM_Low444() 448 cbp = currMB->residual_transform_quant_luma_16x16 (currMB, PLANE_Y); in mode_decision_for_I16x16_MB_444() 454 cbp = currMB->residual_transform_quant_luma_16x16 (currMB, PLANE_Y); in mode_decision_for_I16x16_MB_444() 456 currSlice->cmp_cbp[1] = currMB->residual_transform_quant_luma_16x16 (currMB, PLANE_U); in mode_decision_for_I16x16_MB_444() [all …]
|
/dports/multimedia/jmref/JM/lencod/inc/ |
H A D | macroblock.h | 70 extern void next_macroblock (Macroblock* currMB); 72 extern void reset_macroblock (Macroblock *currMB); 74 extern void write_macroblock (Macroblock* currMB, int eos_bit); 98 extern int writeMotionInfo2NAL (Macroblock* currMB); 99 extern int write_p_slice_motion_info_to_NAL (Macroblock* currMB); 100 extern int write_b_slice_motion_info_to_NAL (Macroblock* currMB); 101 extern int write_p_slice_motion_info_to_NAL (Macroblock* currMB); 106 extern int writeCoeff8x8_CABAC (Macroblock* currMB, ColorPlane, int, int); 108 extern int writeCoeff16x16_CABAC (Macroblock* currMB, ColorPlane); 109 extern int writeCoeff16x16_CAVLC (Macroblock* currMB, ColorPlane); [all …]
|