MultiMedia_CameraConfig

Overview

Defines the CameraConfig class for operations on camera configurations.

Since:

1.0

Version:

1.0

Summary

Files

File Name

Description

camera_config.h

Declares functions in the CameraConfig class.

Data Structures

Data Structure Name

Description

OHOS::Media::CameraConfig

Provides functions to configure camera parameters.

Functions

Function Name

Description

OHOS::Media::CameraConfig::~CameraConfig ()

virtual 

A destructor used to delete the CameraAbility instance.

OHOS::Media::CameraConfig::CreateCameraConfig ()

static CameraConfig  

Creates the CameraConfig instance of this singleton class to configure and read the required parameters.

OHOS::Media::CameraConfig::SetFrameStateCallback (FrameStateCallback callback, EventHandler handler)

virtual void 

Sets a frame state callback to responds to state changes.

OHOS::Media::CameraConfig::GetEventHandler () const

virtual EventHandler  

Obtains the EventHandler object.

OHOS::Media::CameraConfig::GetFrameStateCb () const

virtual FrameStateCallback

Obtains a FrameStateCallback object.

OHOS::Media::CameraConfig::CameraConfig ()

 

A constructor used to create a CameraConfig instance.

Details

Function Documentation

CameraConfig()

  1. OHOS::Media::CameraConfig::CameraConfig ()

Description:

A constructor used to create a CameraConfig instance.

CreateCameraConfig()

  1. static [CameraConfig]($api-api-SmartVision-Devices-OHOS-Media-CameraConfig.md)* OHOS::Media::CameraConfig::CreateCameraConfig ()

Description:

Creates the CameraConfig instance of this singleton class to configure and read the required parameters.

Returns:

Returns the CameraConfig instance if created; returns NULL otherwise.

GetEventHandler()

  1. virtual EventHandler* OHOS::Media::CameraConfig::GetEventHandler () const

Description:

Obtains the EventHandler object.

Returns:

Returns the pointer to the EventHandler object if obtained; returns NULL otherwise.

GetFrameStateCb()

  1. virtual [FrameStateCallback]($api-api-SmartVision-Devices-OHOS-Media-FrameStateCallback.md)* OHOS::Media::CameraConfig::GetFrameStateCb () const

Description:

Obtains a FrameStateCallback object.

Returns:

Returns the pointer to the FrameStateCallback object if obtained; returns NULL otherwise.

SetFrameStateCallback()

  1. virtual void OHOS::Media::CameraConfig::SetFrameStateCallback ([FrameStateCallback]($api-api-SmartVision-Devices-OHOS-Media-FrameStateCallback.md) * callback, EventHandler * handler )

Description:

Sets a frame state callback to responds to state changes.

Parameters:

Name

Description

callback Indicates the frame state callback.
handler Indicates the event handler.

~CameraConfig()

  1. virtual OHOS::Media::CameraConfig::~CameraConfig ()

Description:

A destructor used to delete the CameraAbility instance.