Reason for revert: The top row in the video stream from the camera is messed up. The byte[] pointer is not the same as GetDirectBufferAddress() apparently. Original issue's description: > Android VideoCapturer: Send ByteBuffer instead of byte[] > > The purpose with this CL is to replace GetByteArrayElements() and ReleaseByteArrayElements() with GetDirectBufferAddress(). > > R=hbos@webrtc.org > > Committed: https://crrev.com/cb3649b40b3fd6d5bbb0a92003b717e46ce90924 > Cr-Commit-Position: refs/heads/master@{#10091} TBR=hbos@webrtc.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.webrtc.org/1377783002 Cr-Commit-Position: refs/heads/master@{#10103}