ZeroPointElevenRawCaps

Caps negotiation is not as fast as it could be in 0.10. One reason is the large amount of fields in raw-caps. This page is about to rethinking the caps fields needed for raw audio and video. The content of the page is still work-in-progress. A general idea is to aggregate all enums and flags into one format field and have separate fields for continuous values. Also some fields will move from caps to buffer metadata.

Contents

  1. todo
  2. audio
    1. references
    2. audio/x-raw-*
    3. audio/x-raw-int
    4. audio/x-raw-float
  3. video
    1. references
    2. video/x-raw-*
    3. video-x-raw-rbg
    4. video-x-raw-yuv

todo

audio

references

gstreamer

alsa

pulseaudio

audio/x-raw-*

Fields

name

type

values

converter

description

sampling-rate

uint

> 0

audioresample

data sampling rate in samples/second

channels

uint

> 0

audioconvert

number of audio channels

audio/x-raw-int

Fields

name

type

values

converter

description

format

string

audioconvert, (de)interleave

data-layout: signed/unsigned, endianess, planar/interleaved, channel-positions

width

uint

8,16,24,32

audioconvert

number of bits allocated per sample

depth

uint

> 0 && <=32

audioconvert

number of bits used per sample

Examples

audio/x-raw-float

Fields

name

type

values

converter

description

format

string

audioconvert

data layout: planar/interleaved, channel-positions

width

uint

32,64

audioconvert

number of bits allocated per sample

base

float

*

-

0 db base (implicitely = 1.0 in gst-0.10)

Examples

video

references

gstreamer

fourcc

video/x-raw-*

Fields

name

type

values

converter

description

width

uint

> 0

videoscale

image width in pixels

height

uint

> 0

videoscale

image height in pixels

frame-rate

fraction

videorate

avg. framerate in frames per second

pixel-aspect-ratio

fraction

videoscale

width/height ration of a pixel

views

uint

> 0

-

number of views (2 for stereoscopic video)

video-x-raw-rbg

Fields

name

type

values

converter

description

format

string

colorspace

data layout: fourcc, interlaced, view-positions

Examples

video-x-raw-yuv

Fields

name

type

values

converter

description

format

string

colorspace

fourcc, interlaced, view-positions, chroma-site, color-matrix

Examples