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
9ea3501d
Commit
9ea3501d
authored
Jan 02, 2012
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: don't show full-chroma-int warning for non-RGB output.
Non-RGB output always uses full chroma interpolation.
parent
f910dbcd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
30 deletions
+33
-30
swscale.c
libswscale/swscale.c
+32
-30
utils.c
libswscale/utils.c
+1
-0
No files found.
libswscale/swscale.c
View file @
9ea3501d
...
@@ -2223,36 +2223,6 @@ find_c_packed_planar_out_funcs(SwsContext *c,
...
@@ -2223,36 +2223,6 @@ find_c_packed_planar_out_funcs(SwsContext *c,
}
}
}
else
{
}
else
{
switch
(
dstFormat
)
{
switch
(
dstFormat
)
{
case
PIX_FMT_GRAY16BE
:
*
yuv2packed1
=
yuv2gray16BE_1_c
;
*
yuv2packed2
=
yuv2gray16BE_2_c
;
*
yuv2packedX
=
yuv2gray16BE_X_c
;
break
;
case
PIX_FMT_GRAY16LE
:
*
yuv2packed1
=
yuv2gray16LE_1_c
;
*
yuv2packed2
=
yuv2gray16LE_2_c
;
*
yuv2packedX
=
yuv2gray16LE_X_c
;
break
;
case
PIX_FMT_MONOWHITE
:
*
yuv2packed1
=
yuv2monowhite_1_c
;
*
yuv2packed2
=
yuv2monowhite_2_c
;
*
yuv2packedX
=
yuv2monowhite_X_c
;
break
;
case
PIX_FMT_MONOBLACK
:
*
yuv2packed1
=
yuv2monoblack_1_c
;
*
yuv2packed2
=
yuv2monoblack_2_c
;
*
yuv2packedX
=
yuv2monoblack_X_c
;
break
;
case
PIX_FMT_YUYV422
:
*
yuv2packed1
=
yuv2yuyv422_1_c
;
*
yuv2packed2
=
yuv2yuyv422_2_c
;
*
yuv2packedX
=
yuv2yuyv422_X_c
;
break
;
case
PIX_FMT_UYVY422
:
*
yuv2packed1
=
yuv2uyvy422_1_c
;
*
yuv2packed2
=
yuv2uyvy422_2_c
;
*
yuv2packedX
=
yuv2uyvy422_X_c
;
break
;
case
PIX_FMT_RGB48LE
:
case
PIX_FMT_RGB48LE
:
*
yuv2packed1
=
yuv2rgb48le_1_c
;
*
yuv2packed1
=
yuv2rgb48le_1_c
;
*
yuv2packed2
=
yuv2rgb48le_2_c
;
*
yuv2packed2
=
yuv2rgb48le_2_c
;
...
@@ -2369,6 +2339,38 @@ find_c_packed_planar_out_funcs(SwsContext *c,
...
@@ -2369,6 +2339,38 @@ find_c_packed_planar_out_funcs(SwsContext *c,
break
;
break
;
}
}
}
}
switch
(
dstFormat
)
{
case
PIX_FMT_GRAY16BE
:
*
yuv2packed1
=
yuv2gray16BE_1_c
;
*
yuv2packed2
=
yuv2gray16BE_2_c
;
*
yuv2packedX
=
yuv2gray16BE_X_c
;
break
;
case
PIX_FMT_GRAY16LE
:
*
yuv2packed1
=
yuv2gray16LE_1_c
;
*
yuv2packed2
=
yuv2gray16LE_2_c
;
*
yuv2packedX
=
yuv2gray16LE_X_c
;
break
;
case
PIX_FMT_MONOWHITE
:
*
yuv2packed1
=
yuv2monowhite_1_c
;
*
yuv2packed2
=
yuv2monowhite_2_c
;
*
yuv2packedX
=
yuv2monowhite_X_c
;
break
;
case
PIX_FMT_MONOBLACK
:
*
yuv2packed1
=
yuv2monoblack_1_c
;
*
yuv2packed2
=
yuv2monoblack_2_c
;
*
yuv2packedX
=
yuv2monoblack_X_c
;
break
;
case
PIX_FMT_YUYV422
:
*
yuv2packed1
=
yuv2yuyv422_1_c
;
*
yuv2packed2
=
yuv2yuyv422_2_c
;
*
yuv2packedX
=
yuv2yuyv422_X_c
;
break
;
case
PIX_FMT_UYVY422
:
*
yuv2packed1
=
yuv2uyvy422_1_c
;
*
yuv2packed2
=
yuv2uyvy422_2_c
;
*
yuv2packedX
=
yuv2uyvy422_X_c
;
break
;
}
}
}
#define DEBUG_SWSCALE_BUFFERS 0
#define DEBUG_SWSCALE_BUFFERS 0
...
...
libswscale/utils.c
View file @
9ea3501d
...
@@ -829,6 +829,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
...
@@ -829,6 +829,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
// reuse chroma for 2 pixels RGB/BGR unless user wants full chroma interpolation
// reuse chroma for 2 pixels RGB/BGR unless user wants full chroma interpolation
if
(
flags
&
SWS_FULL_CHR_H_INT
&&
if
(
flags
&
SWS_FULL_CHR_H_INT
&&
isAnyRGB
(
dstFormat
)
&&
dstFormat
!=
PIX_FMT_RGBA
&&
dstFormat
!=
PIX_FMT_RGBA
&&
dstFormat
!=
PIX_FMT_ARGB
&&
dstFormat
!=
PIX_FMT_ARGB
&&
dstFormat
!=
PIX_FMT_BGRA
&&
dstFormat
!=
PIX_FMT_BGRA
&&
...
...
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