Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e5058da0
Commit
e5058da0
authored
May 09, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used vlc_memalign for vaapi/dxva2 copy buffer
parent
54bac7d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
modules/codec/avcodec/copy.c
modules/codec/avcodec/copy.c
+2
-5
modules/codec/avcodec/copy.h
modules/codec/avcodec/copy.h
+1
-1
No files found.
modules/codec/avcodec/copy.c
View file @
e5058da0
...
...
@@ -297,12 +297,9 @@ static void SplitPlanes(uint8_t *dstu, size_t dstu_pitch,
int
CopyInitCache
(
copy_cache_t
*
cache
,
unsigned
width
)
{
cache
->
size
=
__MAX
((
width
+
0x0f
)
&
~
0x0f
,
4096
);
cache
->
base
=
malloc
(
16
+
cache
->
size
);
if
(
cache
->
base
==
NULL
)
{
cache
->
buffer
=
NULL
;
cache
->
buffer
=
vlc_memalign
(
&
cache
->
base
,
16
,
cache
->
size
);
if
(
!
cache
->
base
)
return
VLC_EGENERIC
;
}
cache
->
buffer
=
&
cache
->
base
[
16
-
((
intptr_t
)
cache
->
base
&
0x0f
)];
return
VLC_SUCCESS
;
}
void
CopyCleanCache
(
copy_cache_t
*
cache
)
...
...
modules/codec/avcodec/copy.h
View file @
e5058da0
...
...
@@ -25,7 +25,7 @@
#define _VLC_AVCODEC_COPY_H 1
typedef
struct
{
uint8_t
*
base
;
void
*
base
;
uint8_t
*
buffer
;
size_t
size
;
}
copy_cache_t
;
...
...
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