Skip to content

Commit

Permalink
[jpegd]: Remove stream copy_flag on rk3568
Browse files Browse the repository at this point in the history
Change-Id: I60a7d6384210aae5906d21d6286f1dd0f6203e32
Signed-off-by: Chen Jinsen <kevin.chen@rock-chips.com>
  • Loading branch information
Chen Jinsen authored and HermanChen committed Aug 19, 2021
1 parent 0339410 commit ddcb278
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mpp/codec/dec/jpeg/jpegd_parser.c
Expand Up @@ -1180,9 +1180,10 @@ static MPP_RET jpegd_init(void *ctx, ParserCfg *parser_cfg)

const char* soc_name = NULL;
soc_name = mpp_get_soc_name();
if (soc_name && (strstr(soc_name, "1108") || strstr(soc_name, "3566"))) {
/* rv1108: no need to copy stream when decoding jpeg;
* just scan parts of markers to reduce CPU's occupancy
if (soc_name && (strstr(soc_name, "1108") || strstr(soc_name, "356"))) {
/*
* no need to copy stream when decoding jpeg;
* just scan parts of markers to reduce CPU's occupancy
*/
JpegCtx->copy_flag = 0;
} else {
Expand Down

0 comments on commit ddcb278

Please sign in to comment.