# MMX/SSE optims
ifeq ($(ARCH),X86)
-SRCS += common/i386/mc-c.c common/i386/dct-c.c common/i386/predict.c
+SRCS += common/i386/mc-c.c common/i386/dct-c.c common/i386/predict-c.c
ASMSRC = common/i386/dct-a.asm common/i386/cpu-a.asm \
common/i386/pixel-a.asm common/i386/mc-a.asm \
common/i386/mc-a2.asm common/i386/predict-a.asm \
# MMX/SSE optims
ifeq ($(ARCH),X86_64)
-SRCS += common/i386/mc-c.c common/i386/dct-c.c common/i386/predict.c
+SRCS += common/i386/mc-c.c common/i386/dct-c.c commoni386/predict-c.c
ASMSRC = common/amd64/dct-a.asm common/amd64/cpu-a.asm \
common/amd64/pixel-a.asm common/amd64/mc-a.asm \
common/amd64/mc-a2.asm common/amd64/predict-a.asm \
# PROP AllowPerConfigDependencies 0\r
# PROP Scc_ProjName ""\r
# PROP Scc_LocalPath ""\r
-CPP=xicl6.exe\r
+CPP=cl.exe\r
RSC=rc.exe\r
\r
!IF "$(CFG)" == "libx264 - Win32 Release"\r
# PROP Intermediate_Dir "Release"\r
# PROP Target_Dir ""\r
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c\r
-# ADD CPP /nologo /G6 /W3 /GX /O2 /Ob2 /I "./common" /I "./encode" /I "./decode" /I "../../extras" /I "../.." /D "NDEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "__X264__" /D "HAVE_MMXEXT" /D "ARCH_X86" /D "HAVE_STDINT_H" /FD /c\r
+# ADD CPP /nologo /G6 /W3 /GX /O2 /Ob2 /I "./common" /I "./encode" /I "./decode" /I "../../extras" /I "../.." /D "NDEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "__X264__" /D "HAVE_MMXEXT" /D "HAVE_SSE2" /D "ARCH_X86" /D "HAVE_STDINT_H" /FD /c\r
# SUBTRACT CPP /YX\r
# ADD BASE RSC /l 0x804 /d "NDEBUG"\r
# ADD RSC /l 0x804 /d "NDEBUG"\r
# PROP Intermediate_Dir "Debug"\r
# PROP Target_Dir ""\r
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c\r
-# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "./common" /I "./encode" /I "./decode" /I "../../extras" /I "../.." /D "_DEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "__X264__" /D "HAVE_MMXEXT" /D "ARCH_X86" /D "HAVE_STDINT_H" /FD /GZ /c\r
+# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "./common" /I "./encode" /I "./decode" /I "../../extras" /I "../.." /D "_DEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "__X264__" /D "HAVE_MMXEXT" /D "HAVE_SSE2" /D "ARCH_X86" /D "HAVE_STDINT_H" /FD /GZ /c\r
# SUBTRACT CPP /YX\r
# ADD BASE RSC /l 0x804 /d "_DEBUG"\r
# ADD RSC /l 0x804 /d "_DEBUG"\r
InputName=cpu-a\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
InputName=cpu-a\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
InputName=dct-a\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
InputName=dct-a\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE="..\..\common\i386\predict-c.c"\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=..\..\common\i386\dct.h\r
# End Source File\r
# Begin Source File\r
InputName=mc-a\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
InputName=mc-a\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
InputName=pixel-a\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
InputName=pixel-a\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+\r
+# End Custom Build\r
+\r
+!ENDIF \r
+\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE="..\..\common\i386\pixel-sse2.asm"\r
+\r
+!IF "$(CFG)" == "libx264 - Win32 Release"\r
+\r
+# Begin Custom Build - Assembly $(InputPath)\r
+IntDir=.\Release\r
+InputPath=..\..\common\i386\pixel-sse2.asm\r
+InputName=pixel-sse2\r
+\r
+"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+\r
+# End Custom Build\r
+\r
+!ELSEIF "$(CFG)" == "libx264 - Win32 Debug"\r
+\r
+# Begin Custom Build - Assembly $(InputPath)\r
+IntDir=.\Debug\r
+InputPath=..\..\common\i386\pixel-sse2.asm\r
+InputName=pixel-sse2\r
+\r
+"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
InputName=mc-a2\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
InputName=mc-a2\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
InputName=predict-a\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
InputName=predict-a\r
\r
"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
- nasm -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+\r
+# End Custom Build\r
+\r
+!ENDIF \r
+\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE="..\..\common\i386\deblock-a.asm"\r
+\r
+!IF "$(CFG)" == "libx264 - Win32 Release"\r
+\r
+# Begin Custom Build - Assembly $(InputPath)\r
+IntDir=.\Release\r
+InputPath=..\..\common\i386\deblock-a.asm\r
+InputName=deblock-a\r
+\r
+"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+\r
+# End Custom Build\r
+\r
+!ELSEIF "$(CFG)" == "libx264 - Win32 Debug"\r
+\r
+# Begin Custom Build - Assembly $(InputPath)\r
+IntDir=.\Debug\r
+InputPath=..\..\common\i386\deblock-a.asm\r
+InputName=deblock-a\r
+\r
+"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+\r
+# End Custom Build\r
+\r
+!ENDIF \r
+\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE="..\..\common\i386\quant-a.asm"\r
+\r
+!IF "$(CFG)" == "libx264 - Win32 Release"\r
+\r
+# Begin Custom Build - Assembly $(InputPath)\r
+IntDir=.\Release\r
+InputPath=..\..\common\i386\quant-a.asm\r
+InputName=quant-a\r
+\r
+"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
+\r
+# End Custom Build\r
+\r
+!ELSEIF "$(CFG)" == "libx264 - Win32 Debug"\r
+\r
+# Begin Custom Build - Assembly $(InputPath)\r
+IntDir=.\Debug\r
+InputPath=..\..\common\i386\quant-a.asm\r
+InputName=quant-a\r
+\r
+"$(IntDir)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"\r
+ nasm -I..\..\common\i386\ -f win32 -DPREFIX -o $(IntDir)\$(InputName).obj $(InputPath)\r
\r
# End Custom Build\r
\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\common\set.c\r
+\r
+!IF "$(CFG)" == "libx264 - Win32 Release"\r
+\r
+# PROP Intermediate_Dir "obj/core_release"\r
+\r
+!ELSEIF "$(CFG)" == "libx264 - Win32 Debug"\r
+\r
+# PROP Intermediate_Dir "obj/core_debug"\r
+\r
+!ENDIF \r
+\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\common\quant.c\r
+\r
+!IF "$(CFG)" == "libx264 - Win32 Release"\r
+\r
+# PROP Intermediate_Dir "obj/core_release"\r
+\r
+!ELSEIF "$(CFG)" == "libx264 - Win32 Debug"\r
+\r
+# PROP Intermediate_Dir "obj/core_debug"\r
+\r
+!ENDIF \r
+\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=..\..\common\i386\mc-c.c\r
\r
!IF "$(CFG)" == "libx264 - Win32 Release"\r
ProjectType="Visual C++"\r
Version="7.10"\r
Name="libx264"\r
+ ProjectGUID="{A8D6E4CD-1885-4B03-8E41-5F3DB825BAA6}"\r
SccProjectName=""\r
SccLocalPath="">\r
<Platforms>\r
ProgramDataBaseFileName="obj/core_release/"/>\r
</FileConfiguration>\r
</File>\r
+ <File\r
+ RelativePath="..\..\common\i386\predict-c.c">\r
+ <FileConfiguration\r
+ Name="Release|Win32">\r
+ <Tool\r
+ Name="VCCLCompilerTool"\r
+ Optimization="2"\r
+ AdditionalIncludeDirectories=""\r
+ PreprocessorDefinitions=""\r
+ ObjectFile=".\obj/core_release/"\r
+ ProgramDataBaseFileName="obj/core_release/"/>\r
+ </FileConfiguration>\r
+ <FileConfiguration\r
+ Name="Debug|Win32">\r
+ <Tool\r
+ Name="VCCLCompilerTool"\r
+ Optimization="0"\r
+ AdditionalIncludeDirectories=""\r
+ PreprocessorDefinitions=""\r
+ BasicRuntimeChecks="3"\r
+ ObjectFile=".\obj/core_debug/"\r
+ ProgramDataBaseFileName="obj/core_debug/"/>\r
+ </FileConfiguration>\r
+ <FileConfiguration\r
+ Name="Release64|Win32">\r
+ <Tool\r
+ Name="VCCLCompilerTool"\r
+ Optimization="2"\r
+ AdditionalIncludeDirectories=""\r
+ PreprocessorDefinitions=""\r
+ ObjectFile=".\obj/core_release/"\r
+ ProgramDataBaseFileName="obj/core_release/"/>\r
+ </FileConfiguration>\r
+ </File>\r
<File\r
RelativePath="..\..\common\quant.c">\r
</File>\r
<Filter\r
Name="I386"\r
Filter="*.h,*.c,*-a.asm">\r
- <File\r
- RelativePath="..\..\common\i386\i386inc.asm">\r
- </File>\r
<File\r
RelativePath="..\..\common\i386\cpu-a.asm">\r
<FileConfiguration\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<File\r
RelativePath="..\..\common\i386\dct.h">\r
</File>\r
+ <File\r
+ RelativePath="..\..\common\i386\deblock-a.asm">\r
+ <FileConfiguration\r
+ Name="Release|Win32">\r
+ <Tool\r
+ Name="VCCustomBuildTool"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)""\r
+ Outputs="$(IntDir)\$(InputName).obj"/>\r
+ </FileConfiguration>\r
+ <FileConfiguration\r
+ Name="Debug|Win32">\r
+ <Tool\r
+ Name="VCCustomBuildTool"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)""\r
+ Outputs="$(IntDir)\$(InputName).obj"/>\r
+ </FileConfiguration>\r
+ <FileConfiguration\r
+ Name="Release64|Win32">\r
+ <Tool\r
+ Name="VCCustomBuildTool"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)""\r
+ Outputs="$(IntDir)\$(InputName).obj"/>\r
+ </FileConfiguration>\r
+ </File>\r
+ <File\r
+ RelativePath="..\..\common\i386\i386inc.asm">\r
+ <FileConfiguration\r
+ Name="Release|Win32">\r
+ <Tool\r
+ Name="VCCustomBuildTool"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+"\r
+ Outputs="$(IntDir)\$(InputName).obj"/>\r
+ </FileConfiguration>\r
+ <FileConfiguration\r
+ Name="Debug|Win32">\r
+ <Tool\r
+ Name="VCCustomBuildTool"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+"\r
+ Outputs="$(IntDir)\$(InputName).obj"/>\r
+ </FileConfiguration>\r
+ <FileConfiguration\r
+ Name="Release64|Win32">\r
+ <Tool\r
+ Name="VCCustomBuildTool"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+"\r
+ Outputs="$(IntDir)\$(InputName).obj"/>\r
+ </FileConfiguration>\r
+ </File>\r
<File\r
RelativePath="..\..\common\i386\mc-a.asm">\r
<FileConfiguration\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
Name="Release|Win32">\r
<Tool\r
Name="VCCustomBuildTool"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
- Outputs=""$(IntDir)\$(InputName)".obj"/>\r
+ Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<FileConfiguration\r
Name="Debug|Win32">\r
<Tool\r
Name="VCCustomBuildTool"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
- Outputs=""$(IntDir)\$(InputName)".obj"/>\r
+ Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<FileConfiguration\r
Name="Release64|Win32"\r
ExcludedFromBuild="TRUE">\r
<Tool\r
Name="VCCustomBuildTool"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
- Outputs=""$(IntDir)\$(InputName)".obj"/>\r
+ Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
</File>\r
<File\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Assembly $(InputPath)"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
Name="Release|Win32">\r
<Tool\r
Name="VCCustomBuildTool"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
Name="Debug|Win32">\r
<Tool\r
Name="VCCustomBuildTool"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
ExcludedFromBuild="TRUE">\r
<Tool\r
Name="VCCustomBuildTool"\r
- CommandLine="nasm -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
+ Description="Assembly $(InputPath)"\r
+ CommandLine="nasm -I..\..\common\i386\ -f win32 -DPREFIX -o "$(IntDir)\$(InputName)".obj "$(InputPath)"\r
"\r
Outputs="$(IntDir)\$(InputName).obj"/>\r
</FileConfiguration>\r
# PROP Ignore_Export_Lib 0\r
# PROP Target_Dir ""\r
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c\r
-# ADD CPP /nologo /W3 /GX /O2 /I "./common" /I "./encode" /I "./decode" /I "../../extras" /I "../.." /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "__X264__" /D "HAVE_MMXEXT" /YX /FD /c\r
+# ADD CPP /nologo /W3 /GX /O2 /I "./common" /I "./encode" /I "./decode" /I "../../extras" /I "../.." /D "NDEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "__X264__" /D "HAVE_MMXEXT" /D "HAVE_SSE2" /D "HAVE_STDINT_H" /YX /FD /c\r
# ADD BASE RSC /l 0x804 /d "NDEBUG"\r
# ADD RSC /l 0x804 /d "NDEBUG"\r
BSC32=bscmake.exe\r
# PROP Ignore_Export_Lib 0\r
# PROP Target_Dir ""\r
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c\r
-# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "../../common" /I "../../encode" /I "../../decode" /I "../../extras" /I "../.." /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "__X264__" /D "HAVE_MMXEXT" /YX /FD /GZ /c\r
+# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "../../common" /I "../../encode" /I "../../decode" /I "../../extras" /I "../.." /D "_DEBUG" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "__X264__" /D "HAVE_MMXEXT" /D "HAVE_SSE2" /D "HAVE_STDINT_H" /YX /FD /GZ /c\r
# ADD BASE RSC /l 0x804 /d "_DEBUG"\r
# ADD RSC /l 0x804 /d "_DEBUG"\r
BSC32=bscmake.exe\r
\r
SOURCE=..\..\x264.h\r
# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\matroska.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\matroska.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\muxers.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\muxers.h\r
+# End Source File\r
# End Target\r
# End Project\r
--- /dev/null
+Microsoft Visual Studio Solution File, Format Version 8.00\r
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libx264", "libx264.vcproj", "{A8D6E4CD-1885-4B03-8E41-5F3DB825BAA6}"\r
+ ProjectSection(ProjectDependencies) = postProject\r
+ EndProjectSection\r
+EndProject\r
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "x264", "x264.vcproj", "{22E1814D-7955-4456-AEA5-0C9BA7500792}"\r
+ ProjectSection(ProjectDependencies) = postProject\r
+ {A8D6E4CD-1885-4B03-8E41-5F3DB825BAA6} = {A8D6E4CD-1885-4B03-8E41-5F3DB825BAA6}\r
+ EndProjectSection\r
+EndProject\r
+Global\r
+ GlobalSection(SolutionConfiguration) = preSolution\r
+ Debug = Debug\r
+ Release = Release\r
+ Release64 = Release64\r
+ EndGlobalSection\r
+ GlobalSection(ProjectConfiguration) = postSolution\r
+ {22E1814D-7955-4456-AEA5-0C9BA7500792}.Debug.ActiveCfg = Debug|Win32\r
+ {22E1814D-7955-4456-AEA5-0C9BA7500792}.Debug.Build.0 = Debug|Win32\r
+ {22E1814D-7955-4456-AEA5-0C9BA7500792}.Release.ActiveCfg = Release|Win32\r
+ {22E1814D-7955-4456-AEA5-0C9BA7500792}.Release.Build.0 = Release|Win32\r
+ {22E1814D-7955-4456-AEA5-0C9BA7500792}.Release64.ActiveCfg = Release64|Win32\r
+ {22E1814D-7955-4456-AEA5-0C9BA7500792}.Release64.Build.0 = Release64|Win32\r
+ {A8D6E4CD-1885-4B03-8E41-5F3DB825BAA6}.Debug.ActiveCfg = Debug|Win32\r
+ {A8D6E4CD-1885-4B03-8E41-5F3DB825BAA6}.Debug.Build.0 = Debug|Win32\r
+ {A8D6E4CD-1885-4B03-8E41-5F3DB825BAA6}.Release.ActiveCfg = Release|Win32\r
+ {A8D6E4CD-1885-4B03-8E41-5F3DB825BAA6}.Release.Build.0 = Release|Win32\r
+ {A8D6E4CD-1885-4B03-8E41-5F3DB825BAA6}.Release64.ActiveCfg = Release64|Win32\r
+ {A8D6E4CD-1885-4B03-8E41-5F3DB825BAA6}.Release64.Build.0 = Release64|Win32\r
+ EndGlobalSection\r
+ GlobalSection(ExtensibilityGlobals) = postSolution\r
+ EndGlobalSection\r
+ GlobalSection(ExtensibilityAddIns) = postSolution\r
+ EndGlobalSection\r
+EndGlobal\r
ProjectType="Visual C++"\r
Version="7.10"\r
Name="x264"\r
+ ProjectGUID="{22E1814D-7955-4456-AEA5-0C9BA7500792}"\r
SccProjectName=""\r
SccLocalPath="">\r
<Platforms>\r
Name="VCCLCompilerTool"\r
Optimization="0"\r
AdditionalIncludeDirectories="../../common;../../encode;../../decode;../../extras;../..;L:\gpac\include"\r
- PreprocessorDefinitions="_DEBUG;_CONSOLE;WIN32;__X264__;HAVE_MMXEXT;HAVE_STDINT_H;AVIS_INPUT;MP4_OUTPUT"\r
+ PreprocessorDefinitions="_DEBUG;_CONSOLE;WIN32;__X264__;HAVE_MMXEXT;HAVE_STDINT_H;AVIS_INPUT"\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="5"\r
UsePrecompiledHeader="2"\r
Name="VCCustomBuildTool"/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="vfw32.lib ..\..\..\gpac\bin\w32_deb\libgpac_static.lib winmm.lib"\r
+ AdditionalDependencies="vfw32.lib winmm.lib"\r
OutputFile="bin/x264.exe"\r
LinkIncremental="1"\r
SuppressStartupBanner="TRUE"\r
Optimization="2"\r
InlineFunctionExpansion="1"\r
AdditionalIncludeDirectories="./common;./encode;./decode;../../extras;../..;L:\gpac\include"\r
- PreprocessorDefinitions="NDEBUG;_CONSOLE;WIN32;__X264__;HAVE_MMXEXT;HAVE_STDINT_H;AVIS_INPUT;MP4_OUTPUT"\r
+ PreprocessorDefinitions="NDEBUG;_CONSOLE;WIN32;__X264__;HAVE_MMXEXT;HAVE_STDINT_H;AVIS_INPUT"\r
StringPooling="TRUE"\r
RuntimeLibrary="0"\r
EnableFunctionLevelLinking="TRUE"\r
Name="VCCustomBuildTool"/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="vfw32.lib ..\..\..\gpac\bin\w32_rel\libgpac_static.lib winmm.lib"\r
+ AdditionalDependencies="vfw32.lib winmm.lib"\r
OutputFile="bin/x264.exe"\r
LinkIncremental="1"\r
SuppressStartupBanner="TRUE"\r
<File\r
RelativePath="..\..\matroska.h">\r
</File>\r
+ <File\r
+ RelativePath="..\..\muxers.c">\r
+ </File>\r
+ <File\r
+ RelativePath="..\..\muxers.h">\r
+ </File>\r
<File\r
RelativePath="..\..\x264.c">\r
<FileConfiguration\r
#ifndef _FRAME_H
#define _FRAME_H 1
-#include <inttypes.h>
-
typedef struct
{
/* */
#define sqrtf sqrt
#endif
#ifdef WIN32 // POSIX says that rename() removes the destination, but win32 doesn't.
-#include <unistd.h>
#define rename(src,dst) (unlink(dst), rename(src,dst))
#endif
* Trellis RD quantization
****************************************************************************/
-#define TRELLIS_SCORE_MAX (1ULL<<50)
+#define TRELLIS_SCORE_MAX ((uint64_t)1<<50)
#define CABAC_SIZE_BITS 8
#define SSD_WEIGHT_BITS 5
#define LAMBDA_BITS 4