[Camera] Remove useless logs (#3915)
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.Camera / Camera / DoublePlane.cs
old mode 100755 (executable)
new mode 100644 (file)
index e6960f1..68cea70
  * limitations under the License.
  */
 
-using System.Runtime.InteropServices;
-using static Interop.Camera;
-
 namespace Tizen.Multimedia
 {
     /// <summary>
     /// The class containing image data which has two planes.
     /// </summary>
+    /// <since_tizen> 3 </since_tizen>
     public class DoublePlane : IPreviewPlane
     {
-        internal DoublePlane(DoublePlaneStruct unmanaged)
+        internal DoublePlane(params byte[][] data)
         {
-            Y = new byte[unmanaged.YLength];
-            UV = new byte[unmanaged.UVLength];
-            Marshal.Copy(unmanaged.Y, Y, 0, (int)unmanaged.YLength);
-            Marshal.Copy(unmanaged.UV, UV, 0, (int)unmanaged.UVLength);
+            Y = data[0];
+            UV = data[1];
         }
 
         /// <summary>
@@ -44,4 +40,4 @@ namespace Tizen.Multimedia
         /// <since_tizen> 3 </since_tizen>
         public byte[] UV { get; }
     }
-}
\ No newline at end of file
+}