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
4996e8f5
Commit
4996e8f5
authored
Jun 19, 2012
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bfin: libswscale: add const where appropriate to fix warnings
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
6bac8971
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
21 deletions
+25
-21
swscale_bfin.c
libswscale/bfin/swscale_bfin.c
+8
-8
yuv2rgb_bfin.c
libswscale/bfin/yuv2rgb_bfin.c
+17
-13
No files found.
libswscale/bfin/swscale_bfin.c
View file @
4996e8f5
...
...
@@ -39,14 +39,14 @@ int ff_bfin_yuyvtoyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst,
uint8_t
*
vdst
,
int
width
,
int
height
,
int
lumStride
,
int
chromStride
,
int
srcStride
)
L1CODE
;
static
int
uyvytoyv12_unscaled
(
SwsContext
*
c
,
uint8_t
*
src
[],
int
srcStride
[],
int
srcS
liceY
,
int
srcSliceH
,
uint8_t
*
dst
[]
,
int
dstStride
[])
static
int
uyvytoyv12_unscaled
(
SwsContext
*
c
,
const
uint8_t
*
src
[],
int
srcS
tride
[],
int
srcSliceY
,
int
srcSliceH
,
uint8_t
*
dst
[],
int
dstStride
[])
{
uint8_t
*
dsty
=
dst
[
0
]
+
dstStride
[
0
]
*
srcSliceY
;
uint8_t
*
dstu
=
dst
[
1
]
+
dstStride
[
1
]
*
srcSliceY
/
2
;
uint8_t
*
dstv
=
dst
[
2
]
+
dstStride
[
2
]
*
srcSliceY
/
2
;
uint8_t
*
ip
=
src
[
0
]
+
srcStride
[
0
]
*
srcSliceY
;
const
uint8_t
*
ip
=
src
[
0
]
+
srcStride
[
0
]
*
srcSliceY
;
int
w
=
dstStride
[
0
];
ff_bfin_uyvytoyv12
(
ip
,
dsty
,
dstu
,
dstv
,
w
,
srcSliceH
,
...
...
@@ -55,14 +55,14 @@ static int uyvytoyv12_unscaled(SwsContext *c, uint8_t *src[], int srcStride[],
return
srcSliceH
;
}
static
int
yuyvtoyv12_unscaled
(
SwsContext
*
c
,
uint8_t
*
src
[],
int
srcStride
[],
int
srcS
liceY
,
int
srcSliceH
,
uint8_t
*
dst
[]
,
int
dstStride
[])
static
int
yuyvtoyv12_unscaled
(
SwsContext
*
c
,
const
uint8_t
*
src
[],
int
srcS
tride
[],
int
srcSliceY
,
int
srcSliceH
,
uint8_t
*
dst
[],
int
dstStride
[])
{
uint8_t
*
dsty
=
dst
[
0
]
+
dstStride
[
0
]
*
srcSliceY
;
uint8_t
*
dstu
=
dst
[
1
]
+
dstStride
[
1
]
*
srcSliceY
/
2
;
uint8_t
*
dstv
=
dst
[
2
]
+
dstStride
[
2
]
*
srcSliceY
/
2
;
uint8_t
*
ip
=
src
[
0
]
+
srcStride
[
0
]
*
srcSliceY
;
const
uint8_t
*
ip
=
src
[
0
]
+
srcStride
[
0
]
*
srcSliceY
;
int
w
=
dstStride
[
0
];
ff_bfin_yuyvtoyv12
(
ip
,
dsty
,
dstu
,
dstv
,
w
,
srcSliceH
,
...
...
libswscale/bfin/yuv2rgb_bfin.c
View file @
4996e8f5
...
...
@@ -32,17 +32,20 @@
#define L1CODE
#endif
void
ff_bfin_yuv2rgb555_line
(
uint8_t
*
Y
,
uint8_t
*
U
,
uint8_t
*
V
,
uint8_t
*
out
,
void
ff_bfin_yuv2rgb555_line
(
const
uint8_t
*
Y
,
const
uint8_t
*
U
,
const
uint8_t
*
V
,
uint8_t
*
out
,
int
w
,
uint32_t
*
coeffs
)
L1CODE
;
void
ff_bfin_yuv2rgb565_line
(
uint8_t
*
Y
,
uint8_t
*
U
,
uint8_t
*
V
,
uint8_t
*
out
,
void
ff_bfin_yuv2rgb565_line
(
const
uint8_t
*
Y
,
const
uint8_t
*
U
,
const
uint8_t
*
V
,
uint8_t
*
out
,
int
w
,
uint32_t
*
coeffs
)
L1CODE
;
void
ff_bfin_yuv2rgb24_line
(
uint8_t
*
Y
,
uint8_t
*
U
,
uint8_t
*
V
,
uint8_t
*
out
,
void
ff_bfin_yuv2rgb24_line
(
const
uint8_t
*
Y
,
const
uint8_t
*
U
,
const
uint8_t
*
V
,
uint8_t
*
out
,
int
w
,
uint32_t
*
coeffs
)
L1CODE
;
typedef
void
(
*
ltransform
)(
uint8_t
*
Y
,
uint8_t
*
U
,
uint8_t
*
V
,
uint8_t
*
out
,
int
w
,
uint32_t
*
coeffs
);
typedef
void
(
*
ltransform
)(
const
uint8_t
*
Y
,
const
uint8_t
*
U
,
const
uint8_t
*
V
,
uint8_t
*
out
,
int
w
,
uint32_t
*
coeffs
);
static
void
bfin_prepare_coefficients
(
SwsContext
*
c
,
int
rgb
,
int
masks
)
{
...
...
@@ -80,12 +83,13 @@ static void bfin_prepare_coefficients(SwsContext *c, int rgb, int masks)
}
}
static
int
core_yuv420_rgb
(
SwsContext
*
c
,
uint8_t
**
in
,
int
*
instrides
,
static
int
core_yuv420_rgb
(
SwsContext
*
c
,
const
uint8_t
**
in
,
int
*
instrides
,
int
srcSliceY
,
int
srcSliceH
,
uint8_t
**
oplanes
,
int
*
outstrides
,
ltransform
lcscf
,
int
rgb
,
int
masks
)
{
uint8_t
*
py
,
*
pu
,
*
pv
,
*
op
;
const
uint8_t
*
py
,
*
pu
,
*
pv
;
uint8_t
*
op
;
int
w
=
instrides
[
0
];
int
h2
=
srcSliceH
>>
1
;
int
i
;
...
...
@@ -115,7 +119,7 @@ static int core_yuv420_rgb(SwsContext *c, uint8_t **in, int *instrides,
return
srcSliceH
;
}
static
int
bfin_yuv420_rgb555
(
SwsContext
*
c
,
uint8_t
**
in
,
int
*
instrides
,
static
int
bfin_yuv420_rgb555
(
SwsContext
*
c
,
const
uint8_t
**
in
,
int
*
instrides
,
int
srcSliceY
,
int
srcSliceH
,
uint8_t
**
oplanes
,
int
*
outstrides
)
{
...
...
@@ -123,7 +127,7 @@ static int bfin_yuv420_rgb555(SwsContext *c, uint8_t **in, int *instrides,
outstrides
,
ff_bfin_yuv2rgb555_line
,
1
,
555
);
}
static
int
bfin_yuv420_bgr555
(
SwsContext
*
c
,
uint8_t
**
in
,
int
*
instrides
,
static
int
bfin_yuv420_bgr555
(
SwsContext
*
c
,
const
uint8_t
**
in
,
int
*
instrides
,
int
srcSliceY
,
int
srcSliceH
,
uint8_t
**
oplanes
,
int
*
outstrides
)
{
...
...
@@ -131,7 +135,7 @@ static int bfin_yuv420_bgr555(SwsContext *c, uint8_t **in, int *instrides,
outstrides
,
ff_bfin_yuv2rgb555_line
,
0
,
555
);
}
static
int
bfin_yuv420_rgb24
(
SwsContext
*
c
,
uint8_t
**
in
,
int
*
instrides
,
static
int
bfin_yuv420_rgb24
(
SwsContext
*
c
,
const
uint8_t
**
in
,
int
*
instrides
,
int
srcSliceY
,
int
srcSliceH
,
uint8_t
**
oplanes
,
int
*
outstrides
)
{
...
...
@@ -139,7 +143,7 @@ static int bfin_yuv420_rgb24(SwsContext *c, uint8_t **in, int *instrides,
outstrides
,
ff_bfin_yuv2rgb24_line
,
1
,
888
);
}
static
int
bfin_yuv420_bgr24
(
SwsContext
*
c
,
uint8_t
**
in
,
int
*
instrides
,
static
int
bfin_yuv420_bgr24
(
SwsContext
*
c
,
const
uint8_t
**
in
,
int
*
instrides
,
int
srcSliceY
,
int
srcSliceH
,
uint8_t
**
oplanes
,
int
*
outstrides
)
{
...
...
@@ -147,7 +151,7 @@ static int bfin_yuv420_bgr24(SwsContext *c, uint8_t **in, int *instrides,
outstrides
,
ff_bfin_yuv2rgb24_line
,
0
,
888
);
}
static
int
bfin_yuv420_rgb565
(
SwsContext
*
c
,
uint8_t
**
in
,
int
*
instrides
,
static
int
bfin_yuv420_rgb565
(
SwsContext
*
c
,
const
uint8_t
**
in
,
int
*
instrides
,
int
srcSliceY
,
int
srcSliceH
,
uint8_t
**
oplanes
,
int
*
outstrides
)
{
...
...
@@ -155,7 +159,7 @@ static int bfin_yuv420_rgb565(SwsContext *c, uint8_t **in, int *instrides,
outstrides
,
ff_bfin_yuv2rgb565_line
,
1
,
565
);
}
static
int
bfin_yuv420_bgr565
(
SwsContext
*
c
,
uint8_t
**
in
,
int
*
instrides
,
static
int
bfin_yuv420_bgr565
(
SwsContext
*
c
,
const
uint8_t
**
in
,
int
*
instrides
,
int
srcSliceY
,
int
srcSliceH
,
uint8_t
**
oplanes
,
int
*
outstrides
)
{
...
...
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