Relative Content

Tag Archive for androidc++java-native-interfaceandroid-camera2android-mediacodec

Unable to set timestamp on Android MediaCodec Image object from native c++ code

I have an created a queue to store images from ImageReader in cpp.
while copying the queued items to the Image object from MediaCodec.getInputImage(index) method I’m facing an issue where the byte buffers are successfully copied but the timestamp is not set.
there are no errors thrown and so I’m very confused.