DCV Color Primitives is a library to perform image color model conversion. Aware of the underlying hardware and supplemental cpu extension sets (up to avx2). Support data coming from a single buffer or coming from multiple image planes. Support non-tightly packed data. Support images greater than 4GB (64 bit). Convert an image from bgra to nv12 (single plane) format containing yuv in BT601. You might want to propagate errors to the caller function or mix with some other error types. So far, buffers were sized taking into account the image pixel format and dimensions; However, you can use a function to compute how many bytes are needed to store an image of a given format and size. If your data is scattered in multiple buffers that are not necessarily contiguous, you can provide image planes. To take into account data which is not tightly packed, you can provide image strides.

Features

  • DCV Color Primitives Library
  • Supports YCbCr, ITU-R Recommendation BT.601 (standard video system)
  • Supports YCbCr, ITU-R Recommendation BT.709 (CSC systems)
  • Both standard range (0-235) and full range (0-255) are supported
  • Requires Rust 1.55 and newer (until DCP 0.2: At least Rust 1.39)
  • Requires Python3 and Fractions module (needed only if you want to execute the benchmark)

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow DCV Color Primitives

DCV Color Primitives Web Site

Other Useful Business Software
Auth0 for AI Agents now in GA Icon
Auth0 for AI Agents now in GA

Ready to implement AI with confidence (without sacrificing security)?

Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Start building today
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of DCV Color Primitives!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Rust

Related Categories

Rust Software Development Software, Rust Libraries

Registered

2022-07-05