Changeset 2623


Ignore:
Timestamp:
Apr 20, 2009 6:38:15 PM (15 years ago)
Author:
bennylp
Message:

More ticket #774: replaced dependency to STL

Location:
pjproject/trunk/third_party
Files:
5 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/build/g7221/Makefile

    r2617 r2623  
    2222export G7221_CODEC_SRCDIR = ../../g7221 
    2323export G7221_CODEC_OBJS = common/common.o common/huff_tab.o common/tables.o \ 
    24                         common/stl-files/basop32.o  \ 
     24                        common/basic_op.o  \ 
    2525                        decode/coef2sam.o decode/dct4_s.o decode/decoder.o \ 
    2626                        encode/dct4_a.o encode/sam2coef.o encode/encoder.o 
  • pjproject/trunk/third_party/build/g7221/libg7221codec.dsp

    r2616 r2623  
    4444# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c 
    4545# ADD CPP /nologo /MD /W3 /GX /O2 /I "../.." /I "../../g7221/common" /I "../../g7221/common/stl-files" /I "../../../pjlib/include" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FR /YX /FD /c 
    46 # SUBTRACT CPP /Z<none> 
    4746# ADD BASE RSC /l 0x409 /d "NDEBUG" 
    4847# ADD RSC /l 0x409 /d "NDEBUG" 
     
    9089 
    9190# PROP Default_Filter "" 
    92 # Begin Group "stl-files" 
    93  
    94 # PROP Default_Filter "" 
    9591# Begin Source File 
    9692 
    97 SOURCE="..\..\g7221\common\stl-files\basop32.c" 
     93SOURCE=..\..\g7221\common\basic_op.c 
    9894# End Source File 
    9995# Begin Source File 
    10096 
    101 SOURCE="..\..\g7221\common\stl-files\basop32.h" 
     97SOURCE=..\..\g7221\common\basic_op.h 
    10298# End Source File 
    10399# Begin Source File 
    104100 
    105 SOURCE="..\..\g7221\common\stl-files\basop32_i.h" 
     101SOURCE=..\..\g7221\common\basic_op_i.h 
    106102# End Source File 
    107103# Begin Source File 
    108104 
    109 SOURCE="..\..\g7221\common\stl-files\count.h" 
     105SOURCE=..\..\g7221\common\common.c 
    110106# End Source File 
    111107# Begin Source File 
    112108 
    113 SOURCE="..\..\g7221\common\stl-files\typedef.h" 
     109SOURCE=..\..\g7221\common\count.h 
    114110# End Source File 
    115 # End Group 
    116111# Begin Source File 
    117112 
    118 SOURCE=..\..\g7221\common\common.c 
     113SOURCE=..\..\g7221\common\defs.h 
    119114# End Source File 
    120115# Begin Source File 
     
    137132 
    138133SOURCE=..\..\g7221\common\tables.h 
     134# End Source File 
     135# Begin Source File 
     136 
     137SOURCE=..\..\g7221\common\typedef.h 
    139138# End Source File 
    140139# End Group 
     
    183182 
    184183# PROP Default_Filter "h;hpp;hxx;hm;inl" 
    185 # Begin Source File 
    186  
    187 SOURCE=..\..\g7221\common\defs.h 
    188 # End Source File 
    189184# End Group 
    190185# End Target 
  • pjproject/trunk/third_party/build/g7221/libg7221codec.vcproj

    r2617 r2623  
    850850                                > 
    851851                                <File 
     852                                        RelativePath="..\..\g7221\common\basic_op.c" 
     853                                        > 
     854                                </File> 
     855                                <File 
     856                                        RelativePath="..\..\g7221\common\basic_op.h" 
     857                                        > 
     858                                </File> 
     859                                <File 
     860                                        RelativePath="..\..\g7221\common\basic_op_i.h" 
     861                                        > 
     862                                </File> 
     863                                <File 
    852864                                        RelativePath="..\..\g7221\common\common.c" 
    853865                                        > 
     
    908920                                </File> 
    909921                                <File 
     922                                        RelativePath="..\..\g7221\common\count.h" 
     923                                        > 
     924                                </File> 
     925                                <File 
    910926                                        RelativePath="..\..\g7221\common\huff_def.h" 
    911927                                        > 
     
    10351051                                        > 
    10361052                                </File> 
    1037                                 <Filter 
    1038                                         Name="stl-files" 
    1039                                         > 
    1040                                         <File 
    1041                                                 RelativePath="..\..\g7221\common\stl-files\basop32.c" 
    1042                                                 > 
    1043                                                 <FileConfiguration 
    1044                                                         Name="Release|Win32" 
    1045                                                         > 
    1046                                                         <Tool 
    1047                                                                 Name="VCCLCompilerTool" 
    1048                                                                 AdditionalIncludeDirectories="" 
    1049                                                                 PreprocessorDefinitions="" 
    1050                                                         /> 
    1051                                                 </FileConfiguration> 
    1052                                                 <FileConfiguration 
    1053                                                         Name="Debug|Win32" 
    1054                                                         > 
    1055                                                         <Tool 
    1056                                                                 Name="VCCLCompilerTool" 
    1057                                                                 AdditionalIncludeDirectories="" 
    1058                                                                 PreprocessorDefinitions="" 
    1059                                                         /> 
    1060                                                 </FileConfiguration> 
    1061                                                 <FileConfiguration 
    1062                                                         Name="Release-Dynamic|Win32" 
    1063                                                         > 
    1064                                                         <Tool 
    1065                                                                 Name="VCCLCompilerTool" 
    1066                                                                 AdditionalIncludeDirectories="" 
    1067                                                                 PreprocessorDefinitions="" 
    1068                                                         /> 
    1069                                                 </FileConfiguration> 
    1070                                                 <FileConfiguration 
    1071                                                         Name="Release-Static|Win32" 
    1072                                                         > 
    1073                                                         <Tool 
    1074                                                                 Name="VCCLCompilerTool" 
    1075                                                                 AdditionalIncludeDirectories="" 
    1076                                                                 PreprocessorDefinitions="" 
    1077                                                         /> 
    1078                                                 </FileConfiguration> 
    1079                                                 <FileConfiguration 
    1080                                                         Name="Debug-Static|Win32" 
    1081                                                         > 
    1082                                                         <Tool 
    1083                                                                 Name="VCCLCompilerTool" 
    1084                                                                 AdditionalIncludeDirectories="" 
    1085                                                                 PreprocessorDefinitions="" 
    1086                                                         /> 
    1087                                                 </FileConfiguration> 
    1088                                                 <FileConfiguration 
    1089                                                         Name="Debug-Dynamic|Win32" 
    1090                                                         > 
    1091                                                         <Tool 
    1092                                                                 Name="VCCLCompilerTool" 
    1093                                                                 AdditionalIncludeDirectories="" 
    1094                                                                 PreprocessorDefinitions="" 
    1095                                                         /> 
    1096                                                 </FileConfiguration> 
    1097                                         </File> 
    1098                                         <File 
    1099                                                 RelativePath="..\..\g7221\common\stl-files\basop32.h" 
    1100                                                 > 
    1101                                         </File> 
    1102                                         <File 
    1103                                                 RelativePath="..\..\g7221\common\stl-files\basop32_i.h" 
    1104                                                 > 
    1105                                         </File> 
    1106                                         <File 
    1107                                                 RelativePath="..\..\g7221\common\stl-files\count.h" 
    1108                                                 > 
    1109                                         </File> 
    1110                                         <File 
    1111                                                 RelativePath="..\..\g7221\common\stl-files\typedef.h" 
    1112                                                 > 
    1113                                         </File> 
    1114                                 </Filter> 
     1053                                <File 
     1054                                        RelativePath="..\..\g7221\common\typedef.h" 
     1055                                        > 
     1056                                </File> 
    11151057                        </Filter> 
    11161058                        <Filter 
  • pjproject/trunk/third_party/g7221/common/defs.h

    r2620 r2623  
    1414#include <math.h> 
    1515#include <stdlib.h> 
    16 #include "g7221/common/stl-files/typedef.h" 
    17 #include "g7221/common/stl-files/basop32.h" 
     16#include "g7221/common/typedef.h" 
     17#include "g7221/common/basic_op.h" 
    1818 
    1919#define  PI             3.141592653589793238462 
  • pjproject/trunk/third_party/g7221/decode/decoder.c

    r2616 r2623  
    473473    Word16 num_vecs; 
    474474    Word16 index; 
     475    Word16 bit; 
    475476    Word16 signs_index; 
    476     Word16 bit; 
    477477    Word16 num_sign_bits; 
    478478    Word16 ran_out_of_bits_flag; 
     
    560560                if (temp >= 0)  
    561561                { 
     562 
    562563                        test(); 
    563564                    if (num_sign_bits != 0)  
  • pjproject/trunk/third_party/g7221/encode/encoder.c

    r2616 r2623  
    231231    UWord32 current_word; 
    232232     
    233     Word32  acca; 
     233    Word32  acca = 0; 
    234234    Word32  accb; 
    235235    Word16  temp; 
     
    10111011         */ 
    10121012      
    1013         mytemp = acca & 0x3; 
     1013        mytemp = (Word16)(acca & 0x3); 
    10141014    acca = L_shr_nocheck(acca,2); 
    10151015 
Note: See TracChangeset for help on using the changeset viewer.