Convert JPG to NV21 format

how do I convert jpg to nv21 format (Java implementation) in Android?
jpg is in byte [] format, and output is also in byte [] format

Code for converting JPG to other yuyv formats can be attached if any. Thank you

Mar.28,2021

    byte[] mImageNV21 = new byte[bmp.getWidth() * bmp.getHeight() * 3 / 2];
    ImageConverter convert = new ImageConverter(); 
    convert.initial(bmp.getWidth(), bmp.getHeight(), ImageConverter.CP_PAF_NV21);
    if (convert.convert(bmp, mImageNV21)) {
        Log.d(TAG, "convert ok!");
    }else {
        Log.d(TAG, "convert error!");
    }
    convert.destroy();
            

ImageConverter reference
implementation 'com.guo.android_extend:android-extend:1.0.5'

< hr >

the above answer comes from the bug, submitted by Hong soft demo, two days ago. This method has a native memory problem

.

refer to http://www.arcsoft.com.cn/bbs.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b9a1-2c29d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b9a1-2c29d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?