2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 21:24:00 +08:00
linux-next/drivers/media/platform/ti-vpe
Archit Taneja bbee8b3933 [media] v4l: ti-vpe: enable basic scaler support
Add the required SC register configurations which lets us perform linear scaling
for the supported range of horizontal and vertical scaling ratios.

The horizontal scaler performs polyphase scaling using it's 8 tap 32 phase
filter, decimation is performed when downscaling passes beyond 2x or 4x.

The vertical scaler performs polyphase scaling using it's 5 tap 32 phase filter,
it switches to a simpler form of scaling using the running average filter when
the downscale ratio is more than 4x.

Many of the SC features like peaking, trimming and non-linear scaling aren't
implemented for now. Only the minimal register fields required for basic scaling
operation are configured.

The function to configure SC registers takes the sc_data handle, the source and
destination widths and heights, and the scaler address data block offsets for
the current context so that they can be configured.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-01-07 06:55:35 -02:00
..
Makefile [media] v4l: ti-vpe: create a scaler block library 2014-01-07 06:53:21 -02:00
sc_coeff.h [media] v4l: ti-vpe: support loading of scaler coefficients 2014-01-07 06:54:48 -02:00
sc.c [media] v4l: ti-vpe: enable basic scaler support 2014-01-07 06:55:35 -02:00
sc.h [media] v4l: ti-vpe: enable basic scaler support 2014-01-07 06:55:35 -02:00
vpdma_priv.h [media] v4l: ti-vpe: Fix the data_type value for UYVY VPDMA format 2013-12-10 16:49:02 -02:00
vpdma.c [media] v4l: ti-vpe: make sure VPDMA line stride constraints are met 2013-12-10 16:49:48 -02:00
vpdma.h [media] v4l: ti-vpe: make sure VPDMA line stride constraints are met 2013-12-10 16:49:48 -02:00
vpe_regs.h [media] v4l: ti-vpe: create a scaler block library 2014-01-07 06:53:21 -02:00
vpe.c [media] v4l: ti-vpe: enable basic scaler support 2014-01-07 06:55:35 -02:00