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
29 lines
595 B
/*
|
|
* decout.c
|
|
*
|
|
* Decoder outputting
|
|
*/
|
|
|
|
#include "decoder.h"
|
|
|
|
#include <memory.h>
|
|
#pragma intrinsic(memcpy)
|
|
|
|
void copy_data_to_output(t_decoder_context *context, long amount, const byte *data)
|
|
{
|
|
memcpy(
|
|
context->dec_output_buffer,
|
|
data,
|
|
amount
|
|
);
|
|
|
|
/* perform jump translation */
|
|
if ((context->dec_current_file_size != 0) && (context->dec_num_cfdata_frames < E8_CFDATA_FRAME_THRESHOLD))
|
|
{
|
|
decoder_translate_e8(
|
|
context,
|
|
context->dec_output_buffer,
|
|
amount
|
|
);
|
|
}
|
|
}
|