Commit b4397f83 authored by Benoit Parrot's avatar Benoit Parrot Committed by Jyri Sarha
Browse files

media: ti-vpe: vip: Add scaler support



Adding support for the scaler unit.
Since there is only one scaler unit shared between 2 ports
a design decision was made that only one active port would have
access to the scaler unit. The other port would behave as usual
relying of the sensor capability to provide different frame sizes.

When a device node is opened  if the scaler unit is unassigned
(i.e. available) then is assigned to that port only if that port is
not configured for multiple streams already.

Once the scaler unit is made available subsequent try/set format
will assume scaling is part of the data path.

As before given the output format the frame size is constraint
to vpdma alignment restriction. (i.e. bytes per line must be 16
bytes aligned).

As usual, v4l2 application using this device must make sure to
pay attention to the returned width, height, bytesperline and
sizeimage buffer parameters to behave properly.

For example a 600x400 in NV12 format will yield a 608x400 frame
size instead because 600 is not divisible by 16 the closest value
is 608.

Signed-off-by: default avatarBenoit Parrot <bparrot@ti.com>
Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
parent 8228e5e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment