Update of /cvsroot/mplayer/main/libmpcodecs In directory mail:/var/tmp.root/cvs-serv910 Modified Files: vf_spp.c Log Message: 10l and minor optimization Index: vf_spp.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_spp.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- vf_spp.c 26 Oct 2003 23:07:21 -0000 1.1 +++ vf_spp.c 26 Oct 2003 23:35:46 -0000 1.2 @@ -114,12 +114,13 @@ } static inline void add_block(int16_t *dst, int stride, DCTELEM block[64]){ - int x,y; + int y; for(y=0; y<8; y++){ - for(x=0; x<8; x++){ - dst[x + y*stride]+= block[x + y*8]; - } + *(uint32_t*)&dst[0 + y*stride]+= *(uint32_t*)&block[0 + y*8]; + *(uint32_t*)&dst[2 + y*stride]+= *(uint32_t*)&block[2 + y*8]; + *(uint32_t*)&dst[4 + y*stride]+= *(uint32_t*)&block[4 + y*8]; + *(uint32_t*)&dst[6 + y*stride]+= *(uint32_t*)&block[6 + y*8]; } } @@ -290,6 +291,9 @@ vf->uninit=uninit; vf->priv=malloc(sizeof(struct vf_priv_s)); memset(vf->priv, 0, sizeof(struct vf_priv_s)); + + avcodec_init(); + vf->priv->avctx= avcodec_alloc_context(); dsputil_init(&vf->priv->dsp, vf->priv->avctx);
Hi,
Modified Files: vf_spp.c Log Message: 10l and minor optimization
probably 120l or so still left, i get sig11 at exit, and random pixels corruption at the top 3-5 lines. playing 352x240x30fps mpeg1 A'rpi / Astral & ESP-team -- Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu
Hi,
Modified Files: vf_spp.c Log Message: 10l and minor optimization
probably 120l or so still left, i get sig11 at exit, and random pixels corruption at the top 3-5 lines.
playing 352x240x30fps mpeg1
update: it only happens with (default) libmpeg2, with -vc ffmpeg1 it's fine (but quality 6 is slow as hell, i get 5fps or so on p4) A'rpi / Astral & ESP-team -- Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu
Hi On Monday 27 October 2003 00:49, Arpi wrote:
Hi,
Modified Files: vf_spp.c Log Message: 10l and minor optimization
probably 120l or so still left, i get sig11 at exit, and random pixels corruption at the top 3-5 lines.
playing 352x240x30fps mpeg1
update: it only happens with (default) libmpeg2, with -vc ffmpeg1 it's fine fixed
(but quality 6 is slow as hell, i get 5fps or so on p4) thats 5 times faster then here ... well, its not surprising, at q=6 it has to do 1 dct, quantize, dequantize, idct per pixel
[...] -- Michael level[i]= get_vlc(); i+=get_vlc(); (violates patent EP0266049) median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]); (violates patent #5,905,535) buf[i]= qp - buf[i-1]; (violates patent #?) for more examples, see http://mplayerhq.hu/~michael/patent.html stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en
Hi On Monday 27 October 2003 01:17, Michael Niedermayer wrote:
Hi
On Monday 27 October 2003 00:49, Arpi wrote:
Hi,
Modified Files: vf_spp.c Log Message: 10l and minor optimization
probably 120l or so still left, i get sig11 at exit, and random pixels corruption at the top 3-5 lines.
playing 352x240x30fps mpeg1
update: it only happens with (default) libmpeg2, with -vc ffmpeg1 it's fine
fixed
(but quality 6 is slow as hell, i get 5fps or so on p4)
thats 5 times faster then here ... well, its not surprising, at q=6 it has to do 1 dct, quantize, dequantize, idct per pixel s/pixel/sample/
[...] -- Michael level[i]= get_vlc(); i+=get_vlc(); (violates patent EP0266049) median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]); (violates patent #5,905,535) buf[i]= qp - buf[i-1]; (violates patent #?) for more examples, see http://mplayerhq.hu/~michael/patent.html stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en
On Monday 27 October 2003 01:30, Michael Niedermayer wrote:
Hi
On Monday 27 October 2003 01:17, Michael Niedermayer wrote:
Hi
On Monday 27 October 2003 00:49, Arpi wrote:
Hi,
Modified Files: vf_spp.c Log Message: 10l and minor optimization
probably 120l or so still left, i get sig11 at exit, and random pixels corruption at the top 3-5 lines.
playing 352x240x30fps mpeg1
update: it only happens with (default) libmpeg2, with -vc ffmpeg1 it's fine
fixed
(but quality 6 is slow as hell, i get 5fps or so on p4)
thats 5 times faster then here ... well, its not surprising, at q=6 it has to do 1 dct, quantize, dequantize, idct per pixel
s/pixel/sample/
[...] I can go max to spp=2 on PIII 850 with same type of video =)
Btw. the PP code has the same bug as early postprocessing in divx4: You get white dots in pitch black areas (tested with a divx5 flic with spp=1). Btw2. -autoq doesn't seem to work. -- Best Regards, Atmos ____________________________________________ - MPlayer Developer - http://mplayerhq.hu/ - ____________________________________________
another Bug: it crashes mplayer in conjunction with -hardframedrop... -- Best Regards, Atmos ____________________________________________ - MPlayer Developer - http://mplayerhq.hu/ - ____________________________________________
participants (4)
-
Arpi -
Felix Buenemann -
Michael Niedermayer -
Michael Niedermayer CVS