Confirmed users
770
edits
(→Design) |
|||
| Line 84: | Line 84: | ||
=Design= | =Design= | ||
==Web API== | ==Web API== | ||
*Panorama Module Selection => | *Panorama Module Selection => Set to Panorama Mode. | ||
*Start Capture => | *Start Capture => Start Panorama capture. | ||
*Progress update => | *Progress update => A Callback to notify Gaia camera app current progress. | ||
*Stop Capture => | *Stop Capture => Stop Panorama capture. | ||
*Generated Finalized Preview Blob => | *Generated Finalized Preview Blob => A callback for passing generated finalized preview blob. | ||
==Gecko API for 3rd party library== | ==Gecko API for 3rd party library== | ||
*Preview Input => | *Preview Input => Take a GonkNativeWindow to bind texture. | ||
*Preview Output => Take another GonkNativeWindow as render output. And take this GonkNativeWindow to create EGLSurface. | |||
*Preview Output => | *Update Progress Callback => Update current progress while starting capture. | ||
*Update Progress Callback => | *Generated Picture => Generate finalized mosaic picture. | ||
*Generated Picture => | *Error Handling => Some error handling functions. | ||
*Error Handling => | |||
==Gecko Changes== | ==Gecko Changes== | ||
* A child class "GonkGLNativeWindow" inhertiage GonkNativeWindow. | |||
* Change the OpenGL usage into Gecko's way. | |||
* New classes like WideAnglePanoramaModule, MosaicFrameProcessor, SurfaceTextureRender, MosaicPreviewRender and MosaicRender. | |||