¡@

Home 

2014/10/16 ¤W¤È 08:19:46

android Programming Glossary: msurfaceholder

Android ICS and MJPEG using AsyncTask

http://stackoverflow.com/questions/10550139/android-ics-and-mjpeg-using-asynctask

class MjpegViewThread extends Thread private SurfaceHolder mSurfaceHolder private int frameCounter 0 private long start private Bitmap.. SurfaceHolder surfaceHolder Context context mSurfaceHolder surfaceHolder private Rect destRect int bmw int bmh int tempx.. void setSurfaceSize int width int height synchronized mSurfaceHolder dispWidth width dispHeight height private Bitmap makeFpsOverlay..

Android and MJPEG

http://stackoverflow.com/questions/3205191/android-and-mjpeg

class MjpegViewThread extends Thread private SurfaceHolder mSurfaceHolder private int frameCounter 0 private long start private Bitmap.. SurfaceHolder surfaceHolder Context context mSurfaceHolder surfaceHolder private Rect destRect int bmw int bmh int tempx.. void setSurfaceSize int width int height synchronized mSurfaceHolder dispWidth width dispHeight height private Bitmap makeFpsOverlay..

Overlay images onto Camera preview SurfaceView

http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview

camera private SurfaceView mSurfaceView SurfaceHolder mSurfaceHolder private TouchSurfaceView mGLSurfaceView ShutterCallback shutter.. LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT mSurfaceHolder mSurfaceView.getHolder mSurfaceHolder.addCallback this mSurfaceHolder.setType.. mSurfaceHolder mSurfaceView.getHolder mSurfaceHolder.addCallback this mSurfaceHolder.setType SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS..

Android - Camera preview is sideways

http://stackoverflow.com/questions/3841122/android-camera-preview-is-sideways

public void previewCamera try mCamera.setPreviewDisplay mSurfaceHolder mCamera.startPreview isPreviewRunning true catch Exception..

Android, canvas: How do I clear (delete contents of) a canvas (= bitmaps), living in a surfaceView?

http://stackoverflow.com/questions/5729377/android-canvas-how-do-i-clear-delete-contents-of-a-canvas-bitmaps-livin

doDraw public void run while mRun Canvas c null try c mSurfaceHolder.lockCanvas null synchronized mSurfaceHolder if mMode STATE_RUNNING.. c null try c mSurfaceHolder.lockCanvas null synchronized mSurfaceHolder if mMode STATE_RUNNING updateGame doDraw c finally if c.. STATE_RUNNING updateGame doDraw c finally if c null mSurfaceHolder.unlockCanvasAndPost c android android canvas surfaceview..

How to play multiple video files simultaneously in one layout side by side in different view in Android

http://stackoverflow.com/questions/9834882/how-to-play-multiple-video-files-simultaneously-in-one-layout-side-by-side-in-di

SurfaceView SURFACE_RES_IDS.length private SurfaceHolder mSurfaceHolders new SurfaceHolder SURFACE_RES_IDS.length private boolean mSizeKnown.. i SurfaceView findViewById SURFACE_RES_IDS i mSurfaceHolders i mSurfaceViews i .getHolder mSurfaceHolders i .addCallback.. i mSurfaceHolders i mSurfaceViews i .getHolder mSurfaceHolders i .addCallback this mSurfaceHolders i .setType SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS..

VideoView onResume loses buffered portion of the video

http://stackoverflow.com/questions/9987042/videoview-onresume-loses-buffered-portion-of-the-video

SurfaceHolder holder Log.i TAG surface created. mSurfaceHolder holder if videoOpened openVideo if first time opened do something.. we return from this we can't use the surface any more. mSurfaceHolder null if mMediaController null mMediaController.hide release..

Android ICS and MJPEG using AsyncTask

http://stackoverflow.com/questions/10550139/android-ics-and-mjpeg-using-asynctask

private int dispHeight private int displayMode public class MjpegViewThread extends Thread private SurfaceHolder mSurfaceHolder private int frameCounter 0 private long start private Bitmap ovl public MjpegViewThread SurfaceHolder surfaceHolder Context.. 0 private long start private Bitmap ovl public MjpegViewThread SurfaceHolder surfaceHolder Context context mSurfaceHolder surfaceHolder private Rect destRect int bmw int bmh int tempx int tempy if displayMode MjpegView.SIZE_STANDARD tempx.. return new Rect 0 0 dispWidth dispHeight return null public void setSurfaceSize int width int height synchronized mSurfaceHolder dispWidth width dispHeight height private Bitmap makeFpsOverlay Paint p String text Rect b new Rect p.getTextBounds..

Android and MJPEG

http://stackoverflow.com/questions/3205191/android-and-mjpeg

