[MPlayer-dev-eng] [PATCH] intresample first attempt
Balatoni Denes
pnis at coder.hu
Wed Oct 23 15:12:16 CEST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
> The af options will change in next week see the pre9 thread.
> also the selection between yours and mine resample will be made inside
> the resample filter using the AF_CONTROL_POST_CREATE call.
Yes I saw it, forget this then!
> What I mean is that
>
> uint32_t end16 = (c->len*s->drate/s->srate)>>1;
>
> truncates the length of the output when gcd(len*drate,srate) != srate
> This will lead to jitter between the blocks and will cause incorrect
> playback speed for the video. It can however be avoided by inserting
> an extra sample every now and then. Exactly how to solve this Is an
> other problem however...
Now I see (what I corrected, perhaps could have caused one sample loss too).
Ok, I will correct this - after like an hour there could be almost a second
of delay because of this, is this correct ?
Btw 2, I have found the reason why the linint resample is not so much faster
(about 2-4 °% CPU improvement). gcc does a very good job at optimizing, and
eliminates most multiplications and other time consuming thins by itself !
bye
Denes
- --
"Use the source Luke !"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9tqAwaQToeq3jgogRAnAcAJ0Rlb9TOzmj/LNrKG0mA21iSKDt5ACfTrtS
ayIH08AeTYCwVWiltyBOr2E=
=3Rlu
-----END PGP SIGNATURE-----
More information about the MPlayer-dev-eng
mailing list