Audacity 3.2.0
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
15namespace
16{
18 SnapFunctionItems("frames",
20 "video", { XO("Video frames"), false },
22 "film_24_fps", XO("Film frames (24 fps)"), 24.0),
24 "ntsc_29.97_fps", XO("NTSC frames (29.97 fps)"), 30.0 / 1.001),
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)),
29 "cd", { XO("CD frames"), false },
30 TimeInvariantSnapFunction("cd_75_fps", XO("CDDA frames (75 fps)"), 75.0))
31 ),
33};
34}
XO("Cut/Copy/Paste")
std::unique_ptr< SnapRegistryItem > TimeInvariantSnapFunction(const Identifier &functionId, const TranslatableString &label, MultiplierFunctor functor)
Definition: SnapUtils.cpp:286
constexpr auto SnapFunctionGroup
Definition: SnapUtils.h:98
constexpr auto SnapFunctionItems
Definition: SnapUtils.h:123
Generates classes whose instances register items at construction.
Definition: Registry.h:388