Skip to main content

MediaProcessInput

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long MediaProcessInput(dword de-/multiplexerHandle, dword inputStreamIndex, int64 timestamp, byte buffer[], dword length)

Description

Delivers data to an input stream on this de-/multiplexer.

Parameters

  • de-/multiplexerHandle: The de-/multiplexer handle returned previously by a call to MediaCreateMultiplexer/MediaCreateDemultiplexer.
  • inputStreamIndex: The index of the input stream the media type should be set for. Currently only 1 input stream per multiplex stream is supported, so set this parameter to 0. For demultiplexers set to 0.
  • timestamp: The (presentation) timestamp in nanoseconds. This time is relative to the start of the stream (not the absolute gPTP time).
  • buffer: The sample data for the input stream that should be processed.
  • length: The length of the sample data in the buffer array in bytes.

Return Values

Example