Hi On Monday 04 February 2002 16:55, Nick Kurshev wrote:
Hello, Michael!
On Sun, 3 Feb 2002 19:08:01 +0100 you wrote:
[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html] Hi
On Sunday 03 February 2002 18:12, Nick Kurshev wrote: [...]
nick, i just wanted to say that the swscaler does support other formats than yv12, allthough SwScale_YV12slice() does not, swScale() does
I've understand you! But: 1) your changes are too messed
why?
2) they don't affect draw_frame
they do
Strange - I didn't find that static uint32_t draw_frame( uint8_t *src[] ){ ... if(swsContext) { int stride[3]= {0,0,0}; if (swsContext->srcFormat==IMGFMT_YUY2) stride[0]=swsContext->srcW*2; else if(swsContext->srcFormat==IMGFMT_BGR24) stride[0]=swsContext->srcW*3; else if(swsContext->srcFormat==IMGFMT_BGR32) stride[0]=swsContext->srcW*4;
return draw_slice(src, stride, swsContext->srcW, swsContext->srcH, 0, 0); } ... perhaps i understand now why u called it messed, looking at it again, it is a bit messed ;) [...] Michael