[vlc-devel] commit: es_format_t: add i_level ( Rafaël Carré )

git version control git at videolan.org
Sat Jan 23 16:44:58 CET 2010


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Fri Jan 22 14:35:05 2010 +0100| [8ddf6aa4f2bd2ace4ee96b07325f49530db64d1c] | committer: Rafaël Carré 

es_format_t: add i_level

It indicates restrictions on the ES (resolution, bitrate, codec
features...), like the H264 level

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8ddf6aa4f2bd2ace4ee96b07325f49530db64d1c
---

 include/vlc_es.h     |    1 +
 src/misc/es_format.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/vlc_es.h b/include/vlc_es.h
index 3c9260c..3d1ec2f 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -256,6 +256,7 @@ struct es_format_t
 
     unsigned int   i_bitrate; /**< bitrate of this ES */
     int      i_profile;       /**< codec specific information (like real audio flavor, mpeg audio layer, h264 profile ...) */
+    int      i_level;         /**< codec specific information: indicates maximum restrictions on the stream (resolution, bitrate, codec features ...) */
 
     bool     b_packetized;  /**< wether the data is packetized (ie. not truncated) */
     int     i_extra;        /**< length in bytes of extra data pointer */
diff --git a/src/misc/es_format.c b/src/misc/es_format.c
index ab94ff9..650b315 100644
--- a/src/misc/es_format.c
+++ b/src/misc/es_format.c
@@ -242,6 +242,7 @@ void es_format_Init( es_format_t *fmt,
     fmt->i_codec                = i_codec;
     fmt->i_original_fourcc      = 0;
     fmt->i_profile              = -1;
+    fmt->i_level                = -1;
     fmt->i_id                   = -1;
     fmt->i_group                = 0;
     fmt->i_priority             = 0;




More information about the vlc-devel mailing list