• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

WindhoverLabs / yamcs-cfs / #167

12 Dec 2024 12:23AM UTC coverage: 0.0%. Remained the same
#167

push

lorenzo-gomez-windhover
-Load pipeline config. WIP.

0 of 411 new or added lines in 4 files covered. (0.0%)

1 existing line in 1 file now uncovered.

0 of 8703 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/windhoverlabs/com/video/PipelineCfg.java
1
package com.windhoverlabs.com.video;
2

3
import java.util.ArrayList;
4
import java.util.HashMap;
5

NEW
6
public class PipelineCfg {
×
7

8
  // Constants
9
  public static final int MMC_URL_LENGTH = 255;
10
  public static final int MMC_CONFIG_KEY_LENGTH = 64; // Example value, replace with actual
11
  public static final int MMC_CONFIG_VALUE_LENGTH = 256; // Example value, replace with actual
12
  public static final int MMC_MAX_HW_ACCEL_DEVICE_ID_LENGTH =
13
      128; // Example value, replace with actual
14
  public static final int MMC_MAX_CONFIG_PARAMS = 10; // Example value, replace with actual
15

16
  boolean PacketLevelRemux;
17
  boolean RestartOnEOF;
18
  MMC_HWAccelDeviceCfg HWAccelDeviceCfg;
19
  ArrayList<MMC_InputPipelineCfg_t> InputPipelineCfg = new ArrayList<MMC_InputPipelineCfg_t>();
×
20
  MMC_FilterGraphCfg_t FilterGraphCfg;
21
  ArrayList<MMC_OutputPipelineCfg_t> OutputPipelineCfg = new ArrayList<MMC_OutputPipelineCfg_t>();
×
22

23
  class MMC_FilterGraphCfg_t {
×
24
    MMC_EntryState State;
25
    MMC_HWAccelDeviceCfg HWAccelDeviceCfg;
26
    String Description;
27
    HashMap<String, String> Params;
28
    //            MMC_FilterCfg_t          FilterCfg[MAX_FILTERS];
29
  }
30

31
  // Enums
32
  public static enum MMC_AVComponentType {
×
33
    AV_UNKNOWN(0),
×
34
    AV_INPUT_FORMAT(1),
×
35
    AV_ENCODER(2),
×
36
    AV_FILTER(3),
×
37
    SW_SCALE(4),
×
38
    AV_OUTPUT_FORMAT(5);
×
39

40
    private final int value;
41

42
    MMC_AVComponentType(int value) {
×
43
      this.value = value;
×
44
    }
×
45

46
    public int getValue() {
47
      return value;
×
48
    }
49
  }
50

51
  public static enum MMC_EntryState {
×
52
    UNUSED(0),
×
53
    INACTIVE(1),
×
54
    ACTIVE(2);
×
55

56
    private final int value;
57

58
    MMC_EntryState(int value) {
×
59
      this.value = value;
×
60
    }
×
61

62
    public int getValue() {
63
      return value;
×
64
    }
65
  }
66

67
  public static class MMC_AVComponentRef {
68
    public MMC_AVComponentType componentType;
69
    public int index;
70

71
    public MMC_AVComponentRef(MMC_AVComponentType componentType, int index) {
×
72
      this.componentType = componentType;
×
73
      this.index = index;
×
74
    }
×
75
  }
76

77
  public static class MMC_HWAccelDeviceCfg {
78
    public int deviceType; // Replace with appropriate type if necessary
79
    public String deviceID;
80

81
    public MMC_HWAccelDeviceCfg(int deviceType, String deviceID) {
×
82
      this.deviceType = deviceType;
×
83
      this.deviceID = deviceID;
×
84
    }
×
85
  }
86

87
  public static class MMC_InputFormatCfg {
×
88
    public MMC_EntryState state;
89
    public String url;
90
    public HashMap<String, String> params = new HashMap<String, String>();
×
91
    public HashMap<String, String> privateParams = new HashMap<String, String>();
×
92
    public HashMap<String, String> streamParams = new HashMap<String, String>();
×
93
  }
94

95
  public static class MMC_DecoderCfg {
×
96
    public MMC_EntryState state;
97
    public int speedFactor;
98
    public int errorRecognition;
99
    public int errorConcealment;
100
    public MMC_HWAccelDeviceCfg hwAccelDeviceCfg;
101
    public int flags;
102
    public HashMap<String, String> params = new HashMap<String, String>();
×
103
    public HashMap<String, String> privateParams = new HashMap<String, String>();
×
104
  }
105

106
  public static class MMC_EncoderCfg {
×
107
    public MMC_EntryState state;
108
    public int codecID;
109
    public String name;
110
    public int width;
111
    public int height;
112
    public long bitRate;
113
    public int framesPerSecond;
114
    public int pixelFormat;
115
    public int gopSize;
116
    public int maxBFrames;
117
    public MMC_HWAccelDeviceCfg hwAccelDeviceCfg;
118
    public int flags;
119
    public HashMap<String, String> params = new HashMap<String, String>();
×
120
    public HashMap<String, String> privateParams = new HashMap<String, String>();
×
121
  }
122

123
  public static class MMC_OutputFormatCfg {
×
124
    public MMC_EntryState state;
125
    public String name;
126
    public String url;
127
    public HashMap<String, String> params = new HashMap<String, String>();
×
128
    public HashMap<String, String> privateParams = new HashMap<String, String>();
×
129
  }
130

131
  public static class MMC_ScaleCfg_t {
×
132
    MMC_EntryState State;
133
    int Width;
134
    int Height;
135
    int PixelFormat;
136
    int Flags;
137
    int SrcFilterIndex;
138
    int DestFilterIndex;
139
    HashMap<String, String> Params;
140
    HashMap<String, String> PrivateParams;
141
  }
142
  ;
143

144
  public static class MMC_CustomFrameProcessorCfg_t {
×
145
    MMC_EntryState State;
146
    HashMap<String, String> Params;
147
  }
148

149
  static class MMC_EncoderCfg_t {
×
150
    MMC_EntryState State;
151
    int CodecID;
152
    String Name;
153
    int Width;
154
    int Height;
155
    long BitRate;
156
    int FramesPerSecond;
157
    int PixelFormat;
158
    int GopSize;
159
    int MaxBFrames;
160
    int Flags;
161
    HashMap<String, String> Params;
162
    HashMap<String, String> PrivateParams;
163
  }
164

165
  static class MMC_CustomPacketProcessorCfg_t {
×
166
    MMC_EntryState State;
167
    HashMap<String, String> Params;
168
  }
169

170
  class MMC_OutputFormatCfg_t {
×
171
    MMC_EntryState State;
172
    String Name;
173
    String URL;
174
    HashMap<String, String> Params;
175
    HashMap<String, String> PrivateParams;
176
  }
177

178
  public static class MMC_OutputPipelineCfg_t {
×
179
    MMC_EntryState State;
180
    int FilterIndex;
181
    String FilterBufferSinkArgs;
182
    MMC_ScaleCfg_t ScaleCfg;
183
    MMC_CustomFrameProcessorCfg_t CustomFrameProcessorCfg;
184
    MMC_EncoderCfg_t EncoderCfg;
185
    MMC_CustomPacketProcessorCfg_t CustomPacketProcessorCfg;
186
    MMC_OutputFormatCfg_t OutputFormatCfg;
187
  }
188

189
  public static class MMC_InputPipelineCfg_t {
×
190
    MMC_EntryState State;
191
    MMC_InputFormatCfg InputFormatCfg;
192
    MMC_CustomPacketProcessorCfg_t CustomPacketProcessorCfg;
193
    MMC_DecoderCfg DecoderCfg;
194
    MMC_ScaleCfg_t ScaleCfg;
195
    MMC_CustomFrameProcessorCfg_t CustomFrameProcessorCfg;
196
    String FilterBufferSrcArgs;
197
  }
198

199
  // Additional structures can be added here following the same pattern
200
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc