rlancelot_xjb
7th July 2005, 14:13
recently I am studying on the x264_rev270 source code,but come across many problems.The most confusing one is what the principle when decide which mode will choose for the best one in function such as x264_rd_cost_mb() in file rdo.c and where do parameter i_qp0_cost_table,i_qp0_cost2_table come from?it seems that i_qp0_cost_table is same as jm's QP2QUANT[40]=
{
1, 1, 1, 1, 2, 2, 2, 2,
3, 3, 3, 4, 4, 4, 5, 6,
6, 7, 8, 9,10,11,13,14,
16,18,20,23,25,29,32,36,
40,45,51,57,64,72,81,91
};
but I can not understand how it works.the rdo method introduced in article "Rate-Constrained Coder Control and Comparison of Video Coding Standards"(by Thomas Wiegand)
gives equation lambda_mode=0.85*pow(2,(qp-12)/3) and lambda_motion=pow(lambda_mode,0.5),it is different from x264
are there any relationship between them?
thanks! :helpful:
{
1, 1, 1, 1, 2, 2, 2, 2,
3, 3, 3, 4, 4, 4, 5, 6,
6, 7, 8, 9,10,11,13,14,
16,18,20,23,25,29,32,36,
40,45,51,57,64,72,81,91
};
but I can not understand how it works.the rdo method introduced in article "Rate-Constrained Coder Control and Comparison of Video Coding Standards"(by Thomas Wiegand)
gives equation lambda_mode=0.85*pow(2,(qp-12)/3) and lambda_motion=pow(lambda_mode,0.5),it is different from x264
are there any relationship between them?
thanks! :helpful: