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
2ba1bff0
Commit
2ba1bff0
authored
Feb 21, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
101++
Originally committed as revision 4795 to
svn://svn.mplayerhq.hu/mplayer/trunk/postproc
parent
df3c183a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
swscale.c
postproc/swscale.c
+2
-1
swscale_template.c
postproc/swscale_template.c
+3
-3
No files found.
postproc/swscale.c
View file @
2ba1bff0
...
...
@@ -68,6 +68,7 @@ untested special converters
//#define HAVE_3DNOW
//#undef HAVE_MMX
//#undef ARCH_X86
//#define WORDS_BIGENDIAN
#define DITHER1XBPP
#define FAST_BGR2YV12 // use 7 bit coeffs instead of 15bit
...
...
@@ -294,10 +295,10 @@ static inline void yuv2rgbXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilt
{
if
(
dstFormat
==
IMGFMT_BGR32
)
{
int
i
;
#ifdef WORDS_BIGENDIAN
dest
++
;
#endif
int
i
;
for
(
i
=
0
;
i
<
(
dstW
>>
1
);
i
++
){
int
j
;
int
Y1
=
0
;
...
...
postproc/swscale_template.c
View file @
2ba1bff0
...
...
@@ -992,10 +992,10 @@ FULL_YSCALEYUV2RGB
#else
if
(
dstFormat
==
IMGFMT_BGR32
)
{
int
i
;
#ifdef WORDS_BIGENDIAN
dest
++
;
#endif
int
i
;
for
(
i
=
0
;
i
<
dstW
;
i
++
){
// vertical linear interpolation && yuv2rgb in a single step:
int
Y
=
yuvtab_2568
[((
buf0
[
i
]
*
yalpha1
+
buf1
[
i
]
*
yalpha
)
>>
19
)];
...
...
@@ -1118,10 +1118,10 @@ FULL_YSCALEYUV2RGB
#else
if
(
dstFormat
==
IMGFMT_BGR32
)
{
int
i
;
#ifdef WORDS_BIGENDIAN
dest
++
;
#endif
int
i
;
for
(
i
=
0
;
i
<
dstW
-
1
;
i
+=
2
){
// vertical linear interpolation && yuv2rgb in a single step:
int
Y1
=
yuvtab_2568
[((
buf0
[
i
]
*
yalpha1
+
buf1
[
i
]
*
yalpha
)
>>
19
)];
...
...
@@ -1399,10 +1399,10 @@ static inline void RENAME(yuv2rgb1)(uint16_t *buf0, uint16_t *uvbuf0, uint16_t *
if
(
dstFormat
==
IMGFMT_BGR32
)
{
int
i
;
#ifdef WORDS_BIGENDIAN
dest
++
;
#endif
int
i
;
for
(
i
=
0
;
i
<
dstW
-
1
;
i
+=
2
){
// vertical linear interpolation && yuv2rgb in a single step:
int
Y1
=
yuvtab_2568
[
buf0
[
i
]
>>
7
];
...
...
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