After pasering SOF makers and DQT, DHT etc, buffer pointer should point
to the position after what has been read. Otherwise, paser will be
finding markers right after the last marker. And may lead to take datas
in DHT or DQT as markers.
Refer to this issue: https://redmine.rockchip.com.cn/issues/212649
Change-Id: Ie4edc8ab43aeedf1678894a9968a1254ca10ac50
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
1. Fix missing 444 case on parser stage. Parser should setup YUV444
format for original jpeg stream format.
2. Fix missing case on MPP_DEC_SET_OUTPUT_FORMAT. When user change
the output format the corresponding MppFrameFormat should be
changed.
Change-Id: I111ba2bcadd675339bfe2948a054301780177f9a
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
in some case,user may think of png bitstream as jpeg.
and file suffixes can also easily lead to misunderstandings,
so add warning to prevention is necessary.
Change-Id: I2ed319033706b2ef48c8b34c6cdc77098137827c
Signed-off-by: sliver.chen <sliver.chen@rock-chips.com>
It is not necessary to allocate or decode an error input
source.
Change-Id: I81075a6ea696d2699ec595a02cdcd5163736d27c
Signed-off-by: Randy Li <randy.li@rock-chips.com>
This can reduce CPU's occupancy, which will result in a problem
that jpeg parser can not judge if input stream is integrated.
Fortunately it doesn't matter for most of cases.
Change-Id: I77d59dc1642f0967e75ba9d15741eeb24789f87c
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
The internal of the parser had better not be exported.
Change-Id: I4c3d786ebc0424e90d135a43aaa027daac390291
Signed-off-by: Randy Li <randy.li@rock-chips.com>
The default behavior of the JPEG parser should ignore
the reminined data.
Change-Id: Id097cf6997bcef048afcbeb9eb72319373dd9ae7
Signed-off-by: Randy Li <randy.li@rock-chips.com>
scan the stream just for one time in jpegd parser and
remove redundant codes.
Change-Id: I72920b15fc4ed15cfa1de55d9ed249d50cceebb2
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
Get stream copy flag from soc_name because there is no need
to copy stream for RV1108.
Change-Id: I65d4ee6b9bbb5bb650a09dd24448fe90a2965cd2
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
1. only if height is 8-pixel aligned but not 16-pixel aligned,
bit 20 of reg148 is enabled.
2. default output buffer size is set to 2*width*height.
Change-Id: Ib23e1530c4c6a6688c3f8e632ba3f0b8e2b3c352
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
when one frame is decoded, set frame info such as width,
height, yuv format, display width and height, so that
upper application can handle decoded frame properly.
Change-Id: Ide89e55ac200304e7c2c49d31b6a9cd8c9feb6d9
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
1. clear input packet length when packet is copied
2. modify mjpeg advanced decoding path in mpi_dec_test
3. add numerator and denominator set prop function
4. remove extra log on first info change
5. fix eos process and buffer size check in advanced decoding flow
6. fix jpegd stream length config error
Change-Id: Id6c26ebda090eb4076f27deaad4d61b4221f2653
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
use fromdos to change file type, remove ^M in code.
Change-Id: I000202dc51fcff57cc0771455baebea595115b1d
Signed-off-by: Lin Kesheng <lks@rock-chips.com>