From: Jan P. <pet...@ya...> - 2009-03-05 08:29:39
|
Hello, i took one of your samples and included a small linux framebuffer output routine to it. Now i can watch mpeg2 videos on console. My problem is, i use a very slow cpu (blackfin architecture) and the video is slow. If i use the mplayer on the same system, the video is a little bit faster, but the mplayer uses the same library. Is there a way to increase the speed of my video using libmpeg2? Or if someone have a better working framebuffer routine can he post it to me? thats mine: static void print_screen (int width, int height, uint8_t * buf) { a=0; for(y=0;y<height;y++) for(x=0;x<width;x++){ location = (x+vinfo.xoffset) * (vinfo.bits_per_pixel/8) + (y+vinfo.yoffset) * finfo.line_length; *(fbp + location) = buf[a]; *(fbp + location + 1) = buf[a+1]; a=a+2; } } greetings jan |