

android Camera2 YUV_420_888 问题
source link: https://www.oschina.net/question/4790863_2320906
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

android Camera2 YUV_420_888 问题
@mikeshi 你好,想跟你请教个问题:
你好,我看了你的文章“Android的YUV_420_888图片转换Bitmap时的rowStride问题”,对我作用很大。但我测试发现,小米10青春版,返回的yuv数据有点奇怪。(u数据长度+v数据长度)并不是y数据长度的一半,而是和y数据长度一致。请问这可能是什么问题?
环境:ImageReader设置的是 ImageFormat.YUV_420_888格式、Camera2、小米10青春版、android 10
以下是我输入Planes的数据
----------- y
pixelStride 1
rowStride 768
width 720
height 1280
remaining size 982992
Finished reading data from plane 0
----------- u
pixelStride 2
rowStride 768
width 720
height 1280
remaining size 491471
Finished reading data from plane 1
----------- v
pixelStride 2
rowStride 768
width 720
height 1280
remaining size 491471
Finished reading data from plane 2
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK