generated from edgexfoundry-holding/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 28
/
constants.go
61 lines (54 loc) · 1.99 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// -*- Mode: Go; indent-tabs-mode: t -*-
//
// Copyright (C) 2022 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
package driver
const (
Command = "command"
UsbProtocol = "USB"
Path = "Path"
SerialNumber = "SerialNumber"
CardName = "CardName"
BasePath = "/dev/video"
AutoStreaming = "AutoStreaming"
InputIndex = "InputIndex"
UrlRawQuery = "urlRawQuery"
RtspServerHostName = "RtspServerHostName"
DefaultRtspServerHostName = "localhost"
RtspTcpPort = "RtspTcpPort"
DefaultRtspTcpPort = "8554"
RtspUriScheme = "rtsp"
Stream = "stream"
PrefixInput = "Input"
PrefixOutput = "Output"
// API route specific to Device Service
ApiRefreshDevicePaths = "/refreshdevicepaths"
// Metadata descriptions
DescNotSpecified = "not specified"
DescTimePerFrame = "time per frame"
DescHighQuality = "high quality"
// Command names
MetadataDeviceCapability = "METADATA_DEVICE_CAPABILITY"
MetadataCurrentVideoInput = "METADATA_CURRENT_VIDEO_INPUT"
MetadataCameraStatus = "METADATA_CAMERA_STATUS"
MetadataDataFormat = "METADATA_DATA_FORMAT"
MetadataCroppingAbility = "METADATA_CROPPING_ABILITY"
MetadataStreamingParameters = "METADATA_STREAMING_PARAMETERS"
MetadataImageFormats = "METADATA_IMAGE_FORMATS"
VideoStartStreaming = "VIDEO_START_STREAMING"
VideoStopStreaming = "VIDEO_STOP_STREAMING"
VideoStreamUri = "VIDEO_STREAM_URI"
VideoStreamingStatus = "VIDEO_STREAMING_STATUS"
// FFmpeg options
FFmpegFrames = "-frames:d"
FFmpegFps = "-r"
FFmpegSize = "-s"
FFmpegAspect = "-aspect"
FFmpegQScale = "-qscale"
FFmpegVCodec = "-vcodec"
FFmpegInputFormat = "-input_format"
// udev device properties
UdevSerialShort = "ID_SERIAL_SHORT"
UdevV4lProduct = "ID_V4L_PRODUCT"
)