@desklink/host 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/NOTICE +26 -0
  2. package/README.md +134 -56
  3. package/bin/desklink-host.mjs +13 -5
  4. package/dist/bridge.d.ts +1 -0
  5. package/dist/bridge.d.ts.map +1 -1
  6. package/dist/bridge.js +12 -4
  7. package/dist/bridge.js.map +1 -1
  8. package/dist/engineProcess.d.ts +6 -1
  9. package/dist/engineProcess.d.ts.map +1 -1
  10. package/dist/engineProcess.js +35 -4
  11. package/dist/engineProcess.js.map +1 -1
  12. package/dist/protocol.d.ts +58 -0
  13. package/dist/protocol.d.ts.map +1 -1
  14. package/dist/protocol.js.map +1 -1
  15. package/dist/resolveEngine.d.ts +7 -1
  16. package/dist/resolveEngine.d.ts.map +1 -1
  17. package/dist/resolveEngine.js +66 -14
  18. package/dist/resolveEngine.js.map +1 -1
  19. package/docs/BOUNDARY.md +15 -7
  20. package/docs/PROTOCOL.md +267 -27
  21. package/engine/Cargo.lock +47 -2
  22. package/engine/Cargo.toml +18 -13
  23. package/engine/build.rs +86 -4
  24. package/engine/native/agent_overlay_mac.m +51 -4
  25. package/engine/native/agent_overlay_wayland.c +145 -12
  26. package/engine/native/agent_overlay_x11.c +72 -0
  27. package/engine/native/nvenc_shim.c +453 -0
  28. package/engine/native/vaapi_shim.c +727 -0
  29. package/engine/native/vpx_shim.c +54 -4
  30. package/engine/native/vt_shim.c +448 -0
  31. package/engine/src/capture.rs +167 -58
  32. package/engine/src/capture_mac.rs +24 -14
  33. package/engine/src/capture_win.rs +23 -0
  34. package/engine/src/clipboard_win.rs +8 -0
  35. package/engine/src/convert.rs +286 -61
  36. package/engine/src/cursor.rs +118 -0
  37. package/engine/src/encoder.rs +122 -13
  38. package/engine/src/h264.rs +188 -0
  39. package/engine/src/h264_nvenc.rs +308 -0
  40. package/engine/src/h264_openh264.rs +735 -0
  41. package/engine/src/h264_vaapi.rs +263 -0
  42. package/engine/src/h264_vt.rs +368 -0
  43. package/engine/src/indicator.rs +104 -3
  44. package/engine/src/input_win.rs +91 -0
  45. package/engine/src/keymap_win.rs +39 -0
  46. package/engine/src/mac.rs +34 -9
  47. package/engine/src/main.rs +186 -26
  48. package/engine/src/peer.rs +466 -28
  49. package/engine/src/portal.rs +42 -4
  50. package/engine/src/portal_win.rs +37 -0
  51. package/engine/src/protocol.rs +64 -2
  52. package/engine/src/session.rs +1252 -105
  53. package/engine/src/win.rs +110 -0
  54. package/engine/src/x11.rs +225 -9
  55. package/engine/src/x11_mac.rs +12 -0
  56. package/engine/vendor/libva/COPYING +19 -0
  57. package/engine/vendor/libva/va/va.h +5450 -0
  58. package/engine/vendor/libva/va/va_dec_av1.h +695 -0
  59. package/engine/vendor/libva/va/va_dec_hevc.h +616 -0
  60. package/engine/vendor/libva/va/va_dec_jpeg.h +157 -0
  61. package/engine/vendor/libva/va/va_dec_vp8.h +249 -0
  62. package/engine/vendor/libva/va/va_dec_vp9.h +312 -0
  63. package/engine/vendor/libva/va/va_dec_vvc.h +688 -0
  64. package/engine/vendor/libva/va/va_drm.h +61 -0
  65. package/engine/vendor/libva/va/va_enc_av1.h +1010 -0
  66. package/engine/vendor/libva/va/va_enc_h264.h +659 -0
  67. package/engine/vendor/libva/va/va_enc_hevc.h +958 -0
  68. package/engine/vendor/libva/va/va_enc_jpeg.h +162 -0
  69. package/engine/vendor/libva/va/va_enc_mpeg2.h +308 -0
  70. package/engine/vendor/libva/va/va_enc_vp8.h +350 -0
  71. package/engine/vendor/libva/va/va_enc_vp9.h +639 -0
  72. package/engine/vendor/libva/va/va_fei.h +170 -0
  73. package/engine/vendor/libva/va/va_fei_h264.h +505 -0
  74. package/engine/vendor/libva/va/va_fei_hevc.h +254 -0
  75. package/engine/vendor/libva/va/va_prot.h +525 -0
  76. package/engine/vendor/libva/va/va_version.h +87 -0
  77. package/engine/vendor/libva/va/va_vpp.h +1590 -0
  78. package/engine/vendor/nv-codec-headers/LICENSE +24 -0
  79. package/engine/vendor/nv-codec-headers/README +7 -0
  80. package/engine/vendor/nv-codec-headers/include/ffnvcodec/nvEncodeAPI.h +3825 -0
  81. package/examples/reference-client.html +1 -1
  82. package/package.json +4 -3
