npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

libyuv

v0.1.3

Published

Bindings to libyuv, provides conversion utilities for in-memory YUV video frames

Downloads

118

Readme

libyuv-node

Node.js bindings for Chromium's libyuv library.

Version CircleCI

libyuv is an open source project that includes YUV scaling and conversion functionality.

  • Scale YUV to prepare content for compression, with point, bilinear or box filter.
  • Convert to YUV from webcam formats for compression.
  • Convert to RGB formats for rendering/effects.
  • Rotate by 90/180/270 degrees to adjust for mobile devices in portrait mode.
  • Optimized for SSSE3/AVX2 on x86/x64.
  • Optimized for Neon on Arm.
  • Optimized for MSA on Mips.

For more information about libyuv, visit Google's site at https://chromium.googlesource.com/libyuv/libyuv/

Installation

First, download and install cmake and make sure it is available in your PATH.

Then:

npm install libyuv

You will need cmake available on any system (such as CI) which builds your project, as there are no prebuilt binaries yet.

Why?

If you are processing video frames in Node.js, you may need to convert the color space of such frames between a compact YUV chroma-subsampled format (like YUV 4:2:0) and RGB0 and vice versa. You may also need to scale the video frame from one size to another performantly with various sampling methods. libyuv provides these capabilities, and using this binding you can very easily perform these conversions.

It works very well with libraries like node-webrtc.

Building

Currently there are no prebuilt binaries available. On a modern system, building libyuv from scratch takes approximately 30 seconds and requires downloading about 17MB of source code.

Windows

  • Make sure to install Windows 10 SDK or later or the build may fail. Version 10.0.19041.0 or later is recommended.

Development

Troubleshooting

Windows: Permission Denied ("build" is open in a another process)

The Visual Studio Code C# extension opens OmniSharp with the "build" folder open as the current working directory. This is not a C# project, so it is safe to find the "C#" extension in your editor's Extensions list and "Disable (Workspace)". This will only affect this workspace, not any other projects you may have on your machine.

Contributing

PRs are welcome!