<p>tnt has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/14051">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">codec/ecu: Add a bit of precision about the actual frame format used<br><br>Change-Id: I9620088e449c31e966ecb9ec5ddf283b949c5a4a<br>Signed-off-by: Sylvain Munaut <tnt@246tNt.com><br>---<br>M src/codec/ecu_fr.c<br>1 file changed, 7 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/51/14051/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/codec/ecu_fr.c b/src/codec/ecu_fr.c</span><br><span>index 784a5b8..20a0f89 100644</span><br><span>--- a/src/codec/ecu_fr.c</span><br><span>+++ b/src/codec/ecu_fr.c</span><br><span>@@ -123,10 +123,12 @@</span><br><span>     return rc;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-/**</span><br><span style="color: hsl(120, 100%, 40%);">+/*!</span><br><span>  * To be called when a good frame is received.</span><br><span>  * This function will then create a backup of the frame</span><br><span>  * and reset the internal state.</span><br><span style="color: hsl(120, 100%, 40%);">+ * \param[in] state The state object for the ECU</span><br><span style="color: hsl(120, 100%, 40%);">+ * \param[out] frame The valid frame (GSM_FR_BYTES bytes in RTP payload format)</span><br><span>  */</span><br><span> void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, uint8_t *frame)</span><br><span> {</span><br><span>@@ -134,10 +136,13 @@</span><br><span>       memcpy(state->frame_backup, frame, GSM_FR_BYTES);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-/**</span><br><span style="color: hsl(120, 100%, 40%);">+/*!</span><br><span>  * To be called when a bad frame is received.</span><br><span>  * This function will then generate a replacement frame</span><br><span>  * that can be used to conceal the dropout.</span><br><span style="color: hsl(120, 100%, 40%);">+ * \param[in] state The state object for the ECU</span><br><span style="color: hsl(120, 100%, 40%);">+ * \param[out] frame The buffer to fill with GSM_FR_BYTES of replacement frame</span><br><span style="color: hsl(120, 100%, 40%);">+ * \returns 0 if the frame was sucessfully filled</span><br><span>  */</span><br><span> int osmo_ecu_fr_conceal(struct osmo_ecu_fr_state *state, uint8_t *frame)</span><br><span> {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/14051">change 14051</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/14051"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I9620088e449c31e966ecb9ec5ddf283b949c5a4a </div>
<div style="display:none"> Gerrit-Change-Number: 14051 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: tnt <tnt@246tNt.com> </div>