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
Steve Lhomme
VLC
Commits
523bba18
Commit
523bba18
authored
Nov 06, 2010
by
Laurent Aimar
Browse files
Added video_format_CopyCrop helper.
parent
6d0e1d17
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/vlc_es.h
View file @
523bba18
...
...
@@ -172,6 +172,11 @@ static inline void video_format_Clean( video_format_t *p_src )
*/
VLC_EXPORT
(
void
,
video_format_Setup
,
(
video_format_t
*
,
vlc_fourcc_t
i_chroma
,
int
i_width
,
int
i_height
,
int
i_sar_num
,
int
i_sar_den
)
);
/**
* It will copy the crop properties from a video_format_t to another.
*/
VLC_EXPORT
(
void
,
video_format_CopyCrop
,
(
video_format_t
*
,
const
video_format_t
*
)
);
/**
* This function will check if the first video format is similar
* to the second one.
...
...
src/libvlccore.sym
View file @
523bba18
...
...
@@ -485,6 +485,7 @@ var_TriggerCallback
var_Type
var_Inherit
var_InheritURational
video_format_CopyCrop
video_format_FixRgb
video_format_IsSimilar
video_format_Setup
...
...
src/misc/es_format.c
View file @
523bba18
...
...
@@ -206,6 +206,15 @@ void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma,
break
;
}
}
void
video_format_CopyCrop
(
video_format_t
*
p_dst
,
const
video_format_t
*
p_src
)
{
p_dst
->
i_x_offset
=
p_src
->
i_x_offset
;
p_dst
->
i_y_offset
=
p_src
->
i_y_offset
;
p_dst
->
i_visible_width
=
p_src
->
i_visible_width
;
p_dst
->
i_visible_height
=
p_src
->
i_visible_height
;
}
bool
video_format_IsSimilar
(
const
video_format_t
*
p_fmt1
,
const
video_format_t
*
p_fmt2
)
{
video_format_t
v1
=
*
p_fmt1
;
...
...
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