about cid type

Asked by qingbaibai on 2011-12-14

hello,

I find that in test "comp1 = rohc_alloc_compressor(15, 0, 0, 0);". It means to compressor the max_cid is 15. In other words, the compressor use smallcid. In "struct rohc_comp *rohc_alloc_compressor(int max_cid, int jam_use, int adapt_size, int encap_size)" of file rohc_comp.c cid type is set as "comp->medium.max_cid = max_cid; comp->medium.cid_type = SMALL_CID;". Is that means the library only supports smallcid for compressor. To decompressor, cid type can be chose.

Regards,
qingbaibai

Question information

Language:
English Edit question
Status:
Answered
For:
rohc Edit question
Assignee:
No assignee Edit question
Last query:
2011-12-14
Last reply:
2011-12-14

Hello,

The compressor does support both small and large CIDs. See the rohc_c_set_large_cid function [1]. The rohc_c_set_max_cid function [2] controls the size of the small and large CIDs.

The decompressor does support both small and large CIDs too. But you can not configure this parameter. The decompressor adapts itself to the received packets.

Regards,
Didier

[1] http://rohc-lib.org/doc/rohc-doc-1.3.1/group__rohc__comp.html#gc1eac04c7b875b34be20bc0aaeb627e5
[2] http://rohc-lib.org/doc/rohc-doc-1.3.1/group__rohc__comp.html#g8e2d03b4076c9b9bfdd8ba859e560047

Can you help with this problem?

Provide an answer of your own, or ask qingbaibai for more information if necessary.

To post a message you must log in.