Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

yohhoy/heifreader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HeifReader

HEIF(High Efficiency Image Format) reader for Android. API

  • Support H.265/HEVC(High Efficiency Video Coding) still image only.
  • Ignore thumbnail, decode primary image only.
  • Ignore ICC profiles, use default colorspace.
  • Not support: animation, alpha channel, depthmap, rotation, cropping, tiling, etc.

Usage

HeifReader provides "decode Bitmap from HEIF data" static methods. It is similar to BitmapFactory which are decode Bitmap from PNG/JPEG/GIF data.

ImageView imageView = /*...*/;

// you need intialize with application context
HeifReader.initialize(this);

// decode Bitmap from HEIF raw resource
Bitmap bmp = HeifReader.decodeResource(this.getResources(), R.raw.heif_data);
// draw Bitmap on ViewImage
imageView.setImageBitmap(bmp);

Dependencies

HeifReader depends sannies/mp4parser library to parse HEIF structure which is based on ISO BMFF, and append some custom Box parsers with resources/isoparser-custom.properties.

License

MIT License

About

HEIF(High Efficiency Image Format) reader for Android

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published