Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.1 KiB

  1. /*
  2. * decproto.h
  3. *
  4. * Decoder function prototypes
  5. */
  6. /* decblk.c */
  7. long NEAR decode_data(t_decoder_context *context, long bytes_to_decode);
  8. /* decin.c */
  9. void NEAR initialise_decoder_bitbuf(t_decoder_context *context);
  10. void NEAR init_decoder_input(t_decoder_context *context);
  11. void NEAR fillbuf(t_decoder_context *context, int n);
  12. ulong NEAR getbits(t_decoder_context *context, int n);
  13. /* decinit.c */
  14. bool NEAR allocate_decompression_memory(t_decoder_context *context);
  15. void NEAR free_decompression_memory(t_decoder_context *context);
  16. void NEAR decoder_misc_init(t_decoder_context *context);
  17. void NEAR reset_decoder_trees(t_decoder_context *context);
  18. /* decout.c */
  19. void NEAR copy_data_to_output(t_decoder_context *context, long amount, const byte *data);
  20. /* dectree.c */
  21. bool NEAR read_main_and_secondary_trees(t_decoder_context *context);
  22. bool NEAR read_aligned_offset_tree(t_decoder_context *context);
  23. /* maketbl.c */
  24. bool NEAR __cdecl make_table(
  25. t_decoder_context *context,
  26. int nchar,
  27. const byte *bitlen,
  28. byte tablebits,
  29. short *table,
  30. short *leftright
  31. );
  32. bool NEAR make_table_8bit(t_decoder_context *context, byte *bitlen, byte *table);
  33. /* decxlat.c */
  34. void NEAR init_decoder_translation(t_decoder_context *context);
  35. void NEAR decoder_translate_e8(t_decoder_context *context, byte *mem, long bytes);
  36. /* decalign.c */
  37. int NEAR decode_aligned_offset_block(t_decoder_context *context, long bufpos, int amount_to_decode);
  38. /* decverb.c */
  39. int NEAR decode_verbatim_block(t_decoder_context *context, long bufpos, int amount_to_decode);
  40. /* decuncmp.c */
  41. int NEAR decode_uncompressed_block(t_decoder_context *context, long bufpos, int amount_to_decode);
  42. bool NEAR handle_beginning_of_uncompressed_block(t_decoder_context *context);
  43. /*
  44. * 16-bit stuff:
  45. */
  46. #ifdef BIT16
  47. void NEAR DComp_Close(t_decoder_context *context);
  48. int NEAR DComp_Init(t_decoder_context *context);
  49. void NEAR DComp_Reset(t_decoder_context *context);
  50. void NEAR DComp_Save_Output_Pages(t_decoder_context *context, uint bytes_decoded);
  51. #endif