Skip to main content

RGB packing for VapourSynth frames

Project description

vspackrgb

RGB packing for VapourSynth frames.

Converts planar RGB VapourSynth clips into display-ready packed formats:

  • RGB24 → BGRA (8-bit interleaved)
  • RGB30 → RGB30 (10-bit packed, 2-bit alpha)

Output is stored in a GRAY32 clip.

Benchmarks

Blank clip with keep=True

             RGB24 Packing (1920x1080)
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┓
┃ Backend            ┃ Frames ┃    Time ┃     FPS ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━┩
│ vszip.PackRGB      │   6000 │  2.186s │ 2745.14 │
│ libp2p.Pack        │   6000 │  2.867s │ 2092.89 │
│ akarin.Expr        │   6000 │  2.802s │ 2141.23 │
│ vspackrgb (cython) │   6000 │  8.998s │  666.84 │
│ vspackrgb (numpy)  │   6000 │ 20.182s │  297.30 │
│ vspackrgb (python) │     30 │ 13.706s │    2.19 │
└────────────────────┴────────┴─────────┴─────────┘

             RGB30 Packing (1920x1080)
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┓
┃ Backend            ┃ Frames ┃    Time ┃     FPS ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━┩
│ vszip.PackRGB      │   6000 │  2.842s │ 2111.21 │
│ libp2p.Pack        │   6000 │  2.817s │ 2129.78 │
│ akarin.Expr        │   6000 │  2.866s │ 2093.62 │
│ vspackrgb (cython) │   6000 │  8.750s │  685.72 │
│ vspackrgb (numpy)  │   6000 │ 30.640s │  195.83 │
│ vspackrgb (python) │     30 │ 11.968s │    2.51 │
└────────────────────┴────────┴─────────┴─────────┘

Real world scenario

            RGB24 Packing (1920x1080)
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━━┓
┃ Backend            ┃ Frames ┃    Time ┃    FPS ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━━┩
│ vszip.PackRGB      │   6000 │  8.623s │ 695.79 │
│ libp2p.Pack        │   6000 │  9.450s │ 634.93 │
│ akarin.Expr        │   6000 │  9.395s │ 638.65 │
│ vspackrgb (cython) │   6000 │ 12.231s │ 490.57 │
│ vspackrgb (numpy)  │   6000 │ 23.421s │ 256.18 │
│ vspackrgb (python) │     30 │ 13.840s │   2.17 │
└────────────────────┴────────┴─────────┴────────┘

            RGB30 Packing (1920x1080)
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━━┓
┃ Backend            ┃ Frames ┃    Time ┃    FPS ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━━┩
│ vszip.PackRGB      │   6000 │ 10.623s │ 564.79 │
│ libp2p.Pack        │   6000 │ 10.874s │ 551.77 │
│ akarin.Expr        │   6000 │ 10.655s │ 563.13 │
│ vspackrgb (cython) │   6000 │ 13.503s │ 444.35 │
│ vspackrgb (numpy)  │   6000 │ 36.062s │ 166.38 │
│ vspackrgb (python) │     30 │ 12.055s │   2.49 │
└────────────────────┴────────┴─────────┴────────┘

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vspackrgb-1.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vspackrgb-1.1.0-cp314-cp314-win_amd64.whl (74.2 kB view details)

Uploaded CPython 3.14Windows x86-64

