Changeset 636


Ignore:
Timestamp:
Jun 3, 2016, 1:49:35 PM (6 years ago)
Author:
roman
Message:
 
Location:
trunk/Utilities/DirectShowReferenceSource
Files:
7 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/DirectShowReferenceSource/Sample/Generate/Generate.vcxproj

    r574 r636  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     2<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    33  <ItemGroup Label="ProjectConfigurations">
    44    <ProjectConfiguration Include="Debug|Win32">
     
    2020    <ConfigurationType>Application</ConfigurationType>
    2121    <UseDebugLibraries>true</UseDebugLibraries>
    22     <PlatformToolset>v120</PlatformToolset>
     22    <PlatformToolset>v140</PlatformToolset>
    2323    <CharacterSet>Unicode</CharacterSet>
    2424  </PropertyGroup>
     
    2626    <ConfigurationType>Application</ConfigurationType>
    2727    <UseDebugLibraries>false</UseDebugLibraries>
    28     <PlatformToolset>v120</PlatformToolset>
     28    <PlatformToolset>v140</PlatformToolset>
    2929    <WholeProgramOptimization>true</WholeProgramOptimization>
    3030    <CharacterSet>Unicode</CharacterSet>
  • trunk/Utilities/DirectShowReferenceSource/Sample/RegisterSources/Program.cs

    r578 r636  
    2222            VideoSourceFilterRegistry registry = new VideoSourceFilterRegistry();
    2323            UnregisterAll(registry);
     24            //int width = 1920, height = 1080;
     25            int width = 640, height = 480;
    2426            VideoSourceFilter filter = new VideoSourceFilter();
    2527            filter.Live = true;
    2628            filter.SetMediaType(
    27                 //1920, 1080,
    28                 1920, -1080,
     29                //width, height,
     30                width, -height,
    2931                //"{e436eb7e-524f-11ce-9f53-0020af0ba770}"); // RGB32
    3032                "{773c9ac0-3274-11d0-B724-00aa006c1A01}"); // ARGB32
     33            //filter.SetMediaTypeRate(50, 1); // 50 fps
    3134            filter.SetMediaTypeRate(25, 1); // 25 fps
    32             SourceFilterRegistryItem item = registry.Register("Test (Bottom to Top ARGB32)", filter);
     35            SourceFilterRegistryItem item;
     36            //item = registry.Register("Reference Source", filter);
     37            item = registry.Register("Test (Bottom to Top ARGB32)", filter);
    3338            filter.SetMediaType(
    34                 1920, 1080,
    35                 //1920, -1080,
     39                width, height,
     40                //width, -height,
    3641                //"{e436eb7e-524f-11ce-9f53-0020af0ba770}"); // RGB32
    3742                "{773c9ac0-3274-11d0-B724-00aa006c1A01}"); // ARGB32
Note: See TracChangeset for help on using the changeset viewer.