Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
flutter_plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林生雨
flutter_plugin
Commits
8aac7448
Commit
8aac7448
authored
Jan 10, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
db045269
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
GengmeiFlutterPlugin.m
ios/Classes/GengmeiFlutterPlugin.m
+3
-0
No files found.
ios/Classes/GengmeiFlutterPlugin.m
View file @
8aac7448
...
...
@@ -525,7 +525,10 @@ PHImageRequestOptions *baseImageRequestOption;
if
([[
self
.
scanMap
allKeys
]
containsObject
:
path
]){
PHAsset
*
assets
=
self
.
scanMap
[
path
];
@autoreleasepool
{
CFAbsoluteTime
startTime
=
CFAbsoluteTimeGetCurrent
();
[[
PHImageManager
defaultManager
]
requestImageDataForAsset
:
assets
options
:
baseImageRequestOption
resultHandler
:^
(
NSData
*
_Nullable
imageData
,
NSString
*
_Nullable
dataUTI
,
UIImageOrientation
orientation
,
NSDictionary
*
_Nullable
info
)
{
CFAbsoluteTime
linkTime
=
(
CFAbsoluteTimeGetCurrent
()
-
startTime
);
NSLog
(
@"requestImageDataForAsset Time %f ms"
,
linkTime
*
1000
.
0
);
NSData
*
imageDataW
=
nil
;
if
([
dataUTI
isEqualToString
:
@"public.heif"
]
||
[
dataUTI
isEqualToString
:
@"public.heic"
])
{
CIImage
*
ciImage
=
[
CIImage
imageWithData
:
imageData
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment