forked from AravisProject/aravis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharvbufferprivate.h
84 lines (67 loc) · 1.98 KB
/
arvbufferprivate.h
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
82
83
84
/* Aravis - Digital camera library
*
* Copyright © 2009-2022 Emmanuel Pacaud
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* Author: Emmanuel Pacaud <[email protected]>
*/
#ifndef ARV_BUFFER_PRIVATE_H
#define ARV_BUFFER_PRIVATE_H
#include <arvbuffer.h>
#include <arvgvspprivate.h>
#include <stddef.h>
G_BEGIN_DECLS
typedef struct {
ptrdiff_t data_offset;
size_t size;
guint component_id;
ArvBufferPartDataType data_type;
ArvPixelFormat pixel_format;
guint32 width;
guint32 height;
guint32 x_offset;
guint32 y_offset;
guint32 x_padding;
guint32 y_padding;
} ArvBufferPartInfos;
typedef struct {
size_t allocated_size;
gboolean is_preallocated;
unsigned char *data;
void *user_data;
GDestroyNotify user_data_destroy_func;
ArvBufferStatus status;
size_t received_size;
ArvBufferPayloadType payload_type;
gboolean has_chunks;
guint32 chunk_endianness;
guint64 frame_id;
guint64 timestamp_ns;
guint64 system_timestamp_ns;
guint n_parts;
ArvBufferPartInfos *parts;
} ArvBufferPrivate;
struct _ArvBuffer {
GObject object;
ArvBufferPrivate *priv;
};
struct _ArvBufferClass {
GObjectClass parent_class;
};
void arv_buffer_set_n_parts (ArvBuffer* buffer, guint n_parts);
G_END_DECLS
#endif