[x264-devel] Re: debug/error messages
Laurent Aimar
fenrir at via.ecp.fr
Tue Aug 17 22:00:14 CEST 2004
On Tue, Aug 10, 2004, Måns Rullgård wrote:
> There are quite a few messages printed by x264. These do not always
> mix well with other output from programs using x264. It is also
> inconvenient to recompile x264 and relink programs just to change
> which messages get printed.
>
> To solve this problem, we could use a callback function for printing
> messages, instead of plain fprintf. See how libavcodec does it. The
> default could still be to print to the terminal, but applications
> would have a chance to intercept messages and display them selectively
> based on whatever rules it might have.
I have commited a x264_log function. In x264_param_t you can replace
pf_log/p_log_rpivate/i_log_level tp change the default behavour.
This function isn't yet used (except 1 message ;) I think we can
slowly convert fprintf to it.
--
fenrir
--
This is the x264-devel mailing-list
If you are in trouble, please contact <postmaster at videolan.org>
More information about the x264-devel
mailing list