Click here to Skip to main content
15,867,771 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello i need merge two byte[] of 640*480 into one doble size bye[] array how to do??? in Android java




public static final native void nativeStereoI420Frame(byte[] bArr, byte[] bArr2, byte[] bArr3, int i, int i2);

public static final native void nativeStereoI420FrameBuffer(byte[] bArr, ByteBuffer byteBuffer, byte[] bArr2, int i, int i2);


What I have tried:

i tried but actually this method in .so file that jni file i dont have
Posted
Updated 14-Jul-20 21:25pm
Comments
David Crow 15-Jul-20 8:26am    
Have you tried using System.arraycopy()?

1 solution

1. Allocate the new array with the correct size.
2. If you want one frame to follow the other then just copy the first followed by the second into the relevant parts of the new array.
3. If you want to merge in some other way then you need to copy in whatever chunk sizes are necessary.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900