Frequently Asked Question
How to handle a resolution change
Last Updated 4 years ago
The best way to handle resolution change is by executing the following commands in this order:
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.
- 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.