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
d2c70fc8
Commit
d2c70fc8
authored
Mar 23, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sws/tests/pixdesc_query: sort pixel formats
parent
ca23d349
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
590 additions
and
579 deletions
+590
-579
pixdesc_query.c
libswscale/tests/pixdesc_query.c
+11
-0
sws-pixdesc-query
tests/ref/fate/sws-pixdesc-query
+579
-579
No files found.
libswscale/tests/pixdesc_query.c
View file @
d2c70fc8
...
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdlib.h>
#include "libavutil/mem.h"
#include "libswscale/swscale_internal.h"
...
...
@@ -44,6 +46,13 @@ static const struct {
{
"usePal"
,
usePal
},
};
static
int
cmp_str
(
const
void
*
a
,
const
void
*
b
)
{
const
char
*
s1
=
*
(
const
char
**
)
a
;
const
char
*
s2
=
*
(
const
char
**
)
b
;
return
strcmp
(
s1
,
s2
);
}
int
main
(
void
)
{
int
i
,
j
;
...
...
@@ -60,6 +69,8 @@ int main(void)
}
if
(
pix_fmts
)
{
qsort
(
pix_fmts
,
nb_pix_fmts
,
sizeof
(
*
pix_fmts
),
cmp_str
);
printf
(
"%s:
\n
"
,
query_tab
[
i
].
class
);
for
(
j
=
0
;
j
<
nb_pix_fmts
;
j
++
)
printf
(
" %s
\n
"
,
pix_fmts
[
j
]);
...
...
tests/ref/fate/sws-pixdesc-query
View file @
d2c70fc8
This diff is collapsed.
Click to expand it.
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