[FFmpeg-devel] port mplayer eq filter to libavfilter

William Yu genwillyu
Mon Nov 29 16:57:30 CET 2010


2010/11/26 Ronald S. Bultje <rsbultje at gmail.com>:
> Hi,
>
> On Fri, Nov 26, 2010 at 9:38 AM, William Yu <genwillyu at gmail.com> wrote:
>> 2010/11/25 Ronald S. Bultje <rsbultje at gmail.com> wrote:
>>> On Thu, Nov 25, 2010 at 4:27 AM, William Yu <genwillyu at gmail.com> wrote:
>>>> + ? ? ? ?for (i = w&7; i; i--) {
>>>> + ? ? ? ? ? ?pel = ((*line* contrast)>>12) + brightness;
>>>> + ? ? ? ? ? ?if (pel&768) pel = (-pel)>>31;
>>>> + ? ? ? ? ? ?*line++ = pel;
>>>> + ? ? ? ?}
>>>
>>> Please don't mix and match C and ASM, this takes about 10-20 lines in
>>> asm, if you want you can even compile it using gcc and directly copy
>>> it (see above, use FASTDIV also). That will prevent it from using eax
>>> and then the function gets faster.
I have replace c code to assembly. anything else?
>[..]
> Ronald
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf_eq.diff
Type: application/octet-stream
Size: 13104 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101129/39f5e94b/attachment.obj>



More information about the ffmpeg-devel mailing list