Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
x264
Commits
7a125e4a
Commit
7a125e4a
authored
Mar 19, 2008
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce the size of some arrays
parent
1d56ef44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
common/common.h
common/common.h
+6
-6
common/macroblock.h
common/macroblock.h
+1
-1
No files found.
common/common.h
View file @
7a125e4a
...
...
@@ -463,10 +463,10 @@ struct x264_t
struct
{
/* real intra4x4_pred_mode if I_4X4 or I_8X8, I_PRED_4x4_DC if mb available, -1 if not */
int
intra4x4_pred_mode
[
X264_SCAN8_SIZE
];
int
8_t
intra4x4_pred_mode
[
X264_SCAN8_SIZE
];
/* i_non_zero_count if available else 0x80 */
int
non_zero_count
[
X264_SCAN8_SIZE
];
int
8_t
non_zero_count
[
X264_SCAN8_SIZE
];
/* -1 if unused, -2 if unavailable */
DECLARE_ALIGNED
(
int8_t
,
ref
[
2
][
X264_SCAN8_SIZE
],
4
);
...
...
@@ -498,11 +498,11 @@ struct x264_t
int
b_direct_auto_write
;
/* analyse direct modes, to use and/or save */
/* B_direct and weighted prediction */
int
dist_scale_factor
[
16
][
2
];
int
bipred_weight
[
32
][
4
];
int
16_t
dist_scale_factor
[
16
][
2
];
int
16_t
bipred_weight
[
32
][
4
];
/* maps fref1[0]'s ref indices into the current list0 */
int
map_col_to_list0_buf
[
2
];
// for negative indices
int
map_col_to_list0
[
16
];
int
8_t
map_col_to_list0_buf
[
2
];
// for negative indices
int
8_t
map_col_to_list0
[
16
];
}
mb
;
/* rate control encoding only */
...
...
common/macroblock.h
View file @
7a125e4a
...
...
@@ -344,7 +344,7 @@ static ALWAYS_INLINE void x264_macroblock_cache_skip( x264_t *h, int x, int y, i
}
static
ALWAYS_INLINE
void
x264_macroblock_cache_intra8x8_pred
(
x264_t
*
h
,
int
x
,
int
y
,
int
i_mode
)
{
int
*
cache
=
&
h
->
mb
.
cache
.
intra4x4_pred_mode
[
X264_SCAN8_0
+
x
+
8
*
y
];
int
8_t
*
cache
=
&
h
->
mb
.
cache
.
intra4x4_pred_mode
[
X264_SCAN8_0
+
x
+
8
*
y
];
cache
[
0
]
=
cache
[
1
]
=
cache
[
8
]
=
cache
[
9
]
=
i_mode
;
}
...
...
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