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
2a5d1cb2
Commit
2a5d1cb2
authored
Apr 14, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sws/x86: update rgba->yuv to use user supplied table
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
17ad06c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
12 deletions
+36
-12
utils.c
libswscale/utils.c
+12
-0
input.asm
libswscale/x86/input.asm
+24
-12
No files found.
libswscale/utils.c
View file @
2a5d1cb2
...
...
@@ -823,6 +823,18 @@ static void fill_rgb2yuv_table(SwsContext *c, const int table[4], int dstRange)
RV_IDX
,
-
1
,
GV_IDX
,
RV_IDX
,
RV_IDX
,
-
1
,
GV_IDX
,
RV_IDX
,
RV_IDX
,
GV_IDX
,
-
1
,
RV_IDX
,
RV_IDX
,
GV_IDX
,
-
1
,
RV_IDX
,
BV_IDX
,
-
1
,
GV_IDX
,
BV_IDX
,
BV_IDX
,
-
1
,
GV_IDX
,
BV_IDX
,
RY_IDX
,
BY_IDX
,
RY_IDX
,
BY_IDX
,
RY_IDX
,
BY_IDX
,
RY_IDX
,
BY_IDX
,
BY_IDX
,
RY_IDX
,
BY_IDX
,
RY_IDX
,
BY_IDX
,
RY_IDX
,
BY_IDX
,
RY_IDX
,
GY_IDX
,
-
1
,
GY_IDX
,
-
1
,
GY_IDX
,
-
1
,
GY_IDX
,
-
1
,
-
1
,
GY_IDX
,
-
1
,
GY_IDX
,
-
1
,
GY_IDX
,
-
1
,
GY_IDX
,
RU_IDX
,
BU_IDX
,
RU_IDX
,
BU_IDX
,
RU_IDX
,
BU_IDX
,
RU_IDX
,
BU_IDX
,
BU_IDX
,
RU_IDX
,
BU_IDX
,
RU_IDX
,
BU_IDX
,
RU_IDX
,
BU_IDX
,
RU_IDX
,
GU_IDX
,
-
1
,
GU_IDX
,
-
1
,
GU_IDX
,
-
1
,
GU_IDX
,
-
1
,
-
1
,
GU_IDX
,
-
1
,
GU_IDX
,
-
1
,
GU_IDX
,
-
1
,
GU_IDX
,
RV_IDX
,
BV_IDX
,
RV_IDX
,
BV_IDX
,
RV_IDX
,
BV_IDX
,
RV_IDX
,
BV_IDX
,
BV_IDX
,
RV_IDX
,
BV_IDX
,
RV_IDX
,
BV_IDX
,
RV_IDX
,
BV_IDX
,
RV_IDX
,
GV_IDX
,
-
1
,
GV_IDX
,
-
1
,
GV_IDX
,
-
1
,
GV_IDX
,
-
1
,
-
1
,
GV_IDX
,
-
1
,
GV_IDX
,
-
1
,
GV_IDX
,
-
1
,
GV_IDX
,
};
dstRange
=
0
;
//FIXME range = 1 is handled elsewhere
...
...
libswscale/x86/input.asm
View file @
2a5d1cb2
...
...
@@ -50,6 +50,18 @@ rgb_UVrnd: times 4 dd 0x400100 ; 128.5 << 15
%define
rgb_Vcoeff_12x4
16
*
4
+
16
*
10
+
tableq
%define
rgb_Vcoeff_3x56
16
*
4
+
16
*
11
+
tableq
%define
rgba_Ycoeff_rb
16
*
4
+
16
*
12
+
tableq
%define
rgba_Ycoeff_br
16
*
4
+
16
*
13
+
tableq
%define
rgba_Ycoeff_ga
16
*
4
+
16
*
14
+
tableq
%define
rgba_Ycoeff_ag
16
*
4
+
16
*
15
+
tableq
%define
rgba_Ucoeff_rb
16
*
4
+
16
*
16
+
tableq
%define
rgba_Ucoeff_br
16
*
4
+
16
*
17
+
tableq
%define
rgba_Ucoeff_ga
16
*
4
+
16
*
18
+
tableq
%define
rgba_Ucoeff_ag
16
*
4
+
16
*
19
+
tableq
%define
rgba_Vcoeff_rb
16
*
4
+
16
*
20
+
tableq
%define
rgba_Vcoeff_br
16
*
4
+
16
*
21
+
tableq
%define
rgba_Vcoeff_ga
16
*
4
+
16
*
22
+
tableq
%define
rgba_Vcoeff_ag
16
*
4
+
16
*
23
+
tableq
; bgr_Ycoeff_12x4: times 2 dw BY, GY, 0, BY
; bgr_Ycoeff_3x56: times 2 dw RY, 0, GY, RY
...
...
@@ -64,18 +76,18 @@ rgb_UVrnd: times 4 dd 0x400100 ; 128.5 << 15
; rgb_Vcoeff_12x4: times 2 dw RV, GV, 0, RV
; rgb_Vcoeff_3x56: times 2 dw BV, 0, GV, BV
rgba_Ycoeff_rb
:
times
4
dw
RY
,
BY
rgba_Ycoeff_br
:
times
4
dw
BY
,
RY
rgba_Ycoeff_ga
:
times
4
dw
GY
,
0
rgba_Ycoeff_ag
:
times
4
dw
0
,
GY
rgba_Ucoeff_rb
:
times
4
dw
RU
,
BU
rgba_Ucoeff_br
:
times
4
dw
BU
,
RU
rgba_Ucoeff_ga
:
times
4
dw
GU
,
0
rgba_Ucoeff_ag
:
times
4
dw
0
,
GU
rgba_Vcoeff_rb
:
times
4
dw
RV
,
BV
rgba_Vcoeff_br
:
times
4
dw
BV
,
RV
rgba_Vcoeff_ga
:
times
4
dw
GV
,
0
rgba_Vcoeff_ag
:
times
4
dw
0
,
GV
;
rgba_Ycoeff_rb: times 4 dw RY, BY
;
rgba_Ycoeff_br: times 4 dw BY, RY
;
rgba_Ycoeff_ga: times 4 dw GY, 0
;
rgba_Ycoeff_ag: times 4 dw 0, GY
;
rgba_Ucoeff_rb: times 4 dw RU, BU
;
rgba_Ucoeff_br: times 4 dw BU, RU
;
rgba_Ucoeff_ga: times 4 dw GU, 0
;
rgba_Ucoeff_ag: times 4 dw 0, GU
;
rgba_Vcoeff_rb: times 4 dw RV, BV
;
rgba_Vcoeff_br: times 4 dw BV, RV
;
rgba_Vcoeff_ga: times 4 dw GV, 0
;
rgba_Vcoeff_ag: times 4 dw 0, GV
shuf_rgb_12x4
:
db
0
,
0x80
,
1
,
0x80
,
2
,
0x80
,
3
,
0x80
,
\
6
,
0x80
,
7
,
0x80
,
8
,
0x80
,
9
,
0x80
...
...
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