]> git.sesse.net Git - vlc/blobdiff - include/vlc_sout.h
Added sout_UpdateStatistic and fixed transcode module to use it.
[vlc] / include / vlc_sout.h
index f268fd5effb2b8f1ceff2c1b5bf681891b67aa79..2349bfd7f7d4beca7759650c919e90ba28b23655 100644 (file)
@@ -58,6 +58,21 @@ struct sout_instance_t
     sout_instance_sys_t *p_sys;
 };
 
+/** Stream output statistics */
+typedef enum
+{
+    SOUT_STATISTIC_DECODED_VIDEO,
+    SOUT_STATISTIC_DECODED_AUDIO,
+    SOUT_STATISTIC_DECODED_SUBTITLE,
+
+    /* Use them only if you do not goes through a access_out module */
+    SOUT_STATISTIC_SENT_PACKET,
+    SOUT_STATISTIC_SENT_BYTE,
+
+} sout_statistic_t;
+
+VLC_EXPORT( void, sout_UpdateStatistic, ( sout_instance_t *p_sout, sout_statistic_t, int ) );
+
 /****************************************************************************
  * sout_stream_id_t: opaque (private for all sout_stream_t)
  ****************************************************************************/