mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 06:25:46 -04:00
Initial community commit
This commit is contained in:
327
Src/libvpShared/corelibs/cdxv/dxv2/dxv.vcproj
Normal file
327
Src/libvpShared/corelibs/cdxv/dxv2/dxv.vcproj
Normal file
@ -0,0 +1,327 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="dxv"
|
||||
ProjectGUID="{ADAC45FD-B93F-40A3-85B2-DBECA1283614}"
|
||||
TargetFrameworkVersion="131072"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
AdditionalIncludeDirectories="..\include,..\..\include,..\..\..\include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="0"
|
||||
AssemblerListingLocation=""
|
||||
ObjectFile="$(IntDir)/"
|
||||
ProgramDataBaseFileName="$(IntDir)/vc70.pdb"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
OutputFile="$(SolutionDir)lib\win32\release\s_dxv.lib"
|
||||
SuppressStartupBanner="true"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\..\include,..\..\..\include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
DebugInformationFormat="4"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="_DEBUG"
|
||||
Culture="1033"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
OutputFile="..\..\..\Lib\Win32\Debug\s_dxv.lib"
|
||||
SuppressStartupBanner="true"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release 64|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions="/GS-"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
AdditionalIncludeDirectories="..\include,..\..\include,..\..\..\include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
EnableEnhancedInstructionSet="0"
|
||||
UsePrecompiledHeader="0"
|
||||
AssemblerListingLocation=""
|
||||
ObjectFile="$(IntDir)/"
|
||||
ProgramDataBaseFileName="$(IntDir)/vc70.pdb"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="true"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
CompileAs="0"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
AdditionalOptions="/machine:AMD64"
|
||||
OutputFile="..\..\..\Lib\Win64\Release\s_dxv.lib"
|
||||
SuppressStartupBanner="true"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="generic"
|
||||
>
|
||||
<File
|
||||
RelativePath="generic\vscreen.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BasicRuntimeChecks="3"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release 64|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="generic\ximage.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
BasicRuntimeChecks="3"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release 64|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
205
Src/libvpShared/corelibs/cdxv/dxv2/dxv.xcodeproj/project.pbxproj
Normal file
205
Src/libvpShared/corelibs/cdxv/dxv2/dxv.xcodeproj/project.pbxproj
Normal file
@ -0,0 +1,205 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 42;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
0C442A480BB78AD600B3EE20 /* ximage.c in Sources */ = {isa = PBXBuildFile; fileRef = 0C442A470BB78AD600B3EE20 /* ximage.c */; };
|
||||
0C442A760BB78BC700B3EE20 /* vscreen.c in Sources */ = {isa = PBXBuildFile; fileRef = 0C442A750BB78BC700B3EE20 /* vscreen.c */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
0C442A470BB78AD600B3EE20 /* ximage.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ximage.c; path = generic/ximage.c; sourceTree = "<group>"; };
|
||||
0C442A750BB78BC700B3EE20 /* vscreen.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = vscreen.c; path = generic/vscreen.c; sourceTree = "<group>"; };
|
||||
D2AAC046055464E500DB518D /* libdxv.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libdxv.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
D289987405E68DCB004EDB86 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
08FB7794FE84155DC02AAC07 /* dxv */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
08FB7795FE84155DC02AAC07 /* Source */,
|
||||
C6A0FF2B0290797F04C91782 /* Documentation */,
|
||||
1AB674ADFE9D54B511CA2CBB /* Products */,
|
||||
);
|
||||
name = dxv;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
08FB7795FE84155DC02AAC07 /* Source */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0C442A470BB78AD600B3EE20 /* ximage.c */,
|
||||
0C442A750BB78BC700B3EE20 /* vscreen.c */,
|
||||
);
|
||||
name = Source;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1AB674ADFE9D54B511CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
D2AAC046055464E500DB518D /* libdxv.a */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
C6A0FF2B0290797F04C91782 /* Documentation */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = Documentation;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXHeadersBuildPhase section */
|
||||
D2AAC043055464E500DB518D /* Headers */ = {
|
||||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXHeadersBuildPhase section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
D2AAC045055464E500DB518D /* dxv */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 1DEB91EB08733DB70010E9CD /* Build configuration list for PBXNativeTarget "dxv" */;
|
||||
buildPhases = (
|
||||
D2AAC043055464E500DB518D /* Headers */,
|
||||
D2AAC044055464E500DB518D /* Sources */,
|
||||
D289987405E68DCB004EDB86 /* Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = dxv;
|
||||
productName = dxv;
|
||||
productReference = D2AAC046055464E500DB518D /* libdxv.a */;
|
||||
productType = "com.apple.product-type.library.static";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 1DEB91EF08733DB70010E9CD /* Build configuration list for PBXProject "dxv" */;
|
||||
hasScannedForEncodings = 1;
|
||||
mainGroup = 08FB7794FE84155DC02AAC07 /* dxv */;
|
||||
projectDirPath = "";
|
||||
targets = (
|
||||
D2AAC045055464E500DB518D /* dxv */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
D2AAC044055464E500DB518D /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
0C442A480BB78AD600B3EE20 /* ximage.c in Sources */,
|
||||
0C442A760BB78BC700B3EE20 /* vscreen.c in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
1DEB91EC08733DB70010E9CD /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
INSTALL_PATH = /usr/local/lib;
|
||||
PRODUCT_NAME = dxv;
|
||||
USER_HEADER_SEARCH_PATHS = "include ../include ../../include ../../.. ../../../include";
|
||||
ZERO_LINK = YES;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB91ED08733DB70010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = (
|
||||
ppc,
|
||||
i386,
|
||||
);
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
INSTALL_PATH = /usr/local/lib;
|
||||
PRODUCT_NAME = dxv;
|
||||
USER_HEADER_SEARCH_PATHS = "include ../include ../../include ../../.. ../../../include";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
1DEB91F008733DB70010E9CD /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = "";
|
||||
OBJROOT = build;
|
||||
PREBINDING = NO;
|
||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
||||
SYMROOT = ../../../lib/osx;
|
||||
USER_HEADER_SEARCH_PATHS = "../include ../../include ../../.. ../../../include ../../../../include";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB91F108733DB70010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = "";
|
||||
OBJROOT = build;
|
||||
PREBINDING = NO;
|
||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
||||
SYMROOT = ../../../lib/osx;
|
||||
USER_HEADER_SEARCH_PATHS = "include ../include ../../include ../../.. ../../../include";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
1DEB91EB08733DB70010E9CD /* Build configuration list for PBXNativeTarget "dxv" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB91EC08733DB70010E9CD /* Debug */,
|
||||
1DEB91ED08733DB70010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
1DEB91EF08733DB70010E9CD /* Build configuration list for PBXProject "dxv" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB91F008733DB70010E9CD /* Debug */,
|
||||
1DEB91F108733DB70010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
|
||||
}
|
279
Src/libvpShared/corelibs/cdxv/dxv2/dxv2.vcxproj
Normal file
279
Src/libvpShared/corelibs/cdxv/dxv2/dxv2.vcxproj
Normal file
@ -0,0 +1,279 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>17.0</VCProjectVersion>
|
||||
<ProjectGuid>{ADAC45FD-B93F-40A3-85B2-DBECA1283614}</ProjectGuid>
|
||||
<RootNamespace>dxv</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>17.0.32505.173</_ProjectFileVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>..\..\..\lib\$(PlatformShortName)_$(Configuration)\</OutDir>
|
||||
<IntDir>..\..\..\obj\dxv2\$(PlatformShortName)_$(Configuration)\</IntDir>
|
||||
<IncludePath>$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<IncludePath>$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(LibraryPath)</LibraryPath>
|
||||
<OutDir>..\..\..\lib\$(PlatformShortName)_$(Configuration)\</OutDir>
|
||||
<IntDir>..\..\..\obj\dxv2\$(PlatformShortName)_$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<OutDir>..\..\..\lib\$(PlatformShortName)_$(Configuration)\</OutDir>
|
||||
<IntDir>..\..\..\obj\dxv2\$(PlatformShortName)_$(Configuration)\</IntDir>
|
||||
<IncludePath>$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<IncludePath>$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(LibraryPath)</LibraryPath>
|
||||
<OutDir>..\..\..\lib\$(PlatformShortName)_$(Configuration)\</OutDir>
|
||||
<IntDir>..\..\..\obj\dxv2\$(PlatformShortName)_$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg">
|
||||
<VcpkgEnableManifest>false</VcpkgEnableManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<VcpkgInstalledDir>
|
||||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgConfiguration>Debug</VcpkgConfiguration>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<VcpkgInstalledDir>
|
||||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<VcpkgInstalledDir>
|
||||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
<VcpkgConfiguration>Debug</VcpkgConfiguration>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<VcpkgInstalledDir>
|
||||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<AdditionalIncludeDirectories>..\include;..\..\..\include;..\..\..\..\libvp6\corelibs\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<PrecompiledHeaderOutputFile>
|
||||
</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Lib>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<AdditionalIncludeDirectories>..\include;..\..\..\include;..\..\..\..\libvp6\corelibs\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<PrecompiledHeaderOutputFile>
|
||||
</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Lib>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\include;..\..\..\include;..\..\..\..\libvp6\corelibs\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<PrecompiledHeaderOutputFile>
|
||||
</PrecompiledHeaderOutputFile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Lib>
|
||||
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\include;..\..\..\include;..\..\..\..\libvp6\corelibs\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<PrecompiledHeaderOutputFile>
|
||||
</PrecompiledHeaderOutputFile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Lib>
|
||||
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="generic\vscreen.c">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
</ClCompile>
|
||||
<ClCompile Include="generic\ximage.c">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
16
Src/libvpShared/corelibs/cdxv/dxv2/dxv2.vcxproj.filters
Normal file
16
Src/libvpShared/corelibs/cdxv/dxv2/dxv2.vcxproj.filters
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="generic">
|
||||
<UniqueIdentifier>{af33cf3f-226e-4ed6-9952-d31a95439e2b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="generic\vscreen.c">
|
||||
<Filter>generic</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="generic\ximage.c">
|
||||
<Filter>generic</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
179
Src/libvpShared/corelibs/cdxv/dxv2/generic/vscreen.c
Normal file
179
Src/libvpShared/corelibs/cdxv/dxv2/generic/vscreen.c
Normal file
@ -0,0 +1,179 @@
|
||||
//==========================================================================
|
||||
//
|
||||
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
||||
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
|
||||
// PURPOSE.
|
||||
//
|
||||
// Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
|
||||
//
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
|
||||
#include "../include/duck_dxl.h"
|
||||
#include "duck_mem.h"
|
||||
#include "../include/dxl_plugin.h"
|
||||
typedef struct tagflgs
|
||||
{
|
||||
unsigned inUse : 1;
|
||||
unsigned DXed : 1;
|
||||
unsigned clutOwner: 1;
|
||||
unsigned doCompleteBlit : 1;
|
||||
unsigned keyFrame : 1;
|
||||
unsigned nullFrame : 1;
|
||||
unsigned interframe : 1;
|
||||
unsigned logo : 1;
|
||||
unsigned allocated : 1;
|
||||
} dkInfoFlags;
|
||||
|
||||
typedef struct vScreen
|
||||
{
|
||||
DXL_OBJECT_VERSION version;
|
||||
|
||||
unsigned char *_addr;
|
||||
unsigned char *laddr; /* address of destination and what it was the last time */
|
||||
|
||||
enum BITDEPTH bd; /* format of destination */
|
||||
enum BLITQUALITY bq; /* blit translation mode */
|
||||
|
||||
short pitch, height; /* pitch and height of dest */
|
||||
|
||||
short viewX,viewY; /* offset/clipping viewport within destination */
|
||||
short viewW,viewH;
|
||||
|
||||
dkInfoFlags dkFlags;
|
||||
|
||||
} DXL_VSCREEN;
|
||||
|
||||
#define validate(x) \
|
||||
{ \
|
||||
if (!x) \
|
||||
return (int) DXL_NULLSOURCE; \
|
||||
if (!x->dkFlags.inUse) \
|
||||
return (int) DXL_NOTINUSE; \
|
||||
}
|
||||
|
||||
/***********************************************/
|
||||
|
||||
DXL_VSCREEN_HANDLE
|
||||
vScreenCreate(void)
|
||||
{
|
||||
DXL_VSCREEN_HANDLE nScreen;
|
||||
|
||||
nScreen = (DXL_VSCREEN_HANDLE)duck_calloc(1,sizeof(DXL_VSCREEN),DMEM_GENERAL);
|
||||
if (nScreen)
|
||||
nScreen->dkFlags.allocated = 1;
|
||||
|
||||
return nScreen;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_SetVScreenBlitQuality(DXL_VSCREEN_HANDLE dst, enum BLITQUALITY blitquality)
|
||||
{
|
||||
int oldBQ;
|
||||
|
||||
validate(dst);
|
||||
|
||||
oldBQ = dst->bq;
|
||||
dst->bq = blitquality;
|
||||
|
||||
return oldBQ;
|
||||
}
|
||||
|
||||
void
|
||||
DXL_DestroyVScreen(DXL_VSCREEN_HANDLE dst)
|
||||
{
|
||||
if (dst != NULL){
|
||||
dst->dkFlags.inUse = 0;
|
||||
dst->_addr = NULL;
|
||||
if (dst->dkFlags.allocated)
|
||||
duck_free(dst);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
DXL_AlterVScreen(DXL_VSCREEN_HANDLE dst, unsigned char *_addr, enum BITDEPTH bd, int p, int h)
|
||||
{
|
||||
validate(dst);
|
||||
|
||||
if (_addr != NULL) dst->_addr = _addr;
|
||||
|
||||
if (bd != DXRGBNULL) dst->bd = bd;
|
||||
|
||||
if (p != -1) dst->pitch = (short) p;
|
||||
|
||||
if (h != -1) dst->height = (short) h;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_AlterVScreenView(DXL_VSCREEN_HANDLE dst,int x,int y,int w,int h)
|
||||
{
|
||||
validate(dst);
|
||||
|
||||
if (x > -1) dst->viewX = (short)x;
|
||||
if (y > -1) dst->viewY = (short)y;
|
||||
if (w > -1) dst->viewW = (short)w;
|
||||
if (h > -1) dst->viewH = (short)h;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
DXL_VSCREEN_HANDLE
|
||||
DXL_CreateVScreen(unsigned char *_addr, enum BITDEPTH bd, short p,short h)
|
||||
{
|
||||
DXL_VSCREEN_HANDLE vScreenCreate(void);
|
||||
DXL_VSCREEN_HANDLE nScreen = vScreenCreate();
|
||||
|
||||
if (!nScreen)
|
||||
return NULL;
|
||||
|
||||
nScreen->dkFlags.inUse = 1;
|
||||
|
||||
DXL_AlterVScreen(nScreen, _addr, bd, p, h);
|
||||
|
||||
return nScreen;
|
||||
}
|
||||
|
||||
int DXL_GetVScreenView(DXL_VSCREEN_HANDLE dst,int *x,int *y,int *w,int *h)
|
||||
{
|
||||
validate(dst);
|
||||
|
||||
if(x)
|
||||
*x = dst->viewX;
|
||||
if(y)
|
||||
*y = dst->viewY;
|
||||
if(w)
|
||||
*w = dst->viewW;
|
||||
if(h)
|
||||
*h = dst->viewH;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int DXL_GetVScreenAttributes(DXL_VSCREEN_HANDLE dst, void **_addr, dxvBlitQuality *bq, dxvBitDepth *bd, short *pitch, short *height)
|
||||
{
|
||||
validate(dst);
|
||||
|
||||
if(_addr)
|
||||
*_addr = dst->_addr;
|
||||
|
||||
if(bq)
|
||||
*bq = dst->bq;
|
||||
|
||||
if(bd)
|
||||
*bd = dst->bd;
|
||||
|
||||
if(pitch)
|
||||
*pitch = dst->pitch;
|
||||
|
||||
if(height)
|
||||
*height = dst->height;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
|
490
Src/libvpShared/corelibs/cdxv/dxv2/generic/ximage.c
Normal file
490
Src/libvpShared/corelibs/cdxv/dxv2/generic/ximage.c
Normal file
@ -0,0 +1,490 @@
|
||||
//==========================================================================
|
||||
//
|
||||
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
||||
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
|
||||
// PURPOSE.
|
||||
//
|
||||
// Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
|
||||
//
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
#include "duck_mem.h"
|
||||
#include "../include/dxl_plugin.h"
|
||||
#include <ctype.h> /* toupper */
|
||||
|
||||
static CREATE_FUNC creator[NUM_ALG];
|
||||
static unsigned int fourCC[NUM_ALG];
|
||||
|
||||
static DXL_OBJECT_VERSION thisVersion = 0x01000001;
|
||||
|
||||
typedef struct tagflgs
|
||||
{
|
||||
unsigned inUse : 1;
|
||||
unsigned DXed : 1;
|
||||
unsigned clutOwner: 1;
|
||||
unsigned doCompleteBlit : 1;
|
||||
unsigned keyFrame : 1;
|
||||
unsigned nullFrame : 1;
|
||||
unsigned interframe : 1;
|
||||
unsigned logo : 1;
|
||||
unsigned allocated : 1;
|
||||
} dkInfoFlags;
|
||||
|
||||
|
||||
typedef struct tXImageBase
|
||||
{
|
||||
dkInfoFlags dkFlags;
|
||||
//short x,y,w,h;
|
||||
unsigned char *addr;
|
||||
enum BITDEPTH *bdPrefs;
|
||||
CREATE_FUNC create;
|
||||
RECREATE_FUNC recreate;
|
||||
DESTROY_FUNC destroy;
|
||||
SEND_VMSG_FUNC sendVideoMessage;
|
||||
DX_FUNC dx;
|
||||
int fSize;
|
||||
SET_PARAMETER_FUNC setParameter;
|
||||
GET_PARAMETER_FUNC getParameter;
|
||||
} DXL_XIMAGE_BASE;
|
||||
|
||||
typedef struct tXImage
|
||||
{
|
||||
DXL_OBJECT_VERSION version;
|
||||
|
||||
DXL_XIMAGE_BASE * xImageBasePtr;
|
||||
|
||||
DXL_HANDLE algorithmBasePtr;
|
||||
} DXL_XIMAGE;
|
||||
|
||||
#define validateXImage(x) \
|
||||
{ \
|
||||
if (!x) \
|
||||
return (int) DXL_NULLSOURCE; \
|
||||
if (!x->xImageBasePtr->dkFlags.inUse) \
|
||||
return (int) DXL_NOTINUSE; \
|
||||
}
|
||||
|
||||
// if (!x->version != thisVersion)
|
||||
// return (int) DXL_INVALID_DATA;
|
||||
|
||||
static //inline
|
||||
unsigned int toUpperFOURCC(unsigned int type)
|
||||
{
|
||||
|
||||
return (
|
||||
(toupper((char)((type >> 24) & 0xff)) << 24) |
|
||||
(toupper((char)((type >> 16) & 0xff)) << 16) |
|
||||
(toupper((char)((type >> 8) & 0xff)) << 8) |
|
||||
toupper((char)((type >> 0) & 0xff))
|
||||
);
|
||||
}
|
||||
|
||||
int
|
||||
DXL_SetXImageCSize(DXL_XIMAGE_HANDLE src, int temp)
|
||||
{
|
||||
if(src == NULL)
|
||||
return DXL_NOTINUSE;
|
||||
|
||||
src->xImageBasePtr->fSize = temp;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_GetXImageCSize(DXL_XIMAGE_HANDLE src)
|
||||
{
|
||||
if(src == NULL)
|
||||
return 0;
|
||||
|
||||
return src->xImageBasePtr->fSize;
|
||||
}
|
||||
|
||||
unsigned char *
|
||||
DXL_GetXImageCDataAddr(DXL_XIMAGE_HANDLE src)
|
||||
{
|
||||
if(src == NULL)
|
||||
return NULL;
|
||||
|
||||
return src->xImageBasePtr->addr;
|
||||
}
|
||||
/*
|
||||
int
|
||||
DXL_MoveXImage(DXL_XIMAGE_HANDLE src, enum OFFSETXY mode, int x, int y)
|
||||
{
|
||||
validateXImage(src);
|
||||
|
||||
if (mode != DXL_RELATIVE)
|
||||
{
|
||||
src->xImageBasePtr->x = 0;
|
||||
src->xImageBasePtr->y = 0;
|
||||
}
|
||||
src->xImageBasePtr->x += (short) x;
|
||||
src->xImageBasePtr->y += (short) y;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
*/
|
||||
int
|
||||
DXL_AlterXImageData(DXL_XIMAGE_HANDLE src, unsigned char *data)
|
||||
{
|
||||
validateXImage(src);
|
||||
|
||||
src->xImageBasePtr->addr = data;
|
||||
src->xImageBasePtr->dkFlags.DXed = 0;
|
||||
|
||||
if (data == NULL)
|
||||
return DXL_OK;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_IsXImageKeyFrame(DXL_XIMAGE_HANDLE src)
|
||||
{
|
||||
validateXImage(src);
|
||||
|
||||
return src->xImageBasePtr->dkFlags.keyFrame;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DXL_DestroyXImage(DXL_XIMAGE_HANDLE src)
|
||||
{
|
||||
if (src != NULL)
|
||||
{
|
||||
if (src->xImageBasePtr->dkFlags.inUse)
|
||||
{
|
||||
src->xImageBasePtr->destroy(src);
|
||||
}
|
||||
|
||||
duck_free(src->xImageBasePtr);
|
||||
duck_free(src);
|
||||
}
|
||||
}
|
||||
|
||||
DXL_XIMAGE_HANDLE DXL_CreateXImageOfType(unsigned char *data, unsigned int type)
|
||||
{
|
||||
int i;
|
||||
DXL_XIMAGE_HANDLE nImage = NULL;
|
||||
|
||||
/* alloc our ximage */
|
||||
nImage = (DXL_XIMAGE_HANDLE) duck_calloc(1, sizeof(DXL_XIMAGE), DMEM_GENERAL);
|
||||
if(nImage == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
nImage->version = thisVersion;
|
||||
|
||||
/* alloc our generic ximage base */
|
||||
nImage->xImageBasePtr = (DXL_XIMAGE_BASE *) duck_calloc(1, sizeof(DXL_XIMAGE_BASE), DMEM_GENERAL);
|
||||
if(nImage->xImageBasePtr == NULL)
|
||||
{
|
||||
duck_free(nImage);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* clear out just in case calloc does not really work */
|
||||
nImage->algorithmBasePtr = NULL;
|
||||
|
||||
|
||||
/*
|
||||
//convert fourCC to uppercase, fixes problem with calls to DXV with
|
||||
//lowercase fourCC's
|
||||
*/
|
||||
type = toUpperFOURCC(type);
|
||||
|
||||
|
||||
/* try to match the fourcc to a registered algorithm */
|
||||
for(i = 0; i < NUM_ALG; i++)
|
||||
{
|
||||
if(fourCC[i] == type)
|
||||
{
|
||||
if(nImage->algorithmBasePtr = creator[i](nImage, data))
|
||||
{
|
||||
nImage->xImageBasePtr->create = creator[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* was a valid registered alogrith found ? */
|
||||
if(nImage->algorithmBasePtr == NULL)
|
||||
{
|
||||
/* nope, so we are going to bail */
|
||||
duck_free(nImage->xImageBasePtr);
|
||||
duck_free(nImage);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
nImage->xImageBasePtr->dkFlags.inUse = 1;
|
||||
nImage->xImageBasePtr->addr = data;
|
||||
|
||||
return nImage;
|
||||
}
|
||||
|
||||
|
||||
unsigned int *
|
||||
DXL_GetFourCCList(void)
|
||||
{
|
||||
/*********
|
||||
return a list of all supported fourccs
|
||||
*********/
|
||||
return fourCC;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
DXL_GetAlgHandle(unsigned int fourcc)
|
||||
{
|
||||
/*********
|
||||
search through the fourcc table to find a dx'er's index
|
||||
*********/
|
||||
int i;
|
||||
|
||||
for (i = 0; i < NUM_ALG; i++)
|
||||
if (fourCC[i] == fourcc)
|
||||
return i;
|
||||
|
||||
return DXL_NOTINUSE;
|
||||
}
|
||||
|
||||
|
||||
unsigned int
|
||||
DXL_GetXImageFOURCC(DXL_XIMAGE_HANDLE src)
|
||||
{
|
||||
/*********
|
||||
find an ximages fourcc (by comparing creator functions)
|
||||
*********/
|
||||
int i;
|
||||
|
||||
for (i = 0; i < NUM_ALG; i++)
|
||||
if (creator[i] == (CREATE_FUNC) src->xImageBasePtr->create)
|
||||
{
|
||||
return fourCC[i];
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_dxImageToVScreen(DXL_XIMAGE_HANDLE src, DXL_VSCREEN_HANDLE dst)
|
||||
{
|
||||
int dxvCode;
|
||||
|
||||
validateXImage(src);
|
||||
|
||||
/*
|
||||
after a ximage is created, it must always be altered.... this check will
|
||||
catch programmers who do not follow the api
|
||||
*/
|
||||
if(!src->xImageBasePtr->dkFlags.allocated)
|
||||
return DXL_NOTINUSE;
|
||||
|
||||
if(!src->xImageBasePtr->dx)
|
||||
return DXL_NOTINUSE;
|
||||
|
||||
//if(!src->xImageBasePtr->addr)
|
||||
// return DXL_HOLD_FRAME;
|
||||
|
||||
dxvCode = src->xImageBasePtr->dx(src, dst);
|
||||
|
||||
return dxvCode;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------
|
||||
|
||||
-------------------------------------------------------------------*/
|
||||
int
|
||||
DXL_InitVideo(void)
|
||||
{
|
||||
/* this will force the internal fourcc and creator arrays to be set to 0 */
|
||||
DXL_RegisterXImage(NULL, 0L);
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DXL_ExitVideo(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
DXL_XIMAGE_HANDLE
|
||||
DXL_AlterXImage(DXL_XIMAGE_HANDLE src, unsigned char *data, int type,
|
||||
enum BITDEPTH bitDepth, int width, int height)
|
||||
{
|
||||
type = toUpperFOURCC(type);
|
||||
|
||||
if (src == NULL)
|
||||
{
|
||||
if(type) /* if type specified, try using it as the fourcc */
|
||||
src = DXL_CreateXImageOfType(data,type);
|
||||
|
||||
if (src == NULL) /* if still null, give up */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* no way to recreate, assume create is good enough */
|
||||
if (!src->xImageBasePtr->recreate)
|
||||
return src;
|
||||
|
||||
|
||||
src->xImageBasePtr->addr = data;
|
||||
|
||||
src->algorithmBasePtr = src->xImageBasePtr->recreate(src, data, type, bitDepth, width, height);
|
||||
|
||||
|
||||
/* was a valid registered alogrith found ? */
|
||||
if(src->algorithmBasePtr == NULL)
|
||||
{
|
||||
/* nope, so we are going to bail */
|
||||
duck_free(src->xImageBasePtr);
|
||||
duck_free(src);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
src->xImageBasePtr->dkFlags.allocated = 1;
|
||||
|
||||
return src;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
DXL_SetParameter(DXL_XIMAGE_HANDLE src, int Command, unsigned int Parameter )
|
||||
{
|
||||
if (src == NULL)
|
||||
return DXL_NULLSOURCE;
|
||||
|
||||
if (src->xImageBasePtr == NULL)
|
||||
return DXL_NULLSOURCE;
|
||||
|
||||
if(src->xImageBasePtr->setParameter == NULL)
|
||||
return DXL_NULLSOURCE;
|
||||
|
||||
src->xImageBasePtr->setParameter(src, Command, Parameter);
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_GetParameter(DXL_XIMAGE_HANDLE src, int Command, unsigned int Parameter )
|
||||
{
|
||||
if (src == NULL)
|
||||
return DXL_NULLSOURCE;
|
||||
|
||||
if (src->xImageBasePtr == NULL)
|
||||
return DXL_NULLSOURCE;
|
||||
|
||||
if(src->xImageBasePtr->getParameter == NULL)
|
||||
return DXL_NULLSOURCE;
|
||||
|
||||
return src->xImageBasePtr->getParameter(src, Command, Parameter);
|
||||
}
|
||||
|
||||
DXL_HANDLE
|
||||
DXL_GetAlgorithmBasePtr(DXL_XIMAGE_HANDLE src)
|
||||
{
|
||||
return src->algorithmBasePtr;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_SendVideoMessage(DXL_XIMAGE_HANDLE src, void *msgHandle, unsigned int msgSize)
|
||||
{
|
||||
validateXImage(src);
|
||||
|
||||
if(src->xImageBasePtr->sendVideoMessage != NULL)
|
||||
return src->xImageBasePtr->sendVideoMessage(src, msgHandle, msgSize);
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------
|
||||
CALLBACK REGISTRATION SECTION
|
||||
-------------------------------------------------------------------*/
|
||||
int
|
||||
DXL_RegisterXImage(CREATE_FUNC myCreator, unsigned int fourcc)
|
||||
{
|
||||
int i;
|
||||
|
||||
/* special case -- a fourcc of zero will set the creator and fourcc arrays to 0 */
|
||||
if (!fourcc)
|
||||
{
|
||||
duck_memset(creator, 0, sizeof(creator));
|
||||
duck_memset(fourCC, 0, sizeof(fourCC));
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
for (i = 0; i < NUM_ALG; i++)
|
||||
{
|
||||
if (!fourCC[i])
|
||||
{
|
||||
creator[i] = myCreator;
|
||||
fourCC[i] = fourcc;
|
||||
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return DXL_NOTINUSE;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_RegisterXImageRecreate(DXL_XIMAGE_HANDLE src, RECREATE_FUNC thisFunc)
|
||||
{
|
||||
src->xImageBasePtr->recreate = thisFunc;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_RegisterXImageDestroy(DXL_XIMAGE_HANDLE src, DESTROY_FUNC thisFunc)
|
||||
{
|
||||
src->xImageBasePtr->destroy = thisFunc;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_RegisterXImageDx(DXL_XIMAGE_HANDLE src, DX_FUNC thisFunc)
|
||||
{
|
||||
src->xImageBasePtr->dx = thisFunc;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_RegisterXImageSetParameter(DXL_XIMAGE_HANDLE src, SET_PARAMETER_FUNC thisFunc)
|
||||
{
|
||||
src->xImageBasePtr->setParameter = thisFunc;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_RegisterXImageGetParameter(DXL_XIMAGE_HANDLE src, GET_PARAMETER_FUNC thisFunc)
|
||||
{
|
||||
src->xImageBasePtr->getParameter = thisFunc;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
int
|
||||
DXL_RegisterXImageSendVideoMessage(DXL_XIMAGE_HANDLE src, SEND_VMSG_FUNC thisFunc)
|
||||
{
|
||||
src->xImageBasePtr->sendVideoMessage = thisFunc;
|
||||
|
||||
return DXL_OK;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------
|
||||
|
||||
-------------------------------------------------------------------*/
|
||||
|
350
Src/libvpShared/corelibs/cdxv/dxv2/include/duck_dxl.h
Normal file
350
Src/libvpShared/corelibs/cdxv/dxv2/include/duck_dxl.h
Normal file
@ -0,0 +1,350 @@
|
||||
#ifndef _duck_dxl_h
|
||||
#define _duck_dxl_h
|
||||
|
||||
|
||||
/******************************************************************************\
|
||||
<table BGCOLOR=#FFC0C0 border=1 WIDTH=100% ><tr><td><b>
|
||||
duck_dxl.h </b></td><td><b> TrueMotion include file for decompression libraries </b>
|
||||
|
||||
</td></tr><tr><td> </td><td> Version: 6.0.0
|
||||
</td></tr><tr><td> </td><td> Created: 3/3/98
|
||||
</td></tr><tr><td> </td><td> Copyright (c) 1994-98, The Duck Corp. All rights reserved.
|
||||
</td></tr><tr><td>Important Objects</td><td>The On2 Decompression services tries to abstract the various objects
|
||||
used to decompress and render both audio and video. This allows the overall API to flex and accomodate new
|
||||
decompression schemes and new destinations.
|
||||
</td></tr><tr><td>DXL_XIMAGE_HANDLE</td><td>Abstract container object used to organize and control compressed
|
||||
video.
|
||||
</td></tr><tr><td>DXL_VSCREEN_HANDLE</td><td>Abstract container object used to organize and control display of
|
||||
uncompressed video to a surface.
|
||||
</td></tr><tr><td>DXL_XAUDIOSRC_HANDLE</td><td>Abstract container object used to organize and control
|
||||
compressed audio.
|
||||
</td></tr><tr><td>DXL_AUDIODST_HANDLE</td><td>Abstract container object used to organize and control
|
||||
rendering / playing of uncompressed audio.
|
||||
</td></tr>
|
||||
</table>
|
||||
******************************************************************************/
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* enumerated data types */
|
||||
|
||||
typedef enum BLITQUALITY {
|
||||
DXBLIT_SAME = 0, /* Blit directly, w/o stretching */
|
||||
DXBLIT_R1,
|
||||
DXBLIT_R2,
|
||||
DXBLIT_STRETCH, /* double horizontally, skip lines vertically */
|
||||
DXBLIT_R3,
|
||||
DXBLIT_STRETCH_BRIGHT, /* double horizontally, interpolate vertically */
|
||||
DXBLIT_R4,
|
||||
DXBLIT_R5,
|
||||
DXBLIT_R6,
|
||||
DXBLIT_NONE,
|
||||
DXBLITMAX
|
||||
} dxvBlitQuality ;
|
||||
|
||||
typedef enum BITDEPTH {
|
||||
DXRGBNULL = 0,
|
||||
DXRGB8 = 1,
|
||||
|
||||
DXRGB16_555 = 2,
|
||||
DXRGB24 = 3,
|
||||
DXRGB_UNUSED = 4,
|
||||
DXRGB16VESA = 5,
|
||||
DXRGB8VESA = 6,
|
||||
DXRGB16_565 = 7,
|
||||
|
||||
DXYUY2 = 8,
|
||||
DXYVU9 = 9,
|
||||
DXYV12 = 10,
|
||||
DXUYVY = 11,
|
||||
|
||||
DXRGB32 = 12,
|
||||
DXRGB16VESA_565 = 13,
|
||||
DXHALFTONE8 =14,
|
||||
DXI420 = 15,
|
||||
DXMAX
|
||||
} dxvBitDepth ;
|
||||
|
||||
#define DXRGB16 DXRGB16_555
|
||||
#define DXRGB24CHAR DXRGB24
|
||||
|
||||
typedef enum OFFSETXY {
|
||||
DXL_ABSOLUTE = 0,
|
||||
DXL_RELATIVE
|
||||
} dxvOffsetMode;
|
||||
|
||||
typedef enum DXL_ERR{
|
||||
DXL_LOW_ERR = -32000,
|
||||
DXL_HARDWARE_ERROR = -16002,
|
||||
DXL_HARDWARE_NOT_INITED = -16001,
|
||||
DXL_HARDWARE_BUFFER_FULL = -16000,
|
||||
DXL_INVALID_REQUEST = -9,
|
||||
DXL_VERSION_CONFLICT = -8,
|
||||
DXL_INVALID_DATA = -7,
|
||||
DXL_INVALID_BLIT = -6,
|
||||
DXL_BAD_DATA = -5,
|
||||
DXL_ALLOC_FAILED = -4,
|
||||
DXL_NULL_FRAME = -3,
|
||||
DXL_NULLSOURCE = -2,
|
||||
DXL_NOTINUSE = -1,
|
||||
DXL_OK = 0,
|
||||
DXL_HOLD_FRAME = 1
|
||||
} dxvError ;
|
||||
|
||||
|
||||
enum IMAGETYPE { whgfw_X=0 }; /* MEW */
|
||||
enum BGMODE { kjhdkj_X=0 }; /* MEW */
|
||||
|
||||
|
||||
/*********************************************************/
|
||||
|
||||
/* definition of data handles */
|
||||
|
||||
typedef struct vScreen *DXL_VSCREEN_HANDLE;
|
||||
typedef struct tXImage *DXL_XIMAGE_HANDLE;
|
||||
|
||||
|
||||
/* main video decompression init, exit and query */
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_InitVideo
|
||||
@Description Initialize Video decompression services
|
||||
@Return value DXL_OK on success.
|
||||
@*/
|
||||
int DXL_InitVideo(
|
||||
void
|
||||
);
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_ExitVideo
|
||||
@Description shutdown video decompression services.
|
||||
@Return value none
|
||||
@*/
|
||||
void DXL_ExitVideo(void);
|
||||
|
||||
|
||||
/*get pointer to NULL terminated
|
||||
array of supported fourCCs */
|
||||
unsigned int *DXL_GetFourCCList(void);
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_SetXImageCSize
|
||||
@Description Set the size of the current compressed frame
|
||||
@Return value echo back the compressed image size
|
||||
@*/
|
||||
int DXL_SetXImageCSize(
|
||||
DXL_XIMAGE_HANDLE xImage, /* compressed image handle */
|
||||
int compressedSize /* compressed image size */
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_CreateXImageOfType
|
||||
@Description Create an xImage (decompressor) object of a requested type based on a FOURCC.
|
||||
@Return value handle to xImage created by this call .
|
||||
@*/
|
||||
DXL_XIMAGE_HANDLE DXL_CreateXImageOfType(
|
||||
unsigned char *data, /* pointer to compressed data */
|
||||
unsigned int fccType /* FOURCC style code indicating type of compressed data */
|
||||
);
|
||||
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_DestroyXImage
|
||||
@Description destroy the specified xImage
|
||||
@Return value void
|
||||
@*/
|
||||
void DXL_DestroyXImage(
|
||||
DXL_XIMAGE_HANDLE src /* handle to compressed image */
|
||||
);
|
||||
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_AlterXImageData
|
||||
@Description feed the xImage new data, get ready to decompress
|
||||
@Return value DXL_OK on success
|
||||
@*/
|
||||
int DXL_AlterXImageData(
|
||||
DXL_XIMAGE_HANDLE src, /* xImage, handle to compressed data */
|
||||
unsigned char *ptrData /* latest data to be associated with xImage */
|
||||
);
|
||||
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_AlterXImage
|
||||
@Description explicitly alter attributes of an xImage
|
||||
@Return value handle to compressed image
|
||||
@*/
|
||||
DXL_XIMAGE_HANDLE DXL_AlterXImage(
|
||||
DXL_XIMAGE_HANDLE src, /* handle to compressed image */
|
||||
unsigned char *ptrData, /* pointer to compressed data. */
|
||||
int xImType, /* code for compress data type. */
|
||||
dxvBitDepth bitDepth , /* bitdepth of decompressed data */
|
||||
int maxWidth, /* width of decompressed image */
|
||||
int maxHeight /* height of decompressed image */
|
||||
);
|
||||
|
||||
|
||||
unsigned char *
|
||||
DXL_GetXImageCDataAddr(DXL_XIMAGE_HANDLE src);
|
||||
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_GetXImageCSize
|
||||
@Description Get xImage compressed size
|
||||
@Return value returns the compressed size
|
||||
@*/
|
||||
int DXL_GetXImageCSize(
|
||||
DXL_XIMAGE_HANDLE src /* handle to compressed image */
|
||||
);
|
||||
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_GetXImageXYWH
|
||||
@Description get application specified x,y offset, and overall decompressed width and height.
|
||||
x and y offsets are legacy fields, ignore.
|
||||
@Return value DXL_OK on success
|
||||
@*/
|
||||
int DXL_GetXImageXYWH(
|
||||
DXL_XIMAGE_HANDLE src, /* the xImage Handle. */
|
||||
int *x,int *y,int *w, int *h /* x,y,w,h */
|
||||
);
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_IsXImageKeyFrame
|
||||
@Description return whether this xImage is a keyFrame.
|
||||
@Return value return whether this xImage is a keyFrame.
|
||||
@*/
|
||||
int DXL_IsXImageKeyFrame(
|
||||
DXL_XIMAGE_HANDLE src /* handle to compressed image */
|
||||
);
|
||||
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_dxImageToVScreen
|
||||
@Description decompress and blit as a single process
|
||||
@Return value DXL_OK on success.
|
||||
@*/
|
||||
int DXL_dxImageToVScreen(
|
||||
DXL_XIMAGE_HANDLE src, /* xImage handle. */
|
||||
DXL_VSCREEN_HANDLE dst /* handle to destination surface */
|
||||
);
|
||||
|
||||
|
||||
/* vscreen management functions */
|
||||
|
||||
/*@
|
||||
@Name DXL_CreateVScreen
|
||||
@Description create a virtual screen for rendering, storing decompressed video.
|
||||
@Return value returns a DXL_VSCREEN_HANDLE
|
||||
@*/
|
||||
DXL_VSCREEN_HANDLE DXL_CreateVScreen(
|
||||
unsigned char *addr, /* The address where pixel data should be written */
|
||||
dxvBitDepth colorMode, /* Determines the colorspace and color depth of VScreen */
|
||||
short bytePitch, /* offset from one raster to the next */
|
||||
short height /* number of rasters in a VScreen */
|
||||
);
|
||||
|
||||
|
||||
|
||||
/*@
|
||||
@Name DXL_AlterVScreen
|
||||
@Description Alter address and attributes associated with a vscreen.
|
||||
@Return value returns a DXL_VSCREEN_HANDLE
|
||||
@*/
|
||||
int DXL_AlterVScreen(
|
||||
DXL_VSCREEN_HANDLE dst, /* handle to a VScreen */
|
||||
unsigned char *addr, /* The address where pixel data should be written */
|
||||
dxvBitDepth colorMode, /* Determines the colorspace and color depth of VScreen */
|
||||
int bytePitch, /* offset from one raster to the next */
|
||||
int height /* number of rasters in a VScreen */
|
||||
);
|
||||
|
||||
|
||||
/* alter clipping rectangle of vScreen */
|
||||
/* not supported by all decompressors */
|
||||
int DXL_AlterVScreenClip(
|
||||
DXL_VSCREEN_HANDLE dst,
|
||||
int x,int y,
|
||||
int w,int h
|
||||
);
|
||||
|
||||
/* alter viewport rectangle of vScreen */
|
||||
/* width/height not supported by all decompressors */
|
||||
int DXL_AlterVScreenView(
|
||||
DXL_VSCREEN_HANDLE dst,
|
||||
int x,int y,
|
||||
int w,int h
|
||||
);
|
||||
|
||||
/* destroy a vScreen object/struct */
|
||||
void DXL_DestroyVScreen(
|
||||
DXL_VSCREEN_HANDLE dst
|
||||
);
|
||||
|
||||
/* set blit mode/quality of a vScreen
|
||||
same (normal), stretch (black lined)
|
||||
stretch bright (stretched w/interpolation) */
|
||||
int DXL_SetVScreenBlitQuality(
|
||||
DXL_VSCREEN_HANDLE dest,
|
||||
dxvBlitQuality bq
|
||||
);
|
||||
|
||||
|
||||
/* get attributes of the vScreen */
|
||||
int DXL_GetVScreenAttributes(
|
||||
DXL_VSCREEN_HANDLE vScreen,
|
||||
void **addr,
|
||||
dxvBlitQuality *bq,
|
||||
dxvBitDepth *bd,
|
||||
short *pitch,
|
||||
short *height
|
||||
);
|
||||
|
||||
/* get vScreen's current viewport rectangle
|
||||
a viewport represents an x,y, offset and
|
||||
a clipping width and height */
|
||||
int DXL_GetVScreenView(
|
||||
DXL_VSCREEN_HANDLE dst,
|
||||
int *x,int *y,int *w,int *h
|
||||
);
|
||||
|
||||
/* pass a parameter to the decompressor */
|
||||
int DXL_SetParameter(
|
||||
DXL_XIMAGE_HANDLE src,
|
||||
int Command,
|
||||
unsigned int Parameter
|
||||
);
|
||||
|
||||
unsigned int DXL_GetXImageFOURCC(DXL_XIMAGE_HANDLE src);
|
||||
|
||||
/* Temporary hack to dxv to allow calls to get info (jbb) */
|
||||
/*
|
||||
typedef struct tFrameInfo
|
||||
{
|
||||
int KeyFrame;
|
||||
int Version;
|
||||
int Quality;
|
||||
int vp30Flag;
|
||||
} FrameInfo;
|
||||
*/
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* include guards */
|
70
Src/libvpShared/corelibs/cdxv/dxv2/include/dxl_plugin.h
Normal file
70
Src/libvpShared/corelibs/cdxv/dxv2/include/dxl_plugin.h
Normal file
@ -0,0 +1,70 @@
|
||||
//==========================================================================
|
||||
//
|
||||
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
||||
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
|
||||
// PURPOSE.
|
||||
//
|
||||
// Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
|
||||
//
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
|
||||
#ifndef _dxl_plugin_h
|
||||
#define _dxl_plugin_h
|
||||
|
||||
#include "duck_dxl.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* max number of algorithms to be supported at one time */
|
||||
#define NUM_ALG 16
|
||||
|
||||
typedef void * DXL_HANDLE;
|
||||
|
||||
typedef unsigned int DXL_OBJECT_VERSION;
|
||||
|
||||
typedef DXL_HANDLE (*CREATE_FUNC)(DXL_XIMAGE_HANDLE, unsigned char *);
|
||||
|
||||
typedef DXL_HANDLE (*RECREATE_FUNC)(DXL_XIMAGE_HANDLE,void *,int,int,int,int);
|
||||
|
||||
typedef int (*DESTROY_FUNC)(DXL_XIMAGE_HANDLE);
|
||||
|
||||
typedef int (*SEED_DATA_FUNC)(DXL_XIMAGE_HANDLE);
|
||||
|
||||
typedef int (*DX_FUNC)(DXL_XIMAGE_HANDLE, DXL_VSCREEN_HANDLE);
|
||||
|
||||
typedef void (*SET_PARAMETER_FUNC)(DXL_XIMAGE_HANDLE, int , unsigned int);
|
||||
//typedef int (*SET_PARAMETER_FUNC)(DXL_XIMAGE_HANDLE, int , unsigned int);
|
||||
|
||||
typedef int (*GET_PARAMETER_FUNC)(DXL_XIMAGE_HANDLE, int , unsigned int);
|
||||
|
||||
typedef int (*SEND_VMSG_FUNC)(DXL_XIMAGE_HANDLE, void *, unsigned int);
|
||||
|
||||
|
||||
int DXL_GetAlgHandle(unsigned int fourcc);
|
||||
DXL_HANDLE DXL_GetAlgorithmBasePtr(DXL_XIMAGE_HANDLE src);
|
||||
|
||||
int DXL_RegisterXImage(CREATE_FUNC creator, unsigned int fourcc);
|
||||
int DXL_RegisterXImageRecreate(DXL_XIMAGE_HANDLE src, RECREATE_FUNC thisFunc);
|
||||
int DXL_RegisterXImageDestroy(DXL_XIMAGE_HANDLE src, DESTROY_FUNC thisFunc);
|
||||
int DXL_RegisterXImageSeedData(DXL_XIMAGE_HANDLE src, SEED_DATA_FUNC thisFunc);
|
||||
int DXL_RegisterXImageDx(DXL_XIMAGE_HANDLE src, DX_FUNC thisFunc);
|
||||
|
||||
int DXL_RegisterXImageSetParameter(DXL_XIMAGE_HANDLE src, SET_PARAMETER_FUNC thisFunc);
|
||||
int DXL_RegisterXImageGetParameter(DXL_XIMAGE_HANDLE src, GET_PARAMETER_FUNC thisFunc);
|
||||
|
||||
int DXL_RegisterXImageSendVideoMessage(DXL_XIMAGE_HANDLE src, SEND_VMSG_FUNC thisFunc);
|
||||
|
||||
|
||||
#define DXL_MKFOURCC( ch0, ch1, ch2, ch3 ) \
|
||||
( (unsigned int)(unsigned char)(ch0) | ( (unsigned int)(unsigned char)(ch1) << 8 ) | \
|
||||
( (unsigned int)(unsigned char)(ch2) << 16 ) | ( (unsigned int)(unsigned char)(ch3) << 24 ) )
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user