|
|
@ -49,14 +49,6 @@ typedef struct { |
|
|
|
int index; |
|
|
|
int index; |
|
|
|
} SparseCoeff; |
|
|
|
} SparseCoeff; |
|
|
|
|
|
|
|
|
|
|
|
static inline int qsort_sparsecoeff(const SparseCoeff *a, const SparseCoeff *b) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (fabsf(a->value) >= fabsf(b->value)) |
|
|
|
|
|
|
|
return 1; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
return -1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct { |
|
|
|
typedef struct { |
|
|
|
const AVClass *class; |
|
|
|
const AVClass *class; |
|
|
|
AVFrame *outpicref; |
|
|
|
AVFrame *outpicref; |
|
|
@ -150,6 +142,14 @@ static int query_formats(AVFilterContext *ctx) |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline int qsort_sparsecoeff(const SparseCoeff *a, const SparseCoeff *b) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (fabsf(a->value) >= fabsf(b->value)) |
|
|
|
|
|
|
|
return 1; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
return -1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int config_output(AVFilterLink *outlink) |
|
|
|
static int config_output(AVFilterLink *outlink) |
|
|
|
{ |
|
|
|
{ |
|
|
|
AVFilterContext *ctx = outlink->src; |
|
|
|
AVFilterContext *ctx = outlink->src; |
|
|
|