]> git.sesse.net Git - vlc/commitdiff
Ajout de quelques membres a picture_t
authorVincent Seguin <seguin@videolan.org>
Tue, 18 Jan 2000 14:09:58 +0000 (14:09 +0000)
committerVincent Seguin <seguin@videolan.org>
Tue, 18 Jan 2000 14:09:58 +0000 (14:09 +0000)
include/video.h

index 7f117494ebcb272f721ae2be79b3563b43be6712..5288b626b8c5d432873e991377dd3af09651dfbb 100644 (file)
@@ -31,13 +31,20 @@ typedef struct
     int             i_status;                                 /* picture flags */
     int             i_matrix_coefficients;       /* in YUV type, encoding type */    
     
-    /* Picture properties - those properties are fixed at initialization and 
-     * should NOT be modified. Note that for YUV pictures, i_bytes_per_line is
-     * the number of bytes for Y samples - the total size allocated will depend
-     * of the picture format */
+    /* Picture static properties - those properties are fixed at initialization
+     * and should NOT be modified. Note that for YUV pictures, i_bytes_per_line
+     * has no signification and is replaced by i_width */
     int             i_width;                                  /* picture width */
     int             i_height;                                /* picture height */
     int             i_bytes_per_line;        /* total number of bytes per line */
+
+    /* Picture dynamic properties - those properties can be changed by the 
+     * decoder */
+    int             i_display_horizontal_offset;     /* ISO/IEC 13818-2 6.3.12 */
+    int             i_display_vertical_offset;       /* ISO/IEC 13818-2 6.3.12 */
+    int             i_display_width;                   /* useful picture width */
+    int             i_display_height;                 /* useful picture height */
+    int             i_aspect_ratio;                            /* aspect ratio */  
     
     /* Link reference counter - it can be modified using vout_Link and 
      * vout_Unlink functions, or directly if the picture is independant */
@@ -77,10 +84,8 @@ typedef struct
 #define DISPLAYED_PICTURE       3  /* picture has been displayed but is linked */
 #define DESTROYED_PICTURE       4     /* picture is allocated but no more used */
 
-
-
-
-
-
-
-
+/* Aspect ratios (ISO/IEC 13818-2 section 6.3.3, table 6-3) */
+#define AR_SQUARE_PICTURE       1                             /* square pixels */
+#define AR_3_4_PICTURE          2                          /* 3:4 picture (TV) */
+#define AR_16_9_PICTURE         3                /* 16:9 picture (wide screen) */
+#define AR_221_1_PICTURE        4                    /* 2.21:1 picture (movie) */