diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-06 23:22:54 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-22 11:21:49 +0300 |
commit | a3b1539869ae53a6446a1c31bdade6560f91a46b (patch) | |
tree | 72e66a1f4f06583279ce0f9a012f0512946579d2 /test/pipeline/rkisp1 | |
parent | 5e1b7a0f6845add01a6d7842ca34f9fbb0712810 (diff) |
qcam: viewfinder_gl: Support configurable stride in shaders
The RGB and YUV conversion doesn't take the stride into account, neither
when creating the textures, nor when sampling them. Fix it by using the
stride as the texture width, and multiplying the x coordinate in the
vertex shaders by a factor to only sample the active portion of the
image.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'test/pipeline/rkisp1')
0 files changed, 0 insertions, 0 deletions