Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/audio/RawSampleBuffer: allow using external storage #109

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Feb 15, 2022

  1. core/audio/RawSampleBuffer: allow using external storage

    GStreamer uses its own Buffers which are handed to the downstream
    nodes in the processing graph. The nodes (elements) can be implemented
    in mutiple languages and the Buffers can be allocated elsewhere or be
    part of a Buffer pool.
    
    RawSampleBuffer provides a convenient mechanism to export decoded
    buffers to an unaligned bytes stream. In order to ensure data
    safety, the RawSampleBuffer manages its own sample storage and
    provides an accessor to obtain an immutable byte slice on the
    resulting data.
    
    When used in frameworks such as GStreamer, the byte slice must be
    copied to the target Buffer.
    
    The changes in this commit allow using the RawSampleBuffer with
    an external byte slice, thus avoiding the last copy.
    fengalin committed Feb 15, 2022
    Configuration menu
    Copy the full SHA
    15a2646 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2022

  1. core/audio/RawSampleBuffer: expect [RawType] as external storage

    ... instead of [u8]. This ensures that caller has properly handled
    alignement constraints upfront.
    fengalin committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    053e960 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3025743 View commit details
    Browse the repository at this point in the history