Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
eaad1ce3
Commit
eaad1ce3
authored
May 25, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used vlc_memalign in opengl.c
parent
602d4482
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/video_output/opengl.c
modules/video_output/opengl.c
+5
-4
No files found.
modules/video_output/opengl.c
View file @
eaad1ce3
...
...
@@ -103,6 +103,7 @@ struct vout_display_opengl_t {
GLuint
texture
[
VLCGL_TEXTURE_COUNT
];
uint8_t
*
buffer
[
VLCGL_TEXTURE_COUNT
];
void
*
buffer_base
[
VLCGL_TEXTURE_COUNT
];
picture_pool_t
*
pool
;
};
...
...
@@ -212,6 +213,7 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
for
(
int
i
=
0
;
i
<
VLCGL_TEXTURE_COUNT
;
i
++
)
{
vgl
->
texture
[
i
]
=
0
;
vgl
->
buffer
[
i
]
=
NULL
;
vgl
->
buffer_base
[
i
]
=
NULL
;
}
vgl
->
pool
=
NULL
;
...
...
@@ -233,7 +235,7 @@ void vout_display_opengl_Delete(vout_display_opengl_t *vgl)
if
(
vgl
->
pool
)
{
picture_pool_Delete
(
vgl
->
pool
);
for
(
int
i
=
0
;
i
<
VLCGL_TEXTURE_COUNT
;
i
++
)
free
(
vgl
->
buffer
[
i
]);
free
(
vgl
->
buffer
_base
[
i
]);
}
free
(
vgl
);
}
...
...
@@ -283,9 +285,8 @@ picture_pool_t *vout_display_opengl_GetPool(vout_display_opengl_t *vgl)
int
i
;
for
(
i
=
0
;
i
<
VLCGL_TEXTURE_COUNT
;
i
++
)
{
/* TODO memalign would be way better */
vgl
->
buffer
[
i
]
=
malloc
(
vgl
->
tex_width
*
vgl
->
tex_height
*
vgl
->
chroma
->
pixel_size
);
vgl
->
buffer
[
i
]
=
vlc_memalign
(
&
vgl
->
buffer_base
[
i
],
16
,
vgl
->
tex_width
*
vgl
->
tex_height
*
vgl
->
chroma
->
pixel_size
);
if
(
!
vgl
->
buffer
[
i
])
break
;
...
...
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