¡@

Home 

2014/10/16 ¤W¤È 08:11:03

android Programming Glossary: camera.parameters

MediaCodec and Camera: colorspaces don't match

http://stackoverflow.com/questions/13703596/mediacodec-and-camera-colorspaces-dont-match

to work at last. I'm setting up the camera as follows Camera.Parameters parameters mCamera.getParameters parameters.setPreviewFormat..

Extended SurfaceView's onDraw() method never called

http://stackoverflow.com/questions/2687015/extended-surfaceviews-ondraw-method-never-called

SurfaceHolder holder int format int width int height Camera.Parameters params camera.getParameters params.setPreviewSize width height..

How to draw an overlay on a SurfaceView used by Camera on Android?

http://stackoverflow.com/questions/2933882/how-to-draw-an-overlay-on-a-surfaceview-used-by-camera-on-android

surfaceChanged SurfaceHolder holder int format int w int h Camera.Parameters parameters camera.getParameters parameters.setPreviewSize w..

Overlay images onto Camera preview SurfaceView

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

int arg1 int arg2 int arg3 TODO Auto generated method stub Camera.Parameters p camera.getParameters p.setPreviewSize arg2 arg3 try camera.setPreviewDisplay..

Android: Error inflating class

http://stackoverflow.com/questions/3739661/android-error-inflating-class

known set up the camera parameters and begin the preview. Camera.Parameters parameters mCamera.getParameters parameters.setPreviewSize w..

Camera.Parameters.FLASH_MODE_TORCH replacement for Android 2.1

http://stackoverflow.com/questions/3878294/camera-parameters-flash-mode-torch-replacement-for-android-2-1

replacement for Android 2.1 I am trying to.. setFlashlight boolean isOn if mCamera null return false Camera.Parameters params mCamera.getParameters String value if isOn we are being.. String value if isOn we are being ask to turn it on value Camera.Parameters.FLASH_MODE_TORCH else we are being asked to turn it off value..

How to use Front Facing Camera on Samsung Galaxy S

http://stackoverflow.com/questions/4241292/how-to-use-front-facing-camera-on-samsung-galaxy-s

tried several answer I've found across the web such as Camera.Parameters parameters mCamera.getParameters parameters.set camera id 2.. after a few trials and error I figured it out how to do it Camera.Parameters parameters mCamera.getParameters parameters.set camera id 2.. new MediaRecorder Camera mCamera Camere.open Camera.Parameters parameters mCamera.getParameters parameters.set camera id 2..

How to set Android camera orientation properly?

http://stackoverflow.com/questions/4645960/how-to-set-android-camera-orientation-properly

SurfaceHolder holder int format int width int height Camera.Parameters parameters camera.getParameters List Size sizes parameters.getSupportedPreviewSizes.. the issue with XPeria X10 but it is good for X8 and Mini Camera.Parameters parameters camera.getParameters parameters.set orientation portrait..

android camera surfaceview orientation

http://stackoverflow.com/questions/5157984/android-camera-surfaceview-orientation

is Portrait from surfaceCreated m_camera Camera.open Camera.Parameters p m_camera.getParameters if getResources .getConfiguration .orientation..

How turn on camera flash light programmatically in Android?

http://stackoverflow.com/questions/6068803/how-turn-on-camera-flash-light-programmatically-in-android

permdesc_flashlight Then make use of Camera and set Camera.Parameters . The main parameter used here is FLASH_MODE_TORCH . eg. Code..

How can I manipulate the camera preview?

http://stackoverflow.com/questions/6478375/how-can-i-manipulate-the-camera-preview

our own draw calls to this canvas mCamera Camera.open Camera.Parameters p mCamera.getParameters p.setPreviewSize 240 160 mCamera.setParameters..

Android Camera will not work. startPreview fails

http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails

surfaceChanged SurfaceHolder holder int format int w int h Camera.Parameters parameters camera.getParameters List Camera.Size supportedPreviewSizes.. to Auto Flash mode. if mSupportedFlashModes.contains Camera.Parameters.FLASH_MODE_AUTO Camera.Parameters parameters mCamera.getParameters.. Camera.Parameters.FLASH_MODE_AUTO Camera.Parameters parameters mCamera.getParameters parameters.setFlashMode Camera.Parameters.FLASH_MODE_AUTO..

