Presentation is loading. Please wait.

Presentation is loading. Please wait.

江振揚9862605. functions  x264_mb_encode_i4x4  x264_predict_loseless_4x4  idct_4x4_dc  dequant_4x4_dc.

Similar presentations


Presentation on theme: "江振揚9862605. functions  x264_mb_encode_i4x4  x264_predict_loseless_4x4  idct_4x4_dc  dequant_4x4_dc."— Presentation transcript:

1 江振揚9862605

2 functions  x264_mb_encode_i4x4  x264_predict_loseless_4x4  idct_4x4_dc  dequant_4x4_dc

3 Trace flow chart x264_macroblock_encode b_lossless predict_4x4 predict_lossless_4x4 mb_encode_i4x4 mb_encode_i16x16 idct4x4dc dequant_4x4_dc

4 predict_lossless_4x4 File:macroblock.c Targetpredict frame Inputx264_t *h int idx Int i_mode unit8_t *p_dst Outputvoid Callermb_analyse_intra intra_rd_refine macroblock_encode

5 predict_lossless_4x4

6 mb_encode_i4x4 File:macroblock.c Targetencoding Inputx264_t * h int idx Int i_qp Outputvoid Callermb_analyse_intra rd_cost_i4x4 macroblock_encode

7 mb_encode_i4x4 取得目前 idx 所指 block 的位址 sub_4x4 是個 function pointer 處理 zigzag scan 設定 cbp_luma 值 先將 idx 除 4 因為 cbp_luma bit 數有四個 計算 residual 與 dct transform Quantization 根據 nz 的值 來決定是否進行接下來動作

8 idct4x4dc File:dct.c Targetinverse Hadamard transform Inputint d[16] Outputvoid Callermb_encode_i16x16

9 idct4x4dc

10 dequant_4x4_dc File:quant.c Targetdequantization Inputint dct[16] int dequant_mf[6][16] int i_qp Outputvoid Callermb_encode_i16x16

11 dequent_4x4_dc W ’ D(i,j) = W QD(i,j) V 2 floor(QP/6)-6 (QP>=36) W ’ D(i,j) = [ W QD(i,j) V +2 5-floor(QP/6) ] >>(6-floor(QP/6)) (QP<36) 根據 qp 值 %6 當作 index 以及 dc 值所在 block 為第 0 個去查表 取得 scaling factor


Download ppt "江振揚9862605. functions  x264_mb_encode_i4x4  x264_predict_loseless_4x4  idct_4x4_dc  dequant_4x4_dc."

Similar presentations


Ads by Google