sdcparam.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
  2. This file is part of AFPL Ghostscript.
  3. AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
  4. distributor accepts any responsibility for the consequences of using it, or
  5. for whether it serves any particular purpose or works at all, unless he or
  6. she says so in writing. Refer to the Aladdin Free Public License (the
  7. "License") for full details.
  8. Every copy of AFPL Ghostscript must include a copy of the License, normally
  9. in a plain ASCII text file named PUBLIC. The License grants you the right
  10. to copy, modify and redistribute AFPL Ghostscript, but only under certain
  11. conditions described in the License. Among other things, the License
  12. requires that the copyright notice and this notice be preserved on all
  13. copies.
  14. */
  15. /*$Id: sdcparam.h,v 1.2 2000/09/19 19:00:49 lpd Exp $ */
  16. /* DCT filter parameter setting and reading interface */
  17. #ifndef sdcparam_INCLUDED
  18. # define sdcparam_INCLUDED
  19. /*
  20. * All of these procedures are defined in sdcparam.c and are only for
  21. * internal use (by sddparam.c and sdeparam.c), so they are not
  22. * documented here.
  23. */
  24. int s_DCT_get_params(P3(gs_param_list * plist, const stream_DCT_state * ss,
  25. const stream_DCT_state * defaults));
  26. int s_DCT_get_quantization_tables(P4(gs_param_list * plist,
  27. const stream_DCT_state * pdct,
  28. const stream_DCT_state * defaults,
  29. bool is_encode));
  30. int s_DCT_get_huffman_tables(P4(gs_param_list * plist,
  31. const stream_DCT_state * pdct,
  32. const stream_DCT_state * defaults,
  33. bool is_encode));
  34. int s_DCT_byte_params(P5(gs_param_list * plist, gs_param_name key, int start,
  35. int count, UINT8 * pvals));
  36. int s_DCT_put_params(P2(gs_param_list * plist, stream_DCT_state * pdct));
  37. int s_DCT_put_quantization_tables(P3(gs_param_list * plist,
  38. stream_DCT_state * pdct,
  39. bool is_encode));
  40. int s_DCT_put_huffman_tables(P3(gs_param_list * plist, stream_DCT_state * pdct,
  41. bool is_encode));
  42. #endif /* sdcparam_INCLUDED */