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
b4a911c1
Commit
b4a911c1
authored
May 22, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideoenc: make a table const
parent
296eff4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
mpegvideoenc.c
libavcodec/x86/mpegvideoenc.c
+6
-5
No files found.
libavcodec/x86/mpegvideoenc.c
View file @
b4a911c1
...
...
@@ -28,7 +28,12 @@
#include "libavcodec/mpegvideo.h"
/* not permutated inverse zigzag_direct + 1 for MMX quantizer */
DECLARE_ALIGNED
(
16
,
static
uint16_t
,
inv_zigzag_direct16
)[
64
];
DECLARE_ALIGNED
(
16
,
static
const
uint16_t
,
inv_zigzag_direct16
)[
64
]
=
{
1
,
2
,
6
,
7
,
15
,
16
,
28
,
29
,
3
,
5
,
8
,
14
,
17
,
27
,
30
,
43
,
4
,
9
,
13
,
18
,
26
,
31
,
42
,
44
,
10
,
12
,
19
,
25
,
32
,
41
,
45
,
54
,
11
,
20
,
24
,
33
,
40
,
46
,
53
,
55
,
21
,
23
,
34
,
39
,
47
,
52
,
56
,
61
,
22
,
35
,
38
,
48
,
51
,
57
,
60
,
62
,
36
,
37
,
49
,
50
,
58
,
59
,
63
,
64
,
};
#if HAVE_MMX_INLINE
#define COMPILE_TEMPLATE_MMXEXT 0
...
...
@@ -196,10 +201,6 @@ static void denoise_dct_sse2(MpegEncContext *s, int16_t *block){
av_cold
void
ff_mpv_encode_init_x86
(
MpegEncContext
*
s
)
{
const
int
dct_algo
=
s
->
avctx
->
dct_algo
;
int
i
;
for
(
i
=
0
;
i
<
64
;
i
++
)
inv_zigzag_direct16
[
ff_zigzag_direct
[
i
]]
=
i
+
1
;
if
(
dct_algo
==
FF_DCT_AUTO
||
dct_algo
==
FF_DCT_MMX
)
{
#if HAVE_MMX_INLINE
...
...
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