Skip to content

Commit

Permalink
make camera2 prepareCamera with surface public
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Nov 29, 2024
1 parent c1fdfc0 commit 6932436
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class Camera2ApiManager(context: Context) : CameraDevice.StateCallback() {
prepareCamera(surfaceTexture, width, height, fps)
}

private fun prepareCamera(surface: Surface, fps: Int) {
fun prepareCamera(surface: Surface, fps: Int) {
this.surfaceEncoder = surface
this.fps = fps
isPrepared = true
Expand Down

0 comments on commit 6932436

Please sign in to comment.