- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/quicktime/QTLiveUtils.cpp
r12292 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2007 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2007 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 80 80 TerminateQTML(); 81 81 #endif 82 OSG_NOTICE << "QT QTML: Closed successfully" << std::endl; 82 OSG_NOTICE << "QT QTML: Closed successfully" << std::endl; 83 83 } 84 84 … … 104 104 ExitMovies(); 105 105 #endif 106 OSG_NOTICE << "QT Movies: closed successfully" << std::endl; 106 OSG_NOTICE << "QT Movies: closed successfully" << std::endl; 107 107 } 108 108 … … 129 129 ExitMoviesOnThread(); 130 130 #endif 131 OSG_NOTICE << "QT Movies MT: closed successfully" << std::endl; 131 OSG_NOTICE << "QT Movies MT: closed successfully" << std::endl; 132 132 } 133 133 #endif … … 321 321 short count = (*deviceList)->count; 322 322 short selectedIndex = (*deviceList)->selectedIndex; 323 OSG_NOTICE << "DeviceList : " << count << " devices in total" << std::endl; 324 OSG_NOTICE << "DeviceList : " << selectedIndex << " is current device" << std::endl; 323 OSG_NOTICE << "DeviceList : " << count << " devices in total" << std::endl; 324 OSG_NOTICE << "DeviceList : " << selectedIndex << " is current device" << std::endl; 325 325 326 326 // Create List … … 330 330 { 331 331 // Devices 332 OSG_NOTICE << std::endl; 332 OSG_NOTICE << std::endl; 333 333 SGDeviceName deviceNameRec = (*deviceList)->entry[i]; 334 334 Str63 deviceNameStr; 335 335 memcpy(deviceNameStr, deviceNameRec.name, sizeof(Str63)); 336 OSG_NOTICE << " " << "Device ID : " << i << " : DeviceNameStr : " << pstr_printable(deviceNameStr) << std::endl; 336 OSG_NOTICE << " " << "Device ID : " << i << " : DeviceNameStr : " << pstr_printable(deviceNameStr) << std::endl; 337 337 SGDeviceInputList deviceInputList = deviceNameRec.inputs; 338 338 if (deviceInputList) … … 360 360 else 361 361 { 362 OSG_NOTICE << " InputList is empty!" << std::endl; 362 OSG_NOTICE << " InputList is empty!" << std::endl; 363 363 } 364 364 } … … 464 464 // if (result != noErr) 465 465 // { 466 // OSG_NOTICE << "SGInitChannel - failed!" << std::endl; 466 // OSG_NOTICE << "SGInitChannel - failed!" << std::endl; 467 467 // } 468 468 // Usage … … 477 477 if (result != noErr) 478 478 { 479 OSG_NOTICE << "Could not get DeviceAndInput names from Video SG" << std::endl; 479 OSG_NOTICE << "Could not get DeviceAndInput names from Video SG" << std::endl; 480 480 } 481 481 OSG_NOTICE << "ChannelDeviceAndInputNamesNumber: " << pstr_printable(deviceName) << " : " << pstr_printable(inputName) << " : " << inputNumber << std::endl; … … 484 484 if (result != noErr) 485 485 { 486 OSG_NOTICE << "Could not get DeviceList from Video SG" << std::endl; 486 OSG_NOTICE << "Could not get DeviceList from Video SG" << std::endl; 487 487 } 488 488 else 489 489 { 490 OSG_NOTICE << "DeviceList from Video SG ok" << std::endl; 490 OSG_NOTICE << "DeviceList from Video SG ok" << std::endl; 491 491 device_list = print_sequence_grabber_device_list(deviceList); 492 492 devices_list.push_back(device_list); … … 505 505 if (result != noErr) 506 506 { 507 OSG_NOTICE << "Could not get DeviceAndInput names from Sound SG" << std::endl; 507 OSG_NOTICE << "Could not get DeviceAndInput names from Sound SG" << std::endl; 508 508 } 509 509 OSG_NOTICE << "ChannelDeviceAndInputNamesNumber: " << pstr_printable(deviceName) << " : " << pstr_printable(inputName) << " : " << inputNumber << std::endl; … … 512 512 if (result != noErr) 513 513 { 514 OSG_NOTICE << "Could not get DeviceList from Sound SG" << std::endl; 514 OSG_NOTICE << "Could not get DeviceList from Sound SG" << std::endl; 515 515 } 516 516 else 517 517 { 518 OSG_NOTICE << "DeviceList from Sound SG ok" << std::endl; 518 OSG_NOTICE << "DeviceList from Sound SG ok" << std::endl; 519 519 device_list = print_sequence_grabber_device_list(deviceList); 520 520 devices_list.push_back(device_list); … … 776 776 // The VDGetDigitizerRect function lets you retrieve the size and location of this rectangle. 777 777 778 // Imput Source 778 // Imput Source 779 779 // Some of these functions provide information about the available video inputs. Applications can use 780 780 // the VDGetNumberOfInputs function to determine the number of video inputs supported by the digitizer component. … … 785 785 786 786 /* 787 QTVideoOutputRestoreState 788 QTVideoOutputSaveState 787 QTVideoOutputRestoreState 788 QTVideoOutputSaveState 789 789 790 790 Selecting an Input Source 791 VDGetInput 792 VDGetInputFormat 793 VDGetNumberOfInputs 794 VDSetInput 795 VDSetInputStandard 791 VDGetInput 792 VDGetInputFormat 793 VDGetNumberOfInputs 794 VDSetInput 795 VDSetInputStandard 796 796 Setting Source Characteristics 797 VDGetActiveSrcRect 798 VDGetDigitizerRect 799 VDGetMaxSrcRect 800 VDGetVBlankRect 801 VDSetDigitizerRect 797 VDGetActiveSrcRect 798 VDGetDigitizerRect 799 VDGetMaxSrcRect 800 VDGetVBlankRect 801 VDSetDigitizerRect 802 802 Setting Video Destinations 803 VDGetMaxAuxBuffer 804 VDGetPlayThruDestination 805 VDPreflightDestination 806 VDPreflightGlobalRect 807 VDSetPlayThruDestination 808 VDSetPlayThruGlobalRect 803 VDGetMaxAuxBuffer 804 VDGetPlayThruDestination 805 VDPreflightDestination 806 VDPreflightGlobalRect 807 VDSetPlayThruDestination 808 VDSetPlayThruGlobalRect 809 809 Video Clipping 810 VDClearClipRgn 811 VDGetClipState 812 VDSetClipRgn 813 VDSetClipState 810 VDClearClipRgn 811 VDGetClipState 812 VDSetClipRgn 813 VDSetClipState 814 814 */ 815 815 816 816 /* 817 QTVideoOutputCopyIndAudioOutputDeviceUID 818 QTVideoOutputGetIndImageDecompressor 819 VDGetInputGammaRecord 820 VDGetInputName 821 VDGetPreferredImageDimensions 822 VDIIDCGetCSRData 823 VDIIDCGetDefaultFeatures 824 VDIIDCGetFeatures 825 VDIIDCGetFeaturesForSpecifier 826 VDIIDCSetCSRData 827 VDIIDCSetFeatures 828 VDSetDestinationPort 829 VDSetInputGammaRecord 830 VDSetPreferredImageDimensions 831 VDUseSafeBuffers 817 QTVideoOutputCopyIndAudioOutputDeviceUID 818 QTVideoOutputGetIndImageDecompressor 819 VDGetInputGammaRecord 820 VDGetInputName 821 VDGetPreferredImageDimensions 822 VDIIDCGetCSRData 823 VDIIDCGetDefaultFeatures 824 VDIIDCGetFeatures 825 VDIIDCGetFeaturesForSpecifier 826 VDIIDCSetCSRData 827 VDIIDCSetFeatures 828 VDSetDestinationPort 829 VDSetInputGammaRecord 830 VDSetPreferredImageDimensions 831 VDUseSafeBuffers 832 832 */ 833 833 … … 836 836 //if ((i == count-1) && (inp == inputCount-1)) 837 837 //{ 838 // OSG_NOTICE << " * TEST SGSetChannelDevice(..) : " << pstr_printable(deviceNameRec.name) << std::endl; 838 // OSG_NOTICE << " * TEST SGSetChannelDevice(..) : " << pstr_printable(deviceNameRec.name) << std::endl; 839 839 // result = SGSetChannelDevice (gVideoChannel, deviceNameStr); 840 840 // if (result == noErr) … … 851 851 // if (result != noErr) 852 852 // { 853 // OSG_NOTICE << "Could not get DeviceList from Video SG" << std::endl; 853 // OSG_NOTICE << "Could not get DeviceList from Video SG" << std::endl; 854 854 // } 855 855 // else 856 856 // { 857 // OSG_NOTICE << "DeviceList from Video SG ok" << std::endl; 857 // OSG_NOTICE << "DeviceList from Video SG ok" << std::endl; 858 858 // short count = (*deviceList)->count; 859 859 // short selectedIndex = (*deviceList)->selectedIndex; 860 // OSG_NOTICE << "DeviceList : " << count << " devices in total" << std::endl; 861 // OSG_NOTICE << "DeviceList : " << selectedIndex << " is current device" << std::endl; 860 // OSG_NOTICE << "DeviceList : " << count << " devices in total" << std::endl; 861 // OSG_NOTICE << "DeviceList : " << selectedIndex << " is current device" << std::endl; 862 862 // } 863 863 // } 864 864 // else 865 865 // { 866 // OSG_NOTICE << "SGSetChannelDevice - failed!" << std::endl; 866 // OSG_NOTICE << "SGSetChannelDevice - failed!" << std::endl; 867 867 // } 868 868 // OSG_NOTICE << " * TEST SGSetChannelDevice(..) end" << std::endl;
