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
0fb51931
Commit
0fb51931
authored
Jun 06, 2011
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: reindent x86 init code.
parent
ca364a5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
35 deletions
+35
-35
swscale_template.c
libswscale/x86/swscale_template.c
+35
-35
No files found.
libswscale/x86/swscale_template.c
View file @
0fb51931
...
...
@@ -2189,62 +2189,62 @@ static void RENAME(sws_init_swScale)(SwsContext *c)
dstFormat
=
c
->
dstFormat
;
if
(
!
is16BPS
(
dstFormat
)
&&
!
is9_OR_10BPS
(
dstFormat
))
{
if
(
!
(
c
->
flags
&
SWS_BITEXACT
))
{
if
(
c
->
flags
&
SWS_ACCURATE_RND
)
{
c
->
yuv2yuv1
=
RENAME
(
yuv2yuv1_ar
);
c
->
yuv2yuvX
=
RENAME
(
yuv2yuvX_ar
);
if
(
!
(
c
->
flags
&
SWS_FULL_CHR_H_INT
))
{
switch
(
c
->
dstFormat
)
{
case
PIX_FMT_RGB32
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb32_X_ar
);
break
;
case
PIX_FMT_BGR24
:
c
->
yuv2packedX
=
RENAME
(
yuv2bgr24_X_ar
);
break
;
case
PIX_FMT_RGB555
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb555_X_ar
);
break
;
case
PIX_FMT_RGB565
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb565_X_ar
);
break
;
case
PIX_FMT_YUYV422
:
c
->
yuv2packedX
=
RENAME
(
yuv2yuyv422_X_ar
);
break
;
default:
break
;
}
}
}
else
{
c
->
yuv2yuv1
=
RENAME
(
yuv2yuv1
);
c
->
yuv2yuvX
=
RENAME
(
yuv2yuvX
);
if
(
!
(
c
->
flags
&
SWS_FULL_CHR_H_INT
))
{
switch
(
c
->
dstFormat
)
{
case
PIX_FMT_RGB32
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb32_X
);
break
;
case
PIX_FMT_BGR24
:
c
->
yuv2packedX
=
RENAME
(
yuv2bgr24_X
);
break
;
case
PIX_FMT_RGB555
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb555_X
);
break
;
case
PIX_FMT_RGB565
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb565_X
);
break
;
case
PIX_FMT_YUYV422
:
c
->
yuv2packedX
=
RENAME
(
yuv2yuyv422_X
);
break
;
default:
break
;
if
(
!
(
c
->
flags
&
SWS_BITEXACT
))
{
if
(
c
->
flags
&
SWS_ACCURATE_RND
)
{
c
->
yuv2yuv1
=
RENAME
(
yuv2yuv1_ar
);
c
->
yuv2yuvX
=
RENAME
(
yuv2yuvX_ar
);
if
(
!
(
c
->
flags
&
SWS_FULL_CHR_H_INT
))
{
switch
(
c
->
dstFormat
)
{
case
PIX_FMT_RGB32
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb32_X_ar
);
break
;
case
PIX_FMT_BGR24
:
c
->
yuv2packedX
=
RENAME
(
yuv2bgr24_X_ar
);
break
;
case
PIX_FMT_RGB555
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb555_X_ar
);
break
;
case
PIX_FMT_RGB565
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb565_X_ar
);
break
;
case
PIX_FMT_YUYV422
:
c
->
yuv2packedX
=
RENAME
(
yuv2yuyv422_X_ar
);
break
;
default:
break
;
}
}
}
else
{
c
->
yuv2yuv1
=
RENAME
(
yuv2yuv1
);
c
->
yuv2yuvX
=
RENAME
(
yuv2yuvX
);
if
(
!
(
c
->
flags
&
SWS_FULL_CHR_H_INT
))
{
switch
(
c
->
dstFormat
)
{
case
PIX_FMT_RGB32
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb32_X
);
break
;
case
PIX_FMT_BGR24
:
c
->
yuv2packedX
=
RENAME
(
yuv2bgr24_X
);
break
;
case
PIX_FMT_RGB555
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb555_X
);
break
;
case
PIX_FMT_RGB565
:
c
->
yuv2packedX
=
RENAME
(
yuv2rgb565_X
);
break
;
case
PIX_FMT_YUYV422
:
c
->
yuv2packedX
=
RENAME
(
yuv2yuyv422_X
);
break
;
default:
break
;
}
}
}
}
}
}
if
(
!
(
c
->
flags
&
SWS_FULL_CHR_H_INT
))
{
switch
(
c
->
dstFormat
)
{
case
PIX_FMT_RGB32
:
switch
(
c
->
dstFormat
)
{
case
PIX_FMT_RGB32
:
c
->
yuv2packed1
=
RENAME
(
yuv2rgb32_1
);
c
->
yuv2packed2
=
RENAME
(
yuv2rgb32_2
);
break
;
case
PIX_FMT_BGR24
:
case
PIX_FMT_BGR24
:
c
->
yuv2packed1
=
RENAME
(
yuv2bgr24_1
);
c
->
yuv2packed2
=
RENAME
(
yuv2bgr24_2
);
break
;
case
PIX_FMT_RGB555
:
case
PIX_FMT_RGB555
:
c
->
yuv2packed1
=
RENAME
(
yuv2rgb555_1
);
c
->
yuv2packed2
=
RENAME
(
yuv2rgb555_2
);
break
;
case
PIX_FMT_RGB565
:
case
PIX_FMT_RGB565
:
c
->
yuv2packed1
=
RENAME
(
yuv2rgb565_1
);
c
->
yuv2packed2
=
RENAME
(
yuv2rgb565_2
);
break
;
case
PIX_FMT_YUYV422
:
case
PIX_FMT_YUYV422
:
c
->
yuv2packed1
=
RENAME
(
yuv2yuyv422_1
);
c
->
yuv2packed2
=
RENAME
(
yuv2yuyv422_2
);
break
;
default:
default:
break
;
}
}
}
}
#if !COMPILE_TEMPLATE_MMX2
c
->
hScale
=
RENAME
(
hScale
);
...
...
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