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
52cd84d4
Commit
52cd84d4
authored
Apr 04, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h261: Move mvmap table to the only place it is used
parent
0404ec61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
h261data.h
libavcodec/h261data.h
+0
-4
h261dec.c
libavcodec/h261dec.c
+4
-0
No files found.
libavcodec/h261data.h
View file @
52cd84d4
...
@@ -92,10 +92,6 @@ static const uint8_t h261_mv_tab[17][2] = {
...
@@ -92,10 +92,6 @@ static const uint8_t h261_mv_tab[17][2] = {
{
11
,
9
},
{
10
,
9
},
{
9
,
9
},
{
17
,
10
},
{
16
,
10
},
{
15
,
10
},
{
14
,
10
},
{
13
,
10
},
{
12
,
10
}
{
11
,
9
},
{
10
,
9
},
{
9
,
9
},
{
17
,
10
},
{
16
,
10
},
{
15
,
10
},
{
14
,
10
},
{
13
,
10
},
{
12
,
10
}
};
};
static
const
int
mvmap
[
17
]
=
{
0
,
-
1
,
-
2
,
-
3
,
-
4
,
-
5
,
-
6
,
-
7
,
-
8
,
-
9
,
-
10
,
-
11
,
-
12
,
-
13
,
-
14
,
-
15
,
-
16
};
// H.261 VLC table for coded block pattern
// H.261 VLC table for coded block pattern
static
const
uint8_t
h261_cbp_tab
[
63
][
2
]
=
{
static
const
uint8_t
h261_cbp_tab
[
63
][
2
]
=
{
{
11
,
5
},
{
9
,
5
},
{
13
,
6
},
{
13
,
4
},
{
23
,
7
},
{
19
,
7
},
{
31
,
8
},
{
12
,
4
},
{
11
,
5
},
{
9
,
5
},
{
13
,
6
},
{
13
,
4
},
{
23
,
7
},
{
19
,
7
},
{
31
,
8
},
{
12
,
4
},
...
...
libavcodec/h261dec.c
View file @
52cd84d4
...
@@ -222,6 +222,10 @@ static int h261_decode_mb_skipped(H261Context *h, int mba1, int mba2)
...
@@ -222,6 +222,10 @@ static int h261_decode_mb_skipped(H261Context *h, int mba1, int mba2)
return
0
;
return
0
;
}
}
static
const
int
mvmap
[
17
]
=
{
0
,
-
1
,
-
2
,
-
3
,
-
4
,
-
5
,
-
6
,
-
7
,
-
8
,
-
9
,
-
10
,
-
11
,
-
12
,
-
13
,
-
14
,
-
15
,
-
16
};
static
int
decode_mv_component
(
GetBitContext
*
gb
,
int
v
)
static
int
decode_mv_component
(
GetBitContext
*
gb
,
int
v
)
{
{
int
mv_diff
=
get_vlc2
(
gb
,
h261_mv_vlc
.
table
,
H261_MV_VLC_BITS
,
2
);
int
mv_diff
=
get_vlc2
(
gb
,
h261_mv_vlc
.
table
,
H261_MV_VLC_BITS
,
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