3 * VuoBlackmagicVideoMode implementation.
5 * @copyright Copyright © 2012–2022 Kosada Incorporated.
6 * This code may be modified and distributed under the terms of the MIT License.
7 * For more information, see https://vuo.org/license.
10#include <DeckLinkAPI.h>
15#include "VuoBlackmagicVideoMode.h"
16#include "VuoList_VuoBlackmagicVideoMode.h"
21 "title" : "Blackmagic Video Mode",
22 "description" : "Video resolution and framerate.",
26 "VuoList_VuoBlackmagicVideoMode"
34 * Decodes the JSON object @c js to create a new value.
40VuoBlackmagicVideoMode VuoBlackmagicVideoMode_makeFromJson(json_object *js)
42 const char *valueAsString = "";
43 if (json_object_get_type(js) == json_type_string)
44 valueAsString = json_object_get_string(js);
50 * Encodes @c value as a JSON object.
52json_object *VuoBlackmagicVideoMode_getJson(const VuoBlackmagicVideoMode value)
58 * Returns a list of values that instances of this type can have.
60VuoList_VuoBlackmagicVideoMode VuoBlackmagicVideoMode_getAllowedValues(void)
62 VuoList_VuoBlackmagicVideoMode l = VuoListCreate_VuoBlackmagicVideoMode();
68 * Returns a compact string representation of @c value.
70char *VuoBlackmagicVideoMode_getSummary(const VuoBlackmagicVideoMode value)
76 * Returns the @ref VuoBlackmagicVideoMode corresponding to the input `BMDDisplayMode` value.
78VuoBlackmagicVideoMode VuoBlackmagicVideoMode_makeFromBMDDisplayMode(const uint32_t value)
84 * Returns the `BMDDisplayMode` corresponding to the input `value`.
86uint32_t VuoBlackmagicVideoMode_getBMDDisplayMode(const VuoBlackmagicVideoMode value)
92 * Returns true if the two values are equal.
94bool VuoBlackmagicVideoMode_areEqual(const VuoBlackmagicVideoMode valueA, const VuoBlackmagicVideoMode valueB)
96 return valueA == valueB;
100 * Returns true if `valueA` is less than `valueB`.
102bool VuoBlackmagicVideoMode_isLessThan(const VuoBlackmagicVideoMode valueA, const VuoBlackmagicVideoMode valueB)
104 return valueA < valueB;