Skip to content
Snippets Groups Projects
  • fryshorts's avatar
    05ddbeb1
    Add function to prepare frame structure to v4l2 plugin. · 05ddbeb1
    fryshorts authored
    This adds a function to prepare the source_frame struct for use
    with obs_source_output_video. Since all of the values except for
    the timestamp and data pointers are known in before it makes
    little sense to compute them over and over again.
    
    Due to the fact that v4l2 uses a single continuous memory segment
    for multi planar formats we can also precompute memory offsets for
    the planes.
    05ddbeb1
    History
    Add function to prepare frame structure to v4l2 plugin.
    fryshorts authored
    This adds a function to prepare the source_frame struct for use
    with obs_source_output_video. Since all of the values except for
    the timestamp and data pointers are known in before it makes
    little sense to compute them over and over again.
    
    Due to the fact that v4l2 uses a single continuous memory segment
    for multi planar formats we can also precompute memory offsets for
    the planes.