diff --git a/lib/services/file_service.dart b/lib/services/file_service.dart index 8495733..dce0606 100644 --- a/lib/services/file_service.dart +++ b/lib/services/file_service.dart @@ -38,13 +38,6 @@ vPlane = Uint8List.fromList((vRaw as List).cast()); } - debugPrint( - 'YUV data: ${yuvData['width']}x${yuvData['height']}, ' - 'yPlane: ${yPlane.length} bytes, ' - 'uPlane: ${uPlane.length} bytes, ' - 'vPlane: ${vPlane.length} bytes', - ); - if (yPlane.isEmpty) { throw Exception('YUV データが空です'); } @@ -60,20 +53,12 @@ 'uvPixelStride': yuvData['uvPixelStride'] as int, }; - debugPrint('PNG 変換開始...'); - final stopwatch = Stopwatch()..start(); final pngBytes = await compute(_convertYuvToPng, params); - stopwatch.stop(); - debugPrint( - 'PNG 変換完了: ${pngBytes.length} bytes, ' - '${stopwatch.elapsedMilliseconds}ms', - ); final fileName = await generateFileName(); final filePath = '$_basePath/$fileName'; final file = File(filePath); await file.writeAsBytes(pngBytes); - debugPrint('ファイル保存完了: $filePath'); return filePath; }