• Nicolas Dufresne's avatar
    vpxdec: Use GstMemory to avoid copies · 189c2918
    Nicolas Dufresne authored
    With the VPX decoders it's not simple to use downstream buffer pool,
    because we don't know the image size and alignment when buffers get
    allocated. We can though use GstAllocator (for downstream, or the system
    allocator) to avoid a copy before pushing if downstream supports
    GstVideoMeta. This would still cause a copy for sink that requires
    specialized memory and does not have a GstAllocator for that, though
    it will greatly improve performance for sink like glimagesink and
    cluttersink. To avoid allocating for every buffer, we also use a
    internal buffer pool.
gstvp8dec.h 2.43 KB