DJI-Mobile-SDK-Tutorials / Android-VideoStreamDecodingSample

This sample project demonstrates how to use FFmpeg for video frame parsing and to use MediaCodec for hardware decoding on DJI Products.
MIT License
170 stars 81 forks source link

Performance #84

Open gab933 opened 2 years ago

gab933 commented 2 years ago

Hi, I have few questions about performance in using different approaches:

Thank you,

Gabriele

DJI-William commented 2 years ago

We suggest you use SurfaceView. DJICodecManager's core is MediaCodec, so they are the same.

gab933 commented 2 years ago

Thank you for quick reply. Therefore, which is the main differences/advatages in decoding by using mCodecManager.sendDataToDecoder with respect to DJIVideoStreamDecoder.getInstance().parse ?

DJI-William commented 2 years ago

We don't know what is the main differences/advatages because we havn't tested and compared them.

gab933 commented 2 years ago

Thank you. If I have some news about it I'll let you know. Regards,

Gabriele