Closed sam21abc closed 2 years ago
BitmapFactory
creates Bitmap
from byte arrays already containing bitmap RGB
data.
Buffers are in YUV
format. The easiest way to create Bitmap is to use PixelCopy
API.
See how it is done at
https://github.com/alexeyvasilyev/rtsp-client-android/blob/43a6b20de60683edc83aade76c2a89c8e3464088/app/src/main/java/com/alexvas/rtsp/demo/live/LiveFragment.kt#L80
I want generate bitmap/image from raw(h264/h265) frames. without using surface.
I tried to get bitmap
or
but every time bitmap returns null. is there any way to get bitmap.