Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
56f761cb
There was an error fetching the commit references. Please try again later.
Commit
56f761cb
authored
6 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Remove dead code
parent
28e02644
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/helpers/BitmapUtil.java
+0
-15
0 additions, 15 deletions
vlc-android/src/org/videolan/vlc/gui/helpers/BitmapUtil.java
with
0 additions
and
15 deletions
vlc-android/src/org/videolan/vlc/gui/helpers/BitmapUtil.java
+
0
−
15
View file @
56f761cb
...
...
@@ -70,21 +70,6 @@ public class BitmapUtil {
(
width
-
(
2
*
left
)),
(
height
-
(
2
*
top
)));
}
public
static
Bitmap
scaleDownBitmap
(
Context
context
,
Bitmap
bitmap
,
int
width
)
{
/*
* This method can lead to OutOfMemoryError!
* If the source size is more than twice the target size use
* the optimized version available in AudioUtil::readCoverBitmap
*/
if
(
bitmap
!=
null
)
{
final
float
densityMultiplier
=
context
.
getResources
().
getDisplayMetrics
().
density
;
int
w
=
(
int
)
(
width
*
densityMultiplier
);
int
h
=
(
int
)
(
w
*
bitmap
.
getHeight
()
/
((
double
)
bitmap
.
getWidth
()));
bitmap
=
Bitmap
.
createScaledBitmap
(
bitmap
,
w
,
h
,
true
);
}
return
bitmap
;
}
public
static
Bitmap
getPictureFromCache
(
MediaWrapper
media
)
{
// mPicture is not null only if passed through
// the ctor which is deprecated by now.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment