FFmpeg
Functions | Variables
mqc.c File Reference

MQ-coder common (decoder/encoder) functions. More...

#include <string.h>
#include <stdint.h>
#include "mqc.h"

Go to the source code of this file.

Functions

void ff_mqc_init_contexts (MqcState *mqc)
 MQ-coder context initialisations. More...
 

Variables

const uint16_t ff_mqc_qe [2 *47]
 
const uint8_t ff_mqc_nlps [2 *47]
 
const uint8_t ff_mqc_nmps [2 *47]
 

Detailed Description

MQ-coder common (decoder/encoder) functions.

Author
Kamil Nowosad

Definition in file mqc.c.

Function Documentation

◆ ff_mqc_init_contexts()

void ff_mqc_init_contexts ( MqcState mqc)

MQ-coder context initialisations.

Parameters
mqcMQ-coder context

Definition at line 64 of file mqc.c.

Referenced by decode_cblk(), ff_mqc_initdec(), and ff_mqc_initenc().

Variable Documentation

◆ ff_mqc_qe

const uint16_t ff_mqc_qe[2 *47]
Initial value:
= {
0x5601, 0x5601, 0x3401, 0x3401, 0x1801, 0x1801, 0x0ac1, 0x0ac1,
0x0521, 0x0521, 0x0221, 0x0221, 0x5601, 0x5601, 0x5401, 0x5401,
0x4801, 0x4801, 0x3801, 0x3801, 0x3001, 0x3001, 0x2401, 0x2401,
0x1c01, 0x1c01, 0x1601, 0x1601, 0x5601, 0x5601, 0x5401, 0x5401,
0x5101, 0x5101, 0x4801, 0x4801, 0x3801, 0x3801, 0x3401, 0x3401,
0x3001, 0x3001, 0x2801, 0x2801, 0x2401, 0x2401, 0x2201, 0x2201,
0x1c01, 0x1c01, 0x1801, 0x1801, 0x1601, 0x1601, 0x1401, 0x1401,
0x1201, 0x1201, 0x1101, 0x1101, 0x0ac1, 0x0ac1, 0x09c1, 0x09c1,
0x08a1, 0x08a1, 0x0521, 0x0521, 0x0441, 0x0441, 0x02a1, 0x02a1,
0x0221, 0x0221, 0x0141, 0x0141, 0x0111, 0x0111, 0x0085, 0x0085,
0x0049, 0x0049, 0x0025, 0x0025, 0x0015, 0x0015, 0x0009, 0x0009,
0x0005, 0x0005, 0x0001, 0x0001, 0x5601, 0x5601
}

Definition at line 33 of file mqc.c.

Referenced by exchange(), ff_mqc_decode(), and ff_mqc_encode().

◆ ff_mqc_nlps

const uint8_t ff_mqc_nlps[2 *47]
Initial value:
= {
3, 2, 12, 13, 18, 19, 24, 25, 58, 59, 66, 67, 13, 12, 28, 29,
28, 29, 28, 29, 34, 35, 36, 37, 40, 41, 42, 43, 29, 28, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 38, 39, 40, 41, 42, 43,
44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 92, 93
}

Definition at line 47 of file mqc.c.

Referenced by exchange(), and ff_mqc_encode().

◆ ff_mqc_nmps

const uint8_t ff_mqc_nmps[2 *47]
Initial value:
= {
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 76, 77, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 58, 59, 30, 31, 32, 33,
34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 90, 91, 92, 93
}

Definition at line 55 of file mqc.c.

Referenced by exchange(), and ff_mqc_encode().