Skip to content

Commit 2bc591e

Browse files
committed
Update source of code
1 parent 0ac598a commit 2bc591e

File tree

3 files changed

+33
-6
lines changed

3 files changed

+33
-6
lines changed

src/TorchSharp/Utils/tensorboard/GifEncoder/Encoder.cs

+13
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ public static partial class tensorboard
1212
{
1313
public static partial class GifEncoder
1414
{
15+
/// <summary>
16+
/// Class AnimatedGifEncoder - Encodes a GIF file consisting of one or more frames.
17+
///
18+
/// No copyright asserted on the source code of this class. May be used for any
19+
/// purpose, however, refer to the Unisys LZW patent for restrictions on use of
20+
/// the associated LZWEncoder class. Please forward any corrections to
21+
22+
///
23+
/// @author Kevin Weiner, FM Software
24+
/// @version 1.03 November 2003
25+
///
26+
/// https://cs.android.com/android/platform/superproject/+/master:external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/AnimatedGifEncoder.java
27+
/// </summary>
1528
internal class Encoder : IDisposable
1629
{
1730
protected int width; // image size

src/TorchSharp/Utils/tensorboard/GifEncoder/LZWEncoder.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ public static partial class GifEncoder
1515
/// Adapted from Jef Poskanzer's Java port by way of J. M. G. Elliott.
1616
/// K Weiner 12/00
1717
///
18-
/// https://github.com/videlalvaro/gifsockets/blob/master/src/java/LZWEncoder.java
19-
/// https://github.com/avianbc/NGif/blob/master/Components/LZWEncoder.cs
18+
/// https://cs.android.com/android/platform/superproject/+/master:external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/LZWEncoder.java
2019
/// </summary>
2120
internal class LZWEncoder
2221
{

src/TorchSharp/Utils/tensorboard/GifEncoder/NeuQuant.cs

+19-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,25 @@ public static partial class GifEncoder
1212
{
1313
/// <summary>
1414
/// NeuQuant Neural-Net Quantization Algorithm
15-
/// NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994.
16-
/// See "Kohonen neural networks for optimal colour quantization"
17-
/// in "Network: Computation in Neural Systems" Vol. 5 (1994) pp 351-367.
18-
/// for a discussion of the algorithm.
15+
/// ------------------------------------------
16+
///
17+
/// Copyright (c) 1994 Anthony Dekker
18+
///
19+
/// NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. See
20+
/// "Kohonen neural networks for optimal colour quantization" in "Network:
21+
/// Computation in Neural Systems" Vol. 5 (1994) pp 351-367. for a discussion of
22+
/// the algorithm.
23+
///
24+
/// Any party obtaining a copy of these files from the author, directly or
25+
/// indirectly, is granted, free of charge, a full and unrestricted irrevocable,
26+
/// world-wide, paid up, royalty-free, nonexclusive right and license to deal in
27+
/// this software and documentation files (the "Software"), including without
28+
/// limitation the rights to use, copy, modify, merge, publish, distribute,
29+
/// sublicense, and/or sell copies of the Software, and to permit persons who
30+
/// receive copies from any such party to do so, with the only requirement being
31+
/// that this copyright notice remain intact.
32+
///
33+
/// https://cs.android.com/android/platform/superproject/+/master:external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/NeuQuant.java
1934
/// </summary>
2035
internal class NeuQuant
2136
{

0 commit comments

Comments
 (0)