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
5e7051c3
Commit
5e7051c3
authored
Aug 12, 2008
by
Jean-Paul Saman
Committed by
Jean-Paul Saman
Aug 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add video_format_{Copy,Init,Clean} inline functions and bump ABI.
parent
ac20dc54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
include/vlc_es.h
include/vlc_es.h
+28
-0
include/vlc_plugin.h
include/vlc_plugin.h
+2
-2
No files found.
include/vlc_es.h
View file @
5e7051c3
...
@@ -136,6 +136,34 @@ struct video_format_t
...
@@ -136,6 +136,34 @@ struct video_format_t
video_palette_t
*
p_palette
;
/**< video palette from demuxer */
video_palette_t
*
p_palette
;
/**< video palette from demuxer */
};
};
static
inline
void
video_format_Init
(
video_format_t
*
p_src
,
vlc_fourcc_t
i_chroma
)
{
memset
(
p_src
,
0
,
sizeof
(
video_format_t
)
);
p_src
->
i_chroma
=
i_chroma
;
p_src
->
i_sar_num
=
p_src
->
i_sar_den
=
1
;
p_src
->
p_palette
=
NULL
;
}
static
inline
int
video_format_Copy
(
video_format_t
*
p_dst
,
video_format_t
*
p_src
)
{
memcpy
(
p_dst
,
p_src
,
sizeof
(
video_format_t
)
);
if
(
p_src
->
p_palette
)
{
p_dst
->
p_palette
=
(
video_palette_t
*
)
malloc
(
sizeof
(
video_palette_t
)
);
if
(
!
p_dst
->
p_palette
)
return
VLC_ENOMEM
;
memcpy
(
p_dst
->
p_palette
,
p_src
->
p_palette
,
sizeof
(
video_palette_t
)
);
}
return
VLC_SUCCESS
;
};
static
inline
void
video_format_Clean
(
video_format_t
*
p_src
)
{
free
(
p_src
->
p_palette
);
memset
(
p_src
,
0
,
sizeof
(
video_format_t
)
);
p_src
->
p_palette
=
NULL
;
}
/**
/**
* subtitles format description
* subtitles format description
*/
*/
...
...
include/vlc_plugin.h
View file @
5e7051c3
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
/**
/**
* Current plugin ABI version
* Current plugin ABI version
*/
*/
# define MODULE_SYMBOL 0_9_0
m
# define MODULE_SYMBOL 0_9_0
n
# define MODULE_SUFFIX "__0_9_0
m
"
# define MODULE_SUFFIX "__0_9_0
n
"
/*****************************************************************************
/*****************************************************************************
* Add a few defines. You do not want to read this section. Really.
* Add a few defines. You do not want to read this section. Really.
...
...
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