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.

29 lines
595 B

  1. /*
  2. * decout.c
  3. *
  4. * Decoder outputting
  5. */
  6. #include "decoder.h"
  7. #include <memory.h>
  8. #pragma intrinsic(memcpy)
  9. void copy_data_to_output(t_decoder_context *context, long amount, const byte *data)
  10. {
  11. memcpy(
  12. context->dec_output_buffer,
  13. data,
  14. amount
  15. );
  16. /* perform jump translation */
  17. if ((context->dec_current_file_size != 0) && (context->dec_num_cfdata_frames < E8_CFDATA_FRAME_THRESHOLD))
  18. {
  19. decoder_translate_e8(
  20. context,
  21. context->dec_output_buffer,
  22. amount
  23. );
  24. }
  25. }