home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2004 March / PCWELT_3_2004.ISO / pcwsoft / flaskmpeg_078_39_src.z.exe / flaskmpeg / Video / misc_tables.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-10-28  |  1.9 KB  |  100 lines

  1. /* 
  2.  *  tables.h
  3.  *
  4.  *    Copyright (C) Alberto Vigata - July 2000  ultraflask@yahoo.com
  5.  *                 
  6.  *
  7.  *  This file is part of FlasKMPEG, a free MPEG to MPEG/AVI converter
  8.  *    
  9.  *  FlasKMPEG is free software; you can redistribute it and/or modify
  10.  *  it under the terms of the GNU General Public License as published by
  11.  *  the Free Software Foundation; either version 2, or (at your option)
  12.  *  any later version.
  13.  *   
  14.  *  FlasKMPEG is distributed in the hope that it will be useful,
  15.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  *  GNU General Public License for more details.
  18.  *   
  19.  *  You should have received a copy of the GNU General Public License
  20.  *  along with GNU Make; see the file COPYING.  If not, write to
  21.  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  22.  *
  23.  */
  24.  
  25.  
  26. #define RESERVED 1
  27. static double MPEG1aspect_ratio_Table[16] =
  28. {
  29.     0.0,    
  30.     1.0000,
  31.     0.6735,        
  32.     0.7031,
  33.     0.7615,        
  34.     0.8055,        
  35.     0.8437,
  36.     0.8935,        
  37.     0.9375,
  38.     0.9815,        
  39.     1.0255,        
  40.     1.0695,        
  41.     1.1250,
  42.     1.1575,        
  43.     1.2015,
  44.     RESERVED
  45. };
  46.  
  47. static double frameRateTable[16]=
  48. {
  49.   0.0,
  50.   (24000.0/1001.0),
  51.   24.0,
  52.   25.0,
  53.   (30000.0/1001.0),
  54.   30.0,
  55.   50.0,
  56.   (60000.0/1001.0),
  57.   60.0,
  58.   0.0,
  59.   0.0,
  60.   0.0,
  61.   0.0,
  62.   0.0,
  63.   0.0,
  64.   0.0
  65. };
  66.  
  67.  
  68. static long frame_rate_scale_table[16]=
  69. {
  70.     0,  23976, 24,  25,  2997,  30,  50,  5994,
  71.     60, 0,     0,    0,     0,   0,   0,     0
  72. };
  73.  
  74. static long frame_rate_scale_samplesize[16]=
  75. {
  76.     0,  1000,   1,    1,  100,   1,   1,   100,
  77.     1,     0,   0,    0,    0,   0,   0,     0
  78. };
  79.  
  80. static double MPEG2aspect_ratio_Table[16] =
  81. {
  82.   0.0,
  83.   1,
  84.   (3.0/4.0),
  85.   (9.0/16.0),
  86.   (1.0/2.21),
  87.   RESERVED,
  88.   RESERVED,
  89.   RESERVED,
  90.   RESERVED,
  91.   RESERVED,
  92.   RESERVED,
  93.   RESERVED,
  94.   RESERVED,
  95.   RESERVED,
  96.   RESERVED,
  97.   RESERVED
  98. };
  99.  
  100.