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
2ca78936
Commit
2ca78936
authored
Aug 31, 2014
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rl.h: remove deprecated and now unused vlc member.
Signed-off-by:
Reimar Döffinger
<
Reimar.Doeffinger@gmx.de
>
parent
2c43cfe2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
14 deletions
+15
-14
mpeg12.c
libavcodec/mpeg12.c
+7
-6
mpegvideo.c
libavcodec/mpegvideo.c
+4
-4
rl.h
libavcodec/rl.h
+4
-4
No files found.
libavcodec/mpeg12.c
View file @
2ca78936
...
...
@@ -70,21 +70,22 @@ static const uint8_t table_mb_btype[11][2] = {
#define INIT_2D_VLC_RL(rl, static_size)\
{\
static RL_VLC_ELEM rl_vlc_table[static_size];\
INIT_VLC_STATIC(&rl.vlc, TEX_VLC_BITS, rl.n + 2,\
VLC tmp_vlc;\
INIT_VLC_STATIC(&tmp_vlc, TEX_VLC_BITS, rl.n + 2,\
&rl.table_vlc[0][1], 4, 2,\
&rl.table_vlc[0][0], 4, 2, static_size);\
\
rl.rl_vlc[0] = rl_vlc_table;\
init_2d_vlc_rl(&rl);\
init_2d_vlc_rl(&rl
, &tmp_vlc
);\
}
static
av_cold
void
init_2d_vlc_rl
(
RLTable
*
rl
)
static
av_cold
void
init_2d_vlc_rl
(
RLTable
*
rl
,
const
VLC
*
vlc
)
{
int
i
;
for
(
i
=
0
;
i
<
rl
->
vlc
.
table_size
;
i
++
)
{
int
code
=
rl
->
vlc
.
table
[
i
][
0
];
int
len
=
rl
->
vlc
.
table
[
i
][
1
];
for
(
i
=
0
;
i
<
vlc
->
table_size
;
i
++
)
{
int
code
=
vlc
->
table
[
i
][
0
];
int
len
=
vlc
->
table
[
i
][
1
];
int
level
,
run
;
if
(
len
==
0
)
{
// illegal code
...
...
libavcodec/mpegvideo.c
View file @
2ca78936
...
...
@@ -1618,7 +1618,7 @@ av_cold void ff_init_rl(RLTable *rl,
}
}
av_cold
void
ff_init_vlc_rl
(
RLTable
*
rl
)
av_cold
void
ff_init_vlc_rl
(
RLTable
*
rl
,
const
VLC
*
vlc
)
{
int
i
,
q
;
...
...
@@ -1630,9 +1630,9 @@ av_cold void ff_init_vlc_rl(RLTable *rl)
qmul
=
1
;
qadd
=
0
;
}
for
(
i
=
0
;
i
<
rl
->
vlc
.
table_size
;
i
++
)
{
int
code
=
rl
->
vlc
.
table
[
i
][
0
];
int
len
=
rl
->
vlc
.
table
[
i
][
1
];
for
(
i
=
0
;
i
<
vlc
->
table_size
;
i
++
)
{
int
code
=
vlc
->
table
[
i
][
0
];
int
len
=
vlc
->
table
[
i
][
1
];
int
level
,
run
;
if
(
len
==
0
)
{
// illegal code
...
...
libavcodec/rl.h
View file @
2ca78936
...
...
@@ -44,7 +44,6 @@ typedef struct RLTable {
uint8_t
*
index_run
[
2
];
///< encoding only
int8_t
*
max_level
[
2
];
///< encoding & decoding
int8_t
*
max_run
[
2
];
///< encoding & decoding
VLC
vlc
;
///< decoding only deprecated FIXME remove
RL_VLC_ELEM
*
rl_vlc
[
32
];
///< decoding only
}
RLTable
;
...
...
@@ -54,13 +53,14 @@ typedef struct RLTable {
* the level and run tables, if this is NULL av_malloc() will be used
*/
void
ff_init_rl
(
RLTable
*
rl
,
uint8_t
static_store
[
2
][
2
*
MAX_RUN
+
MAX_LEVEL
+
3
]);
void
ff_init_vlc_rl
(
RLTable
*
rl
);
void
ff_init_vlc_rl
(
RLTable
*
rl
,
const
VLC
*
vlc
);
#define INIT_VLC_RL(rl, static_size)\
{\
int q;\
static RL_VLC_ELEM rl_vlc_table[32][static_size];\
INIT_VLC_STATIC(&rl.vlc, 9, rl.n + 1,\
VLC tmp_vlc;\
INIT_VLC_STATIC(&tmp_vlc, 9, rl.n + 1,\
&rl.table_vlc[0][1], 4, 2,\
&rl.table_vlc[0][0], 4, 2, static_size);\
\
...
...
@@ -68,7 +68,7 @@ void ff_init_vlc_rl(RLTable *rl);
for(q=0; q<32; q++)\
rl.rl_vlc[q]= rl_vlc_table[q];\
\
ff_init_vlc_rl(&rl);\
ff_init_vlc_rl(&rl
, &tmp_vlc
);\
}\
}
...
...
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