Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PhilLab/Android-MediaCodec-Examples
/ types & classes
Types & classes
21 in github.com/PhilLab/Android-MediaCodec-Examples
⨍
Functions
160
◇
Types & classes
21
Class
BufferToSurfaceWrapper
Wraps testEncodeDecodeVideoFromBuffer(true)
EncodeDecodeTest.java:110
Class
CameraToMpegTest
Record video from the camera preview and encode it as an MP4 file. Demonstrates the use of MediaMuxer and MediaCodec with Camera input. Does not rec
CameraToMpegTest.java:68
Class
CameraToMpegWrapper
Wraps encodeCameraToMpeg(). This is necessary because SurfaceTexture will try to use the looper in the current thread if one exists, and the CTS test
CameraToMpegTest.java:117
Class
CodecInputSurface
Holds state associated with a Surface used for MediaCodec encoder input. <p> The constructor takes a Surface obtained from MediaCodec.createInputSurfa
CameraToMpegTest.java:500
Class
CodecInputSurface
Holds state associated with a Surface used for MediaCodec encoder input. <p> The constructor takes a Surface obtained from MediaCodec.createInputSurfa
EncodeAndMuxTest.java:341
Class
CodecOutputSurface
Holds state associated with a Surface used for MediaCodec decoder output. <p> The constructor for this class will prepare GL, create a SurfaceTexture,
ExtractMpegFramesTest.java:316
Class
CodecOutputSurface
Holds state associated with a Surface used for MediaCodec decoder output. <p> The constructor for this class will prepare GL, create a SurfaceTexture,
ExtractMpegFramesTest_egl14.java:314
Class
DecodeEditEncodeTest
This test has three steps: <ol> <li>Generate a video test stream. <li>Decode the video from the stream, rendering frames into a SurfaceTexture.
DecodeEditEncodeTest.java:45
Class
EncodeAndMuxTest
Generate an MP4 file using OpenGL ES drawing commands. Demonstrates the use of MediaMuxer and MediaCodec with Surface input. <p> This uses various fe
EncodeAndMuxTest.java:52
Class
EncodeDecodeTest
Generates a series of video frames, encodes them, decodes them, and tests for significant divergence from the original. <p> We copy the data from the
EncodeDecodeTest.java:41
Class
ExtractMpegFramesTest
Extract frames from an MP4 using MediaExtractor, MediaCodec, and GLES. Put a .mp4 file in "/sdcard/source.mp4" and look for output files named "/sdca
ExtractMpegFramesTest.java:63
Class
ExtractMpegFramesTest
Extract frames from an MP4 using MediaExtractor, MediaCodec, and GLES. Put a .mp4 file in "/sdcard/source.mp4" and look for output files named "/sdca
ExtractMpegFramesTest_egl14.java:61
Class
ExtractMpegFramesWrapper
Wraps extractMpegFrames(). This is necessary because SurfaceTexture will try to use the looper in the current thread if one exists, and the CTS tests
ExtractMpegFramesTest.java:84
Class
ExtractMpegFramesWrapper
Wraps extractMpegFrames(). This is necessary because SurfaceTexture will try to use the looper in the current thread if one exists, and the CTS tests
ExtractMpegFramesTest_egl14.java:82
Class
STextureRender
Code for rendering a texture onto a surface using OpenGL ES 2.0.
CameraToMpegTest.java:742
Class
STextureRender
Code for rendering a texture onto a surface using OpenGL ES 2.0.
ExtractMpegFramesTest.java:607
Class
STextureRender
Code for rendering a texture onto a surface using OpenGL ES 2.0.
ExtractMpegFramesTest_egl14.java:598
Class
SurfaceTextureManager
Manages a SurfaceTexture. Creates SurfaceTexture and TextureRender objects, and provides functions that wait for frames and render them to the curren
CameraToMpegTest.java:633
Class
SurfaceToSurfaceWrapper
Wraps testEncodeDecodeVideoFromSurfaceToSurface()
EncodeDecodeTest.java:154
Class
VideoChunks
The elementary stream coming out of the "video/avc" encoder needs to be fed back into the decoder one chunk at a time. If we just wrote the data to a
DecodeEditEncodeTest.java:737
Class
VideoEditWrapper
Wraps testEditVideo, running it in a new thread. Required because of the way SurfaceTexture.OnFrameAvailableListener works when the current thread ha
DecodeEditEncodeTest.java:96