mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
use low level apis to generate video thumbnail & remove unnecessary code
- Adjusted status bar layout in MainWindow to include app version label. - Enhanced video thumbnail generation in PhotoModel using FFmpeg for better performance and resource management. - Streamlined MediaStreamerManager to ensure proper cleanup and thread safety. - Updated ServiceManager to include safe methods for retrieving file info and handling AFC operations. - Removed get_device_version - Cleaned up code and improved readability across multiple files. - Passed correct args to ZUpdater
This commit is contained in:
@@ -45,6 +45,19 @@ ServiceManager::safeAfcGetFileInfo(iDescriptorDevice *device, const char *path,
|
||||
altAfc);
|
||||
}
|
||||
|
||||
afc_error_t
|
||||
ServiceManager::safeAfcGetFileInfoPlist(iDescriptorDevice *device,
|
||||
const char *path, plist_t *info,
|
||||
std::optional<afc_client_t> altAfc)
|
||||
{
|
||||
return executeAfcOperation(
|
||||
device,
|
||||
[path, info](afc_client_t client) {
|
||||
return afc_get_file_info_plist(client, path, info);
|
||||
},
|
||||
altAfc);
|
||||
}
|
||||
|
||||
afc_error_t ServiceManager::safeAfcFileOpen(iDescriptorDevice *device,
|
||||
const char *path,
|
||||
afc_file_mode_t mode,
|
||||
@@ -112,6 +125,18 @@ afc_error_t ServiceManager::safeAfcFileSeek(iDescriptorDevice *device,
|
||||
altAfc);
|
||||
}
|
||||
|
||||
afc_error_t ServiceManager::safeAfcFileTell(iDescriptorDevice *device,
|
||||
uint64_t handle, uint64_t *position,
|
||||
std::optional<afc_client_t> altAfc)
|
||||
{
|
||||
return executeAfcOperation(
|
||||
device,
|
||||
[handle, position](afc_client_t client) {
|
||||
return afc_file_tell(client, handle, position);
|
||||
},
|
||||
altAfc);
|
||||
}
|
||||
|
||||
QByteArray
|
||||
ServiceManager::safeReadAfcFileToByteArray(iDescriptorDevice *device,
|
||||
const char *path,
|
||||
|
||||
Reference in New Issue
Block a user