[xiph-commits] r16293 - branches/theora-thusnelda/lib/dec
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Thu Jul 16 14:25:28 PDT 2009
Author: xiphmont
Date: 2009-07-16 14:25:27 -0700 (Thu, 16 Jul 2009)
New Revision: 16293
Modified:
branches/theora-thusnelda/lib/dec/decode.c
Log:
Wrap new telemetry gathering in proper ifdefs
Modified: branches/theora-thusnelda/lib/dec/decode.c
===================================================================
--- branches/theora-thusnelda/lib/dec/decode.c 2009-07-16 17:46:53 UTC (rev 16292)
+++ branches/theora-thusnelda/lib/dec/decode.c 2009-07-16 21:25:27 UTC (rev 16293)
@@ -1051,7 +1051,9 @@
huff_idxs[1]=(int)val;
_dec->eob_runs[0][0]=0;
eobs=oc_dec_dc_coeff_unpack(_dec,huff_idxs,ntoks_left);
+#if defined(HAVE_CAIRO)
_dec->telemetry_dc_bytes = oc_pack_bytes_left(&_dec->opb);
+#endif
val=oc_pack_read(&_dec->opb,4);
huff_idxs[0]=(int)val;
@@ -1976,7 +1978,9 @@
int notstart;
int notdone;
oc_pack_readinit(&_dec->opb,_op->packet,_op->bytes);
+#if defined(HAVE_CAIRO)
_dec->telemetry_frame_bytes = _op->bytes;
+#endif
ret=oc_dec_frame_header_unpack(_dec);
@@ -2016,19 +2020,29 @@
if(_dec->state.frame_type==OC_INTRA_FRAME){
oc_dec_mark_all_intra(_dec);
_dec->state.keyframe_num=_dec->state.curframe_num;
+#if defined(HAVE_CAIRO)
_dec->telemetry_coding_bytes =
_dec->telemetry_mode_bytes =
_dec->telemetry_mv_bytes = oc_pack_bytes_left(&_dec->opb);
+#endif
}else{
oc_dec_coded_flags_unpack(_dec);
+#if defined(HAVE_CAIRO)
_dec->telemetry_coding_bytes = oc_pack_bytes_left(&_dec->opb);
+#endif
oc_dec_mb_modes_unpack(_dec);
+#if defined(HAVE_CAIRO)
_dec->telemetry_mode_bytes = oc_pack_bytes_left(&_dec->opb);
+#endif
oc_dec_mv_unpack_and_frag_modes_fill(_dec);
+#if defined(HAVE_CAIRO)
_dec->telemetry_mv_bytes = oc_pack_bytes_left(&_dec->opb);
+#endif
}
oc_dec_block_qis_unpack(_dec);
+#if defined(HAVE_CAIRO)
_dec->telemetry_qi_bytes = oc_pack_bytes_left(&_dec->opb);
+#endif
oc_dec_residual_tokens_unpack(_dec);
/*Update granule position.
This must be done before the striped decode callbacks so that the
More information about the commits
mailing list