pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] Patch for RL filter and more


From: jemarch
Subject: Re: [pdf-devel] Patch for RL filter and more
Date: Fri, 26 Sep 2008 22:13:57 +0200
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Hi Gerel.

   I finally got the RL filter working. It's not easy to deal with
   state. :-/

Thanks.

   On the filter itself, I concluded that the minimum cache needed for
   the encoder is of 5 bytes (for writting).

It is ok. 

   Here I send the patch for the filter, a test, the memcpy()
   replacements and some other minor fixes.

Some comments follow.

   address@hidden pdf_stm_f_rl
   address@hidden pdf_stm_f_rl
   +
   address@hidden Test pdf_stm_f_rl_001
   +Create a memory-based writing and reading stream and attach
   +a RunLength filter decoder and encoder to each one.
   address@hidden @strong
   address@hidden Success condition
   +The decoded data should be correct.
   address@hidden table
   address@hidden deffn

Please write the tests for the filters as use cases in
torture/unit/base/stm/pdf-stm-read.c (for decoders) and in
torture/unit/base/stm/pdf-stm-write.c (for encoders): we are
implementing unit tests for the public functions.

   +          if (encode_rl_char (st, out) < 0)
   +              return PDF_OK;

Please use curled braces in the 'then' body of an 'if' even if it is
composed only by just one statement.

Also, can you please split your patch? Filter implementation, unit
tests and memcpy.

You know, my brain is too limited to process such a big chunk of
information :PPPP





reply via email to

[Prev in Thread] Current Thread [Next in Thread]