private int dispHeight private int displayMode public class MjpegViewThread extends Thread private SurfaceHolder mSurfaceHolder private int frameCounter 0 private long start private Bitmap ovl public MjpegViewThread SurfaceHolder surfaceHolder Context.. 0 private long start private Bitmap ovl public MjpegViewThread SurfaceHolder surfaceHolder Context context mSurfaceHolder surfaceHolder private Rect destRect int bmw int bmh int tempx int tempy if displayMode MjpegView.SIZE_STANDARD tempx dispWidth.. return new Rect 0 0 dispWidth dispHeight return null public void setSurfaceSize int width int height synchronized mSurfaceHolder dispWidth width dispHeight height private Bitmap makeFpsOverlay Paint p String text Rect b new Rect p.getTextBounds..

Overlay images onto Camera preview SurfaceView

http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview

extends Activity implements Callback private Camera camera private SurfaceView mSurfaceView SurfaceHolder mSurfaceHolder private TouchSurfaceView mGLSurfaceView ShutterCallback shutter new ShutterCallback @Override public void onShutter TODO.. new SurfaceView this addContentView mSurfaceView new LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT mSurfaceHolder mSurfaceView.getHolder mSurfaceHolder.addCallback this mSurfaceHolder.setType SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS mSurfaceHolder.setFormat.. mSurfaceView new LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT mSurfaceHolder mSurfaceView.getHolder mSurfaceHolder.addCallback this mSurfaceHolder.setType SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS mSurfaceHolder.setFormat PixelFormat.TRANSLUCENT..

Android - Camera preview is sideways

http://stackoverflow.com/questions/3841122/android-camera-preview-is-sideways

parameters previewCamera And the previewCamera method public void previewCamera try mCamera.setPreviewDisplay mSurfaceHolder mCamera.startPreview isPreviewRunning true catch Exception e Log.d APP_CLASS Cannot start preview e This was on an HTC..

Android, canvas: How do I clear (delete contents of) a canvas (= bitmaps), living in a surfaceView?

http://stackoverflow.com/questions/5729377/android-canvas-how-do-i-clear-delete-contents-of-a-canvas-bitmaps-livin

would like to hear that answer... This is the routine that calls doDraw public void run while mRun Canvas c null try c mSurfaceHolder.lockCanvas null synchronized mSurfaceHolder if mMode STATE_RUNNING updateGame doDraw c finally if c null mSurfaceHolder.unlockCanvasAndPost.. routine that calls doDraw public void run while mRun Canvas c null try c mSurfaceHolder.lockCanvas null synchronized mSurfaceHolder if mMode STATE_RUNNING updateGame doDraw c finally if c null mSurfaceHolder.unlockCanvasAndPost c android android.. null synchronized mSurfaceHolder if mMode STATE_RUNNING updateGame doDraw c finally if c null mSurfaceHolder.unlockCanvasAndPost c android android canvas surfaceview share improve this question How do I clear or redraw the..

How to play multiple video files simultaneously in one layout side by side in different view in Android

http://stackoverflow.com/questions/9834882/how-to-play-multiple-video-files-simultaneously-in-one-layout-side-by-side-in-di

SURFACE_RES_IDS.length private SurfaceView mSurfaceViews new SurfaceView SURFACE_RES_IDS.length private SurfaceHolder mSurfaceHolders new SurfaceHolder SURFACE_RES_IDS.length private boolean mSizeKnown new boolean SURFACE_RES_IDS.length private boolean.. surface holders for int i 0 i mSurfaceViews.length i mSurfaceViews i SurfaceView findViewById SURFACE_RES_IDS i mSurfaceHolders i mSurfaceViews i .getHolder mSurfaceHolders i .addCallback this mSurfaceHolders i .setType SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS.. i mSurfaceViews i SurfaceView findViewById SURFACE_RES_IDS i mSurfaceHolders i mSurfaceViews i .getHolder mSurfaceHolders i .addCallback this mSurfaceHolders i .setType SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS public void onBufferingUpdate MediaPlayer..

VideoView onResume loses buffered portion of the video

http://stackoverflow.com/questions/9987042/videoview-onresume-loses-buffered-portion-of-the-video

new SurfaceHolder.Callback ... ... public void surfaceCreated SurfaceHolder holder Log.i TAG surface created. mSurfaceHolder holder if videoOpened openVideo if first time opened do something as usual video is buffered. openVideo actually mMediaPlayer.prepareAsync.. SurfaceHolder holder Log.i TAG surface destroyed. after we return from this we can't use the surface any more. mSurfaceHolder null if mMediaController null mMediaController.hide release true release actually mMediaPlayer.release is the second key..