Package-level declarations
Types
Link copied to clipboard
Layout that adjusts to maintain a specific aspect ratio.
Link copied to clipboard
Layout that adjusts to maintain a specific aspect ratio.
Link copied to clipboard
class CameraCaptureActivity : FragmentActivity, SurfaceTexture.OnFrameAvailableListener, BestShotListener, Camera.PreviewCallback
Shows the camera preview on screen while simultaneously recording it to a .mp4 file.
Link copied to clipboard
Camera-related utility functions.
Link copied to clipboard
Trivial activity used to test Choreographer behavior.
Link copied to clipboard
Encodes video in a fixed-size circular buffer.
Link copied to clipboard
Holds encoded video data in a circular buffer.
Link copied to clipboard
Opens a large number of MediaCodec encoders, just to see what happens.
Link copied to clipboard
Show color bars.
Link copied to clipboard
Manages content generated by the app.
Link copied to clipboard
open class ContinuousCaptureActivity : Activity, SurfaceHolder.Callback, SurfaceTexture.OnFrameAvailableListener
Demonstrates capturing video into a ring buffer.
Link copied to clipboard
Decodes two video streams simultaneously to two TextureViews.
Link copied to clipboard
Base class for generated movies.
Link copied to clipboard
Simple activity that gathers and displays information from the GLES driver.
Link copied to clipboard
Exercises SurfaceHolder#setFixedSize().
Link copied to clipboard
More or less straight out of TextureView's doc.
Link copied to clipboard
Main activity -- entry point from Launcher.
Link copied to clipboard
Generates a very simple movie.
Link copied to clipboard
Plays the video track from a movie file to a Surface.
Link copied to clipboard
Generates a simple movie, featuring two small rectangles that slide across the screen.
Link copied to clipboard
Exercises some less-commonly-used aspects of SurfaceView.
Link copied to clipboard
open class PlayMovieActivity : Activity, AdapterView.OnItemSelectedListener, TextureView.SurfaceTextureListener, MoviePlayer.PlayerFeedback
Play a movie from a file on disk.
Link copied to clipboard
open class PlayMovieSurfaceActivity : Activity, AdapterView.OnItemSelectedListener, SurfaceHolder.Callback, MoviePlayer.PlayerFeedback
Play a movie from a file on disk.
Link copied to clipboard
Basic glReadPixels() speed test.
Link copied to clipboard
Demonstrates efficient display + recording of OpenGL rendering using an FBO.
Link copied to clipboard
Tweaked version of Drawable2d that rescales the texture coordinates to provide a "zoom" effect.
Link copied to clipboard
open class ScheduledSwapActivity : Activity, AdapterView.OnItemSelectedListener, SurfaceHolder.Callback, Choreographer.FrameCallback
Exercises a SurfaceFlinger feature that defers acquisition of a buffer until a certain time.
Link copied to clipboard
Activity demonstrating the use of MediaProjectionManager and VirtualDisplay to create a recording of the screen and save it as a movie.
Link copied to clipboard
Generate a short movie using Surface input to MediaCodec, where the Surface is written to from software (lock() + unlockAndPost() rather than GLES).
Link copied to clipboard
Movie player callback.
Link copied to clipboard
open class TextureFromCameraActivity : Activity, SurfaceHolder.Callback, SeekBar.OnSeekBarChangeListener
Direct the Camera preview to a GLES texture and manipulate it.
Link copied to clipboard
Encode a movie from frames rendered from an external texture image.
Link copied to clipboard
Encode a movie from frames rendered from an external texture image.
Link copied to clipboard
An unscientific test of texture upload speed.
Link copied to clipboard
A demonstration of using Canvas to draw on a TextureView.
Link copied to clipboard
Simple demonstration of using GLES to draw on a TextureView.
Link copied to clipboard
This class wraps up the core components used for surface-input video MediaMuxer.releaseencoding.
Link copied to clipboard
Utility functions for work_dialog.