Custom camera android

http://stackoverflow.com/questions/8543244/custom-camera-android

Camera.Size getBestPreviewSize int width int height Camera.Parameters parameters Camera.Size result null for Camera.Size size parameters.getSupportedPreviewSizes.. SurfaceHolder holder int format int width int height Camera.Parameters parameters camera.getParameters Camera.Size size getBestPreviewSize..

Converting YUV->RGB(Image processing)->YUV during onPreviewFrame in android?

http://stackoverflow.com/questions/9325861/converting-yuv-rgbimage-processing-yuv-during-onpreviewframe-in-android

Null Preprocessing Log.i DEBUG Try For Image Processing Camera.Parameters mParameters camera.getParameters Size mSize mParameters.getPreviewSize.. specify that camera preview should provide RGB images i.e. Camera.Parameters.setPreviewFormat ImageFormat.RGB_565 share improve this answer..

MediaCodec and Camera: colorspaces don't match

http://stackoverflow.com/questions/13703596/mediacodec-and-camera-colorspaces-dont-match

the MediaCodecAPI is poorly documented but I've gotten something to work at last. I'm setting up the camera as follows Camera.Parameters parameters mCamera.getParameters parameters.setPreviewFormat ImageFormat.YV12 1 parameters.setPreviewFpsRange 4000 60000..

Extended SurfaceView's onDraw() method never called

http://stackoverflow.com/questions/2687015/extended-surfaceviews-ondraw-method-never-called

public void surfaceChanged SurfaceHolder holder int format int width int height Camera.Parameters params camera.getParameters params.setPreviewSize width height camera.setParameters params try camera.setPreviewDisplay..

How to draw an overlay on a SurfaceView used by Camera on Android?

http://stackoverflow.com/questions/2933882/how-to-draw-an-overlay-on-a-surfaceview-used-by-camera-on-android

IOException e public void invalidar invalidate public void surfaceChanged SurfaceHolder holder int format int w int h Camera.Parameters parameters camera.getParameters parameters.setPreviewSize w h camera.setParameters parameters camera.startPreview @Override..

Overlay images onto Camera preview SurfaceView

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

@Override public void surfaceChanged SurfaceHolder arg0 int arg1 int arg2 int arg3 TODO Auto generated method stub Camera.Parameters p camera.getParameters p.setPreviewSize arg2 arg3 try camera.setPreviewDisplay arg0 catch IOException e e.printStackTrace..

Android: Error inflating class

http://stackoverflow.com/questions/3739661/android-error-inflating-class

holder int format int w int h Now that the size is known set up the camera parameters and begin the preview. Camera.Parameters parameters mCamera.getParameters parameters.setPreviewSize w h parameters.set orientation portrait parameters.setRotation..

Camera.Parameters.FLASH_MODE_TORCH replacement for Android 2.1

http://stackoverflow.com/questions/3878294/camera-parameters-flash-mode-torch-replacement-for-android-2-1

replacement for Android 2.1 I am trying to write an app that requires the LED flash to go into torch mode... boolean whether or not we were able to set it public boolean setFlashlight boolean isOn if mCamera null return false Camera.Parameters params mCamera.getParameters String value if isOn we are being ask to turn it on value Camera.Parameters.FLASH_MODE_TORCH.. return false Camera.Parameters params mCamera.getParameters String value if isOn we are being ask to turn it on value Camera.Parameters.FLASH_MODE_TORCH else we are being asked to turn it off value Camera.Parameters.FLASH_MODE_AUTO try params.setFlashMode..

How to use Front Facing Camera on Samsung Galaxy S

http://stackoverflow.com/questions/4241292/how-to-use-front-facing-camera-on-samsung-galaxy-s

