Hello :
May I know is framerate could be changed at OMX camera running time?
In our project, OMAP4 blaze board is used, thank you.
Br,
Ning.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello :
May I know is framerate could be changed at OMX camera running time?
In our project, OMAP4 blaze board is used, thank you.
Br,
Ning.
Hi Ning,
As far as I understood your question, you can change the frame-rate with the configuration of your sensor driver.
Regards Boyko
Hello Boyko:
Thank you very much for reply.
Is there any example code to config sensor driver to change frame rate? Thank you very much.
Br,
Ning.
Unfortunately I cannot give you examples from the Ducati source code. But if you are kind enough to more specificity explain your setup and purpose, i may provide you with some further guidelines
Regards,
Boyko
Hello Boyko:
Thank you very much;
omap4430 is used in our project, and requirement is change framerate at runtime with camera apk;
I write test code in CameraHal and test with camera apk to change camera framerate at run time; but not work;
in OMXCameraAdapter.cpp add function:
static void *camera_test_thread_func(void *vptr_args) {
OMXCameraAdapter *self= (OMXCameraAdapter*)vptr_args;
sleep(5);
self->setVFramerate(10, 10);
while(1)
sleep(5);
return NULL;
}
in OMXCameraAdapter.cpp call it in function startVideoCapture:
static pthread_t test_thread = 0;
pthread_create(&test_thread, NULL, camera_test_thread_func, this);
After trigger setVFramerate(10, 10); check log in function debugShowFPS, the fps is still the same one with original value; And adb pull the encoded file, find the framerate is not changed too;
I do not know how to change the framerate at runtime, please suggest, thank you very much;
Br,
Ning.
Short answer to your questions is YES.. frame rate can be changed at runtime.
When you are testing a particular FPS, you must check if this a fps range supported by Camera component. Android compliance requires that CameraHAL negotiates the supported frame rate ranges with the driver and publishes it to the application. It is application's responsibility to set a range only after checking if it is supported.
If CameraHAL claims a FPS range but does not change the FPS at runtime, it is a compliance failure at Android level.