#include "config.h"
#include <inttypes.h>

#include "mpeg2.h"          // for mpeg2_decoder_t, mpeg2_fbuf_t, et c
#include "attributes.h"     // for ATTR_ALIGN()
#include "mpeg2_internal.h"

#include "helper.h"

extern uint16_t ff_inv_zigzag_direct16[64];

void copy_quant_matrix(mpeg2dec_t *dec, uint16_t *dest)
{
  int i;
  for(i=0; i< 64; i++)
    dest[ff_inv_zigzag_direct16[i]-1] = dec->quantizer_matrix[0][i];
}

