How do I use heic format in Android P?

1

HeifEncoder was seen and implemented.

"MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_IMAGE_ANDROID_HEIC);"

If you do this, the following error will occur.

Blockquote

java.lang.IllegalArgumentException: Failed to initialize image/vnd.android.heic, error 0xfffffffe
    at android.media.MediaCodec.native_setup(Native Method)
    at android.media.MediaCodec.<init>(MediaCodec.java:1811)
    at android.media.MediaCodec.createEncoderByType(MediaCodec.java:1777)

Is there a way to resolve the error?

heif
heic
asked on Stack Overflow Jan 16, 2019 by keunkeun keun

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0