Media CAPL Functions
Valid for: CANoe DE • CANoe4SW DE Media- Only available with Option Ethernet.
- To use the CAPL functions the AVB_IL.vmodule must be included.
ON THIS PAGE:
- Further Topics
- Callbacks
- General Functions
- Media Sink Functions
- Media Source Functions
- Media Type Functions
- Multiplexer/Demultiplexer
- Sink Writer Functions
- Source Reader/Sink Writer Functions
- Source Reader Functions
Callbacks
- OnMediaRead: This callback is dispatched when an asynchronous read operation on a source reader completes.
General Functions
- MediaGetLastError: Retrieves the calling CAPL program’s last-error code value of the Media API.
- MediaGetProperty: Gets the properties used for configuring the behavior of an object.
- MediaSetProperty: Sets the properties used for configuring the behavior of an object.
- MediaGetPropertyRatio: Retrieves a property whose value is a ratio.
- MediaSetPropertyRatio: Sets a ratio as a 64-bit property value.
- MediaGetPropertySize: Retrieves a property whose value is a size, expressed as a width and height.
- MediaSetPropertySize: Sets width and height as a single 64-bit property value.
Media Sink Functions
- MediaCreateAudioRenderer: Creates the streaming audio renderer (SAR) which is a media sink that renders audio in an output device.
- MediaReleaseAudioRenderer: Releases the audio renderer.
Media Source Functions
- MediaCreateAudioCapturer: Creates a streaming audio capturer which is a media source that captures audio from an input device.
- MediaEnumAudioCapturers: Enumerates a list of audio capture devices.
- MediaReleaseAudioCapturer: Releases the audio capturer.
- MediaEnumVideoCapturers: Enumerates a list of video capture devices.
- MediaReleaseVideoCapturer: Releases the video capturer.
Media Type Functions
- MediaReleaseMediaType: Releases a media type retrieved by MediaGetMediaType.
- MediaCreateMediaType: Creates an empty media type.
Multiplexer/Demultiplexer
- MediaCreateDemultiplexer: Creates a demultiplexer for the provided input media subtype.
- MediaCreateMultiplexer: Creates a multiplexor for the provided output media subtype.
- MediaGetInputType: Retrieves the media type of a stream the de-/multiplexer takes as input.
- MediaGetOutputType: Retrieves the media type of a stream the de-/multiplexer produces as output (at a given index).
- MediaProcessInput: Delivers data to an input stream on this de-/multiplexer.
- MediaProcessOutput: Generates output from the current input data.
- MediaReleaseDemultiplexer: Releases a demultiplexer.
- MediaReleaseMultiplexer: Releases a multiplexer.
- MediaSetInputType: Sets the input media type for a de-/multiplexer (at a given index).
Sink Writer Functions
- MediaCreateSinkWriterFromMediaSink: Creates the source reader from a media source.
- MediaCreateSinkWriterFromURL: Creates the sink writer from a URL.
- MediaReleaseSinkWriter: Releases the sink writer.
- MediaWrite: Delivers sample data to the sink writer.
Source Reader/Sink Writer Functions
- MediaGetMediaType: Gets the media type for a source reader.
- MediaSetMediaType: Sets the media type for a source reader or a sink writer.
Source Reader Functions
- MediaCreateSourceReaderFromMediaSource: Creates the source reader from a media source.
- MediaCreateSourceReaderFromURL: Creates the source reader from a URL.
- MediaRead: Reads sample data from the media source.
- MediaReleaseSourceReader: Releases the source reader.