Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 124175

Forum Post: RE: How can I improve the frame rate in video processing?

$
0
0

Pavel,

It's simple.

I just added some code in 'saLoopBackFbdev.c' to insert my video process algorithm.

The following is added test code in capture loop.


                int x,y;
                unsigned char * p_capt=capt.buf.m.userptr;
                for(x=capt.fmt.fmt.pix.height/2;x<capt.fmt.fmt.pix.height;x++)
                        for(y=0;y<capt.fmt.fmt.pix.width;y++){
                                (*(p_capt+capt.fmt.fmt.pix.width*x*3+y*3+0))=255;
                                (*(p_capt+capt.fmt.fmt.pix.width*x*3+y*3+1))=255;
                                (*(p_capt+capt.fmt.fmt.pix.width*x*3+y*3+2))=255;
                        }   

Problem is...

1. Screen is flickering like bellow.

2. And frame rate is so slow. It decreases from 60fps to 20fps.

thank you


Viewing all articles
Browse latest Browse all 124175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>