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
2fe89852
Commit
2fe89852
authored
Apr 22, 2008
by
Loren Merritt
Browse files
remove void* arithmetic from r821
parent
8b6df37d
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/frame.c
View file @
2fe89852
...
...
@@ -62,13 +62,13 @@ x264_frame_t *x264_frame_new( x264_t *h )
for
(
i
=
1
;
i
<
3
;
i
++
)
{
CHECKED_MALLOC
(
frame
->
buffer
[
i
],
luma_plane_size
/
4
);
frame
->
plane
[
i
]
=
frame
->
buffer
[
i
]
+
(
frame
->
i_stride
[
i
]
*
i_padv
+
PADH
)
/
2
;
frame
->
plane
[
i
]
=
(
uint8_t
*
)
frame
->
buffer
[
i
]
+
(
frame
->
i_stride
[
i
]
*
i_padv
+
PADH
)
/
2
;
}
/* all 4 luma planes allocated together, since the cacheline split code
* requires them to be in-phase wrt cacheline alignment. */
CHECKED_MALLOC
(
frame
->
buffer
[
0
],
4
*
luma_plane_size
);
for
(
i
=
0
;
i
<
4
;
i
++
)
frame
->
filtered
[
i
]
=
frame
->
buffer
[
0
]
+
i
*
luma_plane_size
+
frame
->
i_stride
[
0
]
*
i_padv
+
PADH
;
frame
->
filtered
[
i
]
=
(
uint8_t
*
)
frame
->
buffer
[
0
]
+
i
*
luma_plane_size
+
frame
->
i_stride
[
0
]
*
i_padv
+
PADH
;
frame
->
plane
[
0
]
=
frame
->
filtered
[
0
];
if
(
h
->
frames
.
b_have_lowres
)
...
...
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