Exemplo n.º 1
0
 /// <summary>
 /// Decodes an encoded depth image.
 /// </summary>
 /// <param name="source">A producer of encoded depth images to decode.</param>
 /// <param name="deliveryPolicy">An optional delivery policy.</param>
 /// <returns>A producer that generates the decoded depth images.</returns>
 public static IProducer <Shared <DepthImage> > Decode(this IProducer <Shared <EncodedDepthImage> > source, DeliveryPolicy <Shared <EncodedDepthImage> > deliveryPolicy = null)
 {
     return(source.Decode(new DepthImageFromStreamDecoder(), deliveryPolicy));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Decodes an encoded depth image.
 /// </summary>
 /// <param name="source">A producer of encoded depth images to decode.</param>
 /// <param name="deliveryPolicy">An optional delivery policy.</param>
 /// <param name="name">An optional name for the stream operator.</param>
 /// <returns>A producer that generates the decoded depth images.</returns>
 public static IProducer <Shared <DepthImage> > Decode(
     this IProducer <Shared <EncodedDepthImage> > source,
     DeliveryPolicy <Shared <EncodedDepthImage> > deliveryPolicy = null,
     string name = nameof(Decode))
 => source.Decode(new DepthImageFromStreamDecoder(), deliveryPolicy, name);