Camera camcorder framework overview(ginger bread)

  • 1,365 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,365
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
0
Comments
0
Likes
7

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Camera, Camcorder framework Overview (GingerBread) 박철희 1
  • 2. Multimedia Overview 2
  • 3. Camera Overview Application Camera Application Camera Surface Framework JNI(java native interface) Binder postbuffer Client Camera.cpp Surface Binder Server Camera mSurface mSurface Service buffer Overlay SurfaceNative flingerFramework YUV buffer Camera ServiceClient mmap() RGB565 buffer Camera Overlay Gralloc HAL module module V4L2 Kernel Camera Frame Kernel LCD LCD buffer or Driver buffer Controller pannel Overlay 3
  • 4. Camcorder OverviewApplication Camcorder Application Media Camera Recorder Framework JNI JNI Binder Surface Client Camera.cpp Media Audio Recorder Recorder Binder Server Camera Media Service PlayerService Audio Surface flinger flinger StagefrightRecorder Camera Audio Video ServiceClient encorder encorder Audio Overlay,Gralloc Camera OMX Codec HAL module HAL Kernel Camera Frame Kernel H/W /dev/mic buffer or Driver buffer Codec Overlay 4
  • 5. 카메라 서비스 프레임워크의 클래스 (a) (b) ICameraClient ICameraService Android.hardware`.Camera BnCameraClient BnCameraService JNI Camera (1) 연결과정 바인더 CameraService RPC BpCameraService BpCamera (c) ICamera BnCamera (2) 설정및 제어 바인더 RPC CameraService::Client (3) 이벤트 처리 바인더 RPC CameraHardwareInterface BpCameraClient 5
  • 6. 미디어 레코드 프레임워크의 클래스 VideoCamera (a) (b) IMediaRecordClient IMediaPlayerServiceAandorid.media.Media Recorder BnMediaRrecorderClient BnMediaPlayerService 1)연결 MediaRecorder MediaPlayerService JNI BpMediaPlayerService BpMediaRecorder 2)생성 5)연결 (c) 4)연결 IMediaRecorder BnMediaRrecorder MediaRecorderClient BpMediaRecorderClient 3)생성 StagefrightRecorder 6
  • 7. Media Recorder와 Camera의 연결 Aandorid.hardware.camera ICameraClient ICameraService BnCameraClient BnCameraService Camera x CameraService BpCameraService BpCamera StagefrightRecorder (1 x x ICamera ) ICameraClient BnCamera (3) BnCameraClient (2 CamereaService::Client ) Camera BpCameraClient BpCameraService BpCamera 7
  • 8. Media Recorder 전체구조 VideoCame ra IMediaRecordClient IMediaPlayerService ICameraServiceAandorid.media.MediaRecorder BnCameraService BnMediaRrecorderCli BnMediaPlayerServic ent e CameraService MediaRecorder MediaPlayerService BpMediaPlayerServic e BpMediaRecorder ICamera BnCamera IMediaRecorder ICameraClient CamereaServic BnCameraClient e::Client BnMediaRrecorder Camera BpCameraClien MediaRecorderClient t BpCameraServi ce CameraHardwareInterface BpMediaRecorderCli BpCamera ent StagefrightRecorder Kernel driver 8