vspackrgb-1.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (471.5 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

vspackrgb-1.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (466.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

vspackrgb-1.1.0-cp314-cp314-macosx_11_0_arm64.whl (81.9 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

vspackrgb-1.1.0-cp314-cp314-macosx_10_15_x86_64.whl (83.7 kB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

vspackrgb-1.1.0-cp313-cp313-win_amd64.whl (72.0 kB view details)

Uploaded CPython 3.13Windows x86-64

vspackrgb-1.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (475.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

vspackrgb-1.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (468.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

vspackrgb-1.1.0-cp313-cp313-macosx_11_0_arm64.whl (81.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

vspackrgb-1.1.0-cp313-cp313-macosx_10_13_x86_64.whl (83.3 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

vspackrgb-1.1.0-cp312-cp312-win_amd64.whl (72.2 kB view details)

Uploaded CPython 3.12Windows x86-64

vspackrgb-1.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (478.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

vspackrgb-1.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (473.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

vspackrgb-1.1.0-cp312-cp312-macosx_11_0_arm64.whl (81.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

vspackrgb-1.1.0-cp312-cp312-macosx_10_13_x86_64.whl (84.1 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

File details

Details for the file vspackrgb-1.1.0.tar.gz.

File metadata

  • Download URL: vspackrgb-1.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vspackrgb-1.1.0.tar.gz
Algorithm Hash digest
SHA256 add0f2fc205772fb2148b73df9521d64a09c3ad503c6566ec62f72b5c6c83d50
MD5 c9a5f4907fb7cd01220fcd9c1d759662
BLAKE2b-256 2ddb936d4e4a55c39cf74ea622bbf2dd71cdaeab93e85611e26292430ff627ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0.tar.gz:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: vspackrgb-1.1.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 74.2 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vspackrgb-1.1.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 c206512d607be507bdbbbf4b3eea39ee1057f29250e36d25de00755d37cdb6de
MD5 9815d7a7e2017f3658abe18086b7b00f
BLAKE2b-256 d0c86fd9e303150f5a83ba7204f6f1ecba631c9f3722e797d6d5b0c0d28efff0

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp314-cp314-win_amd64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 773eb65c0d1de8fd6ef146652222c3bb5d7f3f9d5d60d04833a720e7e33f838e
MD5 1a7e4ceef2dc8080aa7c32cc6547d7d6
BLAKE2b-256 b81f0843aa809c5da7edbec04d54d303acef74974f08315ed2bc9c8035b28c78

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5d7b700520e93aadd4e1039ec6f52c7c8a89526199c2bca05c980e3dc397ee9c
MD5 5076390171709fbf31353c70273a8263
BLAKE2b-256 a2693a2342f42bfe820c6ceb8f0b67e0d30df3df3bf6c84b9ca6688d13746ec9

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1a12d4333047dd5b893bb9a38d21f7142c19d07cdd792117d27eb2d8c89cffe
MD5 b461dbe852e8531a4cd2a7defe0ab0eb
BLAKE2b-256 f0e3734a2389cf0de51828b179aa0da7b8f20b93eb5e7ed9a2e7081819d20647

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 bb7acf7550e3898a36482b7719be2d9fae5d7def6a42b423fde45d7fa92a4034
MD5 2fce3361d38eefdc6e963479bbece382
BLAKE2b-256 95c5e2baaa9d5d753278db886ee7dd05e77187c627278dc51a21827e0d8bd4b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp314-cp314-macosx_10_15_x86_64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: vspackrgb-1.1.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 72.0 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vspackrgb-1.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 79d53c34b85de61b92f3b9001c1a9d3867107a2d2fd34e85ea320a933763f0a3
MD5 783e7dd6c08bcdba917c4d40ace30da5
BLAKE2b-256 93f1d3f4445e7e099db3298dd344cf0558dce17d6af3f5a63582cdde28013365

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp313-cp313-win_amd64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fc604e8486062e46c7061a88e3f69f6317509ee6d87928afd6e89bb2cee70062
MD5 2c036d3d5aada64b17e34bb6ab7ad909
BLAKE2b-256 93d8a848554e476f0a2ec0aff95b09ba48e31984d4dfb76b37b3bcaac5a58f2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b7abdbcd69082997e9a6c000e72fc74c52d2c6bbe39ab87dbb20ce23af27dd01
MD5 34966bda8dee4940ccc1a6d6c8f26585
BLAKE2b-256 dd942fb2ec9ff7fd3c2fff3812ceed3387fcefad3f6dd037c2fc0368eca46bbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 858a5adaf0e4912872f75449335d66e12ec120e929fd9233bf70cd4ef5c72ff8
MD5 3dfe574923f4bebc23d9d113132e629b
BLAKE2b-256 2756f79f9344574a71d119f8fc138e3f3ac93cdf8cd35fa4768cfd8fd5f548dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 feedf239864c03cc84fd5c2005ebc87dfeb81b8cd5b8c0bc06bf14372d583f6b
MD5 6ea4df9a37819a0b46ea9b53c0d35bf1
BLAKE2b-256 0c5f1607546589867bfed3adc2ed7bab95e86edf75c8ec3e7227b862bb027361

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp313-cp313-macosx_10_13_x86_64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: vspackrgb-1.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 72.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vspackrgb-1.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d20af12deca1beb88ddc971f7ccb2effc38846edb8e26ecc52f637ee1ed682c4
MD5 08af02b037204f13e513017f0891eecf
BLAKE2b-256 a50edb835f330c2b090f6723c012f7abe4aa1709cf7119aef950381403425f96

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp312-cp312-win_amd64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 07637f8591c39e732a17231c1902b244006032e32865e71f29cdb51b697e031d
MD5 f398da862ed9a53ec374a5efc27ab40e
BLAKE2b-256 bca2753879fb1b7636c132edd80759f6ecff8539bdef8cbc0faa87ed0dbe01e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 36a02b73e7d6513728daf5ce17122de2fcbd0ae4a60a9b4a7994ed724fb77714
MD5 18a6a7959413338d06cf9da6379be7d8
BLAKE2b-256 881d92822118645a674d266d462e69cc448aafe59e0de40c23203135b5082aec

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76ff4726809502faf6f5431d2eb4a790452f8ec647d43db4c834350253a86883
MD5 779ec496412f36a5d0d10c4d8083b20f
BLAKE2b-256 8e9021268f09e61e0e68599a04eaae7561c7b67e2ec9e108de2350e973a0dcdc

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vspackrgb-1.1.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.1.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 54deeefcafcc53c2dd8d017696077a855c3975e75822a84013565aefd8432aa8
MD5 e845082acaa2b326486f7efa34f6ea14
BLAKE2b-256 d95e998cf9fa6c8eba484a56eb317ba599bb25f7897b1b9eb4a6d28e62780b74

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.1.0-cp312-cp312-macosx_10_13_x86_64.whl:

Publisher: pypipublish.yml on Jaded-Encoding-Thaumaturgy/vs-view

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page