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
3662e49d
Commit
3662e49d
authored
Apr 14, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sws: move RGB2YUV_SHIFT to swscale_internal.h
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e66a1068
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
3 deletions
+1
-3
input.c
libswscale/input.c
+0
-2
swscale.c
libswscale/swscale.c
+0
-1
swscale_internal.h
libswscale/swscale_internal.h
+1
-0
No files found.
libswscale/input.c
View file @
3662e49d
...
...
@@ -36,8 +36,6 @@
#include "swscale.h"
#include "swscale_internal.h"
#define RGB2YUV_SHIFT 15
#define input_pixel(pos) (isBE(origin) ? AV_RB16(pos) : AV_RL16(pos))
#define r ((origin == AV_PIX_FMT_BGR48BE || origin == AV_PIX_FMT_BGR48LE) ? b_r : r_b)
...
...
libswscale/swscale.c
View file @
3662e49d
...
...
@@ -385,7 +385,6 @@ static int swScale(SwsContext *c, const uint8_t *src[],
if
(
!
usePal
(
c
->
srcFormat
))
{
pal
=
c
->
input_rgb2yuv_table
;
#define RGB2YUV_SHIFT 15
pal
[
BY_IDX
]
=
((
int
)(
0
.
114
*
219
/
255
*
(
1
<<
RGB2YUV_SHIFT
)
+
0
.
5
));
pal
[
BV_IDX
]
=
(
-
(
int
)(
0
.
081
*
224
/
255
*
(
1
<<
RGB2YUV_SHIFT
)
+
0
.
5
));
pal
[
BU_IDX
]
=
((
int
)(
0
.
500
*
224
/
255
*
(
1
<<
RGB2YUV_SHIFT
)
+
0
.
5
));
...
...
libswscale/swscale_internal.h
View file @
3662e49d
...
...
@@ -370,6 +370,7 @@ typedef struct SwsContext {
#define RV_IDX 6
#define GV_IDX 7
#define BV_IDX 8
#define RGB2YUV_SHIFT 15
int
*
dither_error
[
4
];
...
...
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