⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cdtype.pas

📁 canon 相机SDK,非常难得
💻 PAS
📖 第 1 页 / 共 5 页
字号:
		    1     cdUInt16    Frames
		    2     cdUInt16    FocusFrames
		    3     cdUInt16    ImageWidth
		    4     cdUint16    ImageHeight
		    5	  cdUInt16    FrameWDenominator
		    6     cdUInt16    FrameHDenominator
		    7     cdUInt16    FrameWNumerator
		    8     cdUInt16    FrameHNumerator
		    9     cdInt16[]   FrameXNumerator
		   10     cdInt16[]   FrameYNumerator
		   11     cdUInt16[]  JustFocusFramePattern
		   12     cdUInt16    JustFocusFrame


			Frames:
			     Represents the total number of elements contained in the array
				  of the FrameXNumerator and FrameYNumerator.

			FocusFrames:
				  Represents the number of effective arrangement of the
				  FrameXNumerator and FrameYNumerator array.

         ----------

         The width of the AF frame to the image (Wf) can be get by the next formula:
            Wf = ImageWidth * (FrameWNumerator/FrameWDenominator)


         The height of the AF frame to the image (Hf) can be get by the next formula:
            Wf = ImageHeight * (FrameHNumerator/FrameHDenominator)

         X coordinates of the focused frame to the image (fx) can be get by the next formula:
            fx = ImageWidth / FrameWDenominator * (FrameXNumerator + (ImageWidth - FrameWNumerator)/2)

         Y coordinates of the focused frame to the image (fy)  can be get by the next formula:
            fy = ImageHeight / FrameHDenominator * (FrameYNumerator + (ImageHeight - FrameHNumerator)/2)
	*}

  {*----------------------------------------------------------
	  Thumbnail Image Data Property
  *}
	 cdIMG_PROP_THUMB_FORMAT				=$10000001;
	{* Image data format.
	 	   Attribute : Read only
	       Size/Type : sizeof(cdImageFormat) / cdImageFormat
	*}
	 cdIMG_PROP_THUMB_COMPONENT_BIT_DEPTH	=$10000002;
	{* The number of bits per color component (such as 8).
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}
	 cdIMG_PROP_THUMB_COLOR_BIT_DEPTH		        =$10000003;
	{* The number of bits per color (such as 24).
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}
	 cdIMG_PROP_THUMB_WIDHT					=$10000004;
	{* The width in pixels.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_THUMB_HEIGHT				=$10000005;
	{* The height in pixels.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_THUMB_DENSITY_X				=$10000006;
	{* The horizontal dots per inch.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_THUMB_DENSITY_Y				=$10000007;
	{* The vertical dots per inch.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}

  {*----------------------------------------------------------
	  Picture Image Data (full resolution image data) Property
  *}
	 cdIMG_PROP_PICT_FORMAT					=$20000001;
	{* Image data format.
	 	   Attribute : Read only
	       Size/Type : sizeof(cdImageFormat) / cdImageFormat
	*}
	 cdIMG_PROP_PICT_COMPONENT_BIT_DEPTH	                =$20000002;
	{*  The number of bits per color component (such as 8).
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}
	 cdIMG_PROP_PICT_COLOR_BIT_DEPTH		        =$20000003;
	{* The number of bits per color (such as 24).
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}
	 cdIMG_PROP_PICT_WIDHT					=$20000004;
	{* The width in pixels.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_PICT_HEIGHT					=$20000005;
	{* The height in pixels.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_PICT_DENSITY_X				=$20000006;
	{* The horizontal dots per inch.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_PICT_DENSITY_Y				=$20000007;
	{* The vertical dots per inch.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_PICT_NEED_DEVELOP			        =$20000008;
	{* Indicates that the picture image data needs development.
	   If this property is TRUE, client applications should develop
	   the picture image data by CDGetDevelopedImageData().
	 	   Attribute : Read only
	       Size/Type : sizeof(cdBoolean) / cdBoolean
	*}
	 cdIMG_PROP_PICT_COMPRESSION_RATIO		        =$20000010;
	{* The compression ratio compared to 24-bit RGB.
	 	   Attribute : Read only
	       Size/Type : 4 / cdFloat
	*}
	 cdIMG_PROP_PICT_COMPRESSION_TYPE		        =$20000011;
	{* The type of compression used on the image data.
	 	   Attribute : Read only
	       Size/Type : 1 / cdCompressionType
	*}

  {*----------------------------------------------------------
	  Movie Data Property
  *}
	 cdIMG_PROP_MOVIE_FORMAT				=$30000001;
	{* Movie data format.
	 	   Attribute : Read only
	       Size/Type : sizeof(cdImageFormat) / cdImageFormat
	*}
	 cdIMG_PROP_MOVIE_COMPONENT_BIT_DEPTH	                =$30000002;
	{* The number of bits per color component (such as 8).
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}
	 cdIMG_PROP_MOVIE_COLOR_BIT_DEPTH		        =$30000003;
	{* The number of bits per color (such as 24).
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}
	 cdIMG_PROP_MOVIE_WIDHT					=$30000004;
	{* Width in pixels.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_MOVIE_HEIGHT				=$30000005;
	{* Height in pixels.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_MOVIE_DENSITY_X				=$30000006;
	{* The horizontal dots per inch.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_MOVIE_DENSITY_Y				=$30000007;
	{* The vertical dots per inch.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_MOVIE_FRAME_RATE			        =$30000009;
	{* Flame rate (flames/sec)
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_MOVIE_TOTAL_FRAME			        =$3000000a;
	{* The number of total frames.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdIMG_PROP_MOVIE_CREATOR_VERSION		        =$3000000b;
	{* Creator version that is the version number of the movie 
	   file generated by the Canon Digital Camera.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}

  {*----------------------------------------------------------                  
	  Sound Data Property 
  *}
	 cdIMG_PROP_SOUND_FORMAT				=$40000001;
	{* Sound data format.
	 	   Attribute : Read only
	       Size/Type : sizeof(cdImageFormat) / cdImageFormat
	*}
	 cdIMG_PROP_SOUND_SOUND_DURATION		        =$4000000c;
	{* The duration in seconds.
	 	   Attribute : Read only
	       Size/Type : 4 / cdFloat
	*}
	 cdIMG_PROP_SOUND_SAMPLING_FREQUENCY 	                =$4000000d;
	{* The number of samples per second.
	 	   Attribute : Read only
	       Size/Type : 4 / cdUInt32
	*}
	 cdIMG_PROP_SOUND_SOUND_CHANNELS		        =$4000000e;
	{* The number of interleaved channels.
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}
	 cdIMG_PROP_SOUND_BITS_PER_SAMPLE		        =$4000000f;
	{* The number of bits per sample.
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}

{* cdBaseImagePropertyID
*}
type  cdBaseImagePropertyID=cdImagePropertyID;
const
	 cdBASE_IMG_PROP_FORMAT				        =$00000001;
	{* Data format.
	 	   Attribute : Read only
	       Size/Type : sizeof(cdImageFormat) / cdImageFormat
	*}
	 cdBASE_IMG_PROP_COMPONENT_BIT_DEPTH	                =$00000002;
	{* The number of bits per color component (such as 8).
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}
	 cdBASE_IMG_PROP_COLOR_BIT_DEPTH		        =$00000003;
	{* The number of bits per color (such as 24).
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}
	 cdBASE_IMG_PROP_WIDHT				        =$00000004;
	{* The width in pixels.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdBASE_IMG_PROP_HEIGHT				        =$00000005;
	{* The height in pixels.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdBASE_IMG_PROP_DENSITY_X			        =$00000006;
	{* The horizontal dots per inch.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdBASE_IMG_PROP_DENSITY_Y		    	        =$00000007;
	{* The vertical dots per inch.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdBASE_IMG_PROP_NEED_DEVELOP		                =$00000008;
	{* Indicates that the data needs development.
	   If this property is TRUE, client applications should develop
	   the data by CDGetDevelopedImageData().
	 	   Attribute : Read only
	       Size/Type : sizeof(cdBoolean) / cdBoolean
	*}

	 cdBASE_IMG_PROP_FRAME_RATE			        =$00000009;
	{* Flame rate (flames/sec)
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdBASE_IMG_PROP_TOTAL_FRAME			        =$0000000a;
	{* The number of total frames.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}
	 cdBASE_IMG_PROP_CREATOR_VERSION		        =$0000000b;
	{* Creator version that is the version number of the movie
	   file generated by the Canon Digital Camera.
	 	   Attribute : Read only
	       Size/Type : 2 / cdUInt16
	*}

	 cdBASE_IMG_PROP_SOUND_DURATION		                =$0000000c;
	{* The duration in seconds.
	 	   Attribute : Read only
	       Size/Type : 4 / cdFloat
	*}
	 cdBASE_IMG_PROP_SAMPLING_FREQUENCY 	                =$0000000d;
	{* The number of samples per second.
	 	   Attribute : Read only
	       Size/Type : 4 / cdUInt32
	*}
	 cdBASE_IMG_PROP_SOUND_CHANNELS		                =$0000000e;
	{* The number of interleaved channels.
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}
	 cdBASE_IMG_PROP_BITS_PER_SAMPLE		        =$0000000f;
	{* The number of bits per sample.
	 	   Attribute : Read only
	       Size/Type : 1 / cdUInt8
	*}

	 cdBASE_IMG_PROP_COMPRESSION_RATIO	                =$00000010;
	{* The compression ratio compared to 24-bit RGB.
	 	   Attribute : Read only
	       Size/Type : 4 / cdFloat
	*}
	 cdBASE_IMG_PROP_COMPRESSION_TYPE	                =$00000011;
	{* The type of compression used on the image data.
	 	   Attribute : Read only
	       Size/Type : 1 / cdCompressionType
	*}
	 cdBASE_IMG_PROP_ROTATION_ANGLE		                =$00001800;
	{* Rotation angle. (0, 90, 180, 270)
	       Attribute : Read only
	       Size/Type : 4 / cdUInt32
	*}

{* cdDevicePropertyID
*}
type  cdDevicePropertyID=cdUInt32;
const
	 cdDEVICE_PROP_INVALID				        =$FFFFFFFF;
	{* Invalid ID
	*}

	 cdDEVICE_PROP_MODEL_ID			    	        =$00000001;
	{* Camera model ID.
	       Attribute : Read only
	       Size/Type : 4 / cdUInt32
	*}
	 cdDEVICE_PROP_MODEL_NAME			        =$00000002;
	{* Camera model name.
	       Attribute : Read only
	       Size/Type : 32 / cdChar[32]
	*}
	 cdDEVICE_PROP_SLIDE_SHOW_CAP		                =$00000003;
	{* Slide show capacity.
	       Attribute : Read only
	       Size/Type : sizeof(cdSlideShowCap) / cdSlideShowCap
	*}
	 cdDEVICE_PROP_UPLOAD_FILE_CAP		                =$00000004;
	{* AddPicture suport.
	       Attribute : Read only
	       Size/Type : sizeof(cdBoolean) / cdBoolean
	   Values:
	     TRUE : The device supports the CDAddPicture.
		 FALSE: The device does not support the CDAddPicture.
	*}
	 cdDEVICE_PROP_ROTATION_CAP			        =$00000005;
	{* Image rotation suport.
	       Attribute : Read only
	       Size/Type : sizeof(cdBoolean) / cdBoolean
	   Values:
	     TRUE : The device supports the image rotation function.
		 FALSE: The device does not support the image rotation function.
	*}
	 cdDEVICE_PROP_DPOF_CAP				        =$00000006;
	{* DPOF version number supported by the device.
	       Attribute : Read only
	       Size/Type : 4 / cdUInt32
	*}
	 cdDEVICE_PROP_THUMB_VALID_AREA		                =$00000007;
	{* Valid area in the DCF thumbnail data.
	       Attribute : Read only
	       Size/Type :  /
	*}
	 cdDEVICE_PROP_RELEASE_CONTROL_CAP	                =$00000008;
	{* Remote release control capacity.
	       Attribute : Read only
	       Size/Type : 4 / cdUInt32
           Meaning:
                If $40000000 bit is set, the camera supports the remote release control funciton.
	*}
	 cdDEVICE_PROP_RAW_DEVELOP_FACULTIES	                =$00000009;
	{* RAW file specification generated by the device.
	       Attribute : Read only
	       Size/Type : sizeof(cdRawDevelopFaculty) / cdRawDevelopFaculty
	*}
	 cdDEVICE_PROP_PARSE_FACULTIES		                =$0000000a;
	{* File parser faculty.
	       Attribute : Read only
	       Size/Type : sizeof(cdParseFaculty) / cdParseFaculty
	*}
	 cdDEVICE_PROP_OWNER_NAME			        =$0800000c;
	{* Owner's name.
	       Attribute : Read / Write
	       Size/Type : 32 / cdChar[32]
	*}
	 cdDEVICE_PROP_TIME					=$0800000d;
	{* Time set in the device.
	       Attribute : Read / Write
	       Size/Type : 4 / cdTime
	*}
	 cdDEVICE_PROP_FIRMWARE_VERSION		                =$0000000e;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -