00001 /* conform.c, conformance checks */ 00002 00003 /* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */ 00004 00005 /* 00006 * Disclaimer of Warranty 00007 * 00008 * These software programs are available to the user without any license fee or 00009 * royalty on an "as is" basis. The MPEG Software Simulation Group disclaims 00010 * any and all warranties, whether express, implied, or statuary, including any 00011 * implied warranties or merchantability or of fitness for a particular 00012 * purpose. In no event shall the copyright-holder be liable for any 00013 * incidental, punitive, or consequential damages of any kind whatsoever 00014 * arising from the use of these programs. 00015 * 00016 * This disclaimer of warranty extends to the user of these programs and user's 00017 * customers, employees, agents, transferees, successors, and assigns. 00018 * 00019 * The MPEG Software Simulation Group does not represent or warrant that the 00020 * programs furnished hereunder are free of infringement of any third-party 00021 * patents. 00022 * 00023 * Commercial implementations of MPEG-1 and MPEG-2 video, including shareware, 00024 * are subject to royalty fees to patent holders. Many of these patents are 00025 * general enough such that they are unavoidable regardless of implementation 00026 * design. 00027 * 00028 */ 00029 00030 #include <stdio.h> 00031 #include <stdlib.h> 00032 00033 #include "config.h" 00034 #include "global.h" 00035 00036 /* check for (level independent) parameter limits */ 00037 void range_checks() 00038 { 00039 } 00040 00041 /* identifies valid profile / level combinations */ 00042 static char profile_level_defined[5][4] = 00043 { 00044 /* HL H-14 ML LL */ 00045 {1, 1, 1, 0}, /* HP */ 00046 {0, 1, 0, 0}, /* Spat */ 00047 {0, 0, 1, 1}, /* SNR */ 00048 {1, 1, 1, 1}, /* MP */ 00049 {0, 0, 1, 0} /* SP */ 00050 }; 00051 00052 static struct level_limits { 00053 int hor_f_code; 00054 int vert_f_code; 00055 int hor_size; 00056 int vert_size; 00057 int sample_rate; 00058 int bit_rate; /* Mbit/s */ 00059 int vbv_buffer_size; /* 16384 bit steps */ 00060 } maxval_tab[4] = 00061 { 00062 {9, 5, 1920, 1152, 62668800, 80, 597}, /* HL */ 00063 {9, 5, 1440, 1152, 47001600, 60, 448}, /* H-14 */ 00064 {8, 5, 720, 576, 10368000, 15, 112}, /* ML */ 00065 {7, 4, 352, 288, 3041280, 4, 29} /* LL */ 00066 }; 00067 00068 #define SP 5 00069 #define MP 4 00070 #define SNR 3 00071 #define SPAT 2 00072 #define HP 1 00073 00074 #define LL 10 00075 #define ML 8 00076 #define H14 6 00077 #define HL 4 00078 00079 void profile_and_level_checks() 00080 { 00081 }
1.5.5