Libav
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
libavcodec
roqvideo.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2003 Mike Melanson
3
* Copyright (C) 2003 Dr. Tim Ferguson
4
*
5
* This file is part of Libav.
6
*
7
* Libav is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* Libav is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with Libav; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#ifndef AVCODEC_ROQVIDEO_H
23
#define AVCODEC_ROQVIDEO_H
24
25
#include "
libavutil/lfg.h
"
26
#include "
avcodec.h
"
27
#include "
bytestream.h
"
28
29
typedef
struct
roq_cell
{
30
unsigned
char
y
[4];
31
unsigned
char
u
,
v
;
32
}
roq_cell
;
33
34
typedef
struct
roq_qcell
{
35
int
idx
[4];
36
}
roq_qcell
;
37
38
typedef
struct
motion_vect
{
39
int
d
[2];
40
}
motion_vect
;
41
42
struct
RoqTempData;
43
44
typedef
struct
RoqContext
{
45
46
AVCodecContext
*
avctx
;
47
AVFrame
*
last_frame
;
48
AVFrame
*
current_frame
;
49
int
first_frame
;
50
51
roq_cell
cb2x2
[256];
52
roq_qcell
cb4x4
[256];
53
54
GetByteContext
gb
;
55
int
width
,
height
;
56
57
/* Encoder only data */
58
AVLFG
randctx
;
59
uint64_t
lambda
;
60
61
motion_vect
*
this_motion4
;
62
motion_vect
*
last_motion4
;
63
64
motion_vect
*
this_motion8
;
65
motion_vect
*
last_motion8
;
66
67
unsigned
int
framesSinceKeyframe
;
68
69
const
AVFrame
*
frame_to_enc
;
70
uint8_t
*
out_buf
;
71
struct
RoqTempData *
tmpData
;
72
}
RoqContext
;
73
74
#define RoQ_INFO 0x1001
75
#define RoQ_QUAD_CODEBOOK 0x1002
76
#define RoQ_QUAD_VQ 0x1011
77
#define RoQ_SOUND_MONO 0x1020
78
#define RoQ_SOUND_STEREO 0x1021
79
80
#define RoQ_ID_MOT 0x00
81
#define RoQ_ID_FCC 0x01
82
#define RoQ_ID_SLD 0x02
83
#define RoQ_ID_CCC 0x03
84
85
void
ff_apply_vector_2x2
(
RoqContext
*ri,
int
x,
int
y,
roq_cell
*
cell
);
86
void
ff_apply_vector_4x4
(
RoqContext
*ri,
int
x,
int
y,
roq_cell
*
cell
);
87
88
void
ff_apply_motion_4x4
(
RoqContext
*ri,
int
x,
int
y,
int
deltax,
int
deltay);
89
90
void
ff_apply_motion_8x8
(
RoqContext
*ri,
int
x,
int
y,
int
deltax,
int
deltay);
91
92
#endif
/* AVCODEC_ROQVIDEO_H */
AVLFG
Definition:
lfg.h:25
GetByteContext
Definition:
bytestream.h:32
motion_vect::d
int d[2]
Definition:
roqvideo.h:39
AVFrame
This structure describes decoded (raw) audio or video data.
Definition:
frame.h:135
RoqContext::this_motion4
motion_vect * this_motion4
Definition:
roqvideo.h:61
RoqContext::frame_to_enc
const AVFrame * frame_to_enc
Definition:
roqvideo.h:69
motion_vect
Definition:
roqvideo.h:38
roq_cell
Definition:
roqvideo.h:29
RoqContext
Definition:
roqvideo.h:44
ff_apply_vector_2x2
void ff_apply_vector_2x2(RoqContext *ri, int x, int y, roq_cell *cell)
Definition:
roqvideo.c:41
RoqContext::this_motion8
motion_vect * this_motion8
Definition:
roqvideo.h:64
RoqContext::current_frame
AVFrame * current_frame
Definition:
roqvideo.h:48
RoqContext::last_motion4
motion_vect * last_motion4
Definition:
roqvideo.h:62
RoqContext::width
int width
Definition:
roqvideo.h:55
RoqContext::randctx
AVLFG randctx
Definition:
roqvideo.h:58
uint8_t
uint8_t
Definition:
audio_convert.c:194
RoqContext::framesSinceKeyframe
unsigned int framesSinceKeyframe
Definition:
roqvideo.h:67
roq_qcell
Definition:
roqvideo.h:34
ff_apply_vector_4x4
void ff_apply_vector_4x4(RoqContext *ri, int x, int y, roq_cell *cell)
Definition:
roqvideo.c:71
RoqContext::cb4x4
roq_qcell cb4x4[256]
Definition:
roqvideo.h:52
roq_cell::u
unsigned char u
Definition:
roqvideo.h:31
bytestream.h
ff_apply_motion_4x4
void ff_apply_motion_4x4(RoqContext *ri, int x, int y, int deltax, int deltay)
Definition:
roqvideo.c:133
cell
In the ELBG jargon, a cell is the set of points that are closest to a codebook entry.
Definition:
elbg.c:38
RoqContext::tmpData
struct RoqTempData * tmpData
Definition:
roqvideo.h:71
lfg.h
roq_qcell::idx
int idx[4]
Definition:
roqvideo.h:35
RoqContext::first_frame
int first_frame
Definition:
roqvideo.h:49
avcodec.h
Libavcodec external API header.
AVCodecContext
main external API structure.
Definition:
avcodec.h:1050
RoqContext::gb
GetByteContext gb
Definition:
roqvideo.h:54
roq_cell::y
unsigned char y[4]
Definition:
roqvideo.h:30
RoqContext::lambda
uint64_t lambda
Definition:
roqvideo.h:59
RoqContext::avctx
AVCodecContext * avctx
Definition:
roqvideo.h:46
RoqContext::out_buf
uint8_t * out_buf
Definition:
roqvideo.h:70
ff_apply_motion_8x8
void ff_apply_motion_8x8(RoqContext *ri, int x, int y, int deltax, int deltay)
Definition:
roqvideo.c:139
RoqContext::last_motion8
motion_vect * last_motion8
Definition:
roqvideo.h:65
RoqContext::cb2x2
roq_cell cb2x2[256]
Definition:
roqvideo.h:51
RoqContext::last_frame
AVFrame * last_frame
Definition:
roqvideo.h:47
roq_cell::v
unsigned char v
Definition:
roqvideo.h:31
RoqContext::height
int height
Definition:
roqvideo.h:55
Generated on Sun Sep 1 2019 16:56:22 for Libav by
1.8.8