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
9d052adb
Commit
9d052adb
authored
Sep 17, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/utils: Simplify scaler name printing code
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
29664fab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
utils.c
libswscale/utils.c
+15
-13
No files found.
libswscale/utils.c
View file @
9d052adb
...
...
@@ -1546,32 +1546,34 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter,
av_assert0
(
c
->
chrDstH
<=
dstH
);
if
(
flags
&
SWS_PRINT_INFO
)
{
const
char
*
scaler
;
if
(
flags
&
SWS_FAST_BILINEAR
)
av_log
(
c
,
AV_LOG_INFO
,
"FAST_BILINEAR scaler, "
)
;
scaler
=
"FAST_BILINEAR scaler"
;
else
if
(
flags
&
SWS_BILINEAR
)
av_log
(
c
,
AV_LOG_INFO
,
"BILINEAR scaler, "
)
;
scaler
=
"BILINEAR scaler"
;
else
if
(
flags
&
SWS_BICUBIC
)
av_log
(
c
,
AV_LOG_INFO
,
"BICUBIC scaler, "
)
;
scaler
=
"BICUBIC scaler"
;
else
if
(
flags
&
SWS_X
)
av_log
(
c
,
AV_LOG_INFO
,
"Experimental scaler, "
)
;
scaler
=
"Experimental scaler"
;
else
if
(
flags
&
SWS_POINT
)
av_log
(
c
,
AV_LOG_INFO
,
"Nearest Neighbor / POINT scaler, "
)
;
scaler
=
"Nearest Neighbor / POINT scaler"
;
else
if
(
flags
&
SWS_AREA
)
av_log
(
c
,
AV_LOG_INFO
,
"Area Averaging scaler, "
)
;
scaler
=
"Area Averaging scaler"
;
else
if
(
flags
&
SWS_BICUBLIN
)
av_log
(
c
,
AV_LOG_INFO
,
"luma BICUBIC / chroma BILINEAR scaler, "
)
;
scaler
=
"luma BICUBIC / chroma BILINEAR scaler"
;
else
if
(
flags
&
SWS_GAUSS
)
av_log
(
c
,
AV_LOG_INFO
,
"Gaussian scaler, "
)
;
scaler
=
"Gaussian scaler"
;
else
if
(
flags
&
SWS_SINC
)
av_log
(
c
,
AV_LOG_INFO
,
"Sinc scaler, "
)
;
scaler
=
"Sinc scaler"
;
else
if
(
flags
&
SWS_LANCZOS
)
av_log
(
c
,
AV_LOG_INFO
,
"Lanczos scaler, "
)
;
scaler
=
"Lanczos scaler"
;
else
if
(
flags
&
SWS_SPLINE
)
av_log
(
c
,
AV_LOG_INFO
,
"Bicubic spline scaler, "
)
;
scaler
=
"Bicubic spline scaler"
;
else
av_log
(
c
,
AV_LOG_INFO
,
"ehh flags invalid?! "
)
;
scaler
=
"ehh flags invalid?!"
;
av_log
(
c
,
AV_LOG_INFO
,
"from %s to %s%s "
,
av_log
(
c
,
AV_LOG_INFO
,
"%s, from %s to %s%s "
,
scaler
,
av_get_pix_fmt_name
(
srcFormat
),
#ifdef DITHER1XBPP
dstFormat
==
AV_PIX_FMT_BGR555
||
dstFormat
==
AV_PIX_FMT_BGR565
||
...
...
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