mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt video seek preview (#1026)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,29 +1,34 @@
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
|
||||
class VideoShotData {
|
||||
String? pvdata;
|
||||
int? imgXLen;
|
||||
int? imgYLen;
|
||||
int? imgXSize;
|
||||
int? imgYSize;
|
||||
List<String>? image;
|
||||
List<int>? index;
|
||||
int imgXLen;
|
||||
int imgYLen;
|
||||
double imgXSize;
|
||||
double imgYSize;
|
||||
late final int totalPerImage = imgXLen * imgYLen;
|
||||
List<String> image;
|
||||
List<int> index;
|
||||
|
||||
VideoShotData({
|
||||
this.pvdata,
|
||||
this.imgXLen,
|
||||
this.imgYLen,
|
||||
this.imgXSize,
|
||||
this.imgYSize,
|
||||
this.image,
|
||||
this.index,
|
||||
required this.imgXLen,
|
||||
required this.imgYLen,
|
||||
required this.imgXSize,
|
||||
required this.imgYSize,
|
||||
required this.image,
|
||||
required this.index,
|
||||
});
|
||||
|
||||
factory VideoShotData.fromJson(Map<String, dynamic> json) => VideoShotData(
|
||||
pvdata: json["pvdata"],
|
||||
imgXLen: json["img_x_len"],
|
||||
imgYLen: json["img_y_len"],
|
||||
imgXSize: json["img_x_size"],
|
||||
imgYSize: json["img_y_size"],
|
||||
image: (json["image"] as List?)?.cast(),
|
||||
index: (json["index"] as List?)?.cast(),
|
||||
imgXSize: (json["img_x_size"] as num).toDouble(),
|
||||
imgYSize: (json["img_y_size"] as num).toDouble(),
|
||||
image: (json["image"] as List)
|
||||
.map((e) => (e as String).http2https)
|
||||
.toList(),
|
||||
index: (json["index"] as List).cast(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user