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
31a1342e
Commit
31a1342e
authored
Nov 26, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: remove duplicate code from yesterdays merge.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
022f8d27
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
swscale.c
libswscale/swscale.c
+0
-30
No files found.
libswscale/swscale.c
View file @
31a1342e
...
...
@@ -1668,34 +1668,6 @@ rgb16_32_wrapper(PIX_FMT_BGR555BE, bgr15be, 0, 0, 0, 0, 0x001F, 0x03E0, 0x7
rgb16_32_wrapper
(
PIX_FMT_RGB565BE
,
rgb16be
,
0
,
0
,
0
,
0
,
0xF800
,
0x07E0
,
0x001F
,
0
,
5
,
11
,
RGB2YUV_SHIFT
+
8
);
rgb16_32_wrapper
(
PIX_FMT_RGB555BE
,
rgb15be
,
0
,
0
,
0
,
0
,
0x7C00
,
0x03E0
,
0x001F
,
0
,
5
,
10
,
RGB2YUV_SHIFT
+
7
);
static
void
gbr24pToY_c
(
uint16_t
*
dst
,
const
uint8_t
*
gsrc
,
const
uint8_t
*
bsrc
,
const
uint8_t
*
rsrc
,
int
width
,
uint32_t
*
unused
)
{
int
i
;
for
(
i
=
0
;
i
<
width
;
i
++
)
{
unsigned
int
g
=
gsrc
[
i
];
unsigned
int
b
=
bsrc
[
i
];
unsigned
int
r
=
rsrc
[
i
];
dst
[
i
]
=
(
RY
*
r
+
GY
*
g
+
BY
*
b
+
(
0x801
<<
(
RGB2YUV_SHIFT
-
7
)))
>>
(
RGB2YUV_SHIFT
-
6
);
}
}
static
void
gbr24pToUV_c
(
uint16_t
*
dstU
,
uint16_t
*
dstV
,
const
uint8_t
*
gsrc
,
const
uint8_t
*
bsrc
,
const
uint8_t
*
rsrc
,
int
width
,
enum
PixelFormat
origin
)
{
int
i
;
for
(
i
=
0
;
i
<
width
;
i
++
)
{
unsigned
int
g
=
gsrc
[
i
];
unsigned
int
b
=
bsrc
[
i
];
unsigned
int
r
=
rsrc
[
i
];
dstU
[
i
]
=
(
RU
*
r
+
GU
*
g
+
BU
*
b
+
(
0x4001
<<
(
RGB2YUV_SHIFT
-
7
)))
>>
(
RGB2YUV_SHIFT
-
6
);
dstV
[
i
]
=
(
RV
*
r
+
GV
*
g
+
BV
*
b
+
(
0x4001
<<
(
RGB2YUV_SHIFT
-
7
)))
>>
(
RGB2YUV_SHIFT
-
6
);
}
}
static
void
gbr24pToUV_half_c
(
uint16_t
*
dstU
,
uint16_t
*
dstV
,
const
uint8_t
*
gsrc
,
const
uint8_t
*
bsrc
,
const
uint8_t
*
rsrc
,
int
width
,
enum
PixelFormat
origin
)
...
...
@@ -2966,7 +2938,6 @@ static av_cold void sws_init_swScale_c(SwsContext *c)
case
PIX_FMT_RGB565BE
:
c
->
chrToYV12
=
rgb16beToUV_c
;
break
;
case
PIX_FMT_RGB555LE
:
c
->
chrToYV12
=
rgb15leToUV_c
;
break
;
case
PIX_FMT_RGB555BE
:
c
->
chrToYV12
=
rgb15beToUV_c
;
break
;
// case PIX_FMT_GBR24P : c->chrToYV12 = gbr24pToUV_c; break;
}
}
...
...
@@ -3031,7 +3002,6 @@ static av_cold void sws_init_swScale_c(SwsContext *c)
case
PIX_FMT_RGB48LE
:
c
->
lumToYV12
=
rgb48LEToY_c
;
break
;
case
PIX_FMT_BGR48BE
:
c
->
lumToYV12
=
bgr48BEToY_c
;
break
;
case
PIX_FMT_BGR48LE
:
c
->
lumToYV12
=
bgr48LEToY_c
;
break
;
// case PIX_FMT_GBR24P : c->lumToYV12 = gbr24pToY_c ; break;
}
if
(
c
->
alpPixBuf
)
{
switch
(
srcFormat
)
{
...
...
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