diff options
| author | Tony K Nadackal <[email protected]> | 2017-06-30 10:15:40 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-07-26 08:28:52 -0400 |
| commit | 5ea3bf28ed4a261e281642d140652b00fd64338c (patch) | |
| tree | 838001f47a5874cd8619168d7503ef455458f67a /tools/perf/scripts/python/stackcollapse.py | |
| parent | 59ae0e8a0f47c20f5f91485b28239a75dc545e97 (diff) | |
media: s5p-jpeg: Call jpeg_bound_align_image after qbuf
When queuing an OUTPUT buffer for decoder, s5p_jpeg_parse_hdr()
function parses the input jpeg file and takes the width and height
parameters from its header. These new width/height values will be used
for the calculation of stride. HX_JPEG Hardware needs the width and
height values aligned on a 16 bits boundary. This width/height alignment
is handled in the s5p_jpeg_s_fmt_vid_cap() function during the S_FMT
ioctl call.
But if user space calls the QBUF of OUTPUT buffer after the S_FMT of
CAPTURE buffer, these aligned values will be replaced by the values in
jpeg header. If the width/height values of jpeg are not aligned, the
decoder output will be corrupted. So in this patch we call
jpeg_bound_align_image() to align the width/height values of Capture
buffer in s5p_jpeg_buf_queue().
Signed-off-by: Tony K Nadackal <[email protected]>
Signed-off-by: Thierry Escande <[email protected]>
Acked-by: Andrzej Pietrasiewicz <[email protected]>
Acked-by: Jacek Anaszewski <[email protected]>
Signed-off-by: Sylwester Nawrocki <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions