Handle resolution change

Last modified by Lev Andronov on 2024/10/28 16:31

The best way to handle resolution change is by executing the following commands in this order:

  1. KYFG_CameraStop()
  2. KYFG_StreamDelete()
  3. Camera parameters change, i.e KYFG_SetCameraValue()
  4. KYFG_StreamCreate()
  5. KYFG_StreamCallbackRegister()
  6. KYFG_BufferAnnounce()
  7. KYFG_BufferQueueAll()
  8. KYFG_CameraStart()

Please note that in case you use KYFG_BufferAnnounce() the buffers will NOT be deleted by KYFG_StreamDelete() because they are user controlled.

If you use KYFG_BufferAllocAndAnnounce() then buffers will be deleted because they are controlled by the library.

Created by Lev Andronov on 2024/04/08 18:02
KAYA Instruments © 2024. All Rights Reserved.