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
c09b9f61
Commit
c09b9f61
authored
May 16, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Should fix another bunch of: (near initialization for `fmt*') warnings.
parent
e52e4641
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
6 deletions
+17
-6
modules/video_filter/opencv_wrapper.c
modules/video_filter/opencv_wrapper.c
+5
-2
modules/video_filter/psychedelic.c
modules/video_filter/psychedelic.c
+2
-1
modules/video_filter/puzzle.c
modules/video_filter/puzzle.c
+2
-1
modules/visualization/goom.c
modules/visualization/goom.c
+4
-1
modules/visualization/visual/visual.c
modules/visualization/visual/visual.c
+4
-1
No files found.
modules/video_filter/opencv_wrapper.c
View file @
c09b9f61
...
...
@@ -299,11 +299,12 @@ static int Init( vout_thread_t *p_vout )
{
int
i_index
;
picture_t
*
p_pic
;
video_format_t
fmt
=
{
0
}
;
video_format_t
fmt
;
vout_sys_t
*
p_sys
=
p_vout
->
p_sys
;
I_OUTPUTPICTURES
=
0
;
/* Initialize the output video format */
memset
(
&
fmt
,
0
,
sizeof
(
video_format_t
)
);
p_vout
->
output
.
i_chroma
=
p_vout
->
render
.
i_chroma
;
p_vout
->
output
.
i_width
=
p_vout
->
render
.
i_width
;
p_vout
->
output
.
i_height
=
p_vout
->
render
.
i_height
;
...
...
@@ -456,12 +457,14 @@ static void VlcPictureToIplImage( vout_thread_t *p_vout, picture_t *p_in )
int
planes
=
p_in
->
i_planes
;
//num input video planes
// input video size
CvSize
sz
=
cvSize
(
abs
(
p_in
->
format
.
i_width
),
abs
(
p_in
->
format
.
i_height
));
video_format_t
fmt_out
=
{
0
}
;
video_format_t
fmt_out
;
clock_t
start
,
finish
;
//performance measures
double
duration
;
int
i
=
0
;
vout_sys_t
*
p_sys
=
p_vout
->
p_sys
;
memset
(
&
fmt_out
,
0
,
sizeof
(
video_format_t
)
);
start
=
clock
();
//do scale / color conversion according to p_sys config
...
...
modules/video_filter/psychedelic.c
View file @
c09b9f61
...
...
@@ -135,7 +135,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
uint8_t
u
,
v
;
picture_t
*
p_converted
;
video_format_t
fmt_out
=
{
0
};
video_format_t
fmt_out
;
memset
(
&
fmt_out
,
0
,
sizeof
(
video_format_t
)
);
fmt_out
.
p_palette
=
NULL
;
if
(
!
p_pic
)
return
NULL
;
...
...
modules/video_filter/puzzle.c
View file @
c09b9f61
...
...
@@ -349,7 +349,8 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
{
picture_t
*
p_outpic
;
//video_format_t fmt_out = {0};
//video_format_t fmt_out;
// memset( &fmt_out, 0, sizeof(video_format_t) );
//picture_t *p_converted;
int
i_plane
;
...
...
modules/visualization/goom.c
View file @
c09b9f61
...
...
@@ -131,7 +131,8 @@ static int Open( vlc_object_t *p_this )
aout_filter_sys_t
*
p_sys
;
goom_thread_t
*
p_thread
;
vlc_value_t
width
,
height
;
video_format_t
fmt
=
{
0
};
video_format_t
fmt
;
if
(
p_filter
->
input
.
i_format
!=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
||
p_filter
->
output
.
i_format
!=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
)
...
...
@@ -161,6 +162,8 @@ static int Open( vlc_object_t *p_this )
var_Create
(
p_thread
,
"goom-height"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_thread
,
"goom-height"
,
&
height
);
memset
(
&
fmt
,
0
,
sizeof
(
video_format_t
)
);
fmt
.
i_width
=
fmt
.
i_visible_width
=
width
.
i_int
;
fmt
.
i_height
=
fmt
.
i_visible_height
=
height
.
i_int
;
fmt
.
i_chroma
=
VLC_FOURCC
(
'R'
,
'V'
,
'3'
,
'2'
);
...
...
modules/visualization/visual/visual.c
View file @
c09b9f61
...
...
@@ -188,7 +188,8 @@ static int Open( vlc_object_t *p_this )
vlc_value_t
val
;
char
*
psz_effects
,
*
psz_parser
;
video_format_t
fmt
=
{
0
};
video_format_t
fmt
;
if
(
(
p_filter
->
input
.
i_format
!=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
&&
p_filter
->
input
.
i_format
!=
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
)
)
)
...
...
@@ -302,6 +303,8 @@ static int Open( vlc_object_t *p_this )
}
/* Open the video output */
memset
(
&
fmt
,
0
,
sizeof
(
video_format_t
)
);
fmt
.
i_width
=
fmt
.
i_visible_width
=
p_sys
->
i_width
;
fmt
.
i_height
=
fmt
.
i_visible_height
=
p_sys
->
i_height
;
fmt
.
i_chroma
=
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
);
...
...
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