Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
ceb1c04e
Commit
ceb1c04e
authored
Apr 05, 2002
by
Jon Lech Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./plugins/macosx/vout_macosx.c: memalign -> vlc_memalign
parent
1b0868ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
plugins/macosx/vout_macosx.c
plugins/macosx/vout_macosx.c
+12
-1
No files found.
plugins/macosx/vout_macosx.c
View file @
ceb1c04e
...
...
@@ -614,8 +614,12 @@ static int QTNewPicture( vout_thread_t *p_vout, picture_t *p_pic )
p_pic
->
p_sys
->
p_info
=
(
void
*
)
&
p_pic
->
p_sys
->
pixmap_i420
;
p_pic
->
p_sys
->
i_size
=
sizeof
(
PlanarPixmapInfoYUV420
);
/* Allocate the memory buffer */
p_pic
->
p_data
=
vlc_memalign
(
16
,
i_width
*
i_height
*
3
/
2
,
&
p_pic
->
p_data_orig
);
/* Y buffer */
p_pic
->
Y_PIXELS
=
memalign
(
16
,
i_width
*
i_height
*
3
/
2
);
p_pic
->
Y_PIXELS
=
p_pic
->
p_data
;
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_pitch
=
i_width
;
p_pic
->
p
[
Y_PLANE
].
i_pixel_bytes
=
1
;
...
...
@@ -671,6 +675,13 @@ static int QTNewPicture( vout_thread_t *p_vout, picture_t *p_pic )
*****************************************************************************/
static
void
QTFreePicture
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
)
{
switch
(
p_vout
->
output
.
i_chroma
)
{
case
FOURCC_I420
:
free
(
p_pic
->
p_data_orig
);
break
;
}
free
(
p_pic
->
p_sys
);
}
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