[ImageUtil] Code clean (#4887)
authorHaesu Gwon <haesu.gwon@samsung.com>
Fri, 13 Jan 2023 03:28:31 +0000 (12:28 +0900)
committerGitHub <noreply@github.com>
Fri, 13 Jan 2023 03:28:31 +0000 (12:28 +0900)
src/Tizen.Multimedia.Util/ImageUtil/ImageRotation.cs [deleted file]
src/Tizen.Multimedia.Util/ImageUtil/ImageUtilEnums.cs [moved from src/Tizen.Multimedia.Util/ImageUtil/ImageColorSpace.cs with 68% similarity]
src/Tizen.Multimedia.Util/ImageUtil/JpegDownscale.cs [deleted file]
src/Tizen.Multimedia.Util/ImageUtil/PngCompression.cs [deleted file]

diff --git a/src/Tizen.Multimedia.Util/ImageUtil/ImageRotation.cs b/src/Tizen.Multimedia.Util/ImageUtil/ImageRotation.cs
deleted file mode 100644 (file)
index 7750c88..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-namespace Tizen.Multimedia.Util
-{
-    /// <summary>
-    /// Specifies how an image is rotated or flipped.
-    /// </summary>
-    /// <seealso cref="RotateTransform"/>
-    internal enum ImageRotation
-    {
-        /// <summary>
-        /// No rotation.
-        /// </summary>
-        Rotate0,
-        /// <summary>
-        /// Rotate 90 degree clockwise.
-        /// </summary>
-        Rotate90,
-        /// <summary>
-        /// Rotate 180 degree clockwise.
-        /// </summary>
-        Rotate180,
-        /// <summary>
-        /// Rotate 270 degree clockwise.
-        /// </summary>
-        Rotate270,
-        /// <summary>
-        /// Flip horizontally.
-        /// </summary>
-        FlipHorizontal,
-        /// <summary>
-        /// Flip vertically.
-        /// </summary>
-        FlipVertical,
-    }
-}
@@ -19,6 +19,110 @@ using System.Diagnostics;
 
 namespace Tizen.Multimedia.Util
 {
+    /// <summary>
+    /// Specifies the JPEG Downscale options for decoding.
+    /// </summary>
+    /// <since_tizen> 4 </since_tizen>
+    public enum JpegDownscale
+    {
+        /// <summary>
+        /// No downscale.
+        /// </summary>
+        None,
+        /// <summary>
+        /// 1/2 downscale.
+        /// </summary>
+        OneHalf,
+        /// <summary>
+        /// 1/4 downscale.
+        /// </summary>
+        OneFourth,
+        /// <summary>
+        /// 1/8 downscale.
+        /// </summary>
+        OneEighth,
+    }
+
+    /// <summary>
+    /// Specifies the PNG compression levels.
+    /// </summary>
+    /// <since_tizen> 4 </since_tizen>
+    public enum PngCompression
+    {
+        /// <summary>
+        /// No Compression.
+        /// </summary>
+        None,
+        /// <summary>
+        /// Compression Level 1. Best speed.
+        /// </summary>
+        Level1,
+        /// <summary>
+        /// Compression Level 2.
+        /// </summary>
+        Level2,
+        /// <summary>
+        /// Compression Level 3.
+        /// </summary>
+        Level3,
+        /// <summary>
+        /// Compression Level 4.
+        /// </summary>
+        Level4,
+        /// <summary>
+        /// Compression Level 5.
+        /// </summary>
+        Level5,
+        /// <summary>
+        /// Compression Level 6.
+        /// </summary>
+        Level6,
+        /// <summary>
+        /// Compression Level 7.
+        /// </summary>
+        Level7,
+        /// <summary>
+        /// Compression Level 8.
+        /// </summary>
+        Level8,
+        /// <summary>
+        /// Compression Level 9.
+        /// </summary>
+        Level9,
+    }
+
+    /// <summary>
+    /// Specifies how an image is rotated or flipped.
+    /// </summary>
+    /// <seealso cref="RotateTransform"/>
+    internal enum ImageRotation
+    {
+        /// <summary>
+        /// No rotation.
+        /// </summary>
+        Rotate0,
+        /// <summary>
+        /// Rotate 90 degree clockwise.
+        /// </summary>
+        Rotate90,
+        /// <summary>
+        /// Rotate 180 degree clockwise.
+        /// </summary>
+        Rotate180,
+        /// <summary>
+        /// Rotate 270 degree clockwise.
+        /// </summary>
+        Rotate270,
+        /// <summary>
+        /// Flip horizontally.
+        /// </summary>
+        FlipHorizontal,
+        /// <summary>
+        /// Flip vertically.
+        /// </summary>
+        FlipVertical,
+    }
+
     internal enum ImageColorSpace
     {
         /// <summary>
diff --git a/src/Tizen.Multimedia.Util/ImageUtil/JpegDownscale.cs b/src/Tizen.Multimedia.Util/ImageUtil/JpegDownscale.cs
deleted file mode 100644 (file)
index dd24eb9..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-namespace Tizen.Multimedia.Util
-{
-    /// <summary>
-    /// Specifies the JPEG Downscale options for decoding.
-    /// </summary>
-    /// <since_tizen> 4 </since_tizen>
-    public enum JpegDownscale
-    {
-        /// <summary>
-        /// No downscale.
-        /// </summary>
-        None,
-        /// <summary>
-        /// 1/2 downscale.
-        /// </summary>
-        OneHalf,
-        /// <summary>
-        /// 1/4 downscale.
-        /// </summary>
-        OneFourth,
-        /// <summary>
-        /// 1/8 downscale.
-        /// </summary>
-        OneEighth,
-    }
-}
diff --git a/src/Tizen.Multimedia.Util/ImageUtil/PngCompression.cs b/src/Tizen.Multimedia.Util/ImageUtil/PngCompression.cs
deleted file mode 100644 (file)
index d162ea9..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-namespace Tizen.Multimedia.Util
-{
-    /// <summary>
-    /// Specifies the PNG compression levels.
-    /// </summary>
-    /// <since_tizen> 4 </since_tizen>
-    public enum PngCompression
-    {
-        /// <summary>
-        /// No Compression.
-        /// </summary>
-        None,
-        /// <summary>
-        /// Compression Level 1. Best speed.
-        /// </summary>
-        Level1,
-        /// <summary>
-        /// Compression Level 2.
-        /// </summary>
-        Level2,
-        /// <summary>
-        /// Compression Level 3.
-        /// </summary>
-        Level3,
-        /// <summary>
-        /// Compression Level 4.
-        /// </summary>
-        Level4,
-        /// <summary>
-        /// Compression Level 5.
-        /// </summary>
-        Level5,
-        /// <summary>
-        /// Compression Level 6.
-        /// </summary>
-        Level6,
-        /// <summary>
-        /// Compression Level 7.
-        /// </summary>
-        Level7,
-        /// <summary>
-        /// Compression Level 8.
-        /// </summary>
-        Level8,
-        /// <summary>
-        /// Compression Level 9.
-        /// </summary>
-        Level9,
-    }
-}