[FFmpeg-devel] [PATCH] move some bitstream related functions
Michael Niedermayer
michaelni
Thu Jul 5 20:11:30 CEST 2007
Hi
On Thu, Jul 05, 2007 at 03:39:05PM +0200, Aurelien Jacobs wrote:
[...]
> > > +void ff_write_quant_matrix(PutBitContext *pb, uint16_t *matrix){
> > > + int i;
> > > +
> > > + if(matrix){
> > > + put_bits(pb, 1, 1);
> > > + for(i=0;i<64;i++) {
> > > + put_bits(pb, 8, matrix[ ff_zigzag_direct[i] ]);
> > > + }
> > > + }else
> > > + put_bits(pb, 1, 0);
> > > +}
> > > +
> > > /* VLC decoding */
> >
> > doesnt belong in bitstream.* at all
>
> I have to agree with this. On the other hand, this function is used
> in h263.c and create a dependency on mpegvideo_enc.c for just one
> small function. Any idea where I could move this function ?
h263 encoding does depend on most of mpegvideo_enc.c
h263 decoding does not need ff_write_quant_matrix()
[....]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070705/8654daa8/attachment.pgp>
More information about the ffmpeg-devel
mailing list