Re: [Libva] [PATCH 13/14] scaling matrix of h264 encoder on gen8/gen9

2016-07-07 Thread Qu, Pengfei
it is good to change the title to gen7/gen7.5/gen8/gen9. And it is better to keep the same changes for each platform. Thanks, Pengfei -Original Message- From: Zhao, Yakui Sent: Wednesday, July 6, 2016 4:41 PM To: Qu, Pengfei Cc: libva@lists.freedesktop.org; Meng, Jia Subject: Re: [Lib

[Libva] [PATCH 01/13] Encoding: mbmv cost table related changes for ROI

2016-07-07 Thread Pengfei Qu
From: Zhao Yakui v2: merge three mbmv cost table related patches together. Encoding:Abstract the calculation of mbmv cost for qp as one function. Encoding:Add one function that initialize mbmv cost table for supported Qp range. Encoding:Setup one cost_table surface state for VME shader According

[Libva] [PATCH 03/13] encoding: Send VME instruction uses one register as the desc parameter instead of hardcode

2016-07-07 Thread Pengfei Qu
From: Zhao Yakui The desc parameter of current VME send instruction is hardcode. And it can't be updated based on the input parameter. Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-off-by: Pengfei Qu --- src/shaders/vme/inter_bframe_ivb.asm | 17 +++-- src/shaders/vme/inter

[Libva] [PATCH 00/13] Add ROI feature on Gen7/Gen7.5/Gen8/Gen9 and scaling list features.

2016-07-07 Thread Pengfei Qu
this add ROI feature on Gen7/Gen7.5/Gen8/Gen9 and scaling list features. Jia Meng (3): Adjust the maximum number of motion vectors for B frame on HSW+ scaling matrix of h264 encoder on gen8/gen9 QP difference configuration for adjacent IP and PB frames Pengfei Qu (2): ROI:enable on gen8

[Libva] [PATCH 05/13] Encoding: Dynamically select one mechanism to construct encoding command buffer for each frame on Haswell and Gen7/Gen6

2016-07-07 Thread Pengfei Qu
From: Zhao Yakui v1: combine the Haswell and Gen7/6 patch together Currently it uses the fixed policy to construct encoding command buffer. (Use CPU or GPU). And it is statically compiled. But sometimes it needs to choose the different mechanism on the fly instead of statically compiled mode. S

[Libva] [PATCH 07/13] encoding:use the qp per every macroblock on Ivy and haswell

2016-07-07 Thread Pengfei Qu
From: Zhao Yakui v1: combine the patch together for Ivy and haswell use-CPU-to-construct-the-MFC-pak-command Signed-off-by: Zhao Yakui Signed-off-by: ceciliapeng Signed-off-by: Pengfei Qu --- src/gen6_mfc.c| 15 --- src/gen6_mfc_common.c | 20 +--- src/gen

[Libva] [PATCH 09/13] ROI:enable on gen8 and gen9

2016-07-07 Thread Pengfei Qu
v1: ROI enable on gen8 and gen9 Enable GPU to construct GPU command under ROI scenario fix roi attrib config incorrectly Signed-off-by: Zhao Yakui Signed-off-by: Pengfei Qu --- src/gen6_mfc_common.c| 20 ++-- src/gen8_mfc.c | 55 +++--- src/gen8_vme.c

[Libva] [PATCH 04/13] Encoding: Pass the qp parameter into VME shader and VME shader select the different cost table based on input Qp on Ivy

2016-07-07 Thread Pengfei Qu
From: Zhao Yakui In order to suppor that macroblocks have the different QP to do the motion prediction, different cost tables are provided so that the VME engine can select the different mode/motion-vector cost tables based on the input Qp. Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-o

[Libva] [PATCH 02/13] Encoding: VME shader reads mbmv_cost from cost_table surface instead of constant buffer on Haswell

2016-07-07 Thread Pengfei Qu
From: Zhao Yakui This is to do the prepartion of enhanced features. Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-off-by: Pengfei Qu --- src/shaders/vme/inter_bframe_haswell.asm | 24 +++- src/shaders/vme/inter_bframe_haswell.g75b | 23 ++- src/

[Libva] [PATCH 06/13] Encoding: Add one ROI flag and ROI buffer

2016-07-07 Thread Pengfei Qu
From: Zhao Yakui v1: Add one flag to indicate whether ROI is supported in one encode context Allocate one ROI buffer to hold qp per mb dynamically Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-off-by: Pengfei Qu --- src/gen6_mfc_common.c | 74 +++

[Libva] [PATCH 08/13] Encoding: ROI support for CQP/CBR on Haswell/Ivy

2016-07-07 Thread Pengfei Qu
From: Zhao Yakui v1: merge 3 ROI patches together Encoding: Add the support of ROI under CQP on Haswell/Ivybridge Encoding: Add the support of ROI for CBR Currently it will allocate the different qp for the ROI and non_ROI region based on the ROI ratio. The qp delta is relate

[Libva] [PATCH 11/13] Adjust the maximum number of motion vectors for B frame on HSW+

2016-07-07 Thread Pengfei Qu
From: Jia Meng Signed-off-by: Jia Meng Signed-off-by: Pengfei Qu --- src/gen75_vme.c | 13 +++-- src/gen8_vme.c | 15 --- src/gen9_vme.c | 17 + 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/src/gen75_vme.c b/src/gen75_vme.c index 174a64

[Libva] [PATCH 13/13] QP difference configuration for adjacent IP and PB frames

2016-07-07 Thread Pengfei Qu
From: Jia Meng v1: use max_qp_delta_ip/pb from va Signed-off-by: Jia Meng Signed-off-by: Pengfei Qu --- src/gen6_mfc.h| 4 src/gen6_mfc_common.c | 41 + 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/src/gen6_mfc.h b/src/

[Libva] [PATCH 12/13] scaling matrix of h264 encoder on gen7/gen7.5/gen8/gen9

2016-07-07 Thread Pengfei Qu
From: Jia Meng v1: change the title according to yakui's comments. qm is in raster scan order per va api, and fqm is in column wise raster scan order per hardware requirement. Signed-off-by: Jia Meng Signed-off-by: Pengfei Qu --- src/gen6_mfc.c | 12 -- src/gen6_mfc.h | 2 + src/gen