Re: [Libva] [ROI 2/2] Encoding: Add ROI example

2016-06-28 Thread Zhao Yakui
On 06/28/2016 07:03 PM, Pengfei Qu wrote: From: Zhao Yakui Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-off-by: ceciliapeng Signed-off-by: Pengfei Qu It will be better to add the ROI option. In such case this can determine whether the ROI is used and so on. Thanks Yakui --- te

Re: [Libva] Disabling sync on vblank

2016-06-28 Thread Yann Dirson
Yes, setting SwapbuffersWait off does the trick. Thanks! 2016-06-27 7:06 GMT+02:00 Ratin : > Shouldn't adding SwapbuffersWait parameter in /etc/X11/xorg.conf work? > > Section "Device" >Option "SwapbuffersWait" false >Identifier "Card0" >Driver "intel" >BusID "PCI:0:2:0

Re: [Libva] [PATCH 3/3] check memory alloc to avoid NULL and initialize value in YUV_blend_with_pic

2016-06-28 Thread Lim, Siew Hoon
Sorry. Please ignore this patch for code review. I will rework it and re-send again tomorrow. ...siewhoon > -Original Message- > From: Libva [mailto:libva-boun...@lists.freedesktop.org] On Behalf Of Lim > Siew Hoon > Sent: Monday, June 27, 2016 8:27 PM > To: libva@lists.freedesktop.org

[Libva] [PATCH 2/5] add assert check for potential NULL issue in test/encode/

2016-06-28 Thread Lim Siew Hoon
Signed-off-by: Lim Siew Hoon --- test/encode/avcenc.c| 2 ++ test/encode/h264encode.c| 2 ++ test/encode/jpegenc_utils.h | 2 ++ test/encode/mpeg2vaenc.c| 1 + 4 files changed, 7 insertions(+) diff --git a/test/encode/avcenc.c b/test/encode/avcenc.c index 74729fb..d5f2bd5 100644

[Libva] [PATCH 3/5] Fix buffer overflow for array index out of bounds in test_07

2016-06-28 Thread Lim Siew Hoon
The size of array surface_1 is 2, but it passed to test_unique_surfaces func is 16 or 6 to do compare for surface_16. The index for surface_1 not in the array index range for surface_1 and access invalid memory location. Signed-off-by: Lim Siew Hoon --- test/basic/test_07.c | 4 ++-- 1 file chan

[Libva] [PATCH 1/5] add assert to check for potential NULL issue in test_XX

2016-06-28 Thread Lim Siew Hoon
Signed-off-by: Lim Siew Hoon --- test/basic/test_05.c | 1 + test/basic/test_06.c | 1 + test/basic/test_09.c | 3 +++ test/basic/test_10.c | 1 + test/basic/test_11.c | 1 + 5 files changed, 7 insertions(+) diff --git a/test/basic/test_05.c b/test/basic/test_05.c index 233aa01..a05100d 100644 -

[Libva] [PATCH 5/5] Fix test_06 failed and hitting assert check

2016-06-28 Thread Lim Siew Hoon
Add in missing profile and entrypoint get from va.h Signed-off-by: Lim Siew Hoon --- test/basic/test_common.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/test/basic/test_common.c b/test/basic/test_common.c index 0486d99..fd4c26f 100644 --- a/test/basic/test_common.c +++ b/test/bas

[Libva] [PATCH 4/5] Fix size of array huffman_table to 2 instead 4.

2016-06-28 Thread Lim Siew Hoon
The size of array huffman_table only 2 in VAHuffmanTableBufferJPEGBaseline. The index in 2..3 in huffman_table[x] will be access invalid memory location. Signed-off-by: Lim Siew Hoon --- test/decode/tinyjpeg-internal.h | 2 +- test/decode/tinyjpeg.c | 2 +- 2 files changed, 2 insertions

[Libva] [ROI 2/2] Encoding: Add ROI example

2016-06-28 Thread Pengfei Qu
From: Zhao Yakui Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-off-by: ceciliapeng Signed-off-by: Pengfei Qu --- test/encode/avcenc.c | 75 +--- 1 file changed, 71 insertions(+), 4 deletions(-) diff --git a/test/encode/avcenc.c b/test/en

[Libva] [ROI 1/2] Subject: [PATCH] Add one flag to use the qp_delta instead of qp priority for ROI under non-CQP mode

2016-06-28 Thread Pengfei Qu
From: jialipen Currently the roi_value in VAEncROI is used as the qp priority when VAConfigAttribRateControl != VA_RC_CQP. But some customers hope to use it as qp_delta like CQP mode. In such case one flag is added to indicate whether it is qp_priority or not. At the same time driver can export i

[Libva] [ROI 0/2] Add ROI feature

2016-06-28 Thread Pengfei Qu
Thie patch add ROI feature. Zhao Yakui (1): Encoding: Add ROI example jialipen (1): Subject: [PATCH] Add one flag to use the qp_delta instead of qp priority for ROI under non-CQP mode test/encode/avcenc.c | 75 +--- va/va.h |