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:
- KYFG_CameraStop()
- KYFG_StreamDelete()
- Camera parameters change, i.e KYFG_SetCameraValue()
- KYFG_StreamCreate()
- KYFG_StreamCallbackRegister()
- KYFG_BufferAnnounce()
- KYFG_BufferQueueAll()
- 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.