Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-libclient
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-libclient
Commits
387fad27
Commit
387fad27
authored
5 years ago
by
Kateryna Kostiuk
Committed by
Andreas Traczyk
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
avmodel: fix using avframe
Change-Id: I13386f241c489bb6896d09ee9d21172d1880b6d6
parent
b5a545dc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/api/newvideo.h
+1
-1
1 addition, 1 deletion
src/api/newvideo.h
src/avmodel.cpp
+6
-3
6 additions, 3 deletions
src/avmodel.cpp
src/newvideo.cpp
+3
-3
3 additions, 3 deletions
src/newvideo.cpp
with
10 additions
and
7 deletions
src/api/newvideo.h
+
1
−
1
View file @
387fad27
...
...
@@ -103,7 +103,7 @@ class LIB_EXPORT Renderer : public QObject {
Q_OBJECT
public:
Renderer
(
const
std
::
string
&
id
,
Settings
videoSettings
,
const
std
::
string
&
shmPath
=
""
);
const
std
::
string
&
shmPath
=
""
,
const
bool
useAVFrame
=
false
);
~
Renderer
();
/**
...
...
This diff is collapsed.
Click to expand it.
src/avmodel.cpp
+
6
−
3
View file @
387fad27
...
...
@@ -67,6 +67,7 @@ public:
std
::
map
<
std
::
string
,
std
::
unique_ptr
<
video
::
Renderer
>>
renderers_
;
// store if a renderers is for a finished call
std
::
map
<
std
::
string
,
bool
>
finishedRenderers_
;
bool
useAVFrame_
=
false
;
#ifndef ENABLE_LIBWRAP
// TODO: Init Video Renderers from daemon (see: https://git.ring.cx/savoirfairelinux/ring-daemon/issues/59)
...
...
@@ -441,9 +442,11 @@ AVModel::startLocalRecorder(const bool& audioOnly) const
void
AVModel
::
useAVFrame
(
bool
useAVFrame
)
{
pimpl_
->
useAVFrame_
=
useAVFrame
;
for
(
auto
it
=
pimpl_
->
renderers_
.
cbegin
();
it
!=
pimpl_
->
renderers_
.
cend
();
++
it
)
{
it
->
second
->
useAVFrame
(
useAVFrame
);
it
->
second
->
useAVFrame
(
pimpl_
->
useAVFrame
_
);
}
//TODO remove when switch to new av model
VideoRendererManager
::
instance
().
useAVFrame
(
useAVFrame
);
}
...
...
@@ -587,7 +590,7 @@ AVModelPimpl::init()
// add preview renderer
renderers_
.
insert
(
std
::
make_pair
(
video
::
PREVIEW_RENDERER_ID
,
std
::
make_unique
<
video
::
Renderer
>
(
video
::
PREVIEW_RENDERER_ID
,
linked_
.
getDeviceSettings
(
linked_
.
getDefaultDeviceName
()))));
linked_
.
getDeviceSettings
(
linked_
.
getDefaultDeviceName
())
,
""
,
useAVFrame_
)));
#ifndef ENABLE_LIBWRAP
SIZE_RENDERER
=
renderers_
.
size
();
#endif
...
...
@@ -659,7 +662,7 @@ AVModelPimpl::startedDecoding(const std::string& id, const std::string& shmPath,
video
::
Settings
settings
;
settings
.
size
=
res
;
renderers_
.
insert
(
std
::
make_pair
(
id
,
std
::
make_unique
<
video
::
Renderer
>
(
id
.
c_str
(),
settings
,
shmPath
)));
std
::
make_unique
<
video
::
Renderer
>
(
id
.
c_str
(),
settings
,
shmPath
,
useAVFrame_
)));
finishedRenderers_
.
insert
(
std
::
make_pair
(
id
,
false
));
#ifndef ENABLE_LIBWRAP
SIZE_RENDERER
=
renderers_
.
size
();
...
...
This diff is collapsed.
Click to expand it.
src/newvideo.cpp
+
3
−
3
View file @
387fad27
...
...
@@ -38,7 +38,7 @@ class RendererPimpl: public QObject
public:
RendererPimpl
(
Renderer
&
linked
,
const
std
::
string
&
id
,
Settings
videoSettings
,
const
std
::
string
&
shmPath
,
bool
useAVFrame
=
false
);
const
bool
useAVFrame
);
~
RendererPimpl
();
Renderer
&
linked
;
...
...
@@ -77,8 +77,8 @@ namespace video
{
Renderer
::
Renderer
(
const
std
::
string
&
id
,
Settings
videoSettings
,
const
std
::
string
&
shmPath
)
:
pimpl_
(
std
::
make_unique
<
RendererPimpl
>
(
*
this
,
id
,
videoSettings
,
shmPath
))
const
std
::
string
&
shmPath
,
const
bool
useAVFrame
)
:
pimpl_
(
std
::
make_unique
<
RendererPimpl
>
(
*
this
,
id
,
videoSettings
,
shmPath
,
useAVFrame
))
{}
Renderer
::~
Renderer
()
...
...
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