Skip to content

ptz: Move backend-specific code to each backend#167

Merged
norihiro merged 2 commits into
mainfrom
move-to-ptz-backend
Aug 31, 2024
Merged

ptz: Move backend-specific code to each backend#167
norihiro merged 2 commits into
mainfrom
move-to-ptz-backend

Conversation

@norihiro

@norihiro norihiro commented Aug 6, 2024

Copy link
Copy Markdown
Owner

Description

The device-specific implementations for settings and properties were written in src/face-tracker-ptz.cpp. This makes difficult to maintain or add more device types.

This PR moves the code to each source file of the backend device.

The modification is separated from #161.

How Has This Been Tested?

General checklist

  • The commit is reviewed by yourself.
  • The code is tested.
  • Document is up to date or not necessary to be changed.
  • The commit is compatible with repository's license.

@norihiro norihiro added this to the 0.8.0 milestone Aug 6, 2024
The control ranges depend on the model. Hence, the properties should be
provided by each backend. The plugin obs-ptz assumes SRG-120DH so that
the ranges can be fixed values.
@norihiro norihiro force-pushed the move-to-ptz-backend branch from 145a3c7 to 8309b4b Compare August 31, 2024 13:05
@norihiro norihiro merged commit 8309b4b into main Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant