[MPlayer-dev-eng] postprocessing API/ABI

Michael Niedermayer michaelni at gmx.at
Sat Nov 2 15:32:23 CET 2002


Hi

i just finished the new API/ABI for libpostproc.so ...

if anyone (developers who want to use the pp code in their projects mostly) 
have any suggestions/comments about it then speak now or dont complain later 
that the API sucks!

ohh, btw, heres an example on how its supposed to be used:

#include "postprocess.h"

init:
    pp_context_t *context= pp_get_context(width, height, cpuCaps);
    pp_mode_t *mode= pp_get_mode_by_name_and_quality(name, PP_QUALITY_MAX);

name is the string after the "-pp" or equivalent command line argument, 
obviously it can allso be created by simply using sprintf()

u can allso fill an array with *pp_mode_t of different quality and switch 
between them depending upon available CPU time

uninit:
    pp_free_mode(mode);
    pp_free_context(context);

filter:
    pp_postprocess(src, srcStride, dst, dstStride, width, height,
                   qscale, qstride, mode, context, pict_type);

Michael



More information about the MPlayer-dev-eng mailing list