Skip to main content
Build Status

gstbasetransform is a module that aims to provide a patched GstBase.BaseTransform class usable from python.

Source code repository and issue tracker:

https://github.com/Muges/gstbasetransform/

License:

LGPL 2.1 – see the file LICENSE for details.

Installation

gstbasetransform should work with python 2.7 and python 3.4+.

You will first need to install PyGObject and python-gst, as they are not available on pip. You can then install the latest version of gstbasetransform with pip:

pip install gstbasetransform

Usage

gstbasetransform provides a subclass of GstBase.BaseTransform, also called BaseTransform, whose do_transform_size virtual method has been patched to be usable in python.

In the original do_transform_size virtual method, the othersize parameter that represents the size of the output buffer is an int, and is passed by copy, preventing it from being changed. In gstbasetransform.BaseTransform, it has been removed, and the size of the output buffer can be set with a return value of the method.

The signature of the method is:

do_transform_size(direction, caps, size, othercaps)

and it should return a tuple (bool, int), where the int is the size of the output buffer.

See the test_gstbasetransform.py file for a basic example.

Credits

Thanks to Dustin Spicuzza for writing pygi-treeview-dnd, which served as a base for writing gstbasetransform.

Release files for gstbasetransform 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gstbasetransform 0.1.0
File Size Uploaded
gstbasetransform-0.1.0.tar.gz 17.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gstbasetransform 0.1.0
File Interpreter ABI Platform
gstbasetransform-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 33.2 kB

Release files / gstbasetransform-0.1.0.tar.gz

Download URL gstbasetransform-0.1.0.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
733aec2d13e11730885b048038cdef035011f4cd4433fbd4122524e243193e78
BLAKE2b-256 checksum
How to use checksums
b9c7ed02d645ab81658e8db2e9fee6e790d0ae1124571b2718fe5bd67f269760
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gstbasetransform-0.1.0-py2.py3-none-any.whl

Download URL gstbasetransform-0.1.0-py2.py3-none-any.whl
Size 15.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b12fbe9a87c7c242cbb0bfb641e1b150db2850b6430c6e5da689060dce8520cd
BLAKE2b-256 checksum
How to use checksums
0c8db0c7eedc6befe6621382171e982364a86b775b3aa17515c9338f13c6d956
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page