Skip to content

Parrot-Developers/libvideo-scale

Repository files navigation

libvideo-scale - Video scaling library

libvideo-scale is a C library to handle the scaling of video frames on various platforms with a common API.

The library uses hardware-accelerated scaling when available.

Implementations

The following implementations are available:

  • none for now

The application can force using a specific implementation or let the library decide according to what is supported by the platform.

Dependencies

The library depends on the following Alchemy modules:

  • libulog
  • libfutils
  • libpomp
  • libvideo-buffers

Building

Building is activated by enabling libvideo-scale in the Alchemy build configuration.

Operation

Operations are asynchronous: the application pushes buffers to scale in the input queue and is notified of scaled frames through a callback function.

Some scalers need input buffers to come from their own buffer pools; when the input buffer pool returned by the library is not NULL it must be used and input buffers cannot be shared with other video pipeline elements.

Threading model

The library is designed to run on a libpomp event loop (pomp_loop, see libpomp documentation). All API functions must be called from the pomp_loop thread. All callback functions (frame_output, flush or stop) are called from the pomp_loop thread.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published