Potential thumbnail lookup filter to reduce the risk of an inappropriate selection (such as a black frame) we could get with an absolute seek.
More...
#include "avfilter.h"
#include "internal.h"
Go to the source code of this file.
Potential thumbnail lookup filter to reduce the risk of an inappropriate selection (such as a black frame) we could get with an absolute seek.
Simplified version of algorithm by Vadim Zaliva lord@.nosp@m.croc.nosp@m.odile.nosp@m..org.
- See Also
- http://notbrainsurgery.livejournal.com/29773.html
Definition in file vf_thumbnail.c.
#define HIST_SIZE (3*256) |
static double frame_sum_square_err |
( |
const int * |
hist, |
|
|
const double * |
median |
|
) |
| |
|
static |
Compute Sum-square deviation to estimate "closeness".
- Parameters
-
hist | color distribution histogram |
median | average color distribution histogram |
- Returns
- sum of squared errors
Definition at line 77 of file vf_thumbnail.c.
Referenced by filter_frame().
Initial value:= {
{
.name = "default",
},
}
Definition at line 205 of file vf_thumbnail.c.
Initial value:= {
{
.name = "default",
},
}
Definition at line 216 of file vf_thumbnail.c.
Initial value:= {
.name = "thumbnail",
.description =
NULL_IF_CONFIG_SMALL(
"Select the most representative frame in a given sequence of consecutive frames."),
}
Definition at line 226 of file vf_thumbnail.c.