Debian Codegraph @

gstreamer/gstreamermm/videoconvert.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_VIDEOCONVERT_H
3 #define _GSTREAMERMM_VIDEOCONVERT_H
4
5 #include <gstreamermmconfig.h>
6
7 #ifndef GSTREAMERMM_DISABLE_DEPRECATED
8
9
10 #include <glibmm/ustring.h>
11 #include <sigc++/sigc++.h>
12
13 // Generated by generate_plugin_gmmproc_file. Don't edit this file.
14
15
16 #include <gstreamermm/basetransform.h>
17
18
19 #ifndef DOXYGEN_SHOULD_SKIP_THIS
20 using GstVideoConvert = struct _GstVideoConvert;
21 using GstVideoConvertClass = struct _GstVideoConvertClass;
22 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
23
24
25 #ifndef DOXYGEN_SHOULD_SKIP_THIS
26 namespace Gst
27 { class VideoConvert_Class; } // namespace Gst
28 #endif //DOXYGEN_SHOULD_SKIP_THIS
29
30 namespace Gst
31 {
32
33 /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */
34
35 /**
36 * @var VideoDitherMethod VIDEO_DITHER_NONE
37 * No dithering.
38 *
39 * @var VideoDitherMethod VIDEO_DITHER_VERTERR
40 * Propagate rounding errors downwards.
41 *
42 * @var VideoDitherMethod VIDEO_DITHER_FLOYD_STEINBERG
43 * Dither with floyd-steinberg error diffusion.
44 *
45 * @var VideoDitherMethod VIDEO_DITHER_SIERRA_LITE
46 * Dither with Sierra Lite error diffusion.
47 *
48 * @var VideoDitherMethod VIDEO_DITHER_BAYER
49 * Ordered dither using a bayer pattern.
50 *
51 * @enum VideoDitherMethod
52 *
53 * Different dithering methods to use.
54 *
55 * @ingroup gstreamermmEnums
56 */
57 enum VideoDitherMethod
58 {
59 VIDEO_DITHER_NONE,
60 VIDEO_DITHER_VERTERR,
61 VIDEO_DITHER_FLOYD_STEINBERG,
62 VIDEO_DITHER_SIERRA_LITE,
63 VIDEO_DITHER_BAYER
64 };
65
66 } // namespace Gst
67
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
69 namespace Glib
70 {
71
72 template <>
73 class Value<Gst::VideoDitherMethod> : public Glib::Value_Enum<Gst::VideoDitherMethod>
74 {
75 public:
76 static GType value_type() G_GNUC_CONST;
77 };
78
79 } // namespace Glib
80 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
81
82 namespace Gst
83 {
84
85
86 /**
87 * @var VideoResamplerMethod VIDEO_RESAMPLER_METHOD_NEAREST
88 * Duplicates the samples when
89 * upsampling and drops when downsampling.
90 *
91 * @var VideoResamplerMethod VIDEO_RESAMPLER_METHOD_LINEAR
92 * Uses linear interpolation to reconstruct
93 * missing samples and averaging to downsample.
94 *
95 * @var VideoResamplerMethod VIDEO_RESAMPLER_METHOD_CUBIC
96 * Uses cubic interpolation.
97 *
98 * @var VideoResamplerMethod VIDEO_RESAMPLER_METHOD_SINC
99 * Uses sinc interpolation.
100 *
101 * @var VideoResamplerMethod VIDEO_RESAMPLER_METHOD_LANCZOS
102 * Uses lanczos interpolation.
103 *
104 * @enum VideoResamplerMethod
105 *
106 * Different subsampling and upsampling methods
107 *
108 * @ingroup gstreamermmEnums
109 */
110 enum VideoResamplerMethod
111 {
112 VIDEO_RESAMPLER_METHOD_NEAREST,
113 VIDEO_RESAMPLER_METHOD_LINEAR,
114 VIDEO_RESAMPLER_METHOD_CUBIC,
115 VIDEO_RESAMPLER_METHOD_SINC,
116 VIDEO_RESAMPLER_METHOD_LANCZOS
117 };
118
119 } // namespace Gst
120
121 #ifndef DOXYGEN_SHOULD_SKIP_THIS
122 namespace Glib
123 {
124
125 template <>
126 class Value<Gst::VideoResamplerMethod> : public Glib::Value_Enum<Gst::VideoResamplerMethod>
127 {
128 public:
129 static GType value_type() G_GNUC_CONST;
130 };
131
132 } // namespace Glib
133 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
134
135 namespace Gst
136 {
137
138
139 /**
140 * @var VideoAlphaMode VIDEO_ALPHA_MODE_COPY
141 * When input and output have alpha, it will be copied.
142 * When the input has no alpha, alpha will be set to
143 * Gst::VIDEO_CONVERTER_OPT_ALPHA_VALUE.
144 *
145 * @var VideoAlphaMode VIDEO_ALPHA_MODE_SET
146 * Set all alpha to
147 * Gst::VIDEO_CONVERTER_OPT_ALPHA_VALUE.
148 *
149 * @var VideoAlphaMode VIDEO_ALPHA_MODE_MULT
150 * Multiply all alpha with
151 * Gst::VIDEO_CONVERTER_OPT_ALPHA_VALUE.
152 * When the input format has no alpha but the output format has, the
153 * alpha value will be set to Gst::VIDEO_CONVERTER_OPT_ALPHA_VALUE.
154 *
155 * @enum VideoAlphaMode
156 *
157 * Different alpha modes.
158 *
159 * @ingroup gstreamermmEnums
160 */
161 enum VideoAlphaMode
162 {
163 VIDEO_ALPHA_MODE_COPY,
164 VIDEO_ALPHA_MODE_SET,
165 VIDEO_ALPHA_MODE_MULT
166 };
167
168 } // namespace Gst
169
170 #ifndef DOXYGEN_SHOULD_SKIP_THIS
171 namespace Glib
172 {
173
174 template <>
175 class Value<Gst::VideoAlphaMode> : public Glib::Value_Enum<Gst::VideoAlphaMode>
176 {
177 public:
178 static GType value_type() G_GNUC_CONST;
179 };
180
181 } // namespace Glib
182 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
183
184 namespace Gst
185 {
186
187
188 /**
189 * @var VideoChromaMode VIDEO_CHROMA_MODE_FULL
190 * Do full chroma up and down sampling.
191 *
192 * @var VideoChromaMode VIDEO_CHROMA_MODE_UPSAMPLE_ONLY
193 * Only perform chroma upsampling.
194 *
195 * @var VideoChromaMode VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY
196 * Only perform chroma downsampling.
197 *
198 * @var VideoChromaMode VIDEO_CHROMA_MODE_NONE
199 * Disable chroma resampling.
200 *
201 * @enum VideoChromaMode
202 *
203 * Different chroma downsampling and upsampling modes
204 *
205 * @ingroup gstreamermmEnums
206 */
207 enum VideoChromaMode
208 {
209 VIDEO_CHROMA_MODE_FULL,
210 VIDEO_CHROMA_MODE_UPSAMPLE_ONLY,
211 VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY,
212 VIDEO_CHROMA_MODE_NONE
213 };
214
215 } // namespace Gst
216
217 #ifndef DOXYGEN_SHOULD_SKIP_THIS
218 namespace Glib
219 {
220
221 template <>
222 class Value<Gst::VideoChromaMode> : public Glib::Value_Enum<Gst::VideoChromaMode>
223 {
224 public:
225 static GType value_type() G_GNUC_CONST;
226 };
227
228 } // namespace Glib
229 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
230
231 namespace Gst
232 {
233
234
235 /**
236 * @var VideoMatrixMode VIDEO_MATRIX_MODE_FULL
237 * Do conversion between color matrices.
238 *
239 * @var VideoMatrixMode VIDEO_MATRIX_MODE_INPUT_ONLY
240 * Use the input color matrix to convert
241 * to and from R'G'B.
242 *
243 * @var VideoMatrixMode VIDEO_MATRIX_MODE_OUTPUT_ONLY
244 * Use the output color matrix to convert
245 * to and from R'G'B.
246 *
247 * @var VideoMatrixMode VIDEO_MATRIX_MODE_NONE
248 * Disable color matrix conversion.
249 *
250 * @enum VideoMatrixMode
251 *
252 * Different color matrix conversion modes
253 *
254 * @ingroup gstreamermmEnums
255 */
256 enum VideoMatrixMode
257 {
258 VIDEO_MATRIX_MODE_FULL,
259 VIDEO_MATRIX_MODE_INPUT_ONLY,
260 VIDEO_MATRIX_MODE_OUTPUT_ONLY,
261 VIDEO_MATRIX_MODE_NONE
262 };
263
264 } // namespace Gst
265
266 #ifndef DOXYGEN_SHOULD_SKIP_THIS
267 namespace Glib
268 {
269
270 template <>
271 class Value<Gst::VideoMatrixMode> : public Glib::Value_Enum<Gst::VideoMatrixMode>
272 {
273 public:
274 static GType value_type() G_GNUC_CONST;
275 };
276
277 } // namespace Glib
278 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
279
280 namespace Gst
281 {
282
283
284 /**
285 * @var VideoGammaMode VIDEO_GAMMA_MODE_NONE
286 * Disable gamma handling.
287 *
288 * @var VideoGammaMode VIDEO_GAMMA_MODE_REMAP
289 * Convert between input and output gamma
290 * Different gamma conversion modes.
291 *
292 * @enum VideoGammaMode
293 *
294 * @ingroup gstreamermmEnums
295 */
296 enum VideoGammaMode
297 {
298 VIDEO_GAMMA_MODE_NONE,
299 VIDEO_GAMMA_MODE_REMAP
300 };
301
302 } // namespace Gst
303
304 #ifndef DOXYGEN_SHOULD_SKIP_THIS
305 namespace Glib
306 {
307
308 template <>
309 class Value<Gst::VideoGammaMode> : public Glib::Value_Enum<Gst::VideoGammaMode>
310 {
311 public:
312 static GType value_type() G_GNUC_CONST;
313 };
314
315 } // namespace Glib
316 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
317
318 namespace Gst
319 {
320
321
322 /**
323 * @var VideoPrimariesMode VIDEO_PRIMARIES_MODE_NONE
324 * Disable conversion between primaries.
325 *
326 * @var VideoPrimariesMode VIDEO_PRIMARIES_MODE_MERGE_ONLY
327 * Do conversion between primaries only
328 * when it can be merged with color matrix conversion.
329 *
330 * @var VideoPrimariesMode VIDEO_PRIMARIES_MODE_FAST
331 * Fast conversion between primaries.
332 *
333 * @enum VideoPrimariesMode
334 *
335 * Different primaries conversion modes
336 *
337 * @ingroup gstreamermmEnums
338 */
339 enum VideoPrimariesMode
340 {
341 VIDEO_PRIMARIES_MODE_NONE,
342 VIDEO_PRIMARIES_MODE_MERGE_ONLY,
343 VIDEO_PRIMARIES_MODE_FAST
344 };
345
346 } // namespace Gst
347
348 #ifndef DOXYGEN_SHOULD_SKIP_THIS
349 namespace Glib
350 {
351
352 template <>
353 class Value<Gst::VideoPrimariesMode> : public Glib::Value_Enum<Gst::VideoPrimariesMode>
354 {
355 public:
356 static GType value_type() G_GNUC_CONST;
357 };
358
359 } // namespace Glib
360 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
361
362 namespace Gst
363 {
364
365
366 /** A Wrapper for the videoconvert plugin.
367 * Please note that not all plug-ins are available on all systems so care
368 * must be taken that they exist before they are used otherwise there will
369 * be errors and possibly a crash.
370 *
371 * @ingroup GstPlugins
372 * @deprecated Plugins API is deprecated, and should not be used in a new code.
373 */
374
375 class VideoConvert
376 : public Gst::BaseTransform
377 {
378
379 #ifndef DOXYGEN_SHOULD_SKIP_THIS
380
381 public:
382 using CppObjectType = VideoConvert;
383 using CppClassType = VideoConvert_Class;
384 using BaseObjectType = GstVideoConvert;
385 using BaseClassType = GstVideoConvertClass;
386
387 // noncopyable
388 VideoConvert(const VideoConvert&) = delete;
389 VideoConvert& operator=(const VideoConvert&) = delete;
390
391 private: friend class VideoConvert_Class;
392 static CppClassType videoconvert_class_;
393
394 protected:
395 explicit VideoConvert(const Glib::ConstructParams& construct_params);
396 explicit VideoConvert(GstVideoConvert* castitem);
397
398 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
399
400 public:
401
402 VideoConvert(VideoConvert&& src) noexcept;
403 VideoConvert& operator=(VideoConvert&& src) noexcept;
404
405 ~VideoConvert() noexcept override;
406
407 /** Get the GType for this class, for use with the underlying GObject type system.
408 */
409 static GType get_type() G_GNUC_CONST;
410
411 #ifndef DOXYGEN_SHOULD_SKIP_THIS
412
413
414 static GType get_base_type() G_GNUC_CONST;
415 #endif
416
417 ///Provides access to the underlying C GObject.
418 GstVideoConvert* gobj() { return reinterpret_cast<GstVideoConvert*>(gobject_); }
419
420 ///Provides access to the underlying C GObject.
421 const GstVideoConvert* gobj() const { return reinterpret_cast<GstVideoConvert*>(gobject_); }
422
423 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
424 GstVideoConvert* gobj_copy();
425
426 private:
427
428
429 protected:
430 VideoConvert();
431 explicit VideoConvert(const Glib::ustring& name);
432
433 public:
434 /** Creates a new videoconvert plugin with a unique name.
435 */
436
437 static Glib::RefPtr<VideoConvert> create();
438
439
440 /** Creates a new videoconvert plugin with the given name.
441 */
442
443 static Glib::RefPtr<VideoConvert> create(const Glib::ustring& name);
444
445
446 /** Apply dithering while converting.
447 *
448 * @return A PropertyProxy that allows you to get or set the value of the property,
449 * or receive notification when the value of the property changes.
450 */
451 Glib::PropertyProxy< Gst::VideoDitherMethod > property_dither() ;
452
453 /** Apply dithering while converting.
454 *
455 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
456 * or receive notification when the value of the property changes.
457 */
458 Glib::PropertyProxy_ReadOnly< Gst::VideoDitherMethod > property_dither() const;
459
460 /** Quantizer to use.
461 *
462 * @return A PropertyProxy that allows you to get or set the value of the property,
463 * or receive notification when the value of the property changes.
464 */
465 Glib::PropertyProxy< guint > property_dither_quantization() ;
466
467 /** Quantizer to use.
468 *
469 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
470 * or receive notification when the value of the property changes.
471 */
472 Glib::PropertyProxy_ReadOnly< guint > property_dither_quantization() const;
473
474 /** Chroma resampler method.
475 *
476 * @return A PropertyProxy that allows you to get or set the value of the property,
477 * or receive notification when the value of the property changes.
478 */
479 Glib::PropertyProxy< Gst::VideoResamplerMethod > property_chroma_resampler() ;
480
481 /** Chroma resampler method.
482 *
483 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
484 * or receive notification when the value of the property changes.
485 */
486 Glib::PropertyProxy_ReadOnly< Gst::VideoResamplerMethod > property_chroma_resampler() const;
487
488 /** Alpha Mode to use.
489 *
490 * @return A PropertyProxy that allows you to get or set the value of the property,
491 * or receive notification when the value of the property changes.
492 */
493 Glib::PropertyProxy< Gst::VideoAlphaMode > property_alpha_mode() ;
494
495 /** Alpha Mode to use.
496 *
497 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
498 * or receive notification when the value of the property changes.
499 */
500 Glib::PropertyProxy_ReadOnly< Gst::VideoAlphaMode > property_alpha_mode() const;
501
502 /** Alpha Value to use.
503 *
504 * @return A PropertyProxy that allows you to get or set the value of the property,
505 * or receive notification when the value of the property changes.
506 */
507 Glib::PropertyProxy< double > property_alpha_value() ;
508
509 /** Alpha Value to use.
510 *
511 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
512 * or receive notification when the value of the property changes.
513 */
514 Glib::PropertyProxy_ReadOnly< double > property_alpha_value() const;
515
516 /** Chroma Resampling Mode.
517 *
518 * @return A PropertyProxy that allows you to get or set the value of the property,
519 * or receive notification when the value of the property changes.
520 */
521 Glib::PropertyProxy< Gst::VideoChromaMode > property_chroma_mode() ;
522
523 /** Chroma Resampling Mode.
524 *
525 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
526 * or receive notification when the value of the property changes.
527 */
528 Glib::PropertyProxy_ReadOnly< Gst::VideoChromaMode > property_chroma_mode() const;
529
530 /** Matrix Conversion Mode.
531 *
532 * @return A PropertyProxy that allows you to get or set the value of the property,
533 * or receive notification when the value of the property changes.
534 */
535 Glib::PropertyProxy< Gst::VideoMatrixMode > property_matrix_mode() ;
536
537 /** Matrix Conversion Mode.
538 *
539 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
540 * or receive notification when the value of the property changes.
541 */
542 Glib::PropertyProxy_ReadOnly< Gst::VideoMatrixMode > property_matrix_mode() const;
543
544 /** Gamma Conversion Mode.
545 *
546 * @return A PropertyProxy that allows you to get or set the value of the property,
547 * or receive notification when the value of the property changes.
548 */
549 Glib::PropertyProxy< Gst::VideoGammaMode > property_gamma_mode() ;
550
551 /** Gamma Conversion Mode.
552 *
553 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
554 * or receive notification when the value of the property changes.
555 */
556 Glib::PropertyProxy_ReadOnly< Gst::VideoGammaMode > property_gamma_mode() const;
557
558 /** Primaries Conversion Mode.
559 *
560 * @return A PropertyProxy that allows you to get or set the value of the property,
561 * or receive notification when the value of the property changes.
562 */
563 Glib::PropertyProxy< Gst::VideoPrimariesMode > property_primaries_mode() ;
564
565 /** Primaries Conversion Mode.
566 *
567 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
568 * or receive notification when the value of the property changes.
569 */
570 Glib::PropertyProxy_ReadOnly< Gst::VideoPrimariesMode > property_primaries_mode() const;
571
572
573 public:
574
575 public:
576 //C++ methods used to invoke GTK+ virtual functions:
577
578 protected:
579 //GTK+ Virtual Functions (override these to change behaviour):
580
581 //Default Signal Handlers::
582
583
584 };
585
586 } // namespace Gst
587
588
589 namespace Glib
590 {
591 /** A Glib::wrap() method for this object.
592 *
593 * @param object The C instance.
594 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
595 * @result A C++ instance that wraps this C instance.
596 *
597 * @relates Gst::VideoConvert
598 */
599 Glib::RefPtr<Gst::VideoConvert> wrap(GstVideoConvert* object, bool take_copy = false);
600 }
601
602
603 #endif // GSTREAMERMM_DISABLE_DEPRECATED
604
605
606 #endif /* _GSTREAMERMM_VIDEOCONVERT_H */
607