[FFmpeg-soc] [soc]: r793 - dirac/libavcodec/dirac_arith.c
marco
subversion at mplayerhq.hu
Tue Aug 14 22:14:32 CEST 2007
Author: marco
Date: Tue Aug 14 22:14:32 2007
New Revision: 793
Log:
add comments for the arithmetic coder
Modified:
dirac/libavcodec/dirac_arith.c
Modified: dirac/libavcodec/dirac_arith.c
==============================================================================
--- dirac/libavcodec/dirac_arith.c (original)
+++ dirac/libavcodec/dirac_arith.c Tue Aug 14 22:14:32 2007
@@ -156,6 +156,13 @@ int dirac_arith_get_bit (dirac_arith_sta
return ret;
}
+/**
+ * Write a single bit using the arithmetic coder
+ *
+ * @param arith state of arithmetic coder
+ * @param bit the bit to write
+ * @param context the context of the bit to write
+ */
void dirac_arith_put_bit(dirac_arith_state_t arith, int bit, int context) {
PutBitContext *pb = arith->pb;
unsigned int prob_zero = arith->contexts[context];
@@ -245,6 +252,10 @@ void dirac_arith_flush(dirac_arith_state
arith->bits_left = 0;
}
+
+/**
+ * Flush the arithmetic coder.
+ */
void dirac_arith_coder_flush(dirac_arith_state_t arith) {
int i;
int rem;
More information about the FFmpeg-soc
mailing list