pdf-devel
[Top][All Lists]
Advanced

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

Re: [pdf-devel] DCT implemenet


From: jemarch
Subject: Re: [pdf-devel] DCT implemenet
Date: Sun, 07 Dec 2008 19:29:17 +0100
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)

    > I'm writing DCT filter.I've some issues to discuss with you.
    > 
    > 1. For the base layer, should the input and output  be file or memory? Or
    > both?
    > 
    > 2. How to get the parameters for encode, e.g. the image size? If in the 
hash
    > table filter_params, should I add the key name of the parameters in
    > pdf-stm.h?
    > 

   Hi Yank, for both questions I recommend you to read some already implemented
   filter like, pdf-f-ahex. I'll give you some hints anyways.
   The input and output are two buffers, whether on disk or memory should not 
be of
   your concern.
   You can read more here:
   http://gnupdf.org/Lib:Architecture/Base_Layer/Stream_Module#Buffers

   Regarding the parameters you only ask for the key, as it's supposed to be 
already
   added prior the filter's call.

You can see an example on the use of pdf_hash_t to hold the filter's
parameters in the JBIG2 decoder (src/base/pdf-stm-f-jbig2.[ch]).







reply via email to

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