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
2b677ffc
Commit
2b677ffc
authored
Apr 18, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: Add av_cold attributes to init functions missing them
parent
1fda184a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
rgb2rgb_template.c
libswscale/rgb2rgb_template.c
+3
-1
utils.c
libswscale/utils.c
+9
-8
rgb2rgb_template.c
libswscale/x86/rgb2rgb_template.c
+3
-1
No files found.
libswscale/rgb2rgb_template.c
View file @
2b677ffc
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#include <stddef.h>
#include <stddef.h>
#include "libavutil/attributes.h"
static
inline
void
rgb24tobgr32_c
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
static
inline
void
rgb24tobgr32_c
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
)
int
src_size
)
{
{
...
@@ -907,7 +909,7 @@ static void uyvytoyuv422_c(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
...
@@ -907,7 +909,7 @@ static void uyvytoyuv422_c(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
}
}
}
}
static
inline
void
rgb2rgb_init_c
(
void
)
static
av_cold
void
rgb2rgb_init_c
(
void
)
{
{
rgb15to16
=
rgb15to16_c
;
rgb15to16
=
rgb15to16_c
;
rgb15tobgr24
=
rgb15tobgr24_c
;
rgb15tobgr24
=
rgb15tobgr24_c
;
...
...
libswscale/utils.c
View file @
2b677ffc
...
@@ -208,9 +208,10 @@ static double getSplineCoeff(double a, double b, double c, double d,
...
@@ -208,9 +208,10 @@ static double getSplineCoeff(double a, double b, double c, double d,
dist
-
1
.
0
);
dist
-
1
.
0
);
}
}
static
int
initFilter
(
int16_t
**
outFilter
,
int32_t
**
filterPos
,
static
av_cold
int
initFilter
(
int16_t
**
outFilter
,
int32_t
**
filterPos
,
int
*
outFilterSize
,
int
xInc
,
int
srcW
,
int
dstW
,
int
*
outFilterSize
,
int
xInc
,
int
srcW
,
int
filterAlign
,
int
one
,
int
flags
,
int
cpu_flags
,
int
dstW
,
int
filterAlign
,
int
one
,
int
flags
,
int
cpu_flags
,
SwsVector
*
srcFilter
,
SwsVector
*
dstFilter
,
SwsVector
*
srcFilter
,
SwsVector
*
dstFilter
,
double
param
[
2
],
int
is_horizontal
)
double
param
[
2
],
int
is_horizontal
)
{
{
...
@@ -600,7 +601,7 @@ fail:
...
@@ -600,7 +601,7 @@ fail:
}
}
#if HAVE_MMXEXT_INLINE
#if HAVE_MMXEXT_INLINE
static
int
init_hscaler_mmxext
(
int
dstW
,
int
xInc
,
uint8_t
*
filterCode
,
static
av_cold
int
init_hscaler_mmxext
(
int
dstW
,
int
xInc
,
uint8_t
*
filterCode
,
int16_t
*
filter
,
int32_t
*
filterPos
,
int16_t
*
filter
,
int32_t
*
filterPos
,
int
numSplits
)
int
numSplits
)
{
{
...
...
libswscale/x86/rgb2rgb_template.c
View file @
2b677ffc
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#include <stddef.h>
#include <stddef.h>
#include "libavutil/attributes.h"
#undef PREFETCH
#undef PREFETCH
#undef MOVNTQ
#undef MOVNTQ
#undef EMMS
#undef EMMS
...
@@ -2465,7 +2467,7 @@ static void RENAME(uyvytoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, co
...
@@ -2465,7 +2467,7 @@ static void RENAME(uyvytoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, co
#endif
/* !COMPILE_TEMPLATE_AMD3DNOW */
#endif
/* !COMPILE_TEMPLATE_AMD3DNOW */
#endif
/* !COMPILE_TEMPLATE_SSE2 */
#endif
/* !COMPILE_TEMPLATE_SSE2 */
static
inline
void
RENAME
(
rgb2rgb_init
)(
void
)
static
av_cold
void
RENAME
(
rgb2rgb_init
)(
void
)
{
{
#if !COMPILE_TEMPLATE_SSE2
#if !COMPILE_TEMPLATE_SSE2
#if !COMPILE_TEMPLATE_AMD3DNOW
#if !COMPILE_TEMPLATE_AMD3DNOW
...
...
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