Documentation
¶
Index ¶
- Constants
- type AdvancedExtenderImplProxy
- func (p *AdvancedExtenderImplProxy) AsBinder() binder.IBinder
- func (p *AdvancedExtenderImplProxy) GetAvailableCaptureRequestKeys(ctx context.Context, cameraId string) (impl.CameraMetadataNative, error)
- func (p *AdvancedExtenderImplProxy) GetAvailableCaptureResultKeys(ctx context.Context, cameraId string) (impl.CameraMetadataNative, error)
- func (p *AdvancedExtenderImplProxy) GetAvailableCharacteristicsKeyValues(ctx context.Context, cameraId string) (impl.CameraMetadataNative, error)
- func (p *AdvancedExtenderImplProxy) GetEstimatedCaptureLatencyRange(ctx context.Context, cameraId string, outputSize Size, format int32) (LatencyRange, error)
- func (p *AdvancedExtenderImplProxy) GetSessionProcessor(ctx context.Context) (ISessionProcessorImpl, error)
- func (p *AdvancedExtenderImplProxy) GetSupportedCaptureOutputResolutions(ctx context.Context, cameraId string) ([]SizeList, error)
- func (p *AdvancedExtenderImplProxy) GetSupportedPostviewResolutions(ctx context.Context, captureSize Size) ([]SizeList, error)
- func (p *AdvancedExtenderImplProxy) GetSupportedPreviewOutputResolutions(ctx context.Context, cameraId string) ([]SizeList, error)
- func (p *AdvancedExtenderImplProxy) Init(ctx context.Context, cameraId string, ...) error
- func (p *AdvancedExtenderImplProxy) IsCaptureProcessProgressAvailable(ctx context.Context) (bool, error)
- func (p *AdvancedExtenderImplProxy) IsExtensionAvailable(ctx context.Context, cameraId string, ...) (bool, error)
- func (p *AdvancedExtenderImplProxy) IsPostviewAvailable(ctx context.Context) (bool, error)
- type AdvancedExtenderImplStub
- type CameraExtensionsProxyServiceProxy
- func (p *CameraExtensionsProxyServiceProxy) AdvancedExtensionsSupported(ctx context.Context) (bool, error)
- func (p *CameraExtensionsProxyServiceProxy) AsBinder() binder.IBinder
- func (p *CameraExtensionsProxyServiceProxy) InitializeAdvancedExtension(ctx context.Context, extensionType int32) (IAdvancedExtenderImpl, error)
- func (p *CameraExtensionsProxyServiceProxy) InitializeImageExtension(ctx context.Context, extensionType int32) (IImageCaptureExtenderImpl, error)
- func (p *CameraExtensionsProxyServiceProxy) InitializePreviewExtension(ctx context.Context, extensionType int32) (IPreviewExtenderImpl, error)
- func (p *CameraExtensionsProxyServiceProxy) InitializeSession(ctx context.Context, cb IInitializeSessionCallback) error
- func (p *CameraExtensionsProxyServiceProxy) RegisterClient(ctx context.Context, token binder.IBinder) (bool, error)
- func (p *CameraExtensionsProxyServiceProxy) ReleaseSession(ctx context.Context) error
- func (p *CameraExtensionsProxyServiceProxy) UnregisterClient(ctx context.Context, token binder.IBinder) error
- type CameraExtensionsProxyServiceStub
- type CameraOutputConfig
- type CameraSessionConfig
- type CaptureBundle
- type CaptureCallbackProxy
- func (p *CaptureCallbackProxy) AsBinder() binder.IBinder
- func (p *CaptureCallbackProxy) OnCaptureCompleted(ctx context.Context, shutterTimestamp int64, requestId int32, ...) error
- func (p *CaptureCallbackProxy) OnCaptureFailed(ctx context.Context, captureSequenceId int32) error
- func (p *CaptureCallbackProxy) OnCaptureProcessFailed(ctx context.Context, captureSequenceId int32, captureFailureReason int32) error
- func (p *CaptureCallbackProxy) OnCaptureProcessProgressed(ctx context.Context, progress int32) error
- func (p *CaptureCallbackProxy) OnCaptureProcessStarted(ctx context.Context, captureSequenceId int32) error
- func (p *CaptureCallbackProxy) OnCaptureSequenceAborted(ctx context.Context, captureSequenceId int32) error
- func (p *CaptureCallbackProxy) OnCaptureSequenceCompleted(ctx context.Context, captureSequenceId int32) error
- func (p *CaptureCallbackProxy) OnCaptureStarted(ctx context.Context, captureSequenceId int32, timestamp int64) error
- type CaptureCallbackStub
- type CaptureFailure
- type CaptureProcessorImplProxy
- func (p *CaptureProcessorImplProxy) AsBinder() binder.IBinder
- func (p *CaptureProcessorImplProxy) OnImageFormatUpdate(ctx context.Context, imageFormat int32) error
- func (p *CaptureProcessorImplProxy) OnOutputSurface(ctx context.Context, surface view.Surface, imageFormat int32) error
- func (p *CaptureProcessorImplProxy) OnPostviewOutputSurface(ctx context.Context, surface view.Surface) error
- func (p *CaptureProcessorImplProxy) OnResolutionUpdate(ctx context.Context, size Size, postviewSize Size) error
- func (p *CaptureProcessorImplProxy) Process(ctx context.Context, capturelist []CaptureBundle, ...) error
- type CaptureProcessorImplStub
- type CaptureStageImpl
- type IAdvancedExtenderImpl
- type IAdvancedExtenderImplServer
- type ICameraExtensionsProxyService
- type ICameraExtensionsProxyServiceServer
- type ICaptureCallback
- type ICaptureCallbackServer
- type ICaptureProcessorImpl
- type ICaptureProcessorImplServer
- type IImageCaptureExtenderImpl
- type IImageCaptureExtenderImplServer
- type IImageProcessorImpl
- type IImageProcessorImplServer
- type IInitializeSessionCallback
- type IInitializeSessionCallbackServer
- type IOutputSurfaceConfiguration
- type IOutputSurfaceConfigurationServer
- type IPreviewExtenderImpl
- type IPreviewExtenderImplServer
- type IPreviewImageProcessorImpl
- type IPreviewImageProcessorImplServer
- type IProcessResultImpl
- type IProcessResultImplServer
- type IRequestCallback
- type IRequestCallbackServer
- type IRequestProcessorImpl
- type IRequestProcessorImplServer
- type IRequestUpdateProcessorImpl
- type IRequestUpdateProcessorImplServer
- type ISessionProcessorImpl
- type ISessionProcessorImplServer
- type ImageCaptureExtenderImplProxy
- func (p *ImageCaptureExtenderImplProxy) AsBinder() binder.IBinder
- func (p *ImageCaptureExtenderImplProxy) GetAvailableCaptureRequestKeys(ctx context.Context) (impl.CameraMetadataNative, error)
- func (p *ImageCaptureExtenderImplProxy) GetAvailableCaptureResultKeys(ctx context.Context) (impl.CameraMetadataNative, error)
- func (p *ImageCaptureExtenderImplProxy) GetCaptureProcessor(ctx context.Context) (ICaptureProcessorImpl, error)
- func (p *ImageCaptureExtenderImplProxy) GetCaptureStages(ctx context.Context) ([]CaptureStageImpl, error)
- func (p *ImageCaptureExtenderImplProxy) GetEstimatedCaptureLatencyRange(ctx context.Context, outputSize Size) (LatencyRange, error)
- func (p *ImageCaptureExtenderImplProxy) GetMaxCaptureStage(ctx context.Context) (int32, error)
- func (p *ImageCaptureExtenderImplProxy) GetRealtimeCaptureLatency(ctx context.Context) (LatencyPair, error)
- func (p *ImageCaptureExtenderImplProxy) GetSessionType(ctx context.Context) (int32, error)
- func (p *ImageCaptureExtenderImplProxy) GetSupportedPostviewResolutions(ctx context.Context, captureSize Size) ([]SizeList, error)
- func (p *ImageCaptureExtenderImplProxy) GetSupportedResolutions(ctx context.Context) ([]SizeList, error)
- func (p *ImageCaptureExtenderImplProxy) Init(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) error
- func (p *ImageCaptureExtenderImplProxy) IsCaptureProcessProgressAvailable(ctx context.Context) (bool, error)
- func (p *ImageCaptureExtenderImplProxy) IsExtensionAvailable(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) (bool, error)
- func (p *ImageCaptureExtenderImplProxy) IsPostviewAvailable(ctx context.Context) (bool, error)
- func (p *ImageCaptureExtenderImplProxy) OnDeInit(ctx context.Context, token binder.IBinder) error
- func (p *ImageCaptureExtenderImplProxy) OnDisableSession(ctx context.Context) (CaptureStageImpl, error)
- func (p *ImageCaptureExtenderImplProxy) OnEnableSession(ctx context.Context) (CaptureStageImpl, error)
- func (p *ImageCaptureExtenderImplProxy) OnInit(ctx context.Context, token binder.IBinder, cameraId string, ...) error
- func (p *ImageCaptureExtenderImplProxy) OnPresetSession(ctx context.Context) (CaptureStageImpl, error)
- type ImageCaptureExtenderImplStub
- type ImageProcessorImplProxy
- type ImageProcessorImplStub
- type InitializeSessionCallbackProxy
- type InitializeSessionCallbackStub
- type LatencyPair
- type LatencyRange
- type OutputConfigId
- type OutputSurface
- type OutputSurfaceConfigurationProxy
- func (p *OutputSurfaceConfigurationProxy) AsBinder() binder.IBinder
- func (p *OutputSurfaceConfigurationProxy) GetImageAnalysisOutputSurface(ctx context.Context) (OutputSurface, error)
- func (p *OutputSurfaceConfigurationProxy) GetImageCaptureOutputSurface(ctx context.Context) (OutputSurface, error)
- func (p *OutputSurfaceConfigurationProxy) GetPostviewOutputSurface(ctx context.Context) (OutputSurface, error)
- func (p *OutputSurfaceConfigurationProxy) GetPreviewOutputSurface(ctx context.Context) (OutputSurface, error)
- type OutputSurfaceConfigurationStub
- type ParcelCaptureResult
- type ParcelImage
- type ParcelTotalCaptureResult
- type PreviewExtenderImplProxy
- func (p *PreviewExtenderImplProxy) AsBinder() binder.IBinder
- func (p *PreviewExtenderImplProxy) GetCaptureStage(ctx context.Context) (CaptureStageImpl, error)
- func (p *PreviewExtenderImplProxy) GetPreviewImageProcessor(ctx context.Context) (IPreviewImageProcessorImpl, error)
- func (p *PreviewExtenderImplProxy) GetProcessorType(ctx context.Context) (int32, error)
- func (p *PreviewExtenderImplProxy) GetRequestUpdateProcessor(ctx context.Context) (IRequestUpdateProcessorImpl, error)
- func (p *PreviewExtenderImplProxy) GetSessionType(ctx context.Context) (int32, error)
- func (p *PreviewExtenderImplProxy) GetSupportedResolutions(ctx context.Context) ([]SizeList, error)
- func (p *PreviewExtenderImplProxy) Init(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) error
- func (p *PreviewExtenderImplProxy) IsExtensionAvailable(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) (bool, error)
- func (p *PreviewExtenderImplProxy) OnDeInit(ctx context.Context, token binder.IBinder) error
- func (p *PreviewExtenderImplProxy) OnDisableSession(ctx context.Context) (CaptureStageImpl, error)
- func (p *PreviewExtenderImplProxy) OnEnableSession(ctx context.Context) (CaptureStageImpl, error)
- func (p *PreviewExtenderImplProxy) OnInit(ctx context.Context, token binder.IBinder, cameraId string, ...) error
- func (p *PreviewExtenderImplProxy) OnPresetSession(ctx context.Context) (CaptureStageImpl, error)
- type PreviewExtenderImplStub
- type PreviewImageProcessorImplProxy
- func (p *PreviewImageProcessorImplProxy) AsBinder() binder.IBinder
- func (p *PreviewImageProcessorImplProxy) OnImageFormatUpdate(ctx context.Context, imageFormat int32) error
- func (p *PreviewImageProcessorImplProxy) OnOutputSurface(ctx context.Context, surface view.Surface, imageFormat int32) error
- func (p *PreviewImageProcessorImplProxy) OnResolutionUpdate(ctx context.Context, size Size) error
- func (p *PreviewImageProcessorImplProxy) Process(ctx context.Context, image ParcelImage, result impl.CameraMetadataNative, ...) error
- type PreviewImageProcessorImplStub
- type ProcessResultImplProxy
- type ProcessResultImplStub
- type Request
- type RequestCallbackProxy
- func (p *RequestCallbackProxy) AsBinder() binder.IBinder
- func (p *RequestCallbackProxy) OnCaptureBufferLost(ctx context.Context, requestId int32, frameNumber int64, outputStreamId int32) error
- func (p *RequestCallbackProxy) OnCaptureCompleted(ctx context.Context, requestId int32, ...) error
- func (p *RequestCallbackProxy) OnCaptureFailed(ctx context.Context, requestId int32, captureFailure CaptureFailure) error
- func (p *RequestCallbackProxy) OnCaptureProgressed(ctx context.Context, requestId int32, partialResult ParcelCaptureResult) error
- func (p *RequestCallbackProxy) OnCaptureSequenceAborted(ctx context.Context, sequenceId int32) error
- func (p *RequestCallbackProxy) OnCaptureSequenceCompleted(ctx context.Context, sequenceId int32, frameNumber int64) error
- func (p *RequestCallbackProxy) OnCaptureStarted(ctx context.Context, requestId int32, frameNumber int64, timestamp int64) error
- type RequestCallbackStub
- type RequestProcessorImplProxy
- func (p *RequestProcessorImplProxy) AbortCaptures(ctx context.Context) error
- func (p *RequestProcessorImplProxy) AsBinder() binder.IBinder
- func (p *RequestProcessorImplProxy) SetImageProcessor(ctx context.Context, outputConfigId OutputConfigId, ...) error
- func (p *RequestProcessorImplProxy) SetRepeating(ctx context.Context, request Request, callback IRequestCallback) (int32, error)
- func (p *RequestProcessorImplProxy) StopRepeating(ctx context.Context) error
- func (p *RequestProcessorImplProxy) Submit(ctx context.Context, request Request, callback IRequestCallback) (int32, error)
- func (p *RequestProcessorImplProxy) SubmitBurst(ctx context.Context, requests []Request, callback IRequestCallback) (int32, error)
- type RequestProcessorImplStub
- type RequestUpdateProcessorImplProxy
- func (p *RequestUpdateProcessorImplProxy) AsBinder() binder.IBinder
- func (p *RequestUpdateProcessorImplProxy) OnImageFormatUpdate(ctx context.Context, imageFormat int32) error
- func (p *RequestUpdateProcessorImplProxy) OnOutputSurface(ctx context.Context, surface view.Surface, imageFormat int32) error
- func (p *RequestUpdateProcessorImplProxy) OnResolutionUpdate(ctx context.Context, size Size) error
- func (p *RequestUpdateProcessorImplProxy) Process(ctx context.Context, result impl.CameraMetadataNative, sequenceId int32) (CaptureStageImpl, error)
- type RequestUpdateProcessorImplStub
- type SessionProcessorImplProxy
- func (p *SessionProcessorImplProxy) AsBinder() binder.IBinder
- func (p *SessionProcessorImplProxy) DeInitSession(ctx context.Context, token binder.IBinder) error
- func (p *SessionProcessorImplProxy) GetRealtimeCaptureLatency(ctx context.Context) (LatencyPair, error)
- func (p *SessionProcessorImplProxy) InitSession(ctx context.Context, token binder.IBinder, cameraId string, ...) (CameraSessionConfig, error)
- func (p *SessionProcessorImplProxy) OnCaptureSessionEnd(ctx context.Context) error
- func (p *SessionProcessorImplProxy) OnCaptureSessionStart(ctx context.Context, requestProcessor IRequestProcessorImpl, statsKey string) error
- func (p *SessionProcessorImplProxy) SetParameters(ctx context.Context, captureRequest camera2.CaptureRequest) error
- func (p *SessionProcessorImplProxy) StartCapture(ctx context.Context, callback ICaptureCallback, isPostviewRequested bool) (int32, error)
- func (p *SessionProcessorImplProxy) StartRepeating(ctx context.Context, callback ICaptureCallback) (int32, error)
- func (p *SessionProcessorImplProxy) StartTrigger(ctx context.Context, captureRequest camera2.CaptureRequest, ...) (int32, error)
- func (p *SessionProcessorImplProxy) StopRepeating(ctx context.Context) error
- type SessionProcessorImplStub
- type Size
- type SizeList
Constants ¶
const ( CameraOutputConfigTypeSurface int32 = 0 CameraOutputConfigTypeImagereader int32 = 1 CameraOutputConfigTypeMultiresImagereader int32 = 2 )
const ( TransactionIAdvancedExtenderImplIsExtensionAvailable = binder.FirstCallTransaction + 0 TransactionIAdvancedExtenderImplInit = binder.FirstCallTransaction + 1 TransactionIAdvancedExtenderImplGetEstimatedCaptureLatencyRange = binder.FirstCallTransaction + 2 TransactionIAdvancedExtenderImplGetSupportedPreviewOutputResolutions = binder.FirstCallTransaction + 3 TransactionIAdvancedExtenderImplGetSupportedCaptureOutputResolutions = binder.FirstCallTransaction + 4 TransactionIAdvancedExtenderImplGetSupportedPostviewResolutions = binder.FirstCallTransaction + 5 TransactionIAdvancedExtenderImplGetSessionProcessor = binder.FirstCallTransaction + 6 TransactionIAdvancedExtenderImplGetAvailableCaptureRequestKeys = binder.FirstCallTransaction + 7 TransactionIAdvancedExtenderImplGetAvailableCaptureResultKeys = binder.FirstCallTransaction + 8 TransactionIAdvancedExtenderImplIsCaptureProcessProgressAvailable = binder.FirstCallTransaction + 9 TransactionIAdvancedExtenderImplIsPostviewAvailable = binder.FirstCallTransaction + 10 TransactionIAdvancedExtenderImplGetAvailableCharacteristicsKeyValues = binder.FirstCallTransaction + 11 )
const ( MethodIAdvancedExtenderImplIsExtensionAvailable = "isExtensionAvailable" MethodIAdvancedExtenderImplInit = "init" MethodIAdvancedExtenderImplGetEstimatedCaptureLatencyRange = "getEstimatedCaptureLatencyRange" MethodIAdvancedExtenderImplGetSupportedPreviewOutputResolutions = "getSupportedPreviewOutputResolutions" MethodIAdvancedExtenderImplGetSupportedCaptureOutputResolutions = "getSupportedCaptureOutputResolutions" MethodIAdvancedExtenderImplGetSupportedPostviewResolutions = "getSupportedPostviewResolutions" MethodIAdvancedExtenderImplGetSessionProcessor = "getSessionProcessor" MethodIAdvancedExtenderImplGetAvailableCaptureRequestKeys = "getAvailableCaptureRequestKeys" MethodIAdvancedExtenderImplGetAvailableCaptureResultKeys = "getAvailableCaptureResultKeys" MethodIAdvancedExtenderImplIsCaptureProcessProgressAvailable = "isCaptureProcessProgressAvailable" MethodIAdvancedExtenderImplIsPostviewAvailable = "isPostviewAvailable" MethodIAdvancedExtenderImplGetAvailableCharacteristicsKeyValues = "getAvailableCharacteristicsKeyValues" )
const ( TransactionICameraExtensionsProxyServiceRegisterClient = binder.FirstCallTransaction + 0 TransactionICameraExtensionsProxyServiceUnregisterClient = binder.FirstCallTransaction + 1 TransactionICameraExtensionsProxyServiceAdvancedExtensionsSupported = binder.FirstCallTransaction + 2 TransactionICameraExtensionsProxyServiceInitializeSession = binder.FirstCallTransaction + 3 TransactionICameraExtensionsProxyServiceReleaseSession = binder.FirstCallTransaction + 4 TransactionICameraExtensionsProxyServiceInitializePreviewExtension = binder.FirstCallTransaction + 5 TransactionICameraExtensionsProxyServiceInitializeImageExtension = binder.FirstCallTransaction + 6 TransactionICameraExtensionsProxyServiceInitializeAdvancedExtension = binder.FirstCallTransaction + 7 )
const ( MethodICameraExtensionsProxyServiceRegisterClient = "registerClient" MethodICameraExtensionsProxyServiceUnregisterClient = "unregisterClient" MethodICameraExtensionsProxyServiceAdvancedExtensionsSupported = "advancedExtensionsSupported" MethodICameraExtensionsProxyServiceInitializeSession = "initializeSession" MethodICameraExtensionsProxyServiceReleaseSession = "releaseSession" MethodICameraExtensionsProxyServiceInitializePreviewExtension = "initializePreviewExtension" MethodICameraExtensionsProxyServiceInitializeImageExtension = "initializeImageExtension" MethodICameraExtensionsProxyServiceInitializeAdvancedExtension = "initializeAdvancedExtension" )
const ( TransactionICaptureCallbackOnCaptureStarted = binder.FirstCallTransaction + 0 TransactionICaptureCallbackOnCaptureProcessStarted = binder.FirstCallTransaction + 1 TransactionICaptureCallbackOnCaptureFailed = binder.FirstCallTransaction + 2 TransactionICaptureCallbackOnCaptureSequenceCompleted = binder.FirstCallTransaction + 3 TransactionICaptureCallbackOnCaptureSequenceAborted = binder.FirstCallTransaction + 4 TransactionICaptureCallbackOnCaptureCompleted = binder.FirstCallTransaction + 5 TransactionICaptureCallbackOnCaptureProcessProgressed = binder.FirstCallTransaction + 6 TransactionICaptureCallbackOnCaptureProcessFailed = binder.FirstCallTransaction + 7 )
const ( MethodICaptureCallbackOnCaptureStarted = "onCaptureStarted" MethodICaptureCallbackOnCaptureProcessStarted = "onCaptureProcessStarted" MethodICaptureCallbackOnCaptureFailed = "onCaptureFailed" MethodICaptureCallbackOnCaptureSequenceCompleted = "onCaptureSequenceCompleted" MethodICaptureCallbackOnCaptureSequenceAborted = "onCaptureSequenceAborted" MethodICaptureCallbackOnCaptureCompleted = "onCaptureCompleted" MethodICaptureCallbackOnCaptureProcessProgressed = "onCaptureProcessProgressed" MethodICaptureCallbackOnCaptureProcessFailed = "onCaptureProcessFailed" )
const ( TransactionICaptureProcessorImplOnOutputSurface = binder.FirstCallTransaction + 0 TransactionICaptureProcessorImplOnPostviewOutputSurface = binder.FirstCallTransaction + 1 TransactionICaptureProcessorImplOnResolutionUpdate = binder.FirstCallTransaction + 2 TransactionICaptureProcessorImplOnImageFormatUpdate = binder.FirstCallTransaction + 3 TransactionICaptureProcessorImplProcess = binder.FirstCallTransaction + 4 )
const ( MethodICaptureProcessorImplOnOutputSurface = "onOutputSurface" MethodICaptureProcessorImplOnPostviewOutputSurface = "onPostviewOutputSurface" MethodICaptureProcessorImplOnResolutionUpdate = "onResolutionUpdate" MethodICaptureProcessorImplOnImageFormatUpdate = "onImageFormatUpdate" MethodICaptureProcessorImplProcess = "process" )
const ( TransactionIImageCaptureExtenderImplOnInit = binder.FirstCallTransaction + 0 TransactionIImageCaptureExtenderImplOnDeInit = binder.FirstCallTransaction + 1 TransactionIImageCaptureExtenderImplOnPresetSession = binder.FirstCallTransaction + 2 TransactionIImageCaptureExtenderImplOnEnableSession = binder.FirstCallTransaction + 3 TransactionIImageCaptureExtenderImplOnDisableSession = binder.FirstCallTransaction + 4 TransactionIImageCaptureExtenderImplGetSessionType = binder.FirstCallTransaction + 5 TransactionIImageCaptureExtenderImplIsExtensionAvailable = binder.FirstCallTransaction + 6 TransactionIImageCaptureExtenderImplInit = binder.FirstCallTransaction + 7 TransactionIImageCaptureExtenderImplGetCaptureProcessor = binder.FirstCallTransaction + 8 TransactionIImageCaptureExtenderImplGetCaptureStages = binder.FirstCallTransaction + 9 TransactionIImageCaptureExtenderImplGetMaxCaptureStage = binder.FirstCallTransaction + 10 TransactionIImageCaptureExtenderImplGetSupportedResolutions = binder.FirstCallTransaction + 11 TransactionIImageCaptureExtenderImplGetSupportedPostviewResolutions = binder.FirstCallTransaction + 12 TransactionIImageCaptureExtenderImplGetEstimatedCaptureLatencyRange = binder.FirstCallTransaction + 13 TransactionIImageCaptureExtenderImplGetAvailableCaptureRequestKeys = binder.FirstCallTransaction + 14 TransactionIImageCaptureExtenderImplGetAvailableCaptureResultKeys = binder.FirstCallTransaction + 15 TransactionIImageCaptureExtenderImplIsCaptureProcessProgressAvailable = binder.FirstCallTransaction + 16 TransactionIImageCaptureExtenderImplGetRealtimeCaptureLatency = binder.FirstCallTransaction + 17 TransactionIImageCaptureExtenderImplIsPostviewAvailable = binder.FirstCallTransaction + 18 )
const ( MethodIImageCaptureExtenderImplOnInit = "onInit" MethodIImageCaptureExtenderImplOnDeInit = "onDeInit" MethodIImageCaptureExtenderImplOnPresetSession = "onPresetSession" MethodIImageCaptureExtenderImplOnEnableSession = "onEnableSession" MethodIImageCaptureExtenderImplOnDisableSession = "onDisableSession" MethodIImageCaptureExtenderImplGetSessionType = "getSessionType" MethodIImageCaptureExtenderImplIsExtensionAvailable = "isExtensionAvailable" MethodIImageCaptureExtenderImplInit = "init" MethodIImageCaptureExtenderImplGetCaptureProcessor = "getCaptureProcessor" MethodIImageCaptureExtenderImplGetCaptureStages = "getCaptureStages" MethodIImageCaptureExtenderImplGetMaxCaptureStage = "getMaxCaptureStage" MethodIImageCaptureExtenderImplGetSupportedResolutions = "getSupportedResolutions" MethodIImageCaptureExtenderImplGetSupportedPostviewResolutions = "getSupportedPostviewResolutions" MethodIImageCaptureExtenderImplGetEstimatedCaptureLatencyRange = "getEstimatedCaptureLatencyRange" MethodIImageCaptureExtenderImplGetAvailableCaptureRequestKeys = "getAvailableCaptureRequestKeys" MethodIImageCaptureExtenderImplGetAvailableCaptureResultKeys = "getAvailableCaptureResultKeys" MethodIImageCaptureExtenderImplIsCaptureProcessProgressAvailable = "isCaptureProcessProgressAvailable" MethodIImageCaptureExtenderImplGetRealtimeCaptureLatency = "getRealtimeCaptureLatency" MethodIImageCaptureExtenderImplIsPostviewAvailable = "isPostviewAvailable" )
const ( TransactionIInitializeSessionCallbackOnSuccess = binder.FirstCallTransaction + 0 TransactionIInitializeSessionCallbackOnFailure = binder.FirstCallTransaction + 1 )
const ( MethodIInitializeSessionCallbackOnSuccess = "onSuccess" MethodIInitializeSessionCallbackOnFailure = "onFailure" )
const ( TransactionIOutputSurfaceConfigurationGetPreviewOutputSurface = binder.FirstCallTransaction + 0 TransactionIOutputSurfaceConfigurationGetImageCaptureOutputSurface = binder.FirstCallTransaction + 1 TransactionIOutputSurfaceConfigurationGetImageAnalysisOutputSurface = binder.FirstCallTransaction + 2 TransactionIOutputSurfaceConfigurationGetPostviewOutputSurface = binder.FirstCallTransaction + 3 )
const ( MethodIOutputSurfaceConfigurationGetPreviewOutputSurface = "getPreviewOutputSurface" MethodIOutputSurfaceConfigurationGetImageCaptureOutputSurface = "getImageCaptureOutputSurface" MethodIOutputSurfaceConfigurationGetImageAnalysisOutputSurface = "getImageAnalysisOutputSurface" MethodIOutputSurfaceConfigurationGetPostviewOutputSurface = "getPostviewOutputSurface" )
const ( TransactionIPreviewExtenderImplOnInit = binder.FirstCallTransaction + 0 TransactionIPreviewExtenderImplOnDeInit = binder.FirstCallTransaction + 1 TransactionIPreviewExtenderImplOnPresetSession = binder.FirstCallTransaction + 2 TransactionIPreviewExtenderImplOnEnableSession = binder.FirstCallTransaction + 3 TransactionIPreviewExtenderImplOnDisableSession = binder.FirstCallTransaction + 4 TransactionIPreviewExtenderImplInit = binder.FirstCallTransaction + 5 TransactionIPreviewExtenderImplIsExtensionAvailable = binder.FirstCallTransaction + 6 TransactionIPreviewExtenderImplGetCaptureStage = binder.FirstCallTransaction + 7 TransactionIPreviewExtenderImplGetSessionType = binder.FirstCallTransaction + 8 TransactionIPreviewExtenderImplGetProcessorType = binder.FirstCallTransaction + 9 TransactionIPreviewExtenderImplGetPreviewImageProcessor = binder.FirstCallTransaction + 10 TransactionIPreviewExtenderImplGetRequestUpdateProcessor = binder.FirstCallTransaction + 11 TransactionIPreviewExtenderImplGetSupportedResolutions = binder.FirstCallTransaction + 12 )
const ( MethodIPreviewExtenderImplOnInit = "onInit" MethodIPreviewExtenderImplOnDeInit = "onDeInit" MethodIPreviewExtenderImplOnPresetSession = "onPresetSession" MethodIPreviewExtenderImplOnEnableSession = "onEnableSession" MethodIPreviewExtenderImplOnDisableSession = "onDisableSession" MethodIPreviewExtenderImplInit = "init" MethodIPreviewExtenderImplIsExtensionAvailable = "isExtensionAvailable" MethodIPreviewExtenderImplGetCaptureStage = "getCaptureStage" MethodIPreviewExtenderImplGetSessionType = "getSessionType" MethodIPreviewExtenderImplGetProcessorType = "getProcessorType" MethodIPreviewExtenderImplGetPreviewImageProcessor = "getPreviewImageProcessor" MethodIPreviewExtenderImplGetRequestUpdateProcessor = "getRequestUpdateProcessor" MethodIPreviewExtenderImplGetSupportedResolutions = "getSupportedResolutions" )
const ( IPreviewExtenderImplProcessorTypeRequestUpdateOnly int32 = 0 IPreviewExtenderImplProcessorTypeImageProcessor int32 = 1 IPreviewExtenderImplProcessorTypeNone int32 = 2 )
const ( TransactionIPreviewImageProcessorImplOnOutputSurface = binder.FirstCallTransaction + 0 TransactionIPreviewImageProcessorImplOnResolutionUpdate = binder.FirstCallTransaction + 1 TransactionIPreviewImageProcessorImplOnImageFormatUpdate = binder.FirstCallTransaction + 2 TransactionIPreviewImageProcessorImplProcess = binder.FirstCallTransaction + 3 )
const ( MethodIPreviewImageProcessorImplOnOutputSurface = "onOutputSurface" MethodIPreviewImageProcessorImplOnResolutionUpdate = "onResolutionUpdate" MethodIPreviewImageProcessorImplOnImageFormatUpdate = "onImageFormatUpdate" MethodIPreviewImageProcessorImplProcess = "process" )
const ( TransactionIProcessResultImplOnCaptureCompleted = binder.FirstCallTransaction + 0 TransactionIProcessResultImplOnCaptureProcessProgressed = binder.FirstCallTransaction + 1 )
const ( MethodIProcessResultImplOnCaptureCompleted = "onCaptureCompleted" MethodIProcessResultImplOnCaptureProcessProgressed = "onCaptureProcessProgressed" )
const ( TransactionIRequestCallbackOnCaptureStarted = binder.FirstCallTransaction + 0 TransactionIRequestCallbackOnCaptureProgressed = binder.FirstCallTransaction + 1 TransactionIRequestCallbackOnCaptureCompleted = binder.FirstCallTransaction + 2 TransactionIRequestCallbackOnCaptureFailed = binder.FirstCallTransaction + 3 TransactionIRequestCallbackOnCaptureBufferLost = binder.FirstCallTransaction + 4 TransactionIRequestCallbackOnCaptureSequenceCompleted = binder.FirstCallTransaction + 5 TransactionIRequestCallbackOnCaptureSequenceAborted = binder.FirstCallTransaction + 6 )
const ( MethodIRequestCallbackOnCaptureStarted = "onCaptureStarted" MethodIRequestCallbackOnCaptureProgressed = "onCaptureProgressed" MethodIRequestCallbackOnCaptureCompleted = "onCaptureCompleted" MethodIRequestCallbackOnCaptureFailed = "onCaptureFailed" MethodIRequestCallbackOnCaptureBufferLost = "onCaptureBufferLost" MethodIRequestCallbackOnCaptureSequenceCompleted = "onCaptureSequenceCompleted" MethodIRequestCallbackOnCaptureSequenceAborted = "onCaptureSequenceAborted" )
const ( TransactionIRequestProcessorImplSetImageProcessor = binder.FirstCallTransaction + 0 TransactionIRequestProcessorImplSubmit = binder.FirstCallTransaction + 1 TransactionIRequestProcessorImplSubmitBurst = binder.FirstCallTransaction + 2 TransactionIRequestProcessorImplSetRepeating = binder.FirstCallTransaction + 3 TransactionIRequestProcessorImplAbortCaptures = binder.FirstCallTransaction + 4 TransactionIRequestProcessorImplStopRepeating = binder.FirstCallTransaction + 5 )
const ( MethodIRequestProcessorImplSetImageProcessor = "setImageProcessor" MethodIRequestProcessorImplSubmit = "submit" MethodIRequestProcessorImplSubmitBurst = "submitBurst" MethodIRequestProcessorImplSetRepeating = "setRepeating" MethodIRequestProcessorImplAbortCaptures = "abortCaptures" MethodIRequestProcessorImplStopRepeating = "stopRepeating" )
const ( TransactionIRequestUpdateProcessorImplOnOutputSurface = binder.FirstCallTransaction + 0 TransactionIRequestUpdateProcessorImplOnResolutionUpdate = binder.FirstCallTransaction + 1 TransactionIRequestUpdateProcessorImplOnImageFormatUpdate = binder.FirstCallTransaction + 2 TransactionIRequestUpdateProcessorImplProcess = binder.FirstCallTransaction + 3 )
const ( MethodIRequestUpdateProcessorImplOnOutputSurface = "onOutputSurface" MethodIRequestUpdateProcessorImplOnResolutionUpdate = "onResolutionUpdate" MethodIRequestUpdateProcessorImplOnImageFormatUpdate = "onImageFormatUpdate" MethodIRequestUpdateProcessorImplProcess = "process" )
const ( TransactionISessionProcessorImplInitSession = binder.FirstCallTransaction + 0 TransactionISessionProcessorImplDeInitSession = binder.FirstCallTransaction + 1 TransactionISessionProcessorImplOnCaptureSessionStart = binder.FirstCallTransaction + 2 TransactionISessionProcessorImplOnCaptureSessionEnd = binder.FirstCallTransaction + 3 TransactionISessionProcessorImplStartRepeating = binder.FirstCallTransaction + 4 TransactionISessionProcessorImplStopRepeating = binder.FirstCallTransaction + 5 TransactionISessionProcessorImplStartCapture = binder.FirstCallTransaction + 6 TransactionISessionProcessorImplSetParameters = binder.FirstCallTransaction + 7 TransactionISessionProcessorImplStartTrigger = binder.FirstCallTransaction + 8 TransactionISessionProcessorImplGetRealtimeCaptureLatency = binder.FirstCallTransaction + 9 )
const ( MethodISessionProcessorImplInitSession = "initSession" MethodISessionProcessorImplDeInitSession = "deInitSession" MethodISessionProcessorImplOnCaptureSessionStart = "onCaptureSessionStart" MethodISessionProcessorImplOnCaptureSessionEnd = "onCaptureSessionEnd" MethodISessionProcessorImplStartRepeating = "startRepeating" MethodISessionProcessorImplStopRepeating = "stopRepeating" MethodISessionProcessorImplStartCapture = "startCapture" MethodISessionProcessorImplSetParameters = "setParameters" MethodISessionProcessorImplStartTrigger = "startTrigger" MethodISessionProcessorImplGetRealtimeCaptureLatency = "getRealtimeCaptureLatency" )
const DescriptorIAdvancedExtenderImpl = "android.hardware.camera2.extension.IAdvancedExtenderImpl"
const DescriptorICameraExtensionsProxyService = "android.hardware.camera2.extension.ICameraExtensionsProxyService"
const DescriptorICaptureCallback = "android.hardware.camera2.extension.ICaptureCallback"
const DescriptorICaptureProcessorImpl = "android.hardware.camera2.extension.ICaptureProcessorImpl"
const DescriptorIImageCaptureExtenderImpl = "android.hardware.camera2.extension.IImageCaptureExtenderImpl"
const DescriptorIImageProcessorImpl = "android.hardware.camera2.extension.IImageProcessorImpl"
const DescriptorIInitializeSessionCallback = "android.hardware.camera2.extension.IInitializeSessionCallback"
const DescriptorIOutputSurfaceConfiguration = "android.hardware.camera2.extension.IOutputSurfaceConfiguration"
const DescriptorIPreviewExtenderImpl = "android.hardware.camera2.extension.IPreviewExtenderImpl"
const DescriptorIPreviewImageProcessorImpl = "android.hardware.camera2.extension.IPreviewImageProcessorImpl"
const DescriptorIProcessResultImpl = "android.hardware.camera2.extension.IProcessResultImpl"
const DescriptorIRequestCallback = "android.hardware.camera2.extension.IRequestCallback"
const DescriptorIRequestProcessorImpl = "android.hardware.camera2.extension.IRequestProcessorImpl"
const DescriptorIRequestUpdateProcessorImpl = "android.hardware.camera2.extension.IRequestUpdateProcessorImpl"
const DescriptorISessionProcessorImpl = "android.hardware.camera2.extension.ISessionProcessorImpl"
const (
MethodIImageProcessorImplOnNextImageAvailable = "onNextImageAvailable"
)
const (
TransactionIImageProcessorImplOnNextImageAvailable = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedExtenderImplProxy ¶
func NewAdvancedExtenderImplProxy ¶
func NewAdvancedExtenderImplProxy( remote binder.IBinder, ) *AdvancedExtenderImplProxy
func (*AdvancedExtenderImplProxy) AsBinder ¶
func (p *AdvancedExtenderImplProxy) AsBinder() binder.IBinder
func (*AdvancedExtenderImplProxy) GetAvailableCaptureRequestKeys ¶
func (p *AdvancedExtenderImplProxy) GetAvailableCaptureRequestKeys( ctx context.Context, cameraId string, ) (impl.CameraMetadataNative, error)
func (*AdvancedExtenderImplProxy) GetAvailableCaptureResultKeys ¶
func (p *AdvancedExtenderImplProxy) GetAvailableCaptureResultKeys( ctx context.Context, cameraId string, ) (impl.CameraMetadataNative, error)
func (*AdvancedExtenderImplProxy) GetAvailableCharacteristicsKeyValues ¶
func (p *AdvancedExtenderImplProxy) GetAvailableCharacteristicsKeyValues( ctx context.Context, cameraId string, ) (impl.CameraMetadataNative, error)
func (*AdvancedExtenderImplProxy) GetEstimatedCaptureLatencyRange ¶
func (p *AdvancedExtenderImplProxy) GetEstimatedCaptureLatencyRange( ctx context.Context, cameraId string, outputSize Size, format int32, ) (LatencyRange, error)
func (*AdvancedExtenderImplProxy) GetSessionProcessor ¶
func (p *AdvancedExtenderImplProxy) GetSessionProcessor( ctx context.Context, ) (ISessionProcessorImpl, error)
func (*AdvancedExtenderImplProxy) GetSupportedCaptureOutputResolutions ¶
func (*AdvancedExtenderImplProxy) GetSupportedPostviewResolutions ¶
func (*AdvancedExtenderImplProxy) GetSupportedPreviewOutputResolutions ¶
func (*AdvancedExtenderImplProxy) Init ¶
func (p *AdvancedExtenderImplProxy) Init( ctx context.Context, cameraId string, charsMap map[string]impl.CameraMetadataNative, ) error
func (*AdvancedExtenderImplProxy) IsCaptureProcessProgressAvailable ¶
func (p *AdvancedExtenderImplProxy) IsCaptureProcessProgressAvailable( ctx context.Context, ) (bool, error)
func (*AdvancedExtenderImplProxy) IsExtensionAvailable ¶
func (p *AdvancedExtenderImplProxy) IsExtensionAvailable( ctx context.Context, cameraId string, charsMap map[string]impl.CameraMetadataNative, ) (bool, error)
func (*AdvancedExtenderImplProxy) IsPostviewAvailable ¶
func (p *AdvancedExtenderImplProxy) IsPostviewAvailable( ctx context.Context, ) (bool, error)
type AdvancedExtenderImplStub ¶
type AdvancedExtenderImplStub struct {
Impl IAdvancedExtenderImpl
Transport binder.VersionAwareTransport
}
AdvancedExtenderImplStub dispatches incoming binder transactions to a typed IAdvancedExtenderImpl implementation.
func (*AdvancedExtenderImplStub) Descriptor ¶
func (s *AdvancedExtenderImplStub) Descriptor() string
func (*AdvancedExtenderImplStub) OnTransaction ¶
func (s *AdvancedExtenderImplStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type CameraExtensionsProxyServiceProxy ¶
func NewCameraExtensionsProxyServiceProxy ¶
func NewCameraExtensionsProxyServiceProxy( remote binder.IBinder, ) *CameraExtensionsProxyServiceProxy
func (*CameraExtensionsProxyServiceProxy) AdvancedExtensionsSupported ¶
func (p *CameraExtensionsProxyServiceProxy) AdvancedExtensionsSupported( ctx context.Context, ) (bool, error)
func (*CameraExtensionsProxyServiceProxy) AsBinder ¶
func (p *CameraExtensionsProxyServiceProxy) AsBinder() binder.IBinder
func (*CameraExtensionsProxyServiceProxy) InitializeAdvancedExtension ¶
func (p *CameraExtensionsProxyServiceProxy) InitializeAdvancedExtension( ctx context.Context, extensionType int32, ) (IAdvancedExtenderImpl, error)
func (*CameraExtensionsProxyServiceProxy) InitializeImageExtension ¶
func (p *CameraExtensionsProxyServiceProxy) InitializeImageExtension( ctx context.Context, extensionType int32, ) (IImageCaptureExtenderImpl, error)
func (*CameraExtensionsProxyServiceProxy) InitializePreviewExtension ¶
func (p *CameraExtensionsProxyServiceProxy) InitializePreviewExtension( ctx context.Context, extensionType int32, ) (IPreviewExtenderImpl, error)
func (*CameraExtensionsProxyServiceProxy) InitializeSession ¶
func (p *CameraExtensionsProxyServiceProxy) InitializeSession( ctx context.Context, cb IInitializeSessionCallback, ) error
func (*CameraExtensionsProxyServiceProxy) RegisterClient ¶
func (*CameraExtensionsProxyServiceProxy) ReleaseSession ¶
func (p *CameraExtensionsProxyServiceProxy) ReleaseSession( ctx context.Context, ) error
func (*CameraExtensionsProxyServiceProxy) UnregisterClient ¶
type CameraExtensionsProxyServiceStub ¶
type CameraExtensionsProxyServiceStub struct {
Impl ICameraExtensionsProxyService
Transport binder.VersionAwareTransport
}
CameraExtensionsProxyServiceStub dispatches incoming binder transactions to a typed ICameraExtensionsProxyService implementation.
func (*CameraExtensionsProxyServiceStub) Descriptor ¶
func (s *CameraExtensionsProxyServiceStub) Descriptor() string
func (*CameraExtensionsProxyServiceStub) OnTransaction ¶
func (s *CameraExtensionsProxyServiceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type CameraOutputConfig ¶
type CameraOutputConfig struct {
Size Size
Surface view.Surface
ImageFormat int32
Capacity int32
Usage int64
Type int32
OutputId OutputConfigId
SurfaceGroupId int32
PhysicalCameraId string
IsMultiResolutionOutput bool
}
func (*CameraOutputConfig) MarshalParcel ¶
func (s *CameraOutputConfig) MarshalParcel( p *parcel.Parcel, ) error
func (*CameraOutputConfig) UnmarshalParcel ¶
func (s *CameraOutputConfig) UnmarshalParcel( p *parcel.Parcel, ) error
type CameraSessionConfig ¶
type CameraSessionConfig struct {
OutputConfigs []CameraOutputConfig
SessionParameter impl.CameraMetadataNative
SessionTemplateId int32
SessionType int32
}
func (*CameraSessionConfig) MarshalParcel ¶
func (s *CameraSessionConfig) MarshalParcel( p *parcel.Parcel, ) error
func (*CameraSessionConfig) UnmarshalParcel ¶
func (s *CameraSessionConfig) UnmarshalParcel( p *parcel.Parcel, ) error
type CaptureBundle ¶
type CaptureBundle struct {
Stage int32
SequenceId int32
CaptureResult impl.CameraMetadataNative
CaptureImage ParcelImage
}
func (*CaptureBundle) MarshalParcel ¶
func (s *CaptureBundle) MarshalParcel( p *parcel.Parcel, ) error
func (*CaptureBundle) UnmarshalParcel ¶
func (s *CaptureBundle) UnmarshalParcel( p *parcel.Parcel, ) error
type CaptureCallbackProxy ¶
func NewCaptureCallbackProxy ¶
func NewCaptureCallbackProxy( remote binder.IBinder, ) *CaptureCallbackProxy
func (*CaptureCallbackProxy) AsBinder ¶
func (p *CaptureCallbackProxy) AsBinder() binder.IBinder
func (*CaptureCallbackProxy) OnCaptureCompleted ¶
func (p *CaptureCallbackProxy) OnCaptureCompleted( ctx context.Context, shutterTimestamp int64, requestId int32, results impl.CameraMetadataNative, ) error
func (*CaptureCallbackProxy) OnCaptureFailed ¶
func (p *CaptureCallbackProxy) OnCaptureFailed( ctx context.Context, captureSequenceId int32, ) error
func (*CaptureCallbackProxy) OnCaptureProcessFailed ¶
func (*CaptureCallbackProxy) OnCaptureProcessProgressed ¶
func (p *CaptureCallbackProxy) OnCaptureProcessProgressed( ctx context.Context, progress int32, ) error
func (*CaptureCallbackProxy) OnCaptureProcessStarted ¶
func (p *CaptureCallbackProxy) OnCaptureProcessStarted( ctx context.Context, captureSequenceId int32, ) error
func (*CaptureCallbackProxy) OnCaptureSequenceAborted ¶
func (p *CaptureCallbackProxy) OnCaptureSequenceAborted( ctx context.Context, captureSequenceId int32, ) error
func (*CaptureCallbackProxy) OnCaptureSequenceCompleted ¶
func (p *CaptureCallbackProxy) OnCaptureSequenceCompleted( ctx context.Context, captureSequenceId int32, ) error
func (*CaptureCallbackProxy) OnCaptureStarted ¶
type CaptureCallbackStub ¶
type CaptureCallbackStub struct {
Impl ICaptureCallback
Transport binder.VersionAwareTransport
}
CaptureCallbackStub dispatches incoming binder transactions to a typed ICaptureCallback implementation.
func (*CaptureCallbackStub) Descriptor ¶
func (s *CaptureCallbackStub) Descriptor() string
func (*CaptureCallbackStub) OnTransaction ¶
func (s *CaptureCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type CaptureFailure ¶
type CaptureFailure struct {
Request camera2.CaptureRequest
Reason int32
Dropped bool
SequenceId int32
FrameNumber int64
ErrorPhysicalCameraId string
}
func (*CaptureFailure) MarshalParcel ¶
func (s *CaptureFailure) MarshalParcel( p *parcel.Parcel, ) error
func (*CaptureFailure) UnmarshalParcel ¶
func (s *CaptureFailure) UnmarshalParcel( p *parcel.Parcel, ) error
type CaptureProcessorImplProxy ¶
func NewCaptureProcessorImplProxy ¶
func NewCaptureProcessorImplProxy( remote binder.IBinder, ) *CaptureProcessorImplProxy
func (*CaptureProcessorImplProxy) AsBinder ¶
func (p *CaptureProcessorImplProxy) AsBinder() binder.IBinder
func (*CaptureProcessorImplProxy) OnImageFormatUpdate ¶
func (p *CaptureProcessorImplProxy) OnImageFormatUpdate( ctx context.Context, imageFormat int32, ) error
func (*CaptureProcessorImplProxy) OnOutputSurface ¶
func (*CaptureProcessorImplProxy) OnPostviewOutputSurface ¶
func (*CaptureProcessorImplProxy) OnResolutionUpdate ¶
func (*CaptureProcessorImplProxy) Process ¶
func (p *CaptureProcessorImplProxy) Process( ctx context.Context, capturelist []CaptureBundle, resultCallback IProcessResultImpl, isPostviewRequested bool, ) error
type CaptureProcessorImplStub ¶
type CaptureProcessorImplStub struct {
Impl ICaptureProcessorImpl
Transport binder.VersionAwareTransport
}
CaptureProcessorImplStub dispatches incoming binder transactions to a typed ICaptureProcessorImpl implementation.
func (*CaptureProcessorImplStub) Descriptor ¶
func (s *CaptureProcessorImplStub) Descriptor() string
func (*CaptureProcessorImplStub) OnTransaction ¶
func (s *CaptureProcessorImplStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type CaptureStageImpl ¶
type CaptureStageImpl struct {
Id int32
Parameters impl.CameraMetadataNative
}
func (*CaptureStageImpl) MarshalParcel ¶
func (s *CaptureStageImpl) MarshalParcel( p *parcel.Parcel, ) error
func (*CaptureStageImpl) UnmarshalParcel ¶
func (s *CaptureStageImpl) UnmarshalParcel( p *parcel.Parcel, ) error
type IAdvancedExtenderImpl ¶
type IAdvancedExtenderImpl interface {
AsBinder() binder.IBinder
IsExtensionAvailable(ctx context.Context, cameraId string, charsMap map[string]impl.CameraMetadataNative) (bool, error)
Init(ctx context.Context, cameraId string, charsMap map[string]impl.CameraMetadataNative) error
GetEstimatedCaptureLatencyRange(ctx context.Context, cameraId string, outputSize Size, format int32) (LatencyRange, error)
GetSupportedPreviewOutputResolutions(ctx context.Context, cameraId string) ([]SizeList, error)
GetSupportedCaptureOutputResolutions(ctx context.Context, cameraId string) ([]SizeList, error)
GetSupportedPostviewResolutions(ctx context.Context, captureSize Size) ([]SizeList, error)
GetSessionProcessor(ctx context.Context) (ISessionProcessorImpl, error)
GetAvailableCaptureRequestKeys(ctx context.Context, cameraId string) (impl.CameraMetadataNative, error)
GetAvailableCaptureResultKeys(ctx context.Context, cameraId string) (impl.CameraMetadataNative, error)
IsCaptureProcessProgressAvailable(ctx context.Context) (bool, error)
IsPostviewAvailable(ctx context.Context) (bool, error)
GetAvailableCharacteristicsKeyValues(ctx context.Context, cameraId string) (impl.CameraMetadataNative, error)
}
func NewAdvancedExtenderImplStub ¶
func NewAdvancedExtenderImplStub( impl IAdvancedExtenderImplServer, ) IAdvancedExtenderImpl
NewAdvancedExtenderImplStub creates a server-side IAdvancedExtenderImpl wrapping the given server implementation. The returned value satisfies IAdvancedExtenderImpl and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IAdvancedExtenderImplServer ¶
type IAdvancedExtenderImplServer interface {
IsExtensionAvailable(ctx context.Context, cameraId string, charsMap map[string]impl.CameraMetadataNative) (bool, error)
Init(ctx context.Context, cameraId string, charsMap map[string]impl.CameraMetadataNative) error
GetEstimatedCaptureLatencyRange(ctx context.Context, cameraId string, outputSize Size, format int32) (LatencyRange, error)
GetSupportedPreviewOutputResolutions(ctx context.Context, cameraId string) ([]SizeList, error)
GetSupportedCaptureOutputResolutions(ctx context.Context, cameraId string) ([]SizeList, error)
GetSupportedPostviewResolutions(ctx context.Context, captureSize Size) ([]SizeList, error)
GetSessionProcessor(ctx context.Context) (ISessionProcessorImpl, error)
GetAvailableCaptureRequestKeys(ctx context.Context, cameraId string) (impl.CameraMetadataNative, error)
GetAvailableCaptureResultKeys(ctx context.Context, cameraId string) (impl.CameraMetadataNative, error)
IsCaptureProcessProgressAvailable(ctx context.Context) (bool, error)
IsPostviewAvailable(ctx context.Context) (bool, error)
GetAvailableCharacteristicsKeyValues(ctx context.Context, cameraId string) (impl.CameraMetadataNative, error)
}
IAdvancedExtenderImplServer is the server-side interface that user implementations provide to NewAdvancedExtenderImplStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type ICameraExtensionsProxyService ¶
type ICameraExtensionsProxyService interface {
AsBinder() binder.IBinder
RegisterClient(ctx context.Context, token binder.IBinder) (bool, error)
UnregisterClient(ctx context.Context, token binder.IBinder) error
AdvancedExtensionsSupported(ctx context.Context) (bool, error)
InitializeSession(ctx context.Context, cb IInitializeSessionCallback) error
ReleaseSession(ctx context.Context) error
InitializePreviewExtension(ctx context.Context, extensionType int32) (IPreviewExtenderImpl, error)
InitializeImageExtension(ctx context.Context, extensionType int32) (IImageCaptureExtenderImpl, error)
InitializeAdvancedExtension(ctx context.Context, extensionType int32) (IAdvancedExtenderImpl, error)
}
func NewCameraExtensionsProxyServiceStub ¶
func NewCameraExtensionsProxyServiceStub( impl ICameraExtensionsProxyServiceServer, ) ICameraExtensionsProxyService
NewCameraExtensionsProxyServiceStub creates a server-side ICameraExtensionsProxyService wrapping the given server implementation. The returned value satisfies ICameraExtensionsProxyService and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type ICameraExtensionsProxyServiceServer ¶
type ICameraExtensionsProxyServiceServer interface {
RegisterClient(ctx context.Context, token binder.IBinder) (bool, error)
UnregisterClient(ctx context.Context, token binder.IBinder) error
AdvancedExtensionsSupported(ctx context.Context) (bool, error)
InitializeSession(ctx context.Context, cb IInitializeSessionCallback) error
ReleaseSession(ctx context.Context) error
InitializePreviewExtension(ctx context.Context, extensionType int32) (IPreviewExtenderImpl, error)
InitializeImageExtension(ctx context.Context, extensionType int32) (IImageCaptureExtenderImpl, error)
InitializeAdvancedExtension(ctx context.Context, extensionType int32) (IAdvancedExtenderImpl, error)
}
ICameraExtensionsProxyServiceServer is the server-side interface that user implementations provide to NewCameraExtensionsProxyServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type ICaptureCallback ¶
type ICaptureCallback interface {
AsBinder() binder.IBinder
OnCaptureStarted(ctx context.Context, captureSequenceId int32, timestamp int64) error
OnCaptureProcessStarted(ctx context.Context, captureSequenceId int32) error
OnCaptureFailed(ctx context.Context, captureSequenceId int32) error
OnCaptureSequenceCompleted(ctx context.Context, captureSequenceId int32) error
OnCaptureSequenceAborted(ctx context.Context, captureSequenceId int32) error
OnCaptureCompleted(ctx context.Context, shutterTimestamp int64, requestId int32, results impl.CameraMetadataNative) error
OnCaptureProcessProgressed(ctx context.Context, progress int32) error
OnCaptureProcessFailed(ctx context.Context, captureSequenceId int32, captureFailureReason int32) error
}
func NewCaptureCallbackStub ¶
func NewCaptureCallbackStub( impl ICaptureCallbackServer, ) ICaptureCallback
NewCaptureCallbackStub creates a server-side ICaptureCallback wrapping the given server implementation. The returned value satisfies ICaptureCallback and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type ICaptureCallbackServer ¶
type ICaptureCallbackServer interface {
OnCaptureStarted(ctx context.Context, captureSequenceId int32, timestamp int64) error
OnCaptureProcessStarted(ctx context.Context, captureSequenceId int32) error
OnCaptureFailed(ctx context.Context, captureSequenceId int32) error
OnCaptureSequenceCompleted(ctx context.Context, captureSequenceId int32) error
OnCaptureSequenceAborted(ctx context.Context, captureSequenceId int32) error
OnCaptureCompleted(ctx context.Context, shutterTimestamp int64, requestId int32, results impl.CameraMetadataNative) error
OnCaptureProcessProgressed(ctx context.Context, progress int32) error
OnCaptureProcessFailed(ctx context.Context, captureSequenceId int32, captureFailureReason int32) error
}
ICaptureCallbackServer is the server-side interface that user implementations provide to NewCaptureCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type ICaptureProcessorImpl ¶
type ICaptureProcessorImpl interface {
AsBinder() binder.IBinder
OnOutputSurface(ctx context.Context, surface view.Surface, imageFormat int32) error
OnPostviewOutputSurface(ctx context.Context, surface view.Surface) error
OnResolutionUpdate(ctx context.Context, size Size, postviewSize Size) error
OnImageFormatUpdate(ctx context.Context, imageFormat int32) error
Process(ctx context.Context, capturelist []CaptureBundle, resultCallback IProcessResultImpl, isPostviewRequested bool) error
}
func NewCaptureProcessorImplStub ¶
func NewCaptureProcessorImplStub( impl ICaptureProcessorImplServer, ) ICaptureProcessorImpl
NewCaptureProcessorImplStub creates a server-side ICaptureProcessorImpl wrapping the given server implementation. The returned value satisfies ICaptureProcessorImpl and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type ICaptureProcessorImplServer ¶
type ICaptureProcessorImplServer interface {
OnOutputSurface(ctx context.Context, surface view.Surface, imageFormat int32) error
OnPostviewOutputSurface(ctx context.Context, surface view.Surface) error
OnResolutionUpdate(ctx context.Context, size Size, postviewSize Size) error
OnImageFormatUpdate(ctx context.Context, imageFormat int32) error
Process(ctx context.Context, capturelist []CaptureBundle, resultCallback IProcessResultImpl, isPostviewRequested bool) error
}
ICaptureProcessorImplServer is the server-side interface that user implementations provide to NewCaptureProcessorImplStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IImageCaptureExtenderImpl ¶
type IImageCaptureExtenderImpl interface {
AsBinder() binder.IBinder
OnInit(ctx context.Context, token binder.IBinder, cameraId string, cameraCharacteristics impl.CameraMetadataNative) error
OnDeInit(ctx context.Context, token binder.IBinder) error
OnPresetSession(ctx context.Context) (CaptureStageImpl, error)
OnEnableSession(ctx context.Context) (CaptureStageImpl, error)
OnDisableSession(ctx context.Context) (CaptureStageImpl, error)
GetSessionType(ctx context.Context) (int32, error)
IsExtensionAvailable(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) (bool, error)
Init(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) error
GetCaptureProcessor(ctx context.Context) (ICaptureProcessorImpl, error)
GetCaptureStages(ctx context.Context) ([]CaptureStageImpl, error)
GetMaxCaptureStage(ctx context.Context) (int32, error)
GetSupportedResolutions(ctx context.Context) ([]SizeList, error)
GetSupportedPostviewResolutions(ctx context.Context, captureSize Size) ([]SizeList, error)
GetEstimatedCaptureLatencyRange(ctx context.Context, outputSize Size) (LatencyRange, error)
GetAvailableCaptureRequestKeys(ctx context.Context) (impl.CameraMetadataNative, error)
GetAvailableCaptureResultKeys(ctx context.Context) (impl.CameraMetadataNative, error)
IsCaptureProcessProgressAvailable(ctx context.Context) (bool, error)
GetRealtimeCaptureLatency(ctx context.Context) (LatencyPair, error)
IsPostviewAvailable(ctx context.Context) (bool, error)
}
func NewImageCaptureExtenderImplStub ¶
func NewImageCaptureExtenderImplStub( impl IImageCaptureExtenderImplServer, ) IImageCaptureExtenderImpl
NewImageCaptureExtenderImplStub creates a server-side IImageCaptureExtenderImpl wrapping the given server implementation. The returned value satisfies IImageCaptureExtenderImpl and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IImageCaptureExtenderImplServer ¶
type IImageCaptureExtenderImplServer interface {
OnInit(ctx context.Context, token binder.IBinder, cameraId string, cameraCharacteristics impl.CameraMetadataNative) error
OnDeInit(ctx context.Context, token binder.IBinder) error
OnPresetSession(ctx context.Context) (CaptureStageImpl, error)
OnEnableSession(ctx context.Context) (CaptureStageImpl, error)
OnDisableSession(ctx context.Context) (CaptureStageImpl, error)
GetSessionType(ctx context.Context) (int32, error)
IsExtensionAvailable(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) (bool, error)
Init(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) error
GetCaptureProcessor(ctx context.Context) (ICaptureProcessorImpl, error)
GetCaptureStages(ctx context.Context) ([]CaptureStageImpl, error)
GetMaxCaptureStage(ctx context.Context) (int32, error)
GetSupportedResolutions(ctx context.Context) ([]SizeList, error)
GetSupportedPostviewResolutions(ctx context.Context, captureSize Size) ([]SizeList, error)
GetEstimatedCaptureLatencyRange(ctx context.Context, outputSize Size) (LatencyRange, error)
GetAvailableCaptureRequestKeys(ctx context.Context) (impl.CameraMetadataNative, error)
GetAvailableCaptureResultKeys(ctx context.Context) (impl.CameraMetadataNative, error)
IsCaptureProcessProgressAvailable(ctx context.Context) (bool, error)
GetRealtimeCaptureLatency(ctx context.Context) (LatencyPair, error)
IsPostviewAvailable(ctx context.Context) (bool, error)
}
IImageCaptureExtenderImplServer is the server-side interface that user implementations provide to NewImageCaptureExtenderImplStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IImageProcessorImpl ¶
type IImageProcessorImpl interface {
AsBinder() binder.IBinder
OnNextImageAvailable(ctx context.Context, outputConfigId OutputConfigId, image ParcelImage, physicalCameraId string) error
}
func NewImageProcessorImplStub ¶
func NewImageProcessorImplStub( impl IImageProcessorImplServer, ) IImageProcessorImpl
NewImageProcessorImplStub creates a server-side IImageProcessorImpl wrapping the given server implementation. The returned value satisfies IImageProcessorImpl and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IImageProcessorImplServer ¶
type IImageProcessorImplServer interface {
OnNextImageAvailable(ctx context.Context, outputConfigId OutputConfigId, image ParcelImage, physicalCameraId string) error
}
IImageProcessorImplServer is the server-side interface that user implementations provide to NewImageProcessorImplStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IInitializeSessionCallback ¶
type IInitializeSessionCallback interface {
AsBinder() binder.IBinder
OnSuccess(ctx context.Context) error
OnFailure(ctx context.Context) error
}
func NewInitializeSessionCallbackStub ¶
func NewInitializeSessionCallbackStub( impl IInitializeSessionCallbackServer, ) IInitializeSessionCallback
NewInitializeSessionCallbackStub creates a server-side IInitializeSessionCallback wrapping the given server implementation. The returned value satisfies IInitializeSessionCallback and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IInitializeSessionCallbackServer ¶
type IInitializeSessionCallbackServer interface {
OnSuccess(ctx context.Context) error
OnFailure(ctx context.Context) error
}
IInitializeSessionCallbackServer is the server-side interface that user implementations provide to NewInitializeSessionCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IOutputSurfaceConfiguration ¶
type IOutputSurfaceConfiguration interface {
AsBinder() binder.IBinder
GetPreviewOutputSurface(ctx context.Context) (OutputSurface, error)
GetImageCaptureOutputSurface(ctx context.Context) (OutputSurface, error)
GetImageAnalysisOutputSurface(ctx context.Context) (OutputSurface, error)
GetPostviewOutputSurface(ctx context.Context) (OutputSurface, error)
}
func NewOutputSurfaceConfigurationStub ¶
func NewOutputSurfaceConfigurationStub( impl IOutputSurfaceConfigurationServer, ) IOutputSurfaceConfiguration
NewOutputSurfaceConfigurationStub creates a server-side IOutputSurfaceConfiguration wrapping the given server implementation. The returned value satisfies IOutputSurfaceConfiguration and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IOutputSurfaceConfigurationServer ¶
type IOutputSurfaceConfigurationServer interface {
GetPreviewOutputSurface(ctx context.Context) (OutputSurface, error)
GetImageCaptureOutputSurface(ctx context.Context) (OutputSurface, error)
GetImageAnalysisOutputSurface(ctx context.Context) (OutputSurface, error)
GetPostviewOutputSurface(ctx context.Context) (OutputSurface, error)
}
IOutputSurfaceConfigurationServer is the server-side interface that user implementations provide to NewOutputSurfaceConfigurationStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPreviewExtenderImpl ¶
type IPreviewExtenderImpl interface {
AsBinder() binder.IBinder
OnInit(ctx context.Context, token binder.IBinder, cameraId string, cameraCharacteristics impl.CameraMetadataNative) error
OnDeInit(ctx context.Context, token binder.IBinder) error
OnPresetSession(ctx context.Context) (CaptureStageImpl, error)
OnEnableSession(ctx context.Context) (CaptureStageImpl, error)
OnDisableSession(ctx context.Context) (CaptureStageImpl, error)
Init(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) error
IsExtensionAvailable(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) (bool, error)
GetCaptureStage(ctx context.Context) (CaptureStageImpl, error)
GetSessionType(ctx context.Context) (int32, error)
GetProcessorType(ctx context.Context) (int32, error)
GetPreviewImageProcessor(ctx context.Context) (IPreviewImageProcessorImpl, error)
GetRequestUpdateProcessor(ctx context.Context) (IRequestUpdateProcessorImpl, error)
GetSupportedResolutions(ctx context.Context) ([]SizeList, error)
}
func NewPreviewExtenderImplStub ¶
func NewPreviewExtenderImplStub( impl IPreviewExtenderImplServer, ) IPreviewExtenderImpl
NewPreviewExtenderImplStub creates a server-side IPreviewExtenderImpl wrapping the given server implementation. The returned value satisfies IPreviewExtenderImpl and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPreviewExtenderImplServer ¶
type IPreviewExtenderImplServer interface {
OnInit(ctx context.Context, token binder.IBinder, cameraId string, cameraCharacteristics impl.CameraMetadataNative) error
OnDeInit(ctx context.Context, token binder.IBinder) error
OnPresetSession(ctx context.Context) (CaptureStageImpl, error)
OnEnableSession(ctx context.Context) (CaptureStageImpl, error)
OnDisableSession(ctx context.Context) (CaptureStageImpl, error)
Init(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) error
IsExtensionAvailable(ctx context.Context, cameraId string, chars impl.CameraMetadataNative) (bool, error)
GetCaptureStage(ctx context.Context) (CaptureStageImpl, error)
GetSessionType(ctx context.Context) (int32, error)
GetProcessorType(ctx context.Context) (int32, error)
GetPreviewImageProcessor(ctx context.Context) (IPreviewImageProcessorImpl, error)
GetRequestUpdateProcessor(ctx context.Context) (IRequestUpdateProcessorImpl, error)
GetSupportedResolutions(ctx context.Context) ([]SizeList, error)
}
IPreviewExtenderImplServer is the server-side interface that user implementations provide to NewPreviewExtenderImplStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IPreviewImageProcessorImpl ¶
type IPreviewImageProcessorImpl interface {
AsBinder() binder.IBinder
OnOutputSurface(ctx context.Context, surface view.Surface, imageFormat int32) error
OnResolutionUpdate(ctx context.Context, size Size) error
OnImageFormatUpdate(ctx context.Context, imageFormat int32) error
Process(ctx context.Context, image ParcelImage, result impl.CameraMetadataNative, sequenceId int32, resultCallback IProcessResultImpl) error
}
func NewPreviewImageProcessorImplStub ¶
func NewPreviewImageProcessorImplStub( impl IPreviewImageProcessorImplServer, ) IPreviewImageProcessorImpl
NewPreviewImageProcessorImplStub creates a server-side IPreviewImageProcessorImpl wrapping the given server implementation. The returned value satisfies IPreviewImageProcessorImpl and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IPreviewImageProcessorImplServer ¶
type IPreviewImageProcessorImplServer interface {
OnOutputSurface(ctx context.Context, surface view.Surface, imageFormat int32) error
OnResolutionUpdate(ctx context.Context, size Size) error
OnImageFormatUpdate(ctx context.Context, imageFormat int32) error
Process(ctx context.Context, image ParcelImage, result impl.CameraMetadataNative, sequenceId int32, resultCallback IProcessResultImpl) error
}
IPreviewImageProcessorImplServer is the server-side interface that user implementations provide to NewPreviewImageProcessorImplStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IProcessResultImpl ¶
type IProcessResultImpl interface {
AsBinder() binder.IBinder
OnCaptureCompleted(ctx context.Context, shutterTimestamp int64, results impl.CameraMetadataNative) error
OnCaptureProcessProgressed(ctx context.Context, progress int32) error
}
func NewProcessResultImplStub ¶
func NewProcessResultImplStub( impl IProcessResultImplServer, ) IProcessResultImpl
NewProcessResultImplStub creates a server-side IProcessResultImpl wrapping the given server implementation. The returned value satisfies IProcessResultImpl and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IProcessResultImplServer ¶
type IProcessResultImplServer interface {
OnCaptureCompleted(ctx context.Context, shutterTimestamp int64, results impl.CameraMetadataNative) error
OnCaptureProcessProgressed(ctx context.Context, progress int32) error
}
IProcessResultImplServer is the server-side interface that user implementations provide to NewProcessResultImplStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IRequestCallback ¶
type IRequestCallback interface {
AsBinder() binder.IBinder
OnCaptureStarted(ctx context.Context, requestId int32, frameNumber int64, timestamp int64) error
OnCaptureProgressed(ctx context.Context, requestId int32, partialResult ParcelCaptureResult) error
OnCaptureCompleted(ctx context.Context, requestId int32, totalCaptureResult ParcelTotalCaptureResult) error
OnCaptureFailed(ctx context.Context, requestId int32, captureFailure CaptureFailure) error
OnCaptureBufferLost(ctx context.Context, requestId int32, frameNumber int64, outputStreamId int32) error
OnCaptureSequenceCompleted(ctx context.Context, sequenceId int32, frameNumber int64) error
OnCaptureSequenceAborted(ctx context.Context, sequenceId int32) error
}
func NewRequestCallbackStub ¶
func NewRequestCallbackStub( impl IRequestCallbackServer, ) IRequestCallback
NewRequestCallbackStub creates a server-side IRequestCallback wrapping the given server implementation. The returned value satisfies IRequestCallback and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IRequestCallbackServer ¶
type IRequestCallbackServer interface {
OnCaptureStarted(ctx context.Context, requestId int32, frameNumber int64, timestamp int64) error
OnCaptureProgressed(ctx context.Context, requestId int32, partialResult ParcelCaptureResult) error
OnCaptureCompleted(ctx context.Context, requestId int32, totalCaptureResult ParcelTotalCaptureResult) error
OnCaptureFailed(ctx context.Context, requestId int32, captureFailure CaptureFailure) error
OnCaptureBufferLost(ctx context.Context, requestId int32, frameNumber int64, outputStreamId int32) error
OnCaptureSequenceCompleted(ctx context.Context, sequenceId int32, frameNumber int64) error
OnCaptureSequenceAborted(ctx context.Context, sequenceId int32) error
}
IRequestCallbackServer is the server-side interface that user implementations provide to NewRequestCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IRequestProcessorImpl ¶
type IRequestProcessorImpl interface {
AsBinder() binder.IBinder
SetImageProcessor(ctx context.Context, outputConfigId OutputConfigId, imageProcessor IImageProcessorImpl) error
Submit(ctx context.Context, request Request, callback IRequestCallback) (int32, error)
SubmitBurst(ctx context.Context, requests []Request, callback IRequestCallback) (int32, error)
SetRepeating(ctx context.Context, request Request, callback IRequestCallback) (int32, error)
AbortCaptures(ctx context.Context) error
StopRepeating(ctx context.Context) error
}
func NewRequestProcessorImplStub ¶
func NewRequestProcessorImplStub( impl IRequestProcessorImplServer, ) IRequestProcessorImpl
NewRequestProcessorImplStub creates a server-side IRequestProcessorImpl wrapping the given server implementation. The returned value satisfies IRequestProcessorImpl and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IRequestProcessorImplServer ¶
type IRequestProcessorImplServer interface {
SetImageProcessor(ctx context.Context, outputConfigId OutputConfigId, imageProcessor IImageProcessorImpl) error
Submit(ctx context.Context, request Request, callback IRequestCallback) (int32, error)
SubmitBurst(ctx context.Context, requests []Request, callback IRequestCallback) (int32, error)
SetRepeating(ctx context.Context, request Request, callback IRequestCallback) (int32, error)
AbortCaptures(ctx context.Context) error
StopRepeating(ctx context.Context) error
}
IRequestProcessorImplServer is the server-side interface that user implementations provide to NewRequestProcessorImplStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IRequestUpdateProcessorImpl ¶
type IRequestUpdateProcessorImpl interface {
AsBinder() binder.IBinder
OnOutputSurface(ctx context.Context, surface view.Surface, imageFormat int32) error
OnResolutionUpdate(ctx context.Context, size Size) error
OnImageFormatUpdate(ctx context.Context, imageFormat int32) error
Process(ctx context.Context, result impl.CameraMetadataNative, sequenceId int32) (CaptureStageImpl, error)
}
func NewRequestUpdateProcessorImplStub ¶
func NewRequestUpdateProcessorImplStub( impl IRequestUpdateProcessorImplServer, ) IRequestUpdateProcessorImpl
NewRequestUpdateProcessorImplStub creates a server-side IRequestUpdateProcessorImpl wrapping the given server implementation. The returned value satisfies IRequestUpdateProcessorImpl and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type IRequestUpdateProcessorImplServer ¶
type IRequestUpdateProcessorImplServer interface {
OnOutputSurface(ctx context.Context, surface view.Surface, imageFormat int32) error
OnResolutionUpdate(ctx context.Context, size Size) error
OnImageFormatUpdate(ctx context.Context, imageFormat int32) error
Process(ctx context.Context, result impl.CameraMetadataNative, sequenceId int32) (CaptureStageImpl, error)
}
IRequestUpdateProcessorImplServer is the server-side interface that user implementations provide to NewRequestUpdateProcessorImplStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type ISessionProcessorImpl ¶
type ISessionProcessorImpl interface {
AsBinder() binder.IBinder
InitSession(ctx context.Context, token binder.IBinder, cameraId string, charsMap map[string]impl.CameraMetadataNative, previewSurface OutputSurface, imageCaptureSurface OutputSurface, postviewSurface OutputSurface) (CameraSessionConfig, error)
DeInitSession(ctx context.Context, token binder.IBinder) error
OnCaptureSessionStart(ctx context.Context, requestProcessor IRequestProcessorImpl, statsKey string) error
OnCaptureSessionEnd(ctx context.Context) error
StartRepeating(ctx context.Context, callback ICaptureCallback) (int32, error)
StopRepeating(ctx context.Context) error
StartCapture(ctx context.Context, callback ICaptureCallback, isPostviewRequested bool) (int32, error)
SetParameters(ctx context.Context, captureRequest camera2.CaptureRequest) error
StartTrigger(ctx context.Context, captureRequest camera2.CaptureRequest, callback ICaptureCallback) (int32, error)
GetRealtimeCaptureLatency(ctx context.Context) (LatencyPair, error)
}
func NewSessionProcessorImplStub ¶
func NewSessionProcessorImplStub( impl ISessionProcessorImplServer, ) ISessionProcessorImpl
NewSessionProcessorImplStub creates a server-side ISessionProcessorImpl wrapping the given server implementation. The returned value satisfies ISessionProcessorImpl and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.
type ISessionProcessorImplServer ¶
type ISessionProcessorImplServer interface {
InitSession(ctx context.Context, token binder.IBinder, cameraId string, charsMap map[string]impl.CameraMetadataNative, previewSurface OutputSurface, imageCaptureSurface OutputSurface, postviewSurface OutputSurface) (CameraSessionConfig, error)
DeInitSession(ctx context.Context, token binder.IBinder) error
OnCaptureSessionStart(ctx context.Context, requestProcessor IRequestProcessorImpl, statsKey string) error
OnCaptureSessionEnd(ctx context.Context) error
StartRepeating(ctx context.Context, callback ICaptureCallback) (int32, error)
StopRepeating(ctx context.Context) error
StartCapture(ctx context.Context, callback ICaptureCallback, isPostviewRequested bool) (int32, error)
SetParameters(ctx context.Context, captureRequest camera2.CaptureRequest) error
StartTrigger(ctx context.Context, captureRequest camera2.CaptureRequest, callback ICaptureCallback) (int32, error)
GetRealtimeCaptureLatency(ctx context.Context) (LatencyPair, error)
}
ISessionProcessorImplServer is the server-side interface that user implementations provide to NewSessionProcessorImplStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type ImageCaptureExtenderImplProxy ¶
func NewImageCaptureExtenderImplProxy ¶
func NewImageCaptureExtenderImplProxy( remote binder.IBinder, ) *ImageCaptureExtenderImplProxy
func (*ImageCaptureExtenderImplProxy) AsBinder ¶
func (p *ImageCaptureExtenderImplProxy) AsBinder() binder.IBinder
func (*ImageCaptureExtenderImplProxy) GetAvailableCaptureRequestKeys ¶
func (p *ImageCaptureExtenderImplProxy) GetAvailableCaptureRequestKeys( ctx context.Context, ) (impl.CameraMetadataNative, error)
func (*ImageCaptureExtenderImplProxy) GetAvailableCaptureResultKeys ¶
func (p *ImageCaptureExtenderImplProxy) GetAvailableCaptureResultKeys( ctx context.Context, ) (impl.CameraMetadataNative, error)
func (*ImageCaptureExtenderImplProxy) GetCaptureProcessor ¶
func (p *ImageCaptureExtenderImplProxy) GetCaptureProcessor( ctx context.Context, ) (ICaptureProcessorImpl, error)
func (*ImageCaptureExtenderImplProxy) GetCaptureStages ¶
func (p *ImageCaptureExtenderImplProxy) GetCaptureStages( ctx context.Context, ) ([]CaptureStageImpl, error)
func (*ImageCaptureExtenderImplProxy) GetEstimatedCaptureLatencyRange ¶
func (p *ImageCaptureExtenderImplProxy) GetEstimatedCaptureLatencyRange( ctx context.Context, outputSize Size, ) (LatencyRange, error)
func (*ImageCaptureExtenderImplProxy) GetMaxCaptureStage ¶
func (p *ImageCaptureExtenderImplProxy) GetMaxCaptureStage( ctx context.Context, ) (int32, error)
func (*ImageCaptureExtenderImplProxy) GetRealtimeCaptureLatency ¶
func (p *ImageCaptureExtenderImplProxy) GetRealtimeCaptureLatency( ctx context.Context, ) (LatencyPair, error)
func (*ImageCaptureExtenderImplProxy) GetSessionType ¶
func (p *ImageCaptureExtenderImplProxy) GetSessionType( ctx context.Context, ) (int32, error)
func (*ImageCaptureExtenderImplProxy) GetSupportedPostviewResolutions ¶
func (*ImageCaptureExtenderImplProxy) GetSupportedResolutions ¶
func (p *ImageCaptureExtenderImplProxy) GetSupportedResolutions( ctx context.Context, ) ([]SizeList, error)
func (*ImageCaptureExtenderImplProxy) Init ¶
func (p *ImageCaptureExtenderImplProxy) Init( ctx context.Context, cameraId string, chars impl.CameraMetadataNative, ) error
func (*ImageCaptureExtenderImplProxy) IsCaptureProcessProgressAvailable ¶
func (p *ImageCaptureExtenderImplProxy) IsCaptureProcessProgressAvailable( ctx context.Context, ) (bool, error)
func (*ImageCaptureExtenderImplProxy) IsExtensionAvailable ¶
func (p *ImageCaptureExtenderImplProxy) IsExtensionAvailable( ctx context.Context, cameraId string, chars impl.CameraMetadataNative, ) (bool, error)
func (*ImageCaptureExtenderImplProxy) IsPostviewAvailable ¶
func (p *ImageCaptureExtenderImplProxy) IsPostviewAvailable( ctx context.Context, ) (bool, error)
func (*ImageCaptureExtenderImplProxy) OnDisableSession ¶
func (p *ImageCaptureExtenderImplProxy) OnDisableSession( ctx context.Context, ) (CaptureStageImpl, error)
func (*ImageCaptureExtenderImplProxy) OnEnableSession ¶
func (p *ImageCaptureExtenderImplProxy) OnEnableSession( ctx context.Context, ) (CaptureStageImpl, error)
func (*ImageCaptureExtenderImplProxy) OnInit ¶
func (p *ImageCaptureExtenderImplProxy) OnInit( ctx context.Context, token binder.IBinder, cameraId string, cameraCharacteristics impl.CameraMetadataNative, ) error
func (*ImageCaptureExtenderImplProxy) OnPresetSession ¶
func (p *ImageCaptureExtenderImplProxy) OnPresetSession( ctx context.Context, ) (CaptureStageImpl, error)
type ImageCaptureExtenderImplStub ¶
type ImageCaptureExtenderImplStub struct {
Impl IImageCaptureExtenderImpl
Transport binder.VersionAwareTransport
}
ImageCaptureExtenderImplStub dispatches incoming binder transactions to a typed IImageCaptureExtenderImpl implementation.
func (*ImageCaptureExtenderImplStub) Descriptor ¶
func (s *ImageCaptureExtenderImplStub) Descriptor() string
func (*ImageCaptureExtenderImplStub) OnTransaction ¶
func (s *ImageCaptureExtenderImplStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type ImageProcessorImplProxy ¶
func NewImageProcessorImplProxy ¶
func NewImageProcessorImplProxy( remote binder.IBinder, ) *ImageProcessorImplProxy
func (*ImageProcessorImplProxy) AsBinder ¶
func (p *ImageProcessorImplProxy) AsBinder() binder.IBinder
func (*ImageProcessorImplProxy) OnNextImageAvailable ¶
func (p *ImageProcessorImplProxy) OnNextImageAvailable( ctx context.Context, outputConfigId OutputConfigId, image ParcelImage, physicalCameraId string, ) error
type ImageProcessorImplStub ¶
type ImageProcessorImplStub struct {
Impl IImageProcessorImpl
Transport binder.VersionAwareTransport
}
ImageProcessorImplStub dispatches incoming binder transactions to a typed IImageProcessorImpl implementation.
func (*ImageProcessorImplStub) Descriptor ¶
func (s *ImageProcessorImplStub) Descriptor() string
func (*ImageProcessorImplStub) OnTransaction ¶
func (s *ImageProcessorImplStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type InitializeSessionCallbackProxy ¶
func NewInitializeSessionCallbackProxy ¶
func NewInitializeSessionCallbackProxy( remote binder.IBinder, ) *InitializeSessionCallbackProxy
func (*InitializeSessionCallbackProxy) AsBinder ¶
func (p *InitializeSessionCallbackProxy) AsBinder() binder.IBinder
type InitializeSessionCallbackStub ¶
type InitializeSessionCallbackStub struct {
Impl IInitializeSessionCallback
Transport binder.VersionAwareTransport
}
InitializeSessionCallbackStub dispatches incoming binder transactions to a typed IInitializeSessionCallback implementation.
func (*InitializeSessionCallbackStub) Descriptor ¶
func (s *InitializeSessionCallbackStub) Descriptor() string
func (*InitializeSessionCallbackStub) OnTransaction ¶
func (s *InitializeSessionCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type LatencyPair ¶
func (*LatencyPair) MarshalParcel ¶
func (s *LatencyPair) MarshalParcel( p *parcel.Parcel, ) error
func (*LatencyPair) UnmarshalParcel ¶
func (s *LatencyPair) UnmarshalParcel( p *parcel.Parcel, ) error
type LatencyRange ¶
func (*LatencyRange) MarshalParcel ¶
func (s *LatencyRange) MarshalParcel( p *parcel.Parcel, ) error
func (*LatencyRange) UnmarshalParcel ¶
func (s *LatencyRange) UnmarshalParcel( p *parcel.Parcel, ) error
type OutputConfigId ¶
type OutputConfigId struct {
Id int32
}
func (*OutputConfigId) MarshalParcel ¶
func (s *OutputConfigId) MarshalParcel( p *parcel.Parcel, ) error
func (*OutputConfigId) UnmarshalParcel ¶
func (s *OutputConfigId) UnmarshalParcel( p *parcel.Parcel, ) error
type OutputSurface ¶
type OutputSurface struct {
Surface view.Surface
Size Size
ImageFormat int32
DynamicRangeProfile int64
ColorSpace int32
}
func (*OutputSurface) MarshalParcel ¶
func (s *OutputSurface) MarshalParcel( p *parcel.Parcel, ) error
func (*OutputSurface) UnmarshalParcel ¶
func (s *OutputSurface) UnmarshalParcel( p *parcel.Parcel, ) error
type OutputSurfaceConfigurationProxy ¶
func NewOutputSurfaceConfigurationProxy ¶
func NewOutputSurfaceConfigurationProxy( remote binder.IBinder, ) *OutputSurfaceConfigurationProxy
func (*OutputSurfaceConfigurationProxy) AsBinder ¶
func (p *OutputSurfaceConfigurationProxy) AsBinder() binder.IBinder
func (*OutputSurfaceConfigurationProxy) GetImageAnalysisOutputSurface ¶
func (p *OutputSurfaceConfigurationProxy) GetImageAnalysisOutputSurface( ctx context.Context, ) (OutputSurface, error)
func (*OutputSurfaceConfigurationProxy) GetImageCaptureOutputSurface ¶
func (p *OutputSurfaceConfigurationProxy) GetImageCaptureOutputSurface( ctx context.Context, ) (OutputSurface, error)
func (*OutputSurfaceConfigurationProxy) GetPostviewOutputSurface ¶
func (p *OutputSurfaceConfigurationProxy) GetPostviewOutputSurface( ctx context.Context, ) (OutputSurface, error)
func (*OutputSurfaceConfigurationProxy) GetPreviewOutputSurface ¶
func (p *OutputSurfaceConfigurationProxy) GetPreviewOutputSurface( ctx context.Context, ) (OutputSurface, error)
type OutputSurfaceConfigurationStub ¶
type OutputSurfaceConfigurationStub struct {
Impl IOutputSurfaceConfiguration
Transport binder.VersionAwareTransport
}
OutputSurfaceConfigurationStub dispatches incoming binder transactions to a typed IOutputSurfaceConfiguration implementation.
func (*OutputSurfaceConfigurationStub) Descriptor ¶
func (s *OutputSurfaceConfigurationStub) Descriptor() string
func (*OutputSurfaceConfigurationStub) OnTransaction ¶
func (s *OutputSurfaceConfigurationStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type ParcelCaptureResult ¶
type ParcelCaptureResult struct {
CameraId string
Results impl.CameraMetadataNative
Parent camera2.CaptureRequest
SequenceId int32
FrameNumber int64
}
func (*ParcelCaptureResult) MarshalParcel ¶
func (s *ParcelCaptureResult) MarshalParcel( p *parcel.Parcel, ) error
func (*ParcelCaptureResult) UnmarshalParcel ¶
func (s *ParcelCaptureResult) UnmarshalParcel( p *parcel.Parcel, ) error
type ParcelImage ¶
type ParcelImage struct {
Format int32
Width int32
Height int32
Transform int32
ScalingMode int32
Timestamp int64
PlaneCount int32
Crop common.Rect
Buffer common.HardwareBuffer
Fence int32
}
func (*ParcelImage) MarshalParcel ¶
func (s *ParcelImage) MarshalParcel( p *parcel.Parcel, ) error
func (*ParcelImage) UnmarshalParcel ¶
func (s *ParcelImage) UnmarshalParcel( p *parcel.Parcel, ) error
type ParcelTotalCaptureResult ¶
type ParcelTotalCaptureResult struct {
LogicalCameraId string
Results impl.CameraMetadataNative
Parent camera2.CaptureRequest
SequenceId int32
FrameNumber int64
Partials []ParcelCaptureResult
SessionId int32
PhysicalResult []impl.PhysicalCaptureResultInfo
}
func (*ParcelTotalCaptureResult) MarshalParcel ¶
func (s *ParcelTotalCaptureResult) MarshalParcel( p *parcel.Parcel, ) error
func (*ParcelTotalCaptureResult) UnmarshalParcel ¶
func (s *ParcelTotalCaptureResult) UnmarshalParcel( p *parcel.Parcel, ) error
type PreviewExtenderImplProxy ¶
func NewPreviewExtenderImplProxy ¶
func NewPreviewExtenderImplProxy( remote binder.IBinder, ) *PreviewExtenderImplProxy
func (*PreviewExtenderImplProxy) AsBinder ¶
func (p *PreviewExtenderImplProxy) AsBinder() binder.IBinder
func (*PreviewExtenderImplProxy) GetCaptureStage ¶
func (p *PreviewExtenderImplProxy) GetCaptureStage( ctx context.Context, ) (CaptureStageImpl, error)
func (*PreviewExtenderImplProxy) GetPreviewImageProcessor ¶
func (p *PreviewExtenderImplProxy) GetPreviewImageProcessor( ctx context.Context, ) (IPreviewImageProcessorImpl, error)
func (*PreviewExtenderImplProxy) GetProcessorType ¶
func (p *PreviewExtenderImplProxy) GetProcessorType( ctx context.Context, ) (int32, error)
func (*PreviewExtenderImplProxy) GetRequestUpdateProcessor ¶
func (p *PreviewExtenderImplProxy) GetRequestUpdateProcessor( ctx context.Context, ) (IRequestUpdateProcessorImpl, error)
func (*PreviewExtenderImplProxy) GetSessionType ¶
func (p *PreviewExtenderImplProxy) GetSessionType( ctx context.Context, ) (int32, error)
func (*PreviewExtenderImplProxy) GetSupportedResolutions ¶
func (p *PreviewExtenderImplProxy) GetSupportedResolutions( ctx context.Context, ) ([]SizeList, error)
func (*PreviewExtenderImplProxy) Init ¶
func (p *PreviewExtenderImplProxy) Init( ctx context.Context, cameraId string, chars impl.CameraMetadataNative, ) error
func (*PreviewExtenderImplProxy) IsExtensionAvailable ¶
func (p *PreviewExtenderImplProxy) IsExtensionAvailable( ctx context.Context, cameraId string, chars impl.CameraMetadataNative, ) (bool, error)
func (*PreviewExtenderImplProxy) OnDisableSession ¶
func (p *PreviewExtenderImplProxy) OnDisableSession( ctx context.Context, ) (CaptureStageImpl, error)
func (*PreviewExtenderImplProxy) OnEnableSession ¶
func (p *PreviewExtenderImplProxy) OnEnableSession( ctx context.Context, ) (CaptureStageImpl, error)
func (*PreviewExtenderImplProxy) OnInit ¶
func (p *PreviewExtenderImplProxy) OnInit( ctx context.Context, token binder.IBinder, cameraId string, cameraCharacteristics impl.CameraMetadataNative, ) error
func (*PreviewExtenderImplProxy) OnPresetSession ¶
func (p *PreviewExtenderImplProxy) OnPresetSession( ctx context.Context, ) (CaptureStageImpl, error)
type PreviewExtenderImplStub ¶
type PreviewExtenderImplStub struct {
Impl IPreviewExtenderImpl
Transport binder.VersionAwareTransport
}
PreviewExtenderImplStub dispatches incoming binder transactions to a typed IPreviewExtenderImpl implementation.
func (*PreviewExtenderImplStub) Descriptor ¶
func (s *PreviewExtenderImplStub) Descriptor() string
func (*PreviewExtenderImplStub) OnTransaction ¶
func (s *PreviewExtenderImplStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type PreviewImageProcessorImplProxy ¶
func NewPreviewImageProcessorImplProxy ¶
func NewPreviewImageProcessorImplProxy( remote binder.IBinder, ) *PreviewImageProcessorImplProxy
func (*PreviewImageProcessorImplProxy) AsBinder ¶
func (p *PreviewImageProcessorImplProxy) AsBinder() binder.IBinder
func (*PreviewImageProcessorImplProxy) OnImageFormatUpdate ¶
func (p *PreviewImageProcessorImplProxy) OnImageFormatUpdate( ctx context.Context, imageFormat int32, ) error
func (*PreviewImageProcessorImplProxy) OnOutputSurface ¶
func (*PreviewImageProcessorImplProxy) OnResolutionUpdate ¶
func (p *PreviewImageProcessorImplProxy) OnResolutionUpdate( ctx context.Context, size Size, ) error
func (*PreviewImageProcessorImplProxy) Process ¶
func (p *PreviewImageProcessorImplProxy) Process( ctx context.Context, image ParcelImage, result impl.CameraMetadataNative, sequenceId int32, resultCallback IProcessResultImpl, ) error
type PreviewImageProcessorImplStub ¶
type PreviewImageProcessorImplStub struct {
Impl IPreviewImageProcessorImpl
Transport binder.VersionAwareTransport
}
PreviewImageProcessorImplStub dispatches incoming binder transactions to a typed IPreviewImageProcessorImpl implementation.
func (*PreviewImageProcessorImplStub) Descriptor ¶
func (s *PreviewImageProcessorImplStub) Descriptor() string
func (*PreviewImageProcessorImplStub) OnTransaction ¶
func (s *PreviewImageProcessorImplStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type ProcessResultImplProxy ¶
func NewProcessResultImplProxy ¶
func NewProcessResultImplProxy( remote binder.IBinder, ) *ProcessResultImplProxy
func (*ProcessResultImplProxy) AsBinder ¶
func (p *ProcessResultImplProxy) AsBinder() binder.IBinder
func (*ProcessResultImplProxy) OnCaptureCompleted ¶
func (p *ProcessResultImplProxy) OnCaptureCompleted( ctx context.Context, shutterTimestamp int64, results impl.CameraMetadataNative, ) error
func (*ProcessResultImplProxy) OnCaptureProcessProgressed ¶
func (p *ProcessResultImplProxy) OnCaptureProcessProgressed( ctx context.Context, progress int32, ) error
type ProcessResultImplStub ¶
type ProcessResultImplStub struct {
Impl IProcessResultImpl
Transport binder.VersionAwareTransport
}
ProcessResultImplStub dispatches incoming binder transactions to a typed IProcessResultImpl implementation.
func (*ProcessResultImplStub) Descriptor ¶
func (s *ProcessResultImplStub) Descriptor() string
func (*ProcessResultImplStub) OnTransaction ¶
func (s *ProcessResultImplStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type Request ¶
type Request struct {
TargetOutputConfigIds []OutputConfigId
Parameters impl.CameraMetadataNative
TemplateId int32
RequestId int32
}
type RequestCallbackProxy ¶
func NewRequestCallbackProxy ¶
func NewRequestCallbackProxy( remote binder.IBinder, ) *RequestCallbackProxy
func (*RequestCallbackProxy) AsBinder ¶
func (p *RequestCallbackProxy) AsBinder() binder.IBinder
func (*RequestCallbackProxy) OnCaptureBufferLost ¶
func (*RequestCallbackProxy) OnCaptureCompleted ¶
func (p *RequestCallbackProxy) OnCaptureCompleted( ctx context.Context, requestId int32, totalCaptureResult ParcelTotalCaptureResult, ) error
func (*RequestCallbackProxy) OnCaptureFailed ¶
func (p *RequestCallbackProxy) OnCaptureFailed( ctx context.Context, requestId int32, captureFailure CaptureFailure, ) error
func (*RequestCallbackProxy) OnCaptureProgressed ¶
func (p *RequestCallbackProxy) OnCaptureProgressed( ctx context.Context, requestId int32, partialResult ParcelCaptureResult, ) error
func (*RequestCallbackProxy) OnCaptureSequenceAborted ¶
func (p *RequestCallbackProxy) OnCaptureSequenceAborted( ctx context.Context, sequenceId int32, ) error
func (*RequestCallbackProxy) OnCaptureSequenceCompleted ¶
func (*RequestCallbackProxy) OnCaptureStarted ¶
type RequestCallbackStub ¶
type RequestCallbackStub struct {
Impl IRequestCallback
Transport binder.VersionAwareTransport
}
RequestCallbackStub dispatches incoming binder transactions to a typed IRequestCallback implementation.
func (*RequestCallbackStub) Descriptor ¶
func (s *RequestCallbackStub) Descriptor() string
func (*RequestCallbackStub) OnTransaction ¶
func (s *RequestCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type RequestProcessorImplProxy ¶
func NewRequestProcessorImplProxy ¶
func NewRequestProcessorImplProxy( remote binder.IBinder, ) *RequestProcessorImplProxy
func (*RequestProcessorImplProxy) AbortCaptures ¶
func (p *RequestProcessorImplProxy) AbortCaptures( ctx context.Context, ) error
func (*RequestProcessorImplProxy) AsBinder ¶
func (p *RequestProcessorImplProxy) AsBinder() binder.IBinder
func (*RequestProcessorImplProxy) SetImageProcessor ¶
func (p *RequestProcessorImplProxy) SetImageProcessor( ctx context.Context, outputConfigId OutputConfigId, imageProcessor IImageProcessorImpl, ) error
func (*RequestProcessorImplProxy) SetRepeating ¶
func (p *RequestProcessorImplProxy) SetRepeating( ctx context.Context, request Request, callback IRequestCallback, ) (int32, error)
func (*RequestProcessorImplProxy) StopRepeating ¶
func (p *RequestProcessorImplProxy) StopRepeating( ctx context.Context, ) error
func (*RequestProcessorImplProxy) Submit ¶
func (p *RequestProcessorImplProxy) Submit( ctx context.Context, request Request, callback IRequestCallback, ) (int32, error)
func (*RequestProcessorImplProxy) SubmitBurst ¶
func (p *RequestProcessorImplProxy) SubmitBurst( ctx context.Context, requests []Request, callback IRequestCallback, ) (int32, error)
type RequestProcessorImplStub ¶
type RequestProcessorImplStub struct {
Impl IRequestProcessorImpl
Transport binder.VersionAwareTransport
}
RequestProcessorImplStub dispatches incoming binder transactions to a typed IRequestProcessorImpl implementation.
func (*RequestProcessorImplStub) Descriptor ¶
func (s *RequestProcessorImplStub) Descriptor() string
func (*RequestProcessorImplStub) OnTransaction ¶
func (s *RequestProcessorImplStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type RequestUpdateProcessorImplProxy ¶
func NewRequestUpdateProcessorImplProxy ¶
func NewRequestUpdateProcessorImplProxy( remote binder.IBinder, ) *RequestUpdateProcessorImplProxy
func (*RequestUpdateProcessorImplProxy) AsBinder ¶
func (p *RequestUpdateProcessorImplProxy) AsBinder() binder.IBinder
func (*RequestUpdateProcessorImplProxy) OnImageFormatUpdate ¶
func (p *RequestUpdateProcessorImplProxy) OnImageFormatUpdate( ctx context.Context, imageFormat int32, ) error
func (*RequestUpdateProcessorImplProxy) OnOutputSurface ¶
func (*RequestUpdateProcessorImplProxy) OnResolutionUpdate ¶
func (p *RequestUpdateProcessorImplProxy) OnResolutionUpdate( ctx context.Context, size Size, ) error
func (*RequestUpdateProcessorImplProxy) Process ¶
func (p *RequestUpdateProcessorImplProxy) Process( ctx context.Context, result impl.CameraMetadataNative, sequenceId int32, ) (CaptureStageImpl, error)
type RequestUpdateProcessorImplStub ¶
type RequestUpdateProcessorImplStub struct {
Impl IRequestUpdateProcessorImpl
Transport binder.VersionAwareTransport
}
RequestUpdateProcessorImplStub dispatches incoming binder transactions to a typed IRequestUpdateProcessorImpl implementation.
func (*RequestUpdateProcessorImplStub) Descriptor ¶
func (s *RequestUpdateProcessorImplStub) Descriptor() string
func (*RequestUpdateProcessorImplStub) OnTransaction ¶
func (s *RequestUpdateProcessorImplStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type SessionProcessorImplProxy ¶
func NewSessionProcessorImplProxy ¶
func NewSessionProcessorImplProxy( remote binder.IBinder, ) *SessionProcessorImplProxy
func (*SessionProcessorImplProxy) AsBinder ¶
func (p *SessionProcessorImplProxy) AsBinder() binder.IBinder
func (*SessionProcessorImplProxy) DeInitSession ¶
func (*SessionProcessorImplProxy) GetRealtimeCaptureLatency ¶
func (p *SessionProcessorImplProxy) GetRealtimeCaptureLatency( ctx context.Context, ) (LatencyPair, error)
func (*SessionProcessorImplProxy) InitSession ¶
func (p *SessionProcessorImplProxy) InitSession( ctx context.Context, token binder.IBinder, cameraId string, charsMap map[string]impl.CameraMetadataNative, previewSurface OutputSurface, imageCaptureSurface OutputSurface, postviewSurface OutputSurface, ) (CameraSessionConfig, error)
func (*SessionProcessorImplProxy) OnCaptureSessionEnd ¶
func (p *SessionProcessorImplProxy) OnCaptureSessionEnd( ctx context.Context, ) error
func (*SessionProcessorImplProxy) OnCaptureSessionStart ¶
func (p *SessionProcessorImplProxy) OnCaptureSessionStart( ctx context.Context, requestProcessor IRequestProcessorImpl, statsKey string, ) error
func (*SessionProcessorImplProxy) SetParameters ¶
func (p *SessionProcessorImplProxy) SetParameters( ctx context.Context, captureRequest camera2.CaptureRequest, ) error
func (*SessionProcessorImplProxy) StartCapture ¶
func (p *SessionProcessorImplProxy) StartCapture( ctx context.Context, callback ICaptureCallback, isPostviewRequested bool, ) (int32, error)
func (*SessionProcessorImplProxy) StartRepeating ¶
func (p *SessionProcessorImplProxy) StartRepeating( ctx context.Context, callback ICaptureCallback, ) (int32, error)
func (*SessionProcessorImplProxy) StartTrigger ¶
func (p *SessionProcessorImplProxy) StartTrigger( ctx context.Context, captureRequest camera2.CaptureRequest, callback ICaptureCallback, ) (int32, error)
func (*SessionProcessorImplProxy) StopRepeating ¶
func (p *SessionProcessorImplProxy) StopRepeating( ctx context.Context, ) error
type SessionProcessorImplStub ¶
type SessionProcessorImplStub struct {
Impl ISessionProcessorImpl
Transport binder.VersionAwareTransport
}
SessionProcessorImplStub dispatches incoming binder transactions to a typed ISessionProcessorImpl implementation.
func (*SessionProcessorImplStub) Descriptor ¶
func (s *SessionProcessorImplStub) Descriptor() string
func (*SessionProcessorImplStub) OnTransaction ¶
func (s *SessionProcessorImplStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
Source Files
¶
- cameraoutputconfig.go
- camerasessionconfig.go
- capturebundle.go
- capturefailure.go
- capturestageimpl.go
- iadvancedextenderimpl.go
- icameraextensionsproxyservice.go
- icapturecallback.go
- icaptureprocessorimpl.go
- iimagecaptureextenderimpl.go
- iimageprocessorimpl.go
- iinitializesessioncallback.go
- ioutputsurfaceconfiguration.go
- ipreviewextenderimpl.go
- ipreviewimageprocessorimpl.go
- iprocessresultimpl.go
- irequestcallback.go
- irequestprocessorimpl.go
- irequestupdateprocessorimpl.go
- isessionprocessorimpl.go
- latencypair.go
- latencyrange.go
- outputconfigid.go
- outputsurface.go
- parcelcaptureresult.go
- parcelimage.go
- parceltotalcaptureresult.go
- request.go
- size.go
- sizelist.go