|
CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
This file contains the functions and other definitions that comprise the CDI AVM baseline profile. More...
#include <assert.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "cdi_baseline_profile_01_00_api.h"#include "cdi_logger_api.h"#include "utilities_api.h"Functions | |
| static const CdiEnumStringKey * | KeyGetArray (CdiAvmBaselineEnumStringKeyTypes key_type) |
| Update EnumStringKeyTypes in cdi_utility_api.h whenever an entry is added to this function's switch statement. | |
| static bool | GetVideoUnitSize (const CdiAvmBaselineConfig *baseline_config_ptr, int *payload_unit_size_ptr) |
| static bool | CreateOptionalParamsString (const CdiAvmVideoConfig *video_config_ptr, char *optional_params_str, const size_t array_size) |
| static bool | MakeBaselineVideoConfiguration (const CdiAvmBaselineConfigCommon *baseline_ptr, CdiAvmConfig *config_ptr, int *payload_unit_size_ptr) |
| static bool | GetAudioUnitSize (const CdiAvmBaselineConfig *baseline_config_ptr, int *payload_unit_size_ptr) |
| static bool | MakeBaselineAudioConfiguration (const CdiAvmBaselineConfigCommon *baseline_ptr, CdiAvmConfig *config_ptr, int *payload_unit_size_ptr) |
| static bool | GetAncillaryDataUnitSize (const CdiAvmBaselineConfig *baseline_config_ptr, int *payload_unit_size_ptr) |
| static bool | MakeBaselineAncillaryDataConfiguration (const CdiAvmBaselineConfigCommon *baseline_ptr, CdiAvmConfig *config_ptr, int *payload_unit_size_ptr) |
| static bool | ParseBaselineVideoConfiguration (const CdiAvmConfig *config_ptr, CdiAvmBaselineConfigCommon *baseline_ptr) |
| static bool | ParseBaselineAudioConfiguration (const CdiAvmConfig *config_ptr, CdiAvmBaselineConfigCommon *baseline_ptr) |
| static bool | ParseBaselineAncillaryDataConfiguration (const CdiAvmConfig *config_ptr, CdiAvmBaselineConfigCommon *baseline_ptr) |
| static CdiReturnStatus | GetBaselineUnitSize (const CdiAvmBaselineConfigCommon *baseline_ptr, int *payload_unit_size_ptr) |
| See CdiAvmGetBaselineUnitSize(). | |
| CdiReturnStatus | RegisterAvmBaselineProfiles_1_00 (void) |
| Register baseline profile 01.00. | |
Variables | |
| static const char * | profile_version_video_str = "01.00" |
| static const char * | profile_version_audio_str = "01.00" |
| static const char * | profile_version_ancillary_data_str = "01.00" |
| static const CdiEnumStringKey | video_sampling_key_array [] |
| Enum/string keys for CdiAvmVideoSampling. | |
| static const CdiEnumStringKey | alpha_channel_key_array [] |
| Enum/string keys for CdiAvmVideoAlphaChannel. | |
| static const CdiEnumStringKey | tcs_key_array [] |
| Enum/string keys for CdiAvmVideoTcs. | |
| static const CdiEnumStringKey | range_key_array [] |
| Enum/string keys for CdiAvmVideoRange. | |
| static const CdiEnumStringKey | video_bit_depth_key_array [] |
| Enum/string keys for CdiAvmVideoBitDepth. | |
| static const CdiEnumStringKey | colorimetry_key_array [] |
| Enum/string keys for CdiAvmColorimetry. | |
| static const CdiEnumStringKey | audio_channel_grouping_key_array [] |
| Enum/string keys for CdiAvmAudioChannelGrouping. | |
| static const CdiEnumStringKey | audio_sample_rate_key_array [] |
| Enum/string keys for CdiAvmAudioSampleRate. | |
This file contains the functions and other definitions that comprise the CDI AVM baseline profile.
|
static |
Populates the optional_params_str with optional video configuration information.
| video_config_ptr | Pointer to the video configuration. |
| optional_params_str | Pointer to the optional params string. |
| array_size | The size of the optional params string. |
|
static |
Returns the number of bits that comprise the smallest number of bits that should be kept together for transmitting ancillary data.
| baseline_config_ptr | Pointer to the config structure with the specifics of the ancillary data format whose unit size is to be returned. |
| payload_unit_size_ptr | Pointer to where the unit size is to be written. |
|
static |
Returns the number of bits that evenly fit audio samples into bytes. It includes the samples for all of the channels in the stream.
| baseline_config_ptr | Pointer to the config structure with the specifics of the audio format whose unit size is to be returned. |
| payload_unit_size_ptr | Pointer to where the unit size is to be written. |
|
static |
Returns the number of bits that evenly fit video pixels into bytes. This is explained in ST 2110-20 and these values are in the tables, though they're expressed in units of bytes.
| baseline_config_ptr | Pointer to the config structure with the specifics of the video format whose unit size is to be returned. |
| payload_unit_size_ptr | Pointer to where the unit size is to be written. |
|
static |
Populates the provided generic configuration structure with the information from an ancillary data baseline configuration structure.
| baseline_ptr | Pointer to the source configuration; its payload_type must be kCdiAvmAncillary. |
| config_ptr | Address of where the generic configuration is to be written. |
| payload_unit_size_ptr | Pointer to where the payload unit size is to be written. |
|
static |
Populates the provided generic configuration structure with the information from an audio baseline configuration structure.
| baseline_ptr | Pointer to the source configuration; its payload_type must be kCdiAvmAudio. |
| config_ptr | Address of where the generic configuration is to be written. |
| payload_unit_size_ptr | Pointer to where the payload unit size is to be written. |
|
static |
Populates the provided generic configuration structure with the information from a video baseline configuration structure.
| baseline_ptr | Pointer to the source configuration; its payload_type must be kCdiAvmVideo. |
| config_ptr | Address of where the generic configuration is to be written. |
| payload_unit_size_ptr | Pointer to where the payload unit size is to be written. |
|
static |
Attempts to interpret a generic AVM configuration structure and convert it into a baseline configuration structure for ancillary data. Unknown parameters do not result in failure but do cause warnings to be logged in order to handle forward compatiblity as gracefully as possible.
| config_ptr | Pointer to the source generic configuration structure. |
| baseline_ptr | Address where the resulting video baseline configuration data will be written. |
|
static |
Attempts to interpret a generic AVM configuration structure and convert it into a baseline configuration structure for audio. Unknown parameters do not result in failure but do cause warnings to be logged in order to handle forward compatiblity as gracefully as possible.
| config_ptr | Pointer to the source generic configuration structure. |
| baseline_ptr | Address where the resulting video baseline configuration data will be written. |
|
static |
Attempts to interpret a generic AVM configuration structure and convert it into a baseline configuration structure for video. Unknown parameters do not result in failure but do cause warnings to be logged in order to handle forward compatiblity as gracefully as possible.
| config_ptr | Pointer to the source generic configuration structure. |
| baseline_ptr | Address where the resulting video baseline configuration data will be written. |
| CdiReturnStatus RegisterAvmBaselineProfiles_1_00 | ( | void | ) |
Register baseline profile 01.00.
|
static |
Enum/string keys for CdiAvmVideoAlphaChannel.
|
static |
Enum/string keys for CdiAvmAudioChannelGrouping.
|
static |
Enum/string keys for CdiAvmAudioSampleRate.
|
static |
Enum/string keys for CdiAvmColorimetry.
|
static |
The current version of the baseline ancillary data profile. This value is always sent with AVM configuration structures for ancillary data.
|
static |
The current version of the baseline audio profile. This value is always sent with AVM configuration structures for audio.
|
static |
The current version of the baseline video profile. This value is always sent with AVM configuration structures for video.
|
static |
Enum/string keys for CdiAvmVideoRange.
|
static |
Enum/string keys for CdiAvmVideoTcs.
|
static |
Enum/string keys for CdiAvmVideoBitDepth.
|
static |
Enum/string keys for CdiAvmVideoSampling.