@@ -0,0 +1,162 @@
1
+ /*
2
+ * Copyright (c) 2007-2013 Intel Corporation. All Rights Reserved.
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a
5
+ * copy of this software and associated documentation files (the
6
+ * "Software"), to deal in the Software without restriction, including
7
+ * without limitation the rights to use, copy, modify, merge, publish,
8
+ * distribute, sub license, and/or sell copies of the Software, and to
9
+ * permit persons to whom the Software is furnished to do so, subject to
10
+ * the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice (including the
13
+ * next paragraph) shall be included in all copies or substantial portions
14
+ * of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
19
+ * IN NO EVENT SHALL INTEL AND/OR ITS SUPPLIERS BE LIABLE FOR
20
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ */
24
+
25
+ /**
26
+ * \file va_enc_jpeg.h
27
+ * \brief JPEG encoding API
28
+ *
29
+ * This file contains the \ref api_enc_jpeg "JPEG encoding API".
30
+ */
31
+
32
+ #ifndef VA_ENC_JPEG_H
33
+ #define VA_ENC_JPEG_H
34
+
35
+ #ifdef __cplusplus
36
+ extern "C" {
37
+ #endif
38
+
39
+ /**
40
+ * \defgroup api_enc_jpeg JPEG encoding API
41
+ *
42
+ * @{
43
+ */
44
+
45
+ /**
46
+ * \brief JPEG Encoding Picture Parameter Buffer Structure
47
+ *
48
+ * This structure conveys picture level parameters.
49
+ *
50
+ */
51
+ typedef struct _VAEncPictureParameterBufferJPEG {
52
+ /** \brief holds reconstructed picture. */
53
+ VASurfaceID reconstructed_picture;
54
+ /** \brief picture width. */
55
+ uint16_t picture_width;
56
+ /** \brief picture height. */
57
+ uint16_t picture_height;
58
+ /** \brief holds coded data. */
59
+ VABufferID coded_buf;
60
+
61
+ /**
62
+ * \brief pic_flags
63
+ *
64
+ */
65
+ union {
66
+ struct {
67
+ /**
68
+ * \brief profile:
69
+ * 0 - Baseline, 1 - Extended, 2 - Lossless, 3 - Hierarchical
70
+ */
71
+ uint32_t profile : 2;
72
+ /**
73
+ * \brief progressive:
74
+ * 0 - sequential, 1 - extended, 2 - progressive
75
+ */
76
+ uint32_t progressive : 1;
77
+ /**
78
+ * \brief huffman:
79
+ * 0 - arithmetic, 1 - huffman
80
+ */
81
+ uint32_t huffman : 1;
82
+ /**
83
+ * \brief interleaved:
84
+ * 0 - non interleaved, 1 - interleaved
85
+ */
86
+ uint32_t interleaved : 1;
87
+ /**
88
+ * \brief differential:
89
+ * 0 - non differential, 1 - differential
90
+ */
91
+ uint32_t differential : 1;
92
+ } bits;
93
+ uint32_t value;
94
+ } pic_flags;
95
+
96
+ /** \brief number of bits per sample. */
97
+ uint8_t sample_bit_depth;
98
+ /** \brief total number of scans in image. */
99
+ uint8_t num_scan;
100
+ /** \brief number of image components in frame. */
101
+ uint16_t num_components;
102
+ /** \brief Component identifier (Ci). */
103
+ uint8_t component_id[4];
104
+ /** \brief Quantization table selector (Tqi). */
105
+ uint8_t quantiser_table_selector[4];
106
+ /** \brief number from 1 to 100 that specifies quality of image. */
107
+ uint8_t quality;
108
+
109
+ /** \brief Reserved bytes for future use, must be zero */
110
+ uint32_t va_reserved[VA_PADDING_LOW];
111
+ } VAEncPictureParameterBufferJPEG;
112
+
113
+
114
+ /**
115
+ * \brief Slice parameter for JPEG encoding.
116
+ *
117
+ * This structure conveys slice (scan) level parameters.
118
+ *
119
+ */
120
+ typedef struct _VAEncSliceParameterBufferJPEG {
121
+ /** \brief Restart interval definition (Ri). */
122
+ uint16_t restart_interval;
123
+ /** \brief number of image components in a scan. */
124
+ uint16_t num_components;
125
+ struct {
126
+ /** \brief Scan component selector (Csj). */
127
+ uint8_t component_selector;
128
+ /** \brief DC entropy coding table selector (Tdj). */
129
+ uint8_t dc_table_selector;
130
+ /** \brief AC entropy coding table selector (Taj). */
131
+ uint8_t ac_table_selector;
132
+ } components[4];
133
+
134
+ /** \brief Reserved bytes for future use, must be zero */
135
+ uint32_t va_reserved[VA_PADDING_LOW];
136
+ } VAEncSliceParameterBufferJPEG;
137
+
138
+ /**
139
+ * \brief Quantization table for JPEG encoding.
140
+ *
141
+ */
142
+ typedef struct _VAQMatrixBufferJPEG {
143
+ /** \brief load luma quantization table. */
144
+ int32_t load_lum_quantiser_matrix;
145
+ /** \brief load chroma quantization table. */
146
+ int32_t load_chroma_quantiser_matrix;
147
+ /** \brief luma quantization table. */
148
+ uint8_t lum_quantiser_matrix[64];
149
+ /** \brief chroma quantization table. */
150
+ uint8_t chroma_quantiser_matrix[64];
151
+
152
+ /** \brief Reserved bytes for future use, must be zero */
153
+ uint32_t va_reserved[VA_PADDING_LOW];
154
+ } VAQMatrixBufferJPEG;
155
+
156
+ /**@}*/
157
+
158
+ #ifdef __cplusplus
159
+ }
160
+ #endif
161
+
162
+ #endif /* VA_ENC_JPEG_H */
@@ -0,0 +1,308 @@
1
+ /*
2
+ * Copyright (c) 2012 Intel Corporation. All Rights Reserved.
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a
5
+ * copy of this software and associated documentation files (the
6
+ * "Software"), to deal in the Software without restriction, including
7
+ * without limitation the rights to use, copy, modify, merge, publish,
8
+ * distribute, sub license, and/or sell copies of the Software, and to
9
+ * permit persons to whom the Software is furnished to do so, subject to
10
+ * the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice (including the
13
+ * next paragraph) shall be included in all copies or substantial portions
14
+ * of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
19
+ * IN NO EVENT SHALL INTEL AND/OR ITS SUPPLIERS BE LIABLE FOR
20
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ */
24
+
25
+ /**
26
+ * \file va_enc_mpeg2.h
27
+ * \brief The MPEG-2 encoding API
28
+ *
29
+ * This file contains the \ref api_enc_mpeg2 "MPEG-2 encoding API".
30
+ */
31
+
32
+ #ifndef _VA_ENC_MPEG2_H_
33
+ #define _VA_ENC_MPEG2_H_
34
+
35
+ #ifdef __cplusplus
36
+ extern "C" {
37
+ #endif
38
+
39
+ /**
40
+ * \defgroup api_enc_mpeg2 MPEG-2 encoding API
41
+ *
42
+ * @{
43
+ */
44
+
45
+ /**
46
+ * \brief MPEG-2 Quantization Matrix Buffer
47
+ *
48
+ */
49
+ typedef VAIQMatrixBufferMPEG2 VAQMatrixBufferMPEG2;
50
+
51
+ /**
52
+ * \brief Packed header types specific to MPEG-2 encoding.
53
+ *
54
+ * Types of packed headers generally used for MPEG-2 encoding.
55
+ */
56
+ typedef enum {
57
+ /**
58
+ * \brief Packed Sequence Parameter Set (SPS).
59
+ *
60
+ */
61
+ VAEncPackedHeaderMPEG2_SPS = VAEncPackedHeaderSequence,
62
+ /**
63
+ * \brief Packed Picture Parameter Set (PPS).
64
+ *
65
+ */
66
+ VAEncPackedHeaderMPEG2_PPS = VAEncPackedHeaderPicture,
67
+ /**
68
+ * \brief Packed slice header.
69
+ *
70
+ */
71
+ VAEncPackedHeaderMPEG2_Slice = VAEncPackedHeaderSlice,
72
+ } VAEncPackedHeaderTypeMPEG2;
73
+
74
+ /**
75
+ * \brief Sequence parameter for MPEG-2 encoding
76
+ *
77
+ * This structure holds information for \c sequence_header() and
78
+ * sequence_extension().
79
+ *
80
+ * If packed sequence headers mode is used, i.e. if the encoding
81
+ * pipeline was configured with the #VA_ENC_PACKED_HEADER_SEQUENCE
82
+ * flag, then the driver expects two more buffers to be provided to
83
+ * the same \c vaRenderPicture() as this buffer:
84
+ * - a #VAEncPackedHeaderParameterBuffer with type set to
85
+ * VAEncPackedHeaderType::VAEncPackedHeaderSequence ;
86
+ * - a #VAEncPackedHeaderDataBuffer which holds the actual packed
87
+ * header data.
88
+ *
89
+ */
90
+ typedef struct _VAEncSequenceParameterBufferMPEG2 {
91
+ /** \brief Period between I frames. */
92
+ uint32_t intra_period;
93
+ /** \brief Period between I/P frames. */
94
+ uint32_t ip_period;
95
+ /** \brief Picture width.
96
+ *
97
+ * A 14bits unsigned inter, the lower 12bits
98
+ * is horizontal_size_value, and the upper
99
+ * 2bits is \c horizontal_size_extension
100
+ *
101
+ */
102
+ uint16_t picture_width;
103
+ /** \brief Picture height.
104
+ *
105
+ * A 14bits unsigned inter, the lower 12bits
106
+ * is vertical_size_value, and the upper 2bits is
107
+ * vertical_size_size_extension
108
+ *
109
+ */
110
+ uint16_t picture_height;
111
+ /**
112
+ * \brief Initial bitrate set for this sequence in CBR or VBR modes.
113
+ *
114
+ * This field represents the initial bitrate value for this
115
+ * sequence if CBR or VBR mode is used, i.e. if the encoder
116
+ * pipeline was created with a #VAConfigAttribRateControl
117
+ * attribute set to either \ref VA_RC_CBR or \ref VA_RC_VBR.
118
+ *
119
+ * bits_per_second may be derived from bit_rate.
120
+ *
121
+ */
122
+ uint32_t bits_per_second;
123
+ /**
124
+ * \brief Frame rate
125
+ *
126
+ * Derived from frame_rate_value, frame_rate_extension_n and
127
+ * frame_rate_extension_d
128
+ *
129
+ */
130
+ float frame_rate;
131
+ /** \brief Same as the element in sequence_header() */
132
+ uint16_t aspect_ratio_information;
133
+ /** \brief Define the size of VBV */
134
+ uint32_t vbv_buffer_size;
135
+
136
+ union {
137
+ struct {
138
+ /** \brief Same as the element in Sequence extension() */
139
+ uint32_t profile_and_level_indication : 8;
140
+ /** \brief Same as the element in Sequence extension() */
141
+ uint32_t progressive_sequence : 1;
142
+ /** \brief Same as the element in Sequence extension() */
143
+ uint32_t chroma_format : 2;
144
+ /** \brief Same as the element in Sequence extension() */
145
+ uint32_t low_delay : 1;
146
+ /** \brief Same as the element in Sequence extension() */
147
+ uint32_t frame_rate_extension_n : 2;
148
+ /** \brief Same as the element in Sequence extension() */
149
+ uint32_t frame_rate_extension_d : 5;
150
+ } bits;
151
+ uint32_t value;
152
+ } sequence_extension;
153
+
154
+ /** \brief Flag to indicate the following GOP header are being updated */
155
+ uint32_t new_gop_header;
156
+
157
+ union {
158
+ struct {
159
+ /** \brief Time code */
160
+ uint32_t time_code : 25;
161
+ /** \brief Same as the element in GOP header */
162
+ uint32_t closed_gop : 1;
163
+ /** \brief SAme as the element in GOP header */
164
+ uint32_t broken_link : 1;
165
+ } bits;
166
+ uint32_t value;
167
+ } gop_header;
168
+
169
+ /** \brief Reserved bytes for future use, must be zero */
170
+ uint32_t va_reserved[VA_PADDING_LOW];
171
+ } VAEncSequenceParameterBufferMPEG2;
172
+
173
+ /**
174
+ * \brief Picture parameter for MPEG-2 encoding
175
+ *
176
+ * This structure holds information for picture_header() and
177
+ * picture_coding_extension()
178
+ *
179
+ * If packed picture headers mode is used, i.e. if the encoding
180
+ * pipeline was configured with the #VA_ENC_PACKED_HEADER_PICTURE
181
+ * flag, then the driver expects two more buffers to be provided to
182
+ * the same \c vaRenderPicture() as this buffer:
183
+ * - a #VAEncPackedHeaderParameterBuffer with type set to
184
+ * VAEncPackedHeaderType::VAEncPackedHeaderPicture ;
185
+ * - a #VAEncPackedHeaderDataBuffer which holds the actual packed
186
+ * header data.
187
+ *
188
+ */
189
+ typedef struct _VAEncPictureParameterBufferMPEG2 {
190
+ /** \brief Forward reference picture */
191
+ VASurfaceID forward_reference_picture;
192
+ /** \brief Backward reference picture */
193
+ VASurfaceID backward_reference_picture;
194
+ /** \brief Reconstructed(decoded) picture */
195
+ VASurfaceID reconstructed_picture;
196
+ /**
197
+ * \brief Output encoded bitstream.
198
+ *
199
+ * \ref coded_buf has type #VAEncCodedBufferType. It should be
200
+ * large enough to hold the compressed NAL slice and possibly SPS
201
+ * and PPS NAL units.
202
+ */
203
+ VABufferID coded_buf;
204
+ /**
205
+ * \brief Flag to indicate the picture is the last one or not.
206
+ *
207
+ * This fields holds 0 if the picture to be encoded is not
208
+ * the last one in the stream. Otherwise, it
209
+ * is \ref MPEG2_LAST_PICTURE_EOSTREAM.
210
+ */
211
+ uint8_t last_picture;
212
+ /** \brief Picture type */
213
+ VAEncPictureType picture_type;
214
+ /** \brief Same as the element in picture_header() */
215
+ uint32_t temporal_reference;
216
+ /** \brief Same as the element in picture_header() */
217
+ uint32_t vbv_delay;
218
+ /** \brief Same as the element in Picture coding extension */
219
+ uint8_t f_code[2][2];
220
+ union {
221
+ struct {
222
+ /** \brief Same as the element in Picture coding extension */
223
+ uint32_t intra_dc_precision : 2;
224
+ /** \brief Same as the element in Picture coding extension */
225
+ uint32_t picture_structure : 2;
226
+ /** \brief Same as the element in Picture coding extension */
227
+ uint32_t top_field_first : 1;
228
+ /** \brief Same as the element in Picture coding extension */
229
+ uint32_t frame_pred_frame_dct : 1;
230
+ /** \brief Same as the element in Picture coding extension */
231
+ uint32_t concealment_motion_vectors : 1;
232
+ /** \brief Same as the element in Picture coding extension */
233
+ uint32_t q_scale_type : 1;
234
+ /** \brief Same as the element in Picture coding extension */
235
+ uint32_t intra_vlc_format : 1;
236
+ /** \brief Same as the element in Picture coding extension */
237
+ uint32_t alternate_scan : 1;
238
+ /** \brief Same as the element in Picture coding extension */
239
+ uint32_t repeat_first_field : 1;
240
+ /** \brief Same as the element in Picture coding extension */
241
+ uint32_t progressive_frame : 1;
242
+ /** \brief Same as the element in Picture coding extension */
243
+ uint32_t composite_display_flag : 1;
244
+ } bits;
245
+ uint32_t value;
246
+ } picture_coding_extension;
247
+
248
+ /* \brief Parameters for composite display
249
+ *
250
+ * Valid only when omposite_display_flag is 1
251
+ */
252
+ union {
253
+ struct {
254
+ /** \brief Same as the element in Picture coding extension */
255
+ uint32_t v_axis : 1;
256
+ /** \brief Same as the element in Picture coding extension */
257
+ uint32_t field_sequence : 3;
258
+ /** \brief Same as the element in Picture coding extension */
259
+ uint32_t sub_carrier : 1;
260
+ /** \brief Same as the element in Picture coding extension */
261
+ uint32_t burst_amplitude : 7;
262
+ /** \brief Same as the element in Picture coding extension */
263
+ uint32_t sub_carrier_phase : 8;
264
+ } bits;
265
+ uint32_t value;
266
+ } composite_display;
267
+
268
+ /** \brief Reserved bytes for future use, must be zero */
269
+ uint32_t va_reserved[VA_PADDING_LOW];
270
+ } VAEncPictureParameterBufferMPEG2;
271
+
272
+ /**
273
+ * \brief Slice parameter for MPEG-2 encoding
274
+ *
275
+ */
276
+ typedef struct _VAEncSliceParameterBufferMPEG2 {
277
+ /** \brief Starting MB address for this slice. */
278
+ uint32_t macroblock_address;
279
+ /** \brief Number of macroblocks in this slice. */
280
+ uint32_t num_macroblocks;
281
+ /** \brief Same as the element in slice() */
282
+ int32_t quantiser_scale_code;
283
+ /** \brief Flag to indicate intra slice */
284
+ int32_t is_intra_slice;
285
+
286
+ /** \brief Reserved bytes for future use, must be zero */
287
+ uint32_t va_reserved[VA_PADDING_LOW];
288
+ } VAEncSliceParameterBufferMPEG2;
289
+
290
+ typedef struct _VAEncMiscParameterExtensionDataSeqDisplayMPEG2 {
291
+ /** should always be 0x02 to identify it is Sequence Display Extension ISO-13818 */
292
+ uint8_t extension_start_code_identifier;
293
+ /** these field should follow ISO-13818 6.3.6 */
294
+ uint8_t video_format;
295
+ uint8_t colour_description;
296
+ uint8_t colour_primaries;
297
+ uint8_t transfer_characteristics;
298
+ uint8_t matrix_coefficients;
299
+ uint16_t display_horizontal_size;
300
+ uint16_t display_vertical_size;
301
+ } VAEncMiscParameterExtensionDataSeqDisplayMPEG2;
302
+ /**@}*/
303
+
304
+ #ifdef __cplusplus
305
+ }
306
+ #endif
307
+
308
+ #endif /* _VA_ENC_MPEG2_H_ */