Re: [Libva] [PATCH intel-driver 8/8] vpp: enable advanced video scaling in VPP pipelines too.

2014-10-13 Thread Gwenole Beauchesne
2014-10-13 19:27 GMT+02:00 Gwenole Beauchesne : > Honour advanced video scaling. i.e. propagate vaPutSurface() scaling > flags, but also VPP filter flags. Also enable the sharp 8x8 filter for > high-quality scaling options, while adaptive video scaling is disabled > (bypassed) for now. > > Signed-o

Re: [Libva] [PATCH intel-driver 6/8] vpp: cache calculation of AVS coefficients.

2014-10-13 Thread Gwenole Beauchesne
2014-10-13 19:27 GMT+02:00 Gwenole Beauchesne : > If scaling parameters don't change, i.e. if the same scaling algorithm > and factors are used, there is no point in calculating the filter > coefficients again. So, just cache them into the existing AVS context. > > Signed-off-by: Gwenole Beauchesne

Re: [Libva] [PATCH intel-driver 4/8] vpp: add support for high-quality scaling.

2014-10-13 Thread Gwenole Beauchesne
2014-10-13 19:27 GMT+02:00 Gwenole Beauchesne : > Add support for high-quality scaling during video processing. This is > enabled with the VA_FILTER_SCALING_HQ filter flag. The algorithm used > for that is based on a Lanczos convolution kernel: 3 lobes on either > side for luma samples, and 2 lobes

[Libva] pvrsrvkm h264 decoding on cedarview

2014-10-13 Thread Sanchez, AdolfoX
Hello One of our customers is using the pvrsrvkm driver on an Intel Atom D2550, an the VAAPI driver, he is using hardware acceleration to decode h.264 high profile level 4 at 5Mbps, but the image is freezing. The customer is using VLC player with hardware decoding enabled, with a resolution of

[Libva] [PATCH intel-driver 0/8] Add support for high quality scaling

2014-10-13 Thread Gwenole Beauchesne
Hi, This patch series implements high-quality scaling for all generations back to Ironlake. HQ scaling works both through vaPutSurface() flags or through filter flags in a VPP pipeline. The convolution kernel used for VA_FILTER_SCALING_HQ is based on Lanczos: 3 lobes in either side for luma sampl

[Libva] [PATCH intel-driver 5/8] vpp: validate AVS filter coefficients for debugging purposes.

2014-10-13 Thread Gwenole Beauchesne
Make sure the newly calculated filter coefficients fall into the HW accepted range of values. This normally should not be an issue with the current configuration / scaling algorithms though. Signed-off-by: Gwenole Beauchesne --- src/gen8_post_processing.c | 15 +++ src/i965_post_proc

[Libva] [PATCH intel-driver 6/8] vpp: cache calculation of AVS coefficients.

2014-10-13 Thread Gwenole Beauchesne
If scaling parameters don't change, i.e. if the same scaling algorithm and factors are used, there is no point in calculating the filter coefficients again. So, just cache them into the existing AVS context. Signed-off-by: Gwenole Beauchesne --- src/gen8_post_processing.c | 13 ++--- src

[Libva] [PATCH intel-driver 8/8] vpp: enable advanced video scaling in VPP pipelines too.

2014-10-13 Thread Gwenole Beauchesne
Honour advanced video scaling. i.e. propagate vaPutSurface() scaling flags, but also VPP filter flags. Also enable the sharp 8x8 filter for high-quality scaling options, while adaptive video scaling is disabled (bypassed) for now. Signed-off-by: Gwenole Beauchesne --- src/gen75_vpp_vebox.c

[Libva] [PATCH intel-driver 7/8] vpp: drop internal postprocessing (PP_xxx) flags.

2014-10-13 Thread Gwenole Beauchesne
Exclusively use VA-API defined video processing flags, instead of yet redefining another set with limited use. This means that we can use scaling, colorspace and picture structure flags as is, without an extra layer of conversion. Drop I965_PP_FLAG_MCDI (motion compensated deinterlacing), which wa

[Libva] [PATCH intel-driver 1/8] vpp: fix adaptive filter for all channels flag (< Haswell).

2014-10-13 Thread Gwenole Beauchesne
The "Adaptive filter for all channels" bit for AVS on Ironlake up to including Ivybridge/Baytrail is not located on DW137, but rather in the first table of coefficients for chroma samples. Split the SAMPLER_STATE_8x8 message DW137 into parts relevant to HSW+ and the legacy platforms. Signed-off-b

[Libva] [PATCH intel-driver 2/8] vpp: fix AVS coefficients for Broadwell.

2014-10-13 Thread Gwenole Beauchesne
Fix AVS filter coefficients for Broadwell. At least, we now address the expected entry in the table but the actual value is still not viable enough. Signed-off-by: Gwenole Beauchesne --- src/gen8_post_processing.c | 83 ++ src/i965_structs.h |

[Libva] [PATCH intel-driver 4/8] vpp: add support for high-quality scaling.

2014-10-13 Thread Gwenole Beauchesne
Add support for high-quality scaling during video processing. This is enabled with the VA_FILTER_SCALING_HQ filter flag. The algorithm used for that is based on a Lanczos convolution kernel: 3 lobes on either side for luma samples, and 2 lobes on either side for chroma samples. Signed-off-by: Gwen