Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
x264
Commits
adb5d4bf
Commit
adb5d4bf
authored
Dec 09, 2010
by
Yasuhiro Ikeda
Committed by
Fiona Glaser
Dec 14, 2010
Browse files
Save more memory with weightp in >8-bit
parent
031b37d3
Changes
1
Show whitespace changes
Inline
Side-by-side
common/macroblock.c
View file @
adb5d4bf
...
@@ -272,8 +272,8 @@ int x264_macroblock_cache_allocate( x264_t *h )
...
@@ -272,8 +272,8 @@ int x264_macroblock_cache_allocate( x264_t *h )
luma_plane_size
=
h
->
fdec
->
i_stride
[
0
]
*
(
h
->
mb
.
i_mb_height
*
16
+
2
*
i_padv
);
luma_plane_size
=
h
->
fdec
->
i_stride
[
0
]
*
(
h
->
mb
.
i_mb_height
*
16
+
2
*
i_padv
);
if
(
h
->
param
.
analyse
.
i_weighted_pred
==
X264_WEIGHTP_SMART
)
if
(
h
->
param
.
analyse
.
i_weighted_pred
==
X264_WEIGHTP_SMART
)
//
SMART
can weight one ref and one offset -1
//
smart
can weight one ref and one offset -1
in 8-bit
numweightbuf
=
2
;
numweightbuf
=
1
+
(
BIT_DEPTH
==
8
)
;
else
else
//simple only has one weighted ref
//simple only has one weighted ref
numweightbuf
=
1
;
numweightbuf
=
1
;
...
...
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