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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
|
From 481cda8686336999ccccbdbf239bcbd520bcdfc7 Mon Sep 17 00:00:00 2001
From: Rob Clark <rob@ti.com>
Date: Thu, 30 Jul 2009 14:50:05 -0500
Subject: [PATCH 01/24] add rowstride support to video utility functions
---
gst-libs/gst/video/gstvideofilter.c | 8 +-
gst-libs/gst/video/video.c | 244 ++++++++++++++++++++++++++++-------
gst-libs/gst/video/video.h | 27 +++--
3 files changed, 220 insertions(+), 59 deletions(-)
diff --git a/gst-libs/gst/video/gstvideofilter.c b/gst-libs/gst/video/gstvideofilter.c
index 2d08a60..6b2d7b7 100644
--- a/gst-libs/gst/video/gstvideofilter.c
+++ b/gst-libs/gst/video/gstvideofilter.c
@@ -21,7 +21,7 @@
/**
* SECTION:gstvideofilter
* @short_description: Base class for video filters
- *
+ *
* <refsect2>
* <para>
* Provides useful functions and a base class for video filters.
@@ -78,14 +78,14 @@ gst_video_filter_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
guint * size)
{
GstVideoFormat fmt;
- gint width, height;
+ gint width, height, rowstride;
- if (!gst_video_format_parse_caps (caps, &fmt, &width, &height)) {
+ if (!gst_video_format_parse_caps_strided (caps, &fmt, &width, &height, &rowstride)) {
GST_WARNING_OBJECT (btrans, "Failed to parse caps %" GST_PTR_FORMAT, caps);
return FALSE;
}
- *size = gst_video_format_get_size (fmt, width, height);
+ *size = gst_video_format_get_size_strided (fmt, width, height, rowstride);
GST_DEBUG_OBJECT (btrans, "Returning size %u bytes for caps %"
GST_PTR_FORMAT, *size, caps);
diff --git a/gst-libs/gst/video/video.c b/gst-libs/gst/video/video.c
index d9fa50b..24f1ac8 100644
--- a/gst-libs/gst/video/video.c
+++ b/gst-libs/gst/video/video.c
@@ -31,7 +31,7 @@
*
* <refsect2>
* <para>
- * This library contains some helper functions and includes the
+ * This library contains some helper functions and includes the
* videosink and videofilter base classes.
* </para>
* </refsect2>
@@ -53,7 +53,7 @@ static GstVideoFormat gst_video_format_from_rgb16_masks (int red_mask,
*
* A convenience function to retrieve a GValue holding the framerate
* from the caps on a pad.
- *
+ *
* The pad needs to have negotiated caps containing a framerate property.
*
* Returns: NULL if the pad has no configured caps or the configured caps
@@ -106,7 +106,7 @@ gst_video_frame_rate (GstPad * pad)
*
* Inspect the caps of the provided pad and retrieve the width and height of
* the video frames it is configured for.
- *
+ *
* The pad needs to have negotiated caps containing width and height properties.
*
* Returns: TRUE if the width and height could be retrieved.
@@ -158,13 +158,13 @@ gst_video_get_size (GstPad * pad, gint * width, gint * height)
* @display_par_n: Numerator of the pixel aspect ratio of the display device
* @display_par_d: Denominator of the pixel aspect ratio of the display device
*
- * Given the Pixel Aspect Ratio and size of an input video frame, and the
- * pixel aspect ratio of the intended display device, calculates the actual
+ * Given the Pixel Aspect Ratio and size of an input video frame, and the
+ * pixel aspect ratio of the intended display device, calculates the actual
* display ratio the video will be rendered with.
*
- * Returns: A boolean indicating success and a calculated Display Ratio in the
- * dar_n and dar_d parameters.
- * The return value is FALSE in the case of integer overflow or other error.
+ * Returns: A boolean indicating success and a calculated Display Ratio in the
+ * dar_n and dar_d parameters.
+ * The return value is FALSE in the case of integer overflow or other error.
*
* Since: 0.10.7
*/
@@ -308,28 +308,15 @@ gst_video_parse_caps_chroma_site (GstCaps * caps)
}
/**
- * gst_video_format_parse_caps:
- * @caps: the #GstCaps to parse
- * @format: the #GstVideoFormat of the video represented by @caps (output)
- * @width: the width of the video represented by @caps, may be NULL (output)
- * @height: the height of the video represented by @caps, may be NULL (output)
- *
- * Determines the #GstVideoFormat of @caps and places it in the location
- * pointed to by @format. Extracts the size of the video and places it
- * in the location pointed to by @width and @height. If @caps does not
- * represent one of the raw video formats listed in #GstVideoFormat, the
- * function will fail and return FALSE.
- *
- * Since: 0.10.16
- *
- * Returns: TRUE if @caps was parsed correctly.
+ * see gst_video_format_parse_caps_strided and gst_video_format_parse_caps
*/
-gboolean
-gst_video_format_parse_caps (GstCaps * caps, GstVideoFormat * format,
- int *width, int *height)
+static gboolean
+parse_caps (GstCaps * caps, GstVideoFormat * format, gint *width, gint *height,
+ gboolean stride_ok, gint *rowstride)
{
GstStructure *structure;
gboolean ok = TRUE;
+ gboolean strided = FALSE;
if (!gst_caps_is_fixed (caps))
return FALSE;
@@ -337,7 +324,10 @@ gst_video_format_parse_caps (GstCaps * caps, GstVideoFormat * format,
structure = gst_caps_get_structure (caps, 0);
if (format) {
- if (gst_structure_has_name (structure, "video/x-raw-yuv")) {
+ if (gst_structure_has_name (structure, "video/x-raw-yuv") ||
+ (stride_ok &&
+ gst_structure_has_name (structure, "video/x-raw-yuv-strided") &&
+ (strided=TRUE) /* single '=' intentional */)) {
guint32 fourcc;
ok &= gst_structure_get_fourcc (structure, "format", &fourcc);
@@ -346,7 +336,10 @@ gst_video_format_parse_caps (GstCaps * caps, GstVideoFormat * format,
if (*format == GST_VIDEO_FORMAT_UNKNOWN) {
ok = FALSE;
}
- } else if (gst_structure_has_name (structure, "video/x-raw-rgb")) {
+ } else if (gst_structure_has_name (structure, "video/x-raw-rgb") ||
+ (stride_ok &&
+ gst_structure_has_name (structure, "video/x-raw-rgb-strided") &&
+ (strided=TRUE) /* single '=' intentional */)) {
int depth;
int bpp;
int endianness = 0;
@@ -423,6 +416,10 @@ gst_video_format_parse_caps (GstCaps * caps, GstVideoFormat * format,
}
}
+ /* note: should we require that the caps have these fields, even if
+ * the caller does not particularly request them??
+ */
+
if (width) {
ok &= gst_structure_get_int (structure, "width", width);
}
@@ -431,11 +428,70 @@ gst_video_format_parse_caps (GstCaps * caps, GstVideoFormat * format,
ok &= gst_structure_get_int (structure, "height", height);
}
+ if (rowstride) {
+ if (strided) {
+ ok &= gst_structure_get_int (structure, "rowstride", rowstride);
+ } else {
+ *rowstride = 0; /* not a strided format */
+ }
+ }
+
return ok;
}
/**
+ * gst_video_format_parse_caps_strided:
+ * @caps: the #GstCaps to parse
+ * @format: the #GstVideoFormat of the video represented by @caps (output)
+ * @width: the width of the video represented by @caps, may be NULL (output)
+ * @height: the height of the video represented by @caps, may be NULL (output)
+ * @rowstride: the rowstride (in bytes) represented by @caps, or 0 if there
+ * is no rowstride, may be NULL (output)
+ *
+ * Determines the #GstVideoFormat of @caps and places it in the location
+ * pointed to by @format. Extracts the size of the video and places it
+ * in the location pointed to by @width and @height. Extracts the row-
+ * stride and places it in the location pointed to by @rowstride. If
+ * @caps does not represent one of the raw video formats listed in
+ * #GstVideoFormat, the function will fail and return FALSE.
+ *
+ * Since: ???
+ *
+ * Returns: TRUE if @caps was parsed correctly.
+ */
+gboolean
+gst_video_format_parse_caps_strided (GstCaps * caps, GstVideoFormat * format,
+ int *width, int *height, int *rowstride)
+{
+ return parse_caps (caps, format, width, height, TRUE, rowstride);
+}
+
+/**
+ * gst_video_format_parse_caps:
+ * @caps: the #GstCaps to parse
+ * @format: the #GstVideoFormat of the video represented by @caps (output)
+ * @width: the width of the video represented by @caps, may be NULL (output)
+ * @height: the height of the video represented by @caps, may be NULL (output)
+ *
+ * Determines the #GstVideoFormat of @caps and places it in the location
+ * pointed to by @format. Extracts the size of the video and places it
+ * in the location pointed to by @width and @height. If @caps does not
+ * represent one of the raw video formats listed in #GstVideoFormat, the
+ * function will fail and return FALSE.
+ *
+ * Since: 0.10.16
+ *
+ * Returns: TRUE if @caps was parsed correctly.
+ */
+gboolean
+gst_video_format_parse_caps (GstCaps * caps, GstVideoFormat * format,
+ int *width, int *height)
+{
+ return parse_caps (caps, format, width, height, FALSE, NULL);
+}
+
+/**
* gst_video_parse_caps_framerate:
* @caps: pointer to a #GstCaps instance
* @fps_n: pointer to integer to hold numerator of frame rate (output)
@@ -534,10 +590,11 @@ gst_video_format_new_caps_interlaced (GstVideoFormat format,
}
/**
- * gst_video_format_new_caps:
+ * gst_video_format_new_caps_strided:
* @format: the #GstVideoFormat describing the raw video format
* @width: width of video
* @height: height of video
+ * @rowstride: the rowstride (in bytes), or 0 if no rowstride
* @framerate_n: numerator of frame rate
* @framerate_d: denominator of frame rate
* @par_n: numerator of pixel aspect ratio
@@ -545,26 +602,29 @@ gst_video_format_new_caps_interlaced (GstVideoFormat format,
*
* Creates a new #GstCaps object based on the parameters provided.
*
- * Since: 0.10.16
+ * Since: ???
*
* Returns: a new #GstCaps object, or NULL if there was an error
*/
GstCaps *
-gst_video_format_new_caps (GstVideoFormat format, int width,
- int height, int framerate_n, int framerate_d, int par_n, int par_d)
+gst_video_format_new_caps_strided (GstVideoFormat format,
+ int width, int height, int rowstride,
+ int framerate_n, int framerate_d, int par_n, int par_d)
{
+ GstCaps *caps = NULL;
+
g_return_val_if_fail (format != GST_VIDEO_FORMAT_UNKNOWN, NULL);
g_return_val_if_fail (width > 0 && height > 0, NULL);
if (gst_video_format_is_yuv (format)) {
- return gst_caps_new_simple ("video/x-raw-yuv",
+ caps = gst_caps_new_simple (
+ rowstride ? "video/x-raw-yuv-strided" : "video/x-raw-yuv",
"format", GST_TYPE_FOURCC, gst_video_format_to_fourcc (format),
"width", G_TYPE_INT, width,
"height", G_TYPE_INT, height,
"framerate", GST_TYPE_FRACTION, framerate_n, framerate_d,
"pixel-aspect-ratio", GST_TYPE_FRACTION, par_n, par_d, NULL);
- }
- if (gst_video_format_is_rgb (format)) {
+ } else if (gst_video_format_is_rgb (format)) {
GstCaps *caps;
int red_mask = 0;
int blue_mask = 0;
@@ -663,7 +723,8 @@ gst_video_format_new_caps (GstVideoFormat format, int width,
return NULL;
}
- caps = gst_caps_new_simple ("video/x-raw-rgb",
+ caps = gst_caps_new_simple (
+ rowstride ? "video/x-raw-rgb-strided" : "video/x-raw-rgb",
"bpp", G_TYPE_INT, bpp,
"depth", G_TYPE_INT, depth,
"width", G_TYPE_INT, width,
@@ -685,11 +746,7 @@ gst_video_format_new_caps (GstVideoFormat format, int width,
width, height));
gst_caps_set_simple (caps, "alpha_mask", G_TYPE_INT, alpha_mask, NULL);
}
- return caps;
- }
-
- if (gst_video_format_is_gray (format)) {
- GstCaps *caps;
+ } else if (gst_video_format_is_gray (format)) {
int bpp;
int depth;
int endianness;
@@ -730,11 +787,39 @@ gst_video_format_new_caps (GstVideoFormat format, int width,
"framerate", GST_TYPE_FRACTION, framerate_n, framerate_d,
"pixel-aspect-ratio", GST_TYPE_FRACTION, par_n, par_d, NULL);
}
+ } else {
+ return NULL;
+ }
- return caps;
+ if (rowstride) {
+ gst_caps_set_simple (caps, "rowstride", G_TYPE_INT, rowstride, NULL);
}
- return NULL;
+ return caps;
+}
+
+/**
+ * gst_video_format_new_caps:
+ * @format: the #GstVideoFormat describing the raw video format
+ * @width: width of video
+ * @height: height of video
+ * @framerate_n: numerator of frame rate
+ * @framerate_d: denominator of frame rate
+ * @par_n: numerator of pixel aspect ratio
+ * @par_d: denominator of pixel aspect ratio
+ *
+ * Creates a new #GstCaps object based on the parameters provided.
+ *
+ * Since: 0.10.16
+ *
+ * Returns: a new #GstCaps object, or NULL if there was an error
+ */
+GstCaps *
+gst_video_format_new_caps (GstVideoFormat format, int width, int height,
+ int framerate_n, int framerate_d, int par_n, int par_d)
+{
+ return gst_video_format_new_caps_strided (format, width, height, 0,
+ framerate_n, framerate_d, par_n, par_d);
}
/**
@@ -874,7 +959,7 @@ gst_video_format_to_fourcc (GstVideoFormat format)
* @blue_mask: blue bit mask
*
* Converts red, green, blue bit masks into the corresponding
- * #GstVideoFormat.
+ * #GstVideoFormat.
*
* Since: 0.10.16
*
@@ -1107,7 +1192,7 @@ gst_video_format_is_gray (GstVideoFormat format)
/**
* gst_video_format_has_alpha:
* @format: a #GstVideoFormat
- *
+ *
* Returns TRUE or FALSE depending on if the video format provides an
* alpha channel.
*
@@ -1877,6 +1962,75 @@ gst_video_format_get_size (GstVideoFormat format, int width, int height)
}
/**
+ * gst_video_format_get_size_strided:
+ * @format: a #GstVideoFormat
+ * @width: the width of video (in pixels)
+ * @height: the height of video (in pixels)
+ * @rowstride: the rowstride (in bytes), or 0 if no rowstride (in which
+ * case the returned value is same as #gst_video_format_get_size())
+ *
+ * Calculates the total number of bytes in the raw video format, for a buffer
+ * which may have a rowstride in bytes
+ *
+ * Since: ???
+ *
+ * Returns: size (in bytes) of raw video format
+ */
+int
+gst_video_format_get_size_strided (GstVideoFormat format,
+ int width, int height, int rowstride)
+{
+ if(!rowstride)
+ return gst_video_format_get_size (format, width, height);
+
+ g_return_val_if_fail (format != GST_VIDEO_FORMAT_UNKNOWN, 0);
+ g_return_val_if_fail (width > 0 && height > 0, 0);
+
+ switch (format) {
+ /* all packed formats have the same calculation, ie. rowstride * height
+ */
+ case GST_VIDEO_FORMAT_RGBx:
+ case GST_VIDEO_FORMAT_BGRx:
+ case GST_VIDEO_FORMAT_xRGB:
+ case GST_VIDEO_FORMAT_xBGR:
+ case GST_VIDEO_FORMAT_RGBA:
+ case GST_VIDEO_FORMAT_BGRA:
+ case GST_VIDEO_FORMAT_ARGB:
+ case GST_VIDEO_FORMAT_ABGR:
+ case GST_VIDEO_FORMAT_RGB16:
+ case GST_VIDEO_FORMAT_BGR16:
+ case GST_VIDEO_FORMAT_RGB15:
+ case GST_VIDEO_FORMAT_BGR15:
+ case GST_VIDEO_FORMAT_RGB:
+ case GST_VIDEO_FORMAT_BGR:
+ case GST_VIDEO_FORMAT_YUY2:
+ case GST_VIDEO_FORMAT_YVYU:
+ case GST_VIDEO_FORMAT_UYVY:
+ case GST_VIDEO_FORMAT_AYUV:
+ case GST_VIDEO_FORMAT_v210:
+ case GST_VIDEO_FORMAT_v216:
+ return GST_ROUND_UP_4 (rowstride * height);
+
+ /* these planar formats have 2x sub-sampling in the vertical direction,
+ * so U/V have half as many rows as Y:
+ */
+ case GST_VIDEO_FORMAT_I420:
+ case GST_VIDEO_FORMAT_YV12:
+ return GST_ROUND_UP_4 (2 * rowstride * height);
+
+ /* these planar formats have no sub-sampling in the vertical direction,
+ * so each plane has 'height' number of rows
+ */
+ case GST_VIDEO_FORMAT_Y41B:
+ case GST_VIDEO_FORMAT_Y42B:
+ case GST_VIDEO_FORMAT_Y444:
+ return GST_ROUND_UP_4 (3 * rowstride * height);
+ default:
+ return 0;
+ }
+}
+
+/**
* gst_video_format_convert:
* @format: a #GstVideoFormat
* @width: the width of video
diff --git a/gst-libs/gst/video/video.h b/gst-libs/gst/video/video.h
index 96c5a85..a6a2293 100644
--- a/gst-libs/gst/video/video.h
+++ b/gst-libs/gst/video/video.h
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
* @GST_VIDEO_FORMAT_I420: planar 4:2:0 YUV
* @GST_VIDEO_FORMAT_YV12: planar 4:2:0 YVU (like I420 but UV planes swapped)
* @GST_VIDEO_FORMAT_YUY2: packed 4:2:2 YUV (Y0-U0-Y1-V0 Y2-U2-Y3-V2 Y4 ...)
- * @GST_VIDEO_FORMAT_UYVY: packed 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 ...)
+ * @GST_VIDEO_FORMAT_UYVY: packed 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 ...)
* @GST_VIDEO_FORMAT_AYUV: packed 4:4:4 YUV with alpha channel (A0-Y0-U0-V0 ...)
* @GST_VIDEO_FORMAT_RGBx: sparse rgb packed into 32 bit, space last
* @GST_VIDEO_FORMAT_BGRx: sparse reverse rgb packed into 32 bit, space last
@@ -245,13 +245,13 @@ typedef enum {
#define GST_VIDEO_CAPS_RGBx \
__GST_VIDEO_CAPS_MAKE_32 (1, 2, 3)
-
+
#define GST_VIDEO_CAPS_xRGB \
__GST_VIDEO_CAPS_MAKE_32 (2, 3, 4)
-
+
#define GST_VIDEO_CAPS_BGRx \
__GST_VIDEO_CAPS_MAKE_32 (3, 2, 1)
-
+
#define GST_VIDEO_CAPS_xBGR \
__GST_VIDEO_CAPS_MAKE_32 (4, 3, 2)
@@ -259,13 +259,13 @@ typedef enum {
#define GST_VIDEO_CAPS_RGBA \
__GST_VIDEO_CAPS_MAKE_32A (1, 2, 3, 4)
-
+
#define GST_VIDEO_CAPS_ARGB \
__GST_VIDEO_CAPS_MAKE_32A (2, 3, 4, 1)
-
+
#define GST_VIDEO_CAPS_BGRA \
__GST_VIDEO_CAPS_MAKE_32A (3, 2, 1, 4)
-
+
#define GST_VIDEO_CAPS_ABGR \
__GST_VIDEO_CAPS_MAKE_32A (4, 3, 2, 1)
@@ -281,7 +281,7 @@ typedef enum {
#define GST_VIDEO_CAPS_BGRx_HOST_ENDIAN \
GST_VIDEO_CAPS_xRGB
#endif
-
+
/* 15/16 bit */
#define GST_VIDEO_CAPS_RGB_16 \
@@ -395,13 +395,15 @@ gboolean gst_video_get_size (GstPad *pad,
gint *height);
gboolean gst_video_calculate_display_ratio (guint *dar_n, guint *dar_d,
- guint video_width, guint video_height,
- guint video_par_n, guint video_par_d,
+ guint video_width, guint video_height,
+ guint video_par_n, guint video_par_d,
guint display_par_n, guint display_par_d);
gboolean gst_video_format_parse_caps (GstCaps *caps, GstVideoFormat *format,
int *width, int *height);
gboolean gst_video_format_parse_caps_interlaced (GstCaps *caps, gboolean *interlaced);
+gboolean gst_video_format_parse_caps_strided (GstCaps * caps, GstVideoFormat * format,
+ int *width, int *height, int *rowstride);
gboolean gst_video_parse_caps_framerate (GstCaps *caps,
int *fps_n, int *fps_d);
gboolean gst_video_parse_caps_pixel_aspect_ratio (GstCaps *caps,
@@ -415,6 +417,9 @@ GstCaps * gst_video_format_new_caps (GstVideoFormat format,
GstCaps * gst_video_format_new_caps_interlaced (GstVideoFormat format,
int width, int height, int framerate_n, int framerate_d,
int par_n, int par_d, gboolean interlaced);
+GstCaps * gst_video_format_new_caps_strided (GstVideoFormat format,
+ int width, int height, int rowstride,
+ int framerate_n, int framerate_d, int par_n, int par_d);
GstVideoFormat gst_video_format_from_fourcc (guint32 fourcc);
guint32 gst_video_format_to_fourcc (GstVideoFormat format);
gboolean gst_video_format_is_rgb (GstVideoFormat format);
@@ -431,6 +436,8 @@ int gst_video_format_get_component_height (GstVideoFormat format, int component,
int gst_video_format_get_component_offset (GstVideoFormat format, int component,
int width, int height);
int gst_video_format_get_size (GstVideoFormat format, int width, int height);
+int gst_video_format_get_size_strided (GstVideoFormat format,
+ int width, int height, int rowstride);
gboolean gst_video_format_convert (GstVideoFormat format, int width, int height,
int fps_n, int fps_d,
GstFormat src_format, gint64 src_value,
--
1.7.1
|