Ejemplo n.º 1
0
 private static void recordAddTime(RecorderBase recorder, DateTime time, DataType type)
 {
     if (type == DataType.StreamData)
     {
         recorder.Set(time, DataType.StreamData, new byte[3]);
     }
     else if (type == DataType.StreamDataKey)
     {
         recorder.Set(time, DataType.StreamDataKey, new byte[6]);
     }
     else if (type == DataType.SysHead)
     {
         recorder.Set(time, DataType.SysHead, new byte[2]);
     }
     else
     {
         recorder.Set(time, type, new byte[0]);
     }
 }
Ejemplo n.º 2
0
 private static void recordAddTimeLarge(RecorderBase recorder, DateTime time, DataType type)
 {
     if (type == DataType.StreamData)
     {
         recorder.Set(time, DataType.StreamData, new byte[100000]);
     }
     else if (type == DataType.StreamDataKey)
     {
         recorder.Set(time, DataType.StreamDataKey, new byte[1920 * 1080 * 3]);
     }
     else if (type == DataType.SysHead)
     {
         recorder.Set(time, DataType.SysHead, new byte[50]);
     }
     else
     {
         recorder.Set(time, type, new byte[0]);
     }
 }