to use Front Facing Camera on Samsung Galaxy S I've tried several answer I've found across the web such as Camera.Parameters parameters mCamera.getParameters parameters.set camera id 2 mCamera.setParameters parameters or mMediaRecorder.setVideoSource.. android sdk 2.1 share improve this question Anyway after a few trials and error I figured it out how to do it Camera.Parameters parameters mCamera.getParameters parameters.set camera id 2 parameters.setPreviewSize 640 480 or 800 480 this is supported.. Or if you need to use it with MediaRecorder MediaRecorder mMediaRecorder new MediaRecorder Camera mCamera Camere.open Camera.Parameters parameters mCamera.getParameters parameters.set camera id 2 parameters.setPreviewSize 640 480 or 800 480 mCamera.setParameters..

How to set Android camera orientation properly?

http://stackoverflow.com/questions/4645960/how-to-set-android-camera-orientation-properly

return optimalSize @Override public void surfaceChanged SurfaceHolder holder int format int width int height Camera.Parameters parameters camera.getParameters List Size sizes parameters.getSupportedPreviewSizes Size optimalSize getOptimalPreviewSize.. Version 2.1 depend on kind of devices for example Cannt fix the issue with XPeria X10 but it is good for X8 and Mini Camera.Parameters parameters camera.getParameters parameters.set orientation portrait camera.setParameters parameters Version 2.2 not for..

android camera surfaceview orientation

http://stackoverflow.com/questions/5157984/android-camera-surfaceview-orientation

release camera this all work great because when the orientation is Portrait from surfaceCreated m_camera Camera.open Camera.Parameters p m_camera.getParameters if getResources .getConfiguration .orientation Configuration.ORIENTATION_LANDSCAPE p.set orientation..

How turn on camera flash light programmatically in Android?

http://stackoverflow.com/questions/6068803/how-turn-on-camera-flash-light-programmatically-in-android

label @string permlab_flashlight android description @string permdesc_flashlight Then make use of Camera and set Camera.Parameters . The main parameter used here is FLASH_MODE_TORCH . eg. Code Snippet to turn on camera flash light. Camera cam Camera.open..

How can I manipulate the camera preview?

http://stackoverflow.com/questions/6478375/how-can-i-manipulate-the-camera-preview

this this.setWillNotDraw false This allows us to make our own draw calls to this canvas mCamera Camera.open Camera.Parameters p mCamera.getParameters p.setPreviewSize 240 160 mCamera.setParameters p try mCamera.setPreviewDisplay holder catch IOException..

Android Camera will not work. startPreview fails

http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails

Exception e Debug.out Camera release failure. public void surfaceChanged SurfaceHolder holder int format int w int h Camera.Parameters parameters camera.getParameters List Camera.Size supportedPreviewSizes parameters.getSupportedPreviewSizes Camera.Size optimalPreviewSize.. mCamera.getParameters .getSupportedFlashModes Set the camera to Auto Flash mode. if mSupportedFlashModes.contains Camera.Parameters.FLASH_MODE_AUTO Camera.Parameters parameters mCamera.getParameters parameters.setFlashMode Camera.Parameters.FLASH_MODE_AUTO.. Set the camera to Auto Flash mode. if mSupportedFlashModes.contains Camera.Parameters.FLASH_MODE_AUTO Camera.Parameters parameters mCamera.getParameters parameters.setFlashMode Camera.Parameters.FLASH_MODE_AUTO mCamera.setParameters parameters..

Custom camera android

http://stackoverflow.com/questions/8543244/custom-camera-android

camera.release camera null inPreview false super.onPause private Camera.Size getBestPreviewSize int width int height Camera.Parameters parameters Camera.Size result null for Camera.Size size parameters.getSupportedPreviewSizes if size.width width size.height.. Toast.LENGTH_LONG .show public void surfaceChanged SurfaceHolder holder int format int width int height Camera.Parameters parameters camera.getParameters Camera.Size size getBestPreviewSize width height parameters if size null parameters.setPreviewSize..

Converting YUV->RGB(Image processing)->YUV during onPreviewFrame in android?

http://stackoverflow.com/questions/9325861/converting-yuv-rgbimage-processing-yuv-during-onpreviewframe-in-android

if data null Log.i DEBUG data Not Null Preprocessing Log.i DEBUG Try For Image Processing Camera.Parameters mParameters camera.getParameters Size mSize mParameters.getPreviewSize int mWidth mSize.width int mHeight mSize.height..