[Ffmpeg-devel] [PATCH] Chinese AVS video decoder

Ivo ivop
Tue Jul 4 10:07:56 CEST 2006


On Tuesday 04 July 2006 08:19, The Wanderer wrote:
> Roman Shaposhnik wrote:
> > On Mon, 2006-07-03 at 16:51 -0400, The Wanderer wrote:
> >> (I've been Googling for a copy of the C standard
> >
> > http://dkuug.dk/JTC1/SC22/WG14/www/docs/n869/n869.pdf.gz
>
> Thank you; this will presumably be quite useful for future reference.

This one is more recent:

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf

> > I believe it is OK for char to be 16-bit. In that case, sizeof(char)
> > == 1 (as per 6.5.3.4 para 3). I think the trouble you have with
> > understanding the semantics of sizeof stems from the fact that you
> > always assume bytes to be 8bits in size. Which is not true as far as
> > C standard is concerned.
>
> Ah. That would, indeed, be what was tripping me up; I had taken it as a
> fundamental assumption underlying all modern computer systems that "one
> byte is 8 bits", period. (Certainly attempting to cleanly handle
> interactions between systems that define the width of a byte differently
> looks, at a glance, like it would be a massive headache...)

Yeah. Luckily all current computers are at least all binary:

http://www.computer-museum.ru/english/setun.htm

Although we might see something different again in the future:

http://en.wikipedia.org/wiki/Qubit

:-)

--Ivo





More information about the ffmpeg-devel mailing list