Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
ea223bd6
Commit
ea223bd6
authored
11 years ago
by
Guillaume Roguez
Browse files
Options
Downloads
Patches
Plain Diff
#30253: video: cleanup mixer background when resized.
parent
19a3a788
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
daemon/src/video/video_base.cpp
+8
-0
8 additions, 0 deletions
daemon/src/video/video_base.cpp
daemon/src/video/video_base.h
+1
-0
1 addition, 0 deletions
daemon/src/video/video_base.h
daemon/src/video/video_mixer.cpp
+5
-0
5 additions, 0 deletions
daemon/src/video/video_mixer.cpp
with
14 additions
and
0 deletions
daemon/src/video/video_base.cpp
+
8
−
0
View file @
ea223bd6
...
@@ -202,6 +202,14 @@ void VideoFrame::copy(VideoFrame &dst)
...
@@ -202,6 +202,14 @@ void VideoFrame::copy(VideoFrame &dst)
frame_
->
height
);
frame_
->
height
);
}
}
void
VideoFrame
::
clear
()
{
// FIXME: beurk!!!!
memset
(
frame_
->
data
[
0
],
0
,
frame_
->
linesize
[
0
]
*
frame_
->
height
);
memset
(
frame_
->
data
[
1
],
0
,
frame_
->
linesize
[
1
]
*
frame_
->
height
/
2
);
memset
(
frame_
->
data
[
2
],
0
,
frame_
->
linesize
[
2
]
*
frame_
->
height
/
2
);
}
void
VideoFrame
::
test
()
void
VideoFrame
::
test
()
{
{
memset
(
frame_
->
data
[
0
],
0xaa
,
frame_
->
linesize
[
0
]
*
frame_
->
height
/
2
);
memset
(
frame_
->
data
[
0
],
0xaa
,
frame_
->
linesize
[
0
]
*
frame_
->
height
/
2
);
...
...
This diff is collapsed.
Click to expand it.
daemon/src/video/video_base.h
+
1
−
0
View file @
ea223bd6
...
@@ -203,6 +203,7 @@ public:
...
@@ -203,6 +203,7 @@ public:
bool
allocBuffer
(
int
width
,
int
height
,
int
pix_fmt
);
bool
allocBuffer
(
int
width
,
int
height
,
int
pix_fmt
);
int
blit
(
VideoFrame
&
src
,
int
xoff
,
int
yoff
);
int
blit
(
VideoFrame
&
src
,
int
xoff
,
int
yoff
);
void
copy
(
VideoFrame
&
src
);
void
copy
(
VideoFrame
&
src
);
void
clear
();
void
test
();
void
test
();
private
:
private
:
...
...
This diff is collapsed.
Click to expand it.
daemon/src/video/video_mixer.cpp
+
5
−
0
View file @
ea223bd6
...
@@ -136,6 +136,11 @@ void VideoMixer::setDimensions(int width, int height)
...
@@ -136,6 +136,11 @@ void VideoMixer::setDimensions(int width, int height)
width_
=
width
;
width_
=
width
;
height_
=
height
;
height_
=
height
;
// cleanup the previous frame to have a nice copy in rendering method
VideoFrameSP
previous_p
=
obtainLastFrame
();
if
(
previous_p
)
previous_p
->
clear
();
stop_sink
();
stop_sink
();
start_sink
();
start_sink
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment