Legacy compatibility functions for pixtreme (_cp functions)
Project description
pixtreme-legacy
⚠️ Legacy Compatibility Package: This package provides _cp functions removed from pixtreme v0.5.2+.
Status
- Maintenance Mode: Functions migrated from main pixtreme package in v0.5.2
- Note: v0.5.1 was broken; use v0.5.2 or later
- Recommendation: Migrate to standard functions (without
_cpsuffix) when possible
Purpose
This package provides backward compatibility for _cp functions that were removed from the main pixtreme package in v0.5.1. It contains the following functions:
apply_lut_cp- Apply 3D LUT with CuPy implementationuyvy422_to_ycbcr444_cp- Convert UYVY422 to YCbCr444ndi_uyvy422_to_ycbcr444_cp- Convert NDI UYVY422 to YCbCr444yuv420p_to_ycbcr444_cp- Convert YUV420 to YCbCr444yuv422p10le_to_ycbcr444_cp- Convert YUV422p10le to YCbCr444
Installation
Requirements:
- Python >= 3.12
- CUDA Toolkit 12.x
- NVIDIA GPU with compute capability >= 6.0
pip install pixtreme-legacy
Usage
from pixtreme_legacy import apply_lut_cp
# No warnings - clean compatibility layer
result = apply_lut_cp(image, lut)
Note: This package depends on pixtreme>=0.6.0 for common utilities (to_float32, resize, etc.).
Migration Guide
Replace _cp functions with their standard equivalents:
Before (deprecated)
from pixtreme import apply_lut_cp
result = apply_lut_cp(image, lut, interpolation=0)
After (recommended)
from pixtreme import apply_lut
result = apply_lut(image, lut, interpolation=0)
Why were _cp functions deprecated?
The _cp suffix originally indicated "CuPy native" implementations, as opposed to CUDA kernel implementations. However:
- Redundancy: Both implementations exist in the main functions now
- Confusion: Users don't need to choose between implementations
- Maintenance: Duplicate APIs increase maintenance burden
The standard functions (without _cp) now automatically select the best implementation.
Timeline
- v0.4.0:
_cpfunctions available without warnings - v0.5.0:
_cpfunctions deprecated with warnings,pixtreme-legacypackage created - v0.5.1: BROKEN - Attempted
_cpfunction removal but incomplete (do not use) - v0.5.2:
_cpfunctions fully removed from main package, migrated topixtreme-legacywithout warnings - v0.6.0: Main
pixtremepackage split into modular packages (pixtreme-core,pixtreme-aces,pixtreme-filter,pixtreme-draw,pixtreme-upscale)
License
MIT License (same as pixtreme)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pixtreme_legacy-0.8.3.tar.gz.
File metadata
- Download URL: pixtreme_legacy-0.8.3.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d7d95ae72ee3fae9f5dc1d31d64bee77956dae4bd36459446c6320211d021f5
|
|
| MD5 |
c7d8fc4862acaeeac131570006880f5c
|
|
| BLAKE2b-256 |
edf45c31f091f5f23408c009120b9a6e4573a4c5b0dc045882778e88350da739
|
File details
Details for the file pixtreme_legacy-0.8.3-py3-none-any.whl.
File metadata
- Download URL: pixtreme_legacy-0.8.3-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e99c4b241a3a94c61c3fc2335b4244fbdaea45d7e1000c0b041510aca5014bd
|
|
| MD5 |
4eac7e17799e08a88d41a8e27f004ac8
|
|
| BLAKE2b-256 |
b1f9f69179a3be335d2d1975277bbeccb89a5006f61d9c75bc36a78fe0f720be
|