Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
3c504bc3
Commit
3c504bc3
authored
Aug 06, 2014
by
Christophe Gisquet
Committed by
Anton Khirnov
Aug 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: deduplicate some constants
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
d3e4d406
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
5 deletions
+9
-5
constants.c
libavcodec/x86/constants.c
+2
-0
constants.h
libavcodec/x86/constants.h
+3
-0
h264_intrapred_10bit.asm
libavcodec/x86/h264_intrapred_10bit.asm
+1
-1
hevc_deblock.asm
libavcodec/x86/hevc_deblock.asm
+1
-1
vp8dsp.asm
libavcodec/x86/vp8dsp.asm
+1
-1
vp9dsp.asm
libavcodec/x86/vp9dsp.asm
+1
-2
No files found.
libavcodec/x86/constants.c
View file @
3c504bc3
...
@@ -43,8 +43,10 @@ DECLARE_ALIGNED(16, const xmm_reg, ff_pw_64) = { 0x0040004000400040ULL, 0x004
...
@@ -43,8 +43,10 @@ DECLARE_ALIGNED(16, const xmm_reg, ff_pw_64) = { 0x0040004000400040ULL, 0x004
DECLARE_ALIGNED
(
8
,
const
uint64_t
,
ff_pw_96
)
=
0x0060006000600060ULL
;
DECLARE_ALIGNED
(
8
,
const
uint64_t
,
ff_pw_96
)
=
0x0060006000600060ULL
;
DECLARE_ALIGNED
(
8
,
const
uint64_t
,
ff_pw_128
)
=
0x0080008000800080ULL
;
DECLARE_ALIGNED
(
8
,
const
uint64_t
,
ff_pw_128
)
=
0x0080008000800080ULL
;
DECLARE_ALIGNED
(
8
,
const
uint64_t
,
ff_pw_255
)
=
0x00ff00ff00ff00ffULL
;
DECLARE_ALIGNED
(
8
,
const
uint64_t
,
ff_pw_255
)
=
0x00ff00ff00ff00ffULL
;
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pw_256
)
=
{
0x0100010001000100ULL
,
0x0100010001000100ULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pw_512
)
=
{
0x0200020002000200ULL
,
0x0200020002000200ULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pw_512
)
=
{
0x0200020002000200ULL
,
0x0200020002000200ULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pw_1019
)
=
{
0x03FB03FB03FB03FBULL
,
0x03FB03FB03FB03FBULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pw_1019
)
=
{
0x03FB03FB03FB03FBULL
,
0x03FB03FB03FB03FBULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pw_m1
)
=
{
0xFFFFFFFFFFFFFFFFULL
,
0xFFFFFFFFFFFFFFFFULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pb_0
)
=
{
0x0000000000000000ULL
,
0x0000000000000000ULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pb_0
)
=
{
0x0000000000000000ULL
,
0x0000000000000000ULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pb_1
)
=
{
0x0101010101010101ULL
,
0x0101010101010101ULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pb_1
)
=
{
0x0101010101010101ULL
,
0x0101010101010101ULL
};
...
...
libavcodec/x86/constants.h
View file @
3c504bc3
...
@@ -42,6 +42,9 @@ extern const xmm_reg ff_pw_64;
...
@@ -42,6 +42,9 @@ extern const xmm_reg ff_pw_64;
extern
const
uint64_t
ff_pw_96
;
extern
const
uint64_t
ff_pw_96
;
extern
const
uint64_t
ff_pw_128
;
extern
const
uint64_t
ff_pw_128
;
extern
const
uint64_t
ff_pw_255
;
extern
const
uint64_t
ff_pw_255
;
extern
const
xmm_reg
ff_pw_256
;
extern
const
xmm_reg
ff_pw_512
;
extern
const
xmm_reg
ff_pw_m1
;
extern
const
xmm_reg
ff_pb_1
;
extern
const
xmm_reg
ff_pb_1
;
extern
const
xmm_reg
ff_pb_3
;
extern
const
xmm_reg
ff_pb_3
;
...
...
libavcodec/x86/h264_intrapred_10bit.asm
View file @
3c504bc3
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
SECTION_RODATA
SECTION_RODATA
cextern
pw_512
cextern
pw_16
cextern
pw_16
cextern
pw_8
cextern
pw_8
cextern
pw_4
cextern
pw_4
...
@@ -35,7 +36,6 @@ cextern pw_1
...
@@ -35,7 +36,6 @@ cextern pw_1
pw_m32101234
:
dw
-
3
,
-
2
,
-
1
,
0
,
1
,
2
,
3
,
4
pw_m32101234
:
dw
-
3
,
-
2
,
-
1
,
0
,
1
,
2
,
3
,
4
pw_m3
:
times
8
dw
-
3
pw_m3
:
times
8
dw
-
3
pw_pixel_max
:
times
8
dw
((
1
<<
10
)
-
1
)
pw_pixel_max
:
times
8
dw
((
1
<<
10
)
-
1
)
pw_512
:
times
8
dw
512
pd_17
:
times
4
dd
17
pd_17
:
times
4
dd
17
pd_16
:
times
4
dd
16
pd_16
:
times
4
dd
16
...
...
libavcodec/x86/hevc_deblock.asm
View file @
3c504bc3
...
@@ -27,12 +27,12 @@
...
@@ -27,12 +27,12 @@
SECTION_RODATA
SECTION_RODATA
pw_pixel_max
:
times
8
dw
((
1
<<
10
)
-
1
)
pw_pixel_max
:
times
8
dw
((
1
<<
10
)
-
1
)
pw_m1
:
times
8
dw
-
1
pw_m2
:
times
8
dw
-
2
pw_m2
:
times
8
dw
-
2
pd_1
:
times
4
dd
1
pd_1
:
times
4
dd
1
cextern
pw_4
cextern
pw_4
cextern
pw_8
cextern
pw_8
cextern
pw_m1
SECTION
.
text
SECTION
.
text
INIT_XMM
sse2
INIT_XMM
sse2
...
...
libavcodec/x86/vp8dsp.asm
View file @
3c504bc3
...
@@ -143,13 +143,13 @@ filter_h6_shuf1: db 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11, 7, 12
...
@@ -143,13 +143,13 @@ filter_h6_shuf1: db 0, 5, 1, 6, 2, 7, 3, 8, 4, 9, 5, 10, 6, 11, 7, 12
filter_h6_shuf2
:
db
1
,
2
,
2
,
3
,
3
,
4
,
4
,
5
,
5
,
6
,
6
,
7
,
7
,
8
,
8
,
9
filter_h6_shuf2
:
db
1
,
2
,
2
,
3
,
3
,
4
,
4
,
5
,
5
,
6
,
6
,
7
,
7
,
8
,
8
,
9
filter_h6_shuf3
:
db
3
,
4
,
4
,
5
,
5
,
6
,
6
,
7
,
7
,
8
,
8
,
9
,
9
,
10
,
10
,
11
filter_h6_shuf3
:
db
3
,
4
,
4
,
5
,
5
,
6
,
6
,
7
,
7
,
8
,
8
,
9
,
9
,
10
,
10
,
11
pw_256
:
times
8
dw
256
pw_20091
:
times
4
dw
20091
pw_20091
:
times
4
dw
20091
pw_17734
:
times
4
dw
17734
pw_17734
:
times
4
dw
17734
cextern
pw_3
cextern
pw_3
cextern
pw_4
cextern
pw_4
cextern
pw_64
cextern
pw_64
cextern
pw_256
SECTION
.
text
SECTION
.
text
...
...
libavcodec/x86/vp9dsp.asm
View file @
3c504bc3
...
@@ -24,8 +24,7 @@
...
@@ -24,8 +24,7 @@
SECTION_RODATA
SECTION_RODATA
; FIXME share with vp8dsp.asm
cextern
pw_256
pw_256
:
times
8
dw
256
%macro
F8_TAPS
8
%macro
F8_TAPS
8
times
8
db
%1
,
%2
times
8
db
%1
,
%2
...
...
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