Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
e14afc55
Commit
e14afc55
authored
Oct 29, 2016
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SequenceWorkflow: Rename SW::Clip to ClipInstance
parent
a7859e48
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
src/Commands/Commands.h
src/Commands/Commands.h
+3
-3
src/Workflow/SequenceWorkflow.cpp
src/Workflow/SequenceWorkflow.cpp
+4
-4
src/Workflow/SequenceWorkflow.h
src/Workflow/SequenceWorkflow.h
+6
-6
No files found.
src/Commands/Commands.h
View file @
e14afc55
...
...
@@ -133,7 +133,7 @@ namespace Commands
private:
std
::
shared_ptr
<
SequenceWorkflow
>
m_workflow
;
QSharedPointer
<
SequenceWorkflow
::
Clip
>
m_clip
;
QSharedPointer
<
SequenceWorkflow
::
Clip
Instance
>
m_clip
;
quint32
m_trackId
;
qint64
m_pos
;
};
...
...
@@ -156,7 +156,7 @@ namespace Commands
private:
std
::
shared_ptr
<
SequenceWorkflow
>
m_workflow
;
QSharedPointer
<
SequenceWorkflow
::
Clip
>
m_clip
;
QSharedPointer
<
SequenceWorkflow
::
Clip
Instance
>
m_clip
;
qint64
m_newBegin
;
qint64
m_oldBegin
;
qint64
m_newEnd
;
...
...
@@ -175,7 +175,7 @@ namespace Commands
virtual
void
retranslate
();
private:
std
::
shared_ptr
<
SequenceWorkflow
>
m_workflow
;
QSharedPointer
<
SequenceWorkflow
::
Clip
>
m_toSplit
;
QSharedPointer
<
SequenceWorkflow
::
Clip
Instance
>
m_toSplit
;
quint32
m_trackId
;
QSharedPointer
<::
Clip
>
m_newClip
;
QUuid
m_newClipUuid
;
...
...
src/Workflow/SequenceWorkflow.cpp
View file @
e14afc55
...
...
@@ -71,7 +71,7 @@ SequenceWorkflow::addClip( QSharedPointer<::Clip> clip, quint32 trackId, qint32
auto
ret
=
t
->
insertAt
(
*
clip
->
input
(),
pos
);
if
(
ret
==
false
)
return
{};
auto
c
=
QSharedPointer
<
Clip
>::
create
(
clip
,
auto
c
=
QSharedPointer
<
Clip
Instance
>::
create
(
clip
,
uuid
.
isNull
()
==
true
?
QUuid
::
createUuid
()
:
uuid
,
trackId
,
pos
,
isAudioClip
);
vlmcDebug
()
<<
"adding"
<<
(
isAudioClip
?
"audio"
:
"video"
)
<<
"clip instance:"
<<
c
->
uuid
;
...
...
@@ -141,7 +141,7 @@ SequenceWorkflow::resizeClip( const QUuid& uuid, qint64 newBegin, qint64 newEnd,
return
ret
;
}
QSharedPointer
<
SequenceWorkflow
::
Clip
>
QSharedPointer
<
SequenceWorkflow
::
Clip
Instance
>
SequenceWorkflow
::
removeClip
(
const
QUuid
&
uuid
)
{
vlmcDebug
()
<<
"Removing clip instance"
<<
uuid
;
...
...
@@ -279,7 +279,7 @@ SequenceWorkflow::clear()
}
}
QSharedPointer
<
SequenceWorkflow
::
Clip
>
QSharedPointer
<
SequenceWorkflow
::
Clip
Instance
>
SequenceWorkflow
::
clip
(
const
QUuid
&
uuid
)
{
auto
it
=
m_clips
.
find
(
uuid
);
...
...
@@ -329,7 +329,7 @@ SequenceWorkflow::track( quint32 trackId, bool isAudio )
return
m_tracks
[
Workflow
::
VideoTrack
][
trackId
];
}
SequenceWorkflow
::
Clip
::
Clip
(
QSharedPointer
<::
Clip
>
c
,
const
QUuid
&
uuid
,
quint32
tId
,
qint64
p
,
bool
isAudio
)
SequenceWorkflow
::
Clip
Instance
::
ClipInstance
(
QSharedPointer
<::
Clip
>
c
,
const
QUuid
&
uuid
,
quint32
tId
,
qint64
p
,
bool
isAudio
)
:
clip
(
c
)
,
uuid
(
uuid
)
,
trackId
(
tId
)
...
...
src/Workflow/SequenceWorkflow.h
View file @
e14afc55
...
...
@@ -56,10 +56,10 @@ class SequenceWorkflow : public QObject
SequenceWorkflow
(
size_t
trackCount
=
64
);
~
SequenceWorkflow
();
struct
Clip
struct
Clip
Instance
{
Clip
()
=
default
;
Clip
(
QSharedPointer
<::
Clip
>
c
,
const
QUuid
&
uuid
,
quint32
tId
,
qint64
p
,
bool
isAudio
);
Clip
Instance
()
=
default
;
Clip
Instance
(
QSharedPointer
<::
Clip
>
c
,
const
QUuid
&
uuid
,
quint32
tId
,
qint64
p
,
bool
isAudio
);
QSharedPointer
<::
Clip
>
clip
;
QUuid
uuid
;
quint32
trackId
;
...
...
@@ -85,7 +85,7 @@ class SequenceWorkflow : public QObject
bool
moveClip
(
const
QUuid
&
uuid
,
quint32
trackId
,
qint64
pos
);
bool
resizeClip
(
const
QUuid
&
uuid
,
qint64
newBegin
,
qint64
newEnd
,
qint64
newPos
);
QSharedPointer
<
Clip
>
removeClip
(
const
QUuid
&
uuid
);
QSharedPointer
<
Clip
Instance
>
removeClip
(
const
QUuid
&
uuid
);
bool
linkClips
(
const
QUuid
&
uuidA
,
const
QUuid
&
uuidB
);
bool
unlinkClips
(
const
QUuid
&
uuidA
,
const
QUuid
&
uuidB
);
...
...
@@ -93,7 +93,7 @@ class SequenceWorkflow : public QObject
void
loadFromVariant
(
const
QVariant
&
variant
);
void
clear
();
QSharedPointer
<
Clip
>
clip
(
const
QUuid
&
uuid
);
QSharedPointer
<
Clip
Instance
>
clip
(
const
QUuid
&
uuid
);
quint32
trackId
(
const
QUuid
&
uuid
);
qint32
position
(
const
QUuid
&
uuid
);
...
...
@@ -104,7 +104,7 @@ class SequenceWorkflow : public QObject
inline
std
::
shared_ptr
<
Backend
::
ITrack
>
track
(
quint32
trackId
,
bool
audio
);
QMap
<
QUuid
,
QSharedPointer
<
Clip
>>
m_clips
;
QMap
<
QUuid
,
QSharedPointer
<
Clip
Instance
>>
m_clips
;
Backend
::
IMultiTrack
*
m_multitrack
;
QList
<
std
::
shared_ptr
<
Backend
::
ITrack
>>
m_tracks
[
Workflow
::
NbTrackType
];
...
...
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