[FFmpeg-devel] [PATCH] Fix inclusion in pixdesc.h of the non-public header intreadwrite.h

Michael Niedermayer michaelni
Mon Feb 15 22:45:20 CET 2010


On Mon, Feb 15, 2010 at 07:24:57PM +0000, M?ns Rullg?rd wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
> 
> > On Mon, Feb 15, 2010 at 06:37:19PM +0000, M?ns Rullg?rd wrote:
> >> Michael Niedermayer <michaelni at gmx.at> writes:
> >> 
> >> > On Mon, Feb 15, 2010 at 01:00:42PM +0000, M?ns Rullg?rd wrote:
> >> >> Michael Niedermayer <michaelni at gmx.at> writes:
> >> >> 
> >> >> > On Sun, Feb 14, 2010 at 11:39:35PM +0100, Stefano Sabatini wrote:
> >> >> >> Hi all,
> >> >> >> 
> >> >> >> intreadwrite.h is not public so we should not include it in a public
> >> >> >> header, this also fixes a bunch of warnings during compilation.
> >> >> >> 
> >> >> >> Also read_line() and write_line() are just meant for
> >> >> >> testing/debugging/pedagogical purposes, so the fact that they're not
> >> >> >> defined inline shouldn't be relevant.
> >> >> >
> >> >> > no, read/write_line() are an essential and important part of
> >> >> > pixdescs They where intended as fallback for very rarely used
> >> >> > convertions in swscale having a specific optimized converter
> >> >> > for each pixel format is overkill especially on CONFIG_SMALL
> >> >> > targets
> >> >> 
> >> >> Having them inline in the public header doesn't exactly fit with that
> >> >> description, so I think the patch is fine.  No functionality is being
> >> >> removed.
> >> >
> >> > well, if its important to you then iam ok with moving them to the c file
> >> >
> >> > but i still do want intreadwrite public ...
> >> 
> >> That's a different debate.
> >> 
> >> > it is usefull and used
> >> 
> >> That's impossible.
> >
> > in mplayer trunk
> > grep 'AV_R[BL][0-9]' *.{c,h} libmp*/*.{c,h} |wc
> >     108     564    7751
> 
> For the billionth time: intreadwrite.h is IMPOSSIBLE TO WRITE
> PORTABLY.  MPlayer abuse is totally irrelevant.

It is possible to implement with plain C and this is portable
within normal platforms (iam ignoring the char is 24bits systems)
we arent supporting these anyway.

About compiler specific code like unaligned reads and all that,
there is #ifdef __GNUC__ the rest can be handled by plain C

about asm there is
ifdef __i386__ inside #ifdef __GNUC__


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100215/980650ff/attachment.pgp>



More information about the ffmpeg-devel mailing list