FFmpeg
libavcodec
scpr3.h
Go to the documentation of this file.
1
/*
2
* ScreenPressor version 3 decoder
3
*
4
* Copyright (c) 2017 Paul B Mahol
5
*
6
* This file is part of FFmpeg.
7
*
8
* FFmpeg is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
12
*
13
* FFmpeg is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with FFmpeg; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*/
22
23
#ifndef AVCODEC_SCPR3_H
24
#define AVCODEC_SCPR3_H
25
26
#include <stdio.h>
27
#include <stdlib.h>
28
#include <string.h>
29
30
#include "
avcodec.h
"
31
#include "
internal.h
"
32
33
typedef
struct
PixelModel3
{
34
uint8_t
type
;
35
uint8_t
length
;
36
uint8_t
maxpos
;
37
uint8_t
fshift
;
38
uint16_t
size
;
39
uint32_t
cntsum
;
40
uint8_t
symbols
[256];
41
uint16_t
freqs
[256];
42
uint16_t
freqs1
[256];
43
uint16_t
cnts
[256];
44
uint8_t
dectab
[32];
45
}
PixelModel3
;
46
47
typedef
struct
FillModel3
{
48
uint32_t
cntsum
;
49
uint16_t
freqs
[2][5];
50
uint16_t
cnts
[5];
51
uint8_t
dectab
[32];
52
}
FillModel3
;
53
54
typedef
struct
OpModel3
{
55
uint32_t
cntsum
;
56
uint16_t
freqs
[2][6];
57
uint16_t
cnts
[6];
58
uint8_t
dectab
[32];
59
}
OpModel3
;
60
61
typedef
struct
RunModel3
{
62
uint32_t
cntsum
;
63
uint16_t
freqs
[2][256];
64
uint16_t
cnts
[256];
65
uint8_t
dectab
[32];
66
}
RunModel3
;
67
68
typedef
struct
SxyModel3
{
69
uint32_t
cntsum
;
70
uint16_t
freqs
[2][16];
71
uint16_t
cnts
[16];
72
uint8_t
dectab
[32];
73
}
SxyModel3
;
74
75
typedef
struct
MVModel3
{
76
uint32_t
cntsum
;
77
uint16_t
freqs
[2][512];
78
uint16_t
cnts
[512];
79
uint8_t
dectab
[32];
80
}
MVModel3
;
81
82
#endif
/* AVCODEC_SCPR3_H */
SxyModel3::cnts
uint16_t cnts[16]
Definition:
scpr3.h:71
OpModel3::cnts
uint16_t cnts[6]
Definition:
scpr3.h:57
MVModel3::dectab
uint8_t dectab[32]
Definition:
scpr3.h:79
SxyModel3
Definition:
scpr3.h:68
internal.h
OpModel3::freqs
uint16_t freqs[2][6]
Definition:
scpr3.h:56
MVModel3::freqs
uint16_t freqs[2][512]
Definition:
scpr3.h:77
PixelModel3::dectab
uint8_t dectab[32]
Definition:
scpr3.h:44
PixelModel3::fshift
uint8_t fshift
Definition:
scpr3.h:37
PixelModel3::length
uint8_t length
Definition:
scpr3.h:35
PixelModel3::freqs1
uint16_t freqs1[256]
Definition:
scpr3.h:42
MVModel3::cnts
uint16_t cnts[512]
Definition:
scpr3.h:78
RunModel3::dectab
uint8_t dectab[32]
Definition:
scpr3.h:65
PixelModel3::maxpos
uint8_t maxpos
Definition:
scpr3.h:36
FillModel3::dectab
uint8_t dectab[32]
Definition:
scpr3.h:51
SxyModel3::freqs
uint16_t freqs[2][16]
Definition:
scpr3.h:70
PixelModel3::symbols
uint8_t symbols[256]
Definition:
scpr3.h:40
RunModel3::cntsum
uint32_t cntsum
Definition:
scpr3.h:62
MVModel3::cntsum
uint32_t cntsum
Definition:
scpr3.h:76
RunModel3::freqs
uint16_t freqs[2][256]
Definition:
scpr3.h:63
FillModel3
Definition:
scpr3.h:47
FillModel3::cnts
uint16_t cnts[5]
Definition:
scpr3.h:50
PixelModel3::cnts
uint16_t cnts[256]
Definition:
scpr3.h:43
FillModel3::cntsum
uint32_t cntsum
Definition:
scpr3.h:48
PixelModel3::freqs
uint16_t freqs[256]
Definition:
scpr3.h:41
FillModel3::freqs
uint16_t freqs[2][5]
Definition:
scpr3.h:49
PixelModel3::cntsum
uint32_t cntsum
Definition:
scpr3.h:39
OpModel3::cntsum
uint32_t cntsum
Definition:
scpr3.h:55
SxyModel3::cntsum
uint32_t cntsum
Definition:
scpr3.h:69
OpModel3
Definition:
scpr3.h:54
RunModel3::cnts
uint16_t cnts[256]
Definition:
scpr3.h:64
RunModel3
Definition:
scpr3.h:61
PixelModel3::size
uint16_t size
Definition:
scpr3.h:38
avcodec.h
PixelModel3::type
uint8_t type
Definition:
scpr3.h:34
PixelModel3
Definition:
scpr3.h:33
OpModel3::dectab
uint8_t dectab[32]
Definition:
scpr3.h:58
MVModel3
Definition:
scpr3.h:75
SxyModel3::dectab
uint8_t dectab[32]
Definition:
scpr3.h:72
Generated on Wed Aug 24 2022 21:37:54 for FFmpeg by
1.8.17