コード例 #1
0
ファイル: BayerMetaProcessor.cs プロジェクト: tottaka/SharpPi
 /// <summary>
 /// Initialises a new instance of <see cref="BayerMetaProcessor"/>.
 /// </summary>
 /// <param name="camVersion">The camera version you're using.</param>
 public BayerMetaProcessor(CameraVersion camVersion)
 {
     this.CameraVersion = camVersion;
 }
コード例 #2
0
 /// <summary>
 /// Apply a processor to strip out Bayer metadata from a JPEG frame.
 /// </summary>
 /// <param name="context">The image context.</param>
 /// <param name="version">The camera version.</param>
 /// <returns>The active image context.</returns>
 public static IFrameProcessingContext StripBayerMetadata(this IFrameProcessingContext context, CameraVersion version)
 => context.Apply(new BayerMetaProcessor(version));
コード例 #3
0
 private CameraStatus(CameraVersion version, PowerMode powerMode, ConnectionState connection)
 {
     Version    = version;
     PowerMode  = powerMode;
     Connection = connection;
 }