Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
0180c469
Commit
0180c469
authored
Jun 11, 2014
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/showcqt: move qsort_sparsecoeff closer to where it belongs
parent
1786cd85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
avf_showcqt.c
libavfilter/avf_showcqt.c
+8
-8
No files found.
libavfilter/avf_showcqt.c
View file @
0180c469
...
...
@@ -49,14 +49,6 @@ typedef struct {
int
index
;
}
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
{
const
AVClass
*
class
;
AVFrame
*
outpicref
;
...
...
@@ -150,6 +142,14 @@ static int query_formats(AVFilterContext *ctx)
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
)
{
AVFilterContext
*
ctx
=
outlink
->
src
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment