Skip to content

Example of how to use MediaCodec to encode/decode and pass samples as byte array

Notifications You must be signed in to change notification settings

lykhonis/MediaCodec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MediaCodec

Example show case use cases of MediaCodec. It can be valuable for applications that doing encoding, decoding and transfering samples in H.264 (for example) over network, etc.

Example contains:

  • Creating surface and associated canvas to draw onto
  • Binding surface to encoder to produce H.264 samples
  • Creating surface view and binding decoder to it
  • Configuring decoder to accept H.264 and draw onto surface view

About

Example of how to use MediaCodec to encode/decode and pass samples as byte array

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages