Closed PabloPL closed 5 years ago
Done on for-upstream/s5p-jpeg branch.
Was able to test this (tried only decoding) using some code from https://github.com/tobiasjakobi/samsung-utils/tree/devel/v4l2-jpeg-codec-test
mode: 1, input_filename: sample.jpg, video_node: /dev/video1, width: 0, height: 0, fourcc: 5, compr_quality: 0, subsampling: 0
input_file size: 5486
input JPEG dimensions: 240x216
jpeg scaling failed
Mode: decode
setting output format: V4L2_PIX_FMT_YUYV
output format set: V4L2_PIX_FMT_YUYV
output image dimensions: 240x216
decoded JPEG subsampling: JPEG 4:2:0
active area dimensions: 240x216
Generating output file...
Output file: out.raw, size: 103680
Patch was accepted on mainline (one adding jpeg node, need to only enable driver in defconfig).
It looks like it's missing only dtsi node.
There is some code for testing https://git.linuxtv.org/snawrocki/samsung-utils.git/tree/v4l2-jpeg-codec-test?h=devel&id=487381abe368a430cdfb226cf69f6ba6e2481eff