Skip to content

Commit

Permalink
mcraw: allow to manually crop frames from the end
Browse files Browse the repository at this point in the history
  • Loading branch information
hanatos committed Oct 26, 2024
1 parent 6bd8b84 commit ceca4a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pipe/modules/i-mcraw/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ void modify_roi_out(
snprintf(mod->img_param.model, sizeof(mod->img_param.model), "%s", cmeta["extraData"]["postProcessSettings"]["metadata"]["build.model"].template get<std::string>().c_str());
snprintf(mod->img_param.maker, sizeof(mod->img_param.maker), "%s", cmeta["extraData"]["postProcessSettings"]["metadata"]["build.manufacturer"].template get<std::string>().c_str());
// for(int i=0;i<sizeof(mod->img_param.maker);i++) if(mod->img_param.maker[i] == ' ') mod->img_param.maker[i] = 0;
mod->graph->frame_cnt = dat->dec->getFrames().size();
if(mod->graph->frame_cnt == 0)
mod->graph->frame_cnt = dat->dec->getFrames().size();
else
mod->graph->frame_cnt = MIN(mod->graph->frame_cnt, dat->dec->getFrames().size());
if(mod->graph->frame_rate < 1)
{ // estimate frame rate only if it's set to nothing reasonable
if(mod->graph->frame_cnt > 5)
Expand Down

0 comments on commit ceca4a6

Please sign in to comment.