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.0.0.tar.gz (6.6 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.0.0-cp314-cp314-win_amd64.whl (72.7 kB view details)

Uploaded CPython 3.14Windows x86-64

vspackrgb-1.0.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (465.7 kB view details)

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

vspackrgb-1.0.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (460.6 kB view details)

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

vspackrgb-1.0.0-cp314-cp314-macosx_11_0_arm64.whl (80.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

vspackrgb-1.0.0-cp314-cp314-macosx_10_15_x86_64.whl (81.6 kB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

vspackrgb-1.0.0-cp313-cp313-win_amd64.whl (70.5 kB view details)

Uploaded CPython 3.13Windows x86-64

vspackrgb-1.0.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (470.2 kB view details)

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

vspackrgb-1.0.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (462.1 kB view details)

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

vspackrgb-1.0.0-cp313-cp313-macosx_11_0_arm64.whl (79.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

vspackrgb-1.0.0-cp313-cp313-macosx_10_13_x86_64.whl (81.3 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

vspackrgb-1.0.0-cp312-cp312-win_amd64.whl (70.8 kB view details)

Uploaded CPython 3.12Windows x86-64

vspackrgb-1.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (475.9 kB view details)

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

vspackrgb-1.0.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (468.9 kB view details)

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

vspackrgb-1.0.0-cp312-cp312-macosx_11_0_arm64.whl (80.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

vspackrgb-1.0.0-cp312-cp312-macosx_10_13_x86_64.whl (82.0 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

File details

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

File metadata

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

File hashes

Hashes for vspackrgb-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cdc78681b059298f338374cd328ca86ec822700881737b1f109708f6655e6dea
MD5 e55b30aeac84c3cfde84c49542872036
BLAKE2b-256 4223a3e80f0d6f7470b43b053391968597a080bd36e193669e07bd511660dbe0

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: vspackrgb-1.0.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 72.7 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.0.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 6292789833522bb2d3e5389441797c187c8b6117ad713aff354de025917bfc2a
MD5 b85ae4e8e727c8d1123c581c54901acc
BLAKE2b-256 2898262ed7ee0cdef7a69cf1754cbc0b80101f40ac1c9ce671f9e4e97b116e67

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.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.0.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f24bbf92d3aaba19c3331574169e0724d8be99be7cef6afc6c93c38f67b3a842
MD5 2625bdbe9528c0d9ef11fe54b4447a25
BLAKE2b-256 d163c5535397d8c474ebf98b1235af8bd1bd7d3ac5fc37557d4ae58220bdbc44

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.0.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2ff1373a1ae1f3d21a01bd937c2d07e4fa9756c923360b48e8080c5a746eb1b3
MD5 2aee36fdb5abeca3926d2354739ffdd8
BLAKE2b-256 50a4c8ce82aacb38780b76617ab2a7671550d2f1dc84cb3a592cef4e45ea5e58

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.0.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a1fcd6e62a32295f285c3a3a8388b74de3c73cec03ae263168dac9baac51d28
MD5 145e0ec7b7705fcdf7ff44544b03e4e9
BLAKE2b-256 5ea7410cde9ad9a34192caef4a4ac25ebbe928e1b52e6474b7d6e1d1a62c003a

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.0.0-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 19bbec251d8beb68f2cfa143b91d591685a03cbd4682ba6b82fc681425096c87
MD5 81967d1b469a729cd840f9a1cef1569d
BLAKE2b-256 9c3e7d4d49ca8142d0051842995d5dacc78b6fb8f5a9c0bfb8272eedb7ec6ed4

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: vspackrgb-1.0.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 70.5 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.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a6d4b3e3282c1e6a39081244ab0e1da3ea5373cbc5daf9300b9f36c9b690eaf1
MD5 9d626335f9a5e78980930dd1294e8326
BLAKE2b-256 536f4df353c7011e2725c51f5cb1ccd1a56d705ccd8af280de98d535ee8dbfe5

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.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.0.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f9715929ddc12084b721521229deb63ebac3fc8b5c75171a84f4a4a67874e91a
MD5 4a8536f35529fa3ccb10d1d2829ca6d7
BLAKE2b-256 2db9752c34660130b83daa9f8935f09d8c9b2d052767bcb5822254fe5ba6966c

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.0.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a7bf2ed439f76e72b749dcea4f66b45f731bd3ff7abd46beaaaaae9eea155396
MD5 66d483f42a8fa03f753a07be82a5fab8
BLAKE2b-256 8d3f6d127e4d0ce45bd956eb231c24677d7e6463b98110a1c279a13c961e07e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82a57df4aaee760909b8663dd060050e585bfa67d11b182f08761739bc4ee346
MD5 707d7c4d0a575d48267cdc7ad9fe3846
BLAKE2b-256 7f4bf6b0516ae3b67478136f7cd2112259824c5775010dcad10fbc729f0b667f

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.0.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b233e59d717dd846153d1be8af7ce148a49c54935946383cc4db24fa8efc7e6d
MD5 e6b0875390b051f9265dbacb484e4d69
BLAKE2b-256 40258ac1f412f56d9de7bce410f9472c3e1c38bcbce96fb5a6f2d4d8a38eb4fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: vspackrgb-1.0.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 70.8 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.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dcfba969812c70169786f25a07c7440fafcbd129877ab7238fa47070b22cbee6
MD5 10970cb61ae2492b4af66af0cb52fa0f
BLAKE2b-256 266d448c59a604ed623effac83800d0b9c16edbb27c84b0462b023d7ca53b256

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.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.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 733a0b17256170e1d4ebd104595da7f36bce85686ab68bd0924c1d4b00d1e5bf
MD5 29fe1bf5e9530168ee1ade7a89ff7110
BLAKE2b-256 9c4fab19964cb445d0c03252983a532849bb35311db30f7a73c848337b687010

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.0.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5e3faa9d71dfb11bcb7124b20d8e4be4f6faffb3b1d8913f4a8f53a77228548f
MD5 7b5a71b9ce8fc40ef3b20a947758a9a4
BLAKE2b-256 d4975a9f9e758a8a91dd57deac5e4c4db31e38717915722e8549a674f29f1f3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 759e44184c5dfd6368a8e2e0eea035de0f67e8285413ffe4bd3d0e093000a19c
MD5 72c2b875fb180744603bf9512e80ca32
BLAKE2b-256 5532c6d60d64af13a2bed973830c09a8d5a81da67037493045b719a76e996da6

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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.0.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for vspackrgb-1.0.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 26850eab9adfc2d7a1b61b22834ef83eec0fddb14372d5a931a5bfffdd38e4c0
MD5 b69dca0da3d00dc271fef2c6a317057d
BLAKE2b-256 9a09d1230ee9d6f5ea3e50b295be31ed01f8ccf3bcc1e077c80bcd92b5753ba7

See more details on using hashes here.

Provenance

The following attestation bundles were made for vspackrgb-1.0.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