[FFmpeg-soc] [soc]: r1317 - dirac/libavcodec/dirac.c

marco subversion at mplayerhq.hu
Sun Sep 9 15:20:09 CEST 2007


Author: marco
Date: Sun Sep  9 15:20:09 2007
New Revision: 1317

Log:
calculate the chroma MC block parameters

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Sun Sep  9 15:20:09 2007
@@ -3550,6 +3550,14 @@ static int dirac_pack_prediction_paramet
     /* Use default weights for the reference frames.  */
     put_bits(pb, 1, 0);
 
+    s->frame_decoding.chroma_xblen = (s->frame_decoding.luma_xblen
+                                      >> s->chroma_hshift);
+    s->frame_decoding.chroma_yblen = (s->frame_decoding.luma_yblen
+                                      >> s->chroma_vshift);
+    s->frame_decoding.chroma_xbsep = (s->frame_decoding.luma_xbsep
+                                      >> s->chroma_hshift);
+    s->frame_decoding.chroma_ybsep = (s->frame_decoding.luma_ybsep
+                                      >> s->chroma_vshift);
 
     return 0;
 }



More information about the FFmpeg-soc mailing list