Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
Vivy
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Elliu
Vivy
Validations
b6f5ab1e
Valider
b6f5ab1e
rédigé
1 août 2021
par
Elliu
Validation de
Elliu
29 oct. 2021
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Duration from microseconds to seconds using std::chrono
parent
54b1904c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion
!29
Improve timingView with display of the ASS lines
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
src/Lib/AbstractMediaContext.hh
+7
-6
7 ajouts, 6 suppressions
src/Lib/AbstractMediaContext.hh
src/UI/DocumentViews/TimingAxis.hh
+7
-7
7 ajouts, 7 suppressions
src/UI/DocumentViews/TimingAxis.hh
avec
14 ajouts
et
13 suppressions
src/Lib/AbstractMediaContext.hh
+
7
−
6
Voir le fichier @
b6f5ab1e
...
@@ -101,9 +101,9 @@ public:
...
@@ -101,9 +101,9 @@ public:
qreal
getDuration
()
const
noexcept
qreal
getDuration
()
const
noexcept
{
{
TODO
(
Use
std
::
chrono
here
)
return
qreal
(
std
::
chrono
::
duration
<
qreal
,
std
::
ratio
<
1
,
1
>>
(
// The whole file duration, not individual streams.
std
::
chrono
::
microseconds
(
dataFormat
->
duration
))
return
static_cast
<
qreal
>
(
dataFormat
->
duration
)
/
1000000
;
.
count
())
;
}
}
protected
:
protected
:
...
@@ -192,11 +192,12 @@ public:
...
@@ -192,11 +192,12 @@ public:
return
StreamWeakPtr
{
spareNullSreamPtr
};
return
StreamWeakPtr
{
spareNullSreamPtr
};
}
}
qreal
get
Length
()
const
noexcept
qreal
get
Duration
()
const
noexcept
{
{
TODO
(
Use
std
::
chrono
here
)
// The whole file duration, not individual streams.
// The whole file duration, not individual streams.
return
static_cast
<
qreal
>
(
format
->
duration
)
/
1000000
;
return
qreal
(
std
::
chrono
::
duration
<
qreal
,
std
::
ratio
<
1
,
1
>>
(
std
::
chrono
::
microseconds
(
format
->
duration
))
.
count
());
}
}
StreamWeakPtr
getDefaultStream
()
const
noexcept
StreamWeakPtr
getDefaultStream
()
const
noexcept
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/UI/DocumentViews/TimingAxis.hh
+
7
−
7
Voir le fichier @
b6f5ab1e
...
@@ -14,7 +14,7 @@ namespace Vivy
...
@@ -14,7 +14,7 @@ namespace Vivy
class
TimingAxis
final
:
public
QGraphicsItem
{
class
TimingAxis
final
:
public
QGraphicsItem
{
public:
public:
explicit
TimingAxis
(
qreal
soundLength
,
int
x0
,
int
x1
,
int
y
)
noexcept
;
explicit
TimingAxis
(
qreal
soundLength
,
int
x0
,
int
x1
,
int
y
)
noexcept
;
~
TimingAxis
()
noexcept
=
default
;
~
TimingAxis
()
noexcept
override
=
default
;
QRectF
boundingRect
()
const
override
;
QRectF
boundingRect
()
const
override
;
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
override
;
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
override
;
...
@@ -23,13 +23,13 @@ private:
...
@@ -23,13 +23,13 @@ private:
static
inline
constexpr
QColor
axisColour
=
QColor
(
0
,
0
,
127
);
static
inline
constexpr
QColor
axisColour
=
QColor
(
0
,
0
,
127
);
QVector
<
qreal
>
availableTicks
=
{
0.01
,
0.1
,
1
,
10
,
60
,
3600
,
86400
};
QVector
<
qreal
>
availableTicks
=
{
0.01
,
0.1
,
1
,
10
,
60
,
3600
,
86400
};
qreal
minBetweenMinor
=
5
;
qreal
minBetweenMinor
{
5
}
;
qreal
penWidth
=
{
1
};
qreal
penWidth
{
1
};
qreal
soundLength
=
{
0
};
qreal
soundLength
{
0
};
int
x0
=
{
0
};
int
x0
{
0
};
int
x1
=
{
0
};
int
x1
{
0
};
int
y
=
{
0
};
int
y
{
0
};
protected
:
protected
:
};
};
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter