[FFmpeg-soc] [soc]: r331 - in jpeg2000: aec.h aecenc.c
k.nowosad
subversion at mplayerhq.hu
Sat Jul 7 00:58:18 CEST 2007
Author: k.nowosad
Date: Sat Jul 7 00:58:18 2007
New Revision: 331
Log:
adds one function needed by jpeg2000 to the arithmetic coder
Modified:
jpeg2000/aec.h
jpeg2000/aecenc.c
Modified: jpeg2000/aec.h
==============================================================================
--- jpeg2000/aec.h (original)
+++ jpeg2000/aec.h Sat Jul 7 00:58:18 2007
@@ -116,6 +116,11 @@ void ff_aec_initenc(AecState *aec, uint8
void ff_aec_encode(AecState *aec, int cx, int d);
/**
+ * number of encoded bytes
+ */
+int ff_aec_length(AecState *aec);
+
+/**
* flush the encoder [returns number of bytes encoded]
* */
int ff_aec_flush(AecState *aec);
Modified: jpeg2000/aecenc.c
==============================================================================
--- jpeg2000/aecenc.c (original)
+++ jpeg2000/aecenc.c Sat Jul 7 00:58:18 2007
@@ -109,6 +109,11 @@ void ff_aec_encode(AecState *aec, int cx
}
}
+int ff_aec_length(AecState *aec)
+{
+ return aec->bp - aec->bpstart;
+}
+
int ff_aec_flush(AecState *aec)
{
setbits(aec);
More information about the FFmpeg-soc
mailing list