[Ffmpeg-cvslog] r6874 - in trunk/libavcodec: Makefile allcodecs.c avcodec.h bytestream.h gif.c

Alex Beregszaszi alex
Fri Nov 3 12:35:56 CET 2006


Hi,

> +static always_inline void bytestream_put_le32(uint8_t **b, const
> unsigned int value) +{
> +    *(*b)++ = value;
> +    *(*b)++ = value >> 8;
> +    *(*b)++ = value >> 16;
> +    *(*b)++ = value >> 24;
> +}
> +
> +static always_inline void bytestream_put_le16(uint8_t **b, const
> unsigned int value) +{
> +    *(*b)++ = value;
> +    *(*b)++ = value >> 8;
> +}
> +
> +static always_inline void bytestream_put_byte(uint8_t **b, const
> unsigned int value) +{
> +    *(*b)++ = value;
> +}
> +
> +static always_inline void bytestream_put_buffer(uint8_t **b, const
> uint8_t *src, unsigned int size) +{
> +    memcpy(*b, src, size);
> +    (*b) += size;
> +}

Put_buffer isnt incosistent with the rest?

-- 
Alex Beregszaszi | alex at fsn.hu




More information about the ffmpeg-cvslog mailing list