Audacity
3.2.0
libraries
lib-snapping
details
FrameSnapFunctions.cpp
Go to the documentation of this file.
1
2
/* SPDX-License-Identifier: GPL-2.0-or-later */
3
/*!********************************************************************
4
5
Audacity: A Digital Audio Editor
6
7
FrameSnapFunctions.cpp
8
9
Dmitry Vedenko
10
11
**********************************************************************/
12
13
#include "
SnapUtils.h
"
14
15
namespace
16
{
17
SnapRegistryItemRegistrator
videoFrames
{
18
SnapFunctionItems
(
"frames"
,
19
SnapFunctionGroup
(
20
"video"
, {
XO
(
"Video frames"
),
false
},
21
TimeInvariantSnapFunction
(
22
"film_24_fps"
,
XO
(
"Film frames (24 fps)"
), 24.0),
23
TimeInvariantSnapFunction
(
24
"ntsc_29.97_fps"
,
XO
(
"NTSC frames (29.97 fps)"
), 30.0 / 1.001),
25
TimeInvariantSnapFunction
(
26
"ntsc_30_fps"
,
XO
(
"NTSC frames (30 fps)"
), 30.0 / 1.001),
27
TimeInvariantSnapFunction
(
"film_25_fps"
,
XO
(
"PAL frames (25 fps)"
), 25.0)),
28
SnapFunctionGroup
(
29
"cd"
, {
XO
(
"CD frames"
),
false
},
30
TimeInvariantSnapFunction
(
"cd_75_fps"
,
XO
(
"CDDA frames (75 fps)"
), 75.0))
31
),
32
Registry::Placement
{ {}, {
Registry::OrderingHint::After
,
"time"
} }
33
};
34
}
XO
XO("Cut/Copy/Paste")
TimeInvariantSnapFunction
std::unique_ptr< SnapRegistryItem > TimeInvariantSnapFunction(const Identifier &functionId, const TranslatableString &label, MultiplierFunctor functor)
Definition:
SnapUtils.cpp:286
SnapUtils.h
SnapFunctionGroup
constexpr auto SnapFunctionGroup
Definition:
SnapUtils.h:98
SnapFunctionItems
constexpr auto SnapFunctionItems
Definition:
SnapUtils.h:123
Registry::RegisteredItem
Generates classes whose instances register items at construction.
Definition:
Registry.h:388
anonymous_namespace{FrameSnapFunctions.cpp}::videoFrames
SnapRegistryItemRegistrator videoFrames
Definition:
FrameSnapFunctions.cpp:17
Registry::OrderingHint::After
@ After
Definition:
Registry.h:47
Registry::Placement
Definition:
Registry.h:303
Generated by
1.9.3