rohc_comp_enable_profile − Enable a compression profile for a compressor.
#include <rohc/rohc_comp.h>
bool
rohc_comp_enable_profile(
struct rohc_comp *const comp,
const rohc_profile_t profile
);
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.
comp |
The ROHC compressor |
profile
The profile to enable
true if the profile exists, false if the profile does not exist
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;
}
rohc_comp.h(3), rohc_comp_enable_profiles(3), rohc_comp_disable_profile(3), rohc_comp_disable_profiles(3)