Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageConverter : FORMAT NOT SUPPORT THIS SIZE #28

Open
CangJie2016 opened this issue Aug 12, 2019 · 1 comment
Open

ImageConverter : FORMAT NOT SUPPORT THIS SIZE #28

CangJie2016 opened this issue Aug 12, 2019 · 1 comment

Comments

@CangJie2016
Copy link

CangJie2016 commented Aug 12, 2019

Caused by: java.lang.Exception: FORMAT NOT SUPPORT THIS SIZE
at com.guo.android_extend.image.ImageConverter.image_init(Native Method)
at com.guo.android_extend.image.ImageConverter.initial(ImageConverter.java:43)

部分图片在转NV21的时候会出现这个异常

@gqjjqg
Copy link
Owner

gqjjqg commented Aug 29, 2019

NV21 格式 尺寸=W * H * 3 / 2
因此宽和高必须至少有一个是偶数,实际上要求宽为偶数,高可以为奇数。
ImageConverter 目的只做转换,不做裁剪适配,因此不支持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants