Source code of Windows XP (NT5)
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.

30 lines
581 B

  1. /*
  2. * decout.c
  3. *
  4. * Decoder outputting
  5. */
  6. #include "decoder.h"
  7. void copy_data_to_output(t_decoder_context *context, long amount, const byte *data)
  8. {
  9. if (context->dec_output_buffer == NULL)
  10. return;
  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. }