1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|
#ifndef vl_surface_h
#define vl_surface_h
#include <X11/Xlib.h>
#include "vl_types.h"
struct pipe_texture;
struct VL_SURFACE
{
struct VL_CONTEXT *context;
unsigned int width;
unsigned int height;
enum VL_FORMAT format;
struct pipe_texture *texture;
};
int vlCreateSurface(struct VL_CONTEXT *context, struct VL_SURFACE **surface);
int vlDestroySurface(struct VL_SURFACE *surface);
int vlRenderIMacroBlock
(
enum VL_PICTURE picture_type,
enum VL_FIELD_ORDER field_order,
unsigned int mbx,
unsigned int mby,
unsigned int coded_block_pattern,
enum VL_DCT_TYPE dct_type,
short *blocks,
struct VL_SURFACE *surface
);
int vlRenderPMacroBlock
(
enum VL_PICTURE picture_type,
enum VL_FIELD_ORDER field_order,
unsigned int mbx,
unsigned int mby,
enum VL_MC_TYPE mc_type,
struct VL_MOTION_VECTOR *motion_vector,
unsigned int coded_block_pattern,
enum VL_DCT_TYPE dct_type,
short *blocks,
struct VL_SURFACE *ref_surface,
struct VL_SURFACE *surface
);
int vlRenderBMacroBlock
(
enum VL_PICTURE picture_type,
enum VL_FIELD_ORDER field_order,
unsigned int mbx,
unsigned int mby,
enum VL_MC_TYPE mc_type,
struct VL_MOTION_VECTOR *motion_vector,
unsigned int coded_block_pattern,
enum VL_DCT_TYPE dct_type,
short *blocks,
struct VL_SURFACE *past_surface,
struct VL_SURFACE *future_surface,
struct VL_SURFACE *surface
);
int vlPutSurface
(
struct VL_SURFACE *surface,
Drawable drawable,
unsigned int srcx,
unsigned int srcy,
unsigned int srcw,
unsigned int srch,
unsigned int destx,
unsigned int desty,
unsigned int destw,
unsigned int desth,
enum VL_PICTURE picture_type
);
#endif
|