rohc_comp_enable_profile

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
STRUCTURES
RETURN VALUE
EXAMPLE
SEE ALSO

NAME

rohc_comp_enable_profile − Enable a compression profile for a compressor.

SYNOPSIS

#include <rohc/rohc_comp.h>

bool rohc_comp_enable_profile(
struct rohc_comp *const comp
,
const rohc_profile_t profile

);

DESCRIPTION

Enable a compression profiles for a compressor.

The ROHC compressor does not use the compression profiles that are not enabled. Thus not enabling a profile might affect compression performances. Compression will fail if no profile at all is enabled.

If the profile is already enabled, nothing is performed and success is reported.

PARAMETERS

comp

The ROHC compressor

profile

The profile to enable

STRUCTURES

RETURN VALUE

true if the profile exists, false if the profile does not exist

EXAMPLE

struct rohc_comp *compressor; /* the ROHC compressor */

if(!rohc_comp_enable_profile(compressor, ROHC_PROFILE_UNCOMPRESSED))
{
fprintf(stderr, "failed to enable the Uncompressed profile0);
goto release_compressor;
}
if(!rohc_comp_enable_profile(compressor, ROHC_PROFILE_IP))
{
fprintf(stderr, "failed to enable the IP−only profile0);
goto release_compressor;
}

SEE ALSO

rohc_comp.h(3), rohc_comp_enable_profiles(3), rohc_comp_disable_profile(3), rohc_comp_disable_profiles(3)