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

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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