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
3dcd3e08
Commit
3dcd3e08
authored
Sep 12, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/proresdec2: remove duplicated tables
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
b8b39802
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
25 deletions
+4
-25
Makefile
libavcodec/Makefile
+1
-1
proresdec2.c
libavcodec/proresdec2.c
+3
-24
No files found.
libavcodec/Makefile
View file @
3dcd3e08
...
@@ -343,7 +343,7 @@ OBJS-$(CONFIG_PNG_DECODER) += png.o pngdec.o pngdsp.o
...
@@ -343,7 +343,7 @@ OBJS-$(CONFIG_PNG_DECODER) += png.o pngdec.o pngdsp.o
OBJS-$(CONFIG_PNG_ENCODER)
+=
png.o
pngenc.o
OBJS-$(CONFIG_PNG_ENCODER)
+=
png.o
pngenc.o
OBJS-$(CONFIG_PPM_DECODER)
+=
pnmdec.o
pnm.o
OBJS-$(CONFIG_PPM_DECODER)
+=
pnmdec.o
pnm.o
OBJS-$(CONFIG_PPM_ENCODER)
+=
pnmenc.o
pnm.o
OBJS-$(CONFIG_PPM_ENCODER)
+=
pnmenc.o
pnm.o
OBJS-$(CONFIG_PRORES_DECODER)
+=
proresdec2.o
proresdsp.o
OBJS-$(CONFIG_PRORES_DECODER)
+=
proresdec2.o
proresdsp.o
proresdata.o
OBJS-$(CONFIG_PRORES_LGPL_DECODER)
+=
proresdec_lgpl.o
proresdsp.o
proresdata.o
OBJS-$(CONFIG_PRORES_LGPL_DECODER)
+=
proresdec_lgpl.o
proresdsp.o
proresdata.o
OBJS-$(CONFIG_PRORES_ENCODER)
+=
proresenc_anatoliy.o
OBJS-$(CONFIG_PRORES_ENCODER)
+=
proresenc_anatoliy.o
OBJS-$(CONFIG_PRORES_AW_ENCODER)
+=
proresenc_anatoliy.o
OBJS-$(CONFIG_PRORES_AW_ENCODER)
+=
proresenc_anatoliy.o
...
...
libavcodec/proresdec2.c
View file @
3dcd3e08
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include "internal.h"
#include "internal.h"
#include "simple_idct.h"
#include "simple_idct.h"
#include "proresdec.h"
#include "proresdec.h"
#include "proresdata.h"
static
void
permute
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
const
uint8_t
permutation
[
64
])
static
void
permute
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
const
uint8_t
permutation
[
64
])
{
{
...
@@ -41,28 +42,6 @@ static void permute(uint8_t *dst, const uint8_t *src, const uint8_t permutation[
...
@@ -41,28 +42,6 @@ static void permute(uint8_t *dst, const uint8_t *src, const uint8_t permutation[
dst
[
i
]
=
permutation
[
src
[
i
]];
dst
[
i
]
=
permutation
[
src
[
i
]];
}
}
static
const
uint8_t
progressive_scan
[
64
]
=
{
0
,
1
,
8
,
9
,
2
,
3
,
10
,
11
,
16
,
17
,
24
,
25
,
18
,
19
,
26
,
27
,
4
,
5
,
12
,
20
,
13
,
6
,
7
,
14
,
21
,
28
,
29
,
22
,
15
,
23
,
30
,
31
,
32
,
33
,
40
,
48
,
41
,
34
,
35
,
42
,
49
,
56
,
57
,
50
,
43
,
36
,
37
,
44
,
51
,
58
,
59
,
52
,
45
,
38
,
39
,
46
,
53
,
60
,
61
,
54
,
47
,
55
,
62
,
63
};
static
const
uint8_t
interlaced_scan
[
64
]
=
{
0
,
8
,
1
,
9
,
16
,
24
,
17
,
25
,
2
,
10
,
3
,
11
,
18
,
26
,
19
,
27
,
32
,
40
,
33
,
34
,
41
,
48
,
56
,
49
,
42
,
35
,
43
,
50
,
57
,
58
,
51
,
59
,
4
,
12
,
5
,
6
,
13
,
20
,
28
,
21
,
14
,
7
,
15
,
22
,
29
,
36
,
44
,
37
,
30
,
23
,
31
,
38
,
45
,
52
,
60
,
53
,
46
,
39
,
47
,
54
,
61
,
62
,
55
,
63
,
};
static
av_cold
int
decode_init
(
AVCodecContext
*
avctx
)
static
av_cold
int
decode_init
(
AVCodecContext
*
avctx
)
{
{
ProresContext
*
ctx
=
avctx
->
priv_data
;
ProresContext
*
ctx
=
avctx
->
priv_data
;
...
@@ -76,8 +55,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
...
@@ -76,8 +55,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
ff_init_scantable_permutation
(
idct_permutation
,
ff_init_scantable_permutation
(
idct_permutation
,
ctx
->
prodsp
.
idct_permutation_type
);
ctx
->
prodsp
.
idct_permutation_type
);
permute
(
ctx
->
progressive_scan
,
progressive_scan
,
idct_permutation
);
permute
(
ctx
->
progressive_scan
,
ff_prores_
progressive_scan
,
idct_permutation
);
permute
(
ctx
->
interlaced_scan
,
interlaced_scan
,
idct_permutation
);
permute
(
ctx
->
interlaced_scan
,
ff_prores_
interlaced_scan
,
idct_permutation
);
return
0
;
return
0
;
}
}
...
...
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