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:

  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.

Please Wait!

Please wait... it will take a second!