/usr/share/gst-python/0.10/defs/video.defs is in python-gst0.10-dev 0.10.22-3ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | ;; -*- scheme -*-
; object definitions ...
(define-object VideoFilter
(in-module "Gst")
(parent "GstBaseTransform")
(c-name "GstVideoFilter")
(gtype-id "GST_TYPE_VIDEO_FILTER")
)
(define-object VideoSink
(in-module "Gst")
(parent "GstBaseSink")
(c-name "GstVideoSink")
(gtype-id "GST_TYPE_VIDEO_SINK")
)
;; Enumerations and flags ...
(define-enum VideoFormat
(in-module "Gst")
(c-name "GstVideoFormat")
(gtype-id "GST_TYPE_VIDEO_FORMAT")
(values
'("unknown" "GST_VIDEO_FORMAT_UNKNOWN")
'("i420" "GST_VIDEO_FORMAT_I420")
'("yv12" "GST_VIDEO_FORMAT_YV12")
'("yuy2" "GST_VIDEO_FORMAT_YUY2")
'("uyvy" "GST_VIDEO_FORMAT_UYVY")
'("ayuv" "GST_VIDEO_FORMAT_AYUV")
'("rgbx" "GST_VIDEO_FORMAT_RGBx")
'("bgrx" "GST_VIDEO_FORMAT_BGRx")
'("xrgb" "GST_VIDEO_FORMAT_xRGB")
'("xbgr" "GST_VIDEO_FORMAT_xBGR")
'("rgba" "GST_VIDEO_FORMAT_RGBA")
'("bgra" "GST_VIDEO_FORMAT_BGRA")
'("argb" "GST_VIDEO_FORMAT_ARGB")
'("abgr" "GST_VIDEO_FORMAT_ABGR")
'("rgb" "GST_VIDEO_FORMAT_RGB")
'("bgr" "GST_VIDEO_FORMAT_BGR")
'("y41b" "GST_VIDEO_FORMAT_Y41B")
'("y42b" "GST_VIDEO_FORMAT_Y42B")
'("yvyu" "GST_VIDEO_FORMAT_YVYU")
'("y444" "GST_VIDEO_FORMAT_Y444")
'("v210" "GST_VIDEO_FORMAT_v210")
'("v216" "GST_VIDEO_FORMAT_v216")
'("nv12" "GST_VIDEO_FORMAT_NV12")
'("nv21" "GST_VIDEO_FORMAT_NV21")
'("gray8" "GST_VIDEO_FORMAT_GRAY8")
'("gray16-be" "GST_VIDEO_FORMAT_GRAY16_BE")
'("gray16-le" "GST_VIDEO_FORMAT_GRAY16_LE")
'("v308" "GST_VIDEO_FORMAT_v308")
'("y800" "GST_VIDEO_FORMAT_Y800")
'("y16" "GST_VIDEO_FORMAT_Y16")
'("rgb16" "GST_VIDEO_FORMAT_RGB16")
'("bgr16" "GST_VIDEO_FORMAT_BGR16")
'("rgb15" "GST_VIDEO_FORMAT_RGB15")
'("bgr15" "GST_VIDEO_FORMAT_BGR15")
'("uyvp" "GST_VIDEO_FORMAT_UYVP")
'("a420" "GST_VIDEO_FORMAT_A420")
'("rgb8-paletted" "GST_VIDEO_FORMAT_RGB8_PALETTED")
'("yuv9" "GST_VIDEO_FORMAT_YUV9")
'("yvu9" "GST_VIDEO_FORMAT_YVU9")
'("iyu1" "GST_VIDEO_FORMAT_IYU1")
)
)
;; From gstvideofilter.h
(define-function gst_video_filter_get_type
(c-name "gst_video_filter_get_type")
(return-type "GType")
)
;; From gstvideosink.h
(define-function gst_video_sink_get_type
(c-name "gst_video_sink_get_type")
(return-type "GType")
)
(define-function video_sink_center_rect
(c-name "gst_video_sink_center_rect")
(return-type "none")
(parameters
'("GstVideoRectangle" "src")
'("GstVideoRectangle" "dst")
'("GstVideoRectangle*" "result")
'("gboolean" "scaling")
)
)
;; From video.h
(define-function get_size
(c-name "gst_video_get_size")
(return-type "gboolean")
(parameters
'("GstPad*" "pad")
'("gint*" "width")
'("gint*" "height")
)
)
(define-function calculate_display_ratio
(c-name "gst_video_calculate_display_ratio")
(return-type "gboolean")
(parameters
'("guint*" "dar_n")
'("guint*" "dar_d")
'("guint" "video_width")
'("guint" "video_height")
'("guint" "video_par_n")
'("guint" "video_par_d")
'("guint" "display_par_n")
'("guint" "display_par_d")
)
)
(define-function format_parse_caps
(c-name "gst_video_format_parse_caps")
(return-type "gboolean")
(parameters
'("GstCaps*" "caps")
'("GstVideoFormat*" "format")
'("int*" "width")
'("int*" "height")
)
)
(define-function format_parse_caps_interlaced
(c-name "gst_video_format_parse_caps_interlaced")
(return-type "gboolean")
(parameters
'("GstCaps*" "caps")
'("gboolean*" "interlaced")
)
)
(define-function parse_caps_framerate
(c-name "gst_video_parse_caps_framerate")
(return-type "gboolean")
(parameters
'("GstCaps*" "caps")
'("int*" "fps_n")
'("int*" "fps_d")
)
)
(define-function parse_caps_pixel_aspect_ratio
(c-name "gst_video_parse_caps_pixel_aspect_ratio")
(return-type "gboolean")
(parameters
'("GstCaps*" "caps")
'("int*" "par_n")
'("int*" "par_d")
)
)
(define-function parse_caps_color_matrix
(c-name "gst_video_parse_caps_color_matrix")
(return-type "const-char*")
(parameters
'("GstCaps*" "caps")
)
)
(define-function parse_caps_chroma_site
(c-name "gst_video_parse_caps_chroma_site")
(return-type "const-char*")
(parameters
'("GstCaps*" "caps")
)
)
(define-function video_parse_caps_palette
(c-name "gst_video_parse_caps_palette")
(return-type "GstBuffer*")
(parameters
'("GstCaps*" "caps")
)
)
(define-method new_caps
(of-object "GstVideoFormat")
(c-name "gst_video_format_new_caps")
(caller-owns-return #t)
(return-type "GstCaps*")
(parameters
'("int" "width")
'("int" "height")
'("int" "framerate_n")
'("int" "framerate_d")
'("int" "par_n")
'("int" "par_d")
)
)
(define-method new_caps_interlaced
(of-object "GstVideoFormat")
(c-name "gst_video_format_new_caps_interlaced")
(caller-owns-return #t)
(return-type "GstCaps*")
(parameters
'("int" "width")
'("int" "height")
'("int" "framerate_n")
'("int" "framerate_d")
'("int" "par_n")
'("int" "par_d")
'("gboolean" "interlaced")
)
)
(define-function format_from_fourcc
(c-name "gst_video_format_from_fourcc")
(return-type "GstVideoFormat")
(parameters
'("guint32" "fourcc")
)
)
(define-method to_fourcc
(of-object "GstVideoFormat")
(c-name "gst_video_format_to_fourcc")
(return-type "guint32")
)
(define-method is_rgb
(of-object "GstVideoFormat")
(c-name "gst_video_format_is_rgb")
(return-type "gboolean")
)
(define-method is_yuv
(of-object "GstVideoFormat")
(c-name "gst_video_format_is_yuv")
(return-type "gboolean")
)
(define-method is_gray
(of-object "GstVideoFormat")
(c-name "gst_video_format_is_gray")
(return-type "gboolean")
)
(define-method has_alpha
(of-object "GstVideoFormat")
(c-name "gst_video_format_has_alpha")
(return-type "gboolean")
)
(define-method get_row_stride
(of-object "GstVideoFormat")
(c-name "gst_video_format_get_row_stride")
(return-type "int")
(parameters
'("int" "component")
'("int" "width")
)
)
(define-method get_pixel_stride
(of-object "GstVideoFormat")
(c-name "gst_video_format_get_pixel_stride")
(return-type "int")
(parameters
'("int" "component")
)
)
(define-method get_component_width
(of-object "GstVideoFormat")
(c-name "gst_video_format_get_component_width")
(return-type "int")
(parameters
'("int" "component")
'("int" "width")
)
)
(define-method get_component_height
(of-object "GstVideoFormat")
(c-name "gst_video_format_get_component_height")
(return-type "int")
(parameters
'("int" "component")
'("int" "height")
)
)
(define-method get_component_offset
(of-object "GstVideoFormat")
(c-name "gst_video_format_get_component_offset")
(return-type "int")
(parameters
'("int" "component")
'("int" "width")
'("int" "height")
)
)
(define-method get_size
(of-object "GstVideoFormat")
(c-name "gst_video_format_get_size")
(return-type "int")
(parameters
'("int" "width")
'("int" "height")
)
)
(define-method convert
(of-object "GstVideoFormat")
(c-name "gst_video_format_convert")
(return-type "gboolean")
(parameters
'("int" "width")
'("int" "height")
'("int" "fps_n")
'("int" "fps_d")
'("GstFormat" "src_format")
'("gint64" "src_value")
'("GstFormat" "dest_format")
'("gint64*" "dest_value")
)
)
(define-function event_new_still_frame
(c-name "gst_video_event_new_still_frame")
(return-type "GstEvent*")
(parameters
'("gboolean" "in_still")
)
)
(define-function event_parse_still_frame
(c-name "gst_video_event_parse_still_frame")
(return-type "gboolean")
(parameters
'("GstEvent*" "event")
'("gboolean*" "in_still")
)
)
(define-function video_convert_frame
(c-name "gst_video_convert_frame")
(return-type "GstBuffer*")
(parameters
'("GstBuffer*" "buf")
'("const-GstCaps*" "to_caps")
'("GstClockTime" "timeout")
'("GError**" "error")
)
)
(define-function video_convert_frame_async
(c-name "gst_video_convert_frame_async")
(return-type "none")
(parameters
'("GstBuffer*" "buf")
'("const-GstCaps*" "to_caps")
'("GstClockTime" "timeout")
'("GstVideoConvertFrameCallback" "callback")
'("gpointer" "user_data")
'("GDestroyNotify" "destroy_notify")
)
)
|