refactor(ffmpeg): skip histogram if frame selected
* use availableIndex * refactor(ffmpeg): skip histogram if frame selected
This commit is contained in:
parent
da15744b3d
commit
17b50dea3c
3 changed files with 21 additions and 8 deletions
|
|
@ -351,6 +351,10 @@ static double root_mean_square_error(const int *hist, const double *median, size
|
|||
return sum_sq_err;
|
||||
}
|
||||
|
||||
void populate_frame(ThumbContext *thumb_ctx, int n, AVFrame *frame) {
|
||||
thumb_ctx->frames[n].frame = frame;
|
||||
}
|
||||
|
||||
void populate_histogram(ThumbContext *thumb_ctx, int n, AVFrame *frame) {
|
||||
const AVPixFmtDescriptor *desc = thumb_ctx->desc;
|
||||
thumb_ctx->frames[n].frame = frame;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue