colorspace_c.h File Reference

C interface for colorspace of the video of a clip. More...


Typedefs

typedef AVS_ColorSpace_ AVS_ColorSpace
 opaque declaration of a colorspace.

Enumerations

enum  ColorSpace_Id {
  I_EXTERNAL,
  I_RGB24,
  I_RGB32,
  I_YUY2,
  I_YV12,
  I_YV24
}
 ColorSpace ids, used to switch on color spaces. More...

Functions

AVS_C_API void avs_colorspace_delete (AVS_ColorSpace *p_cs)
 Delete an AVS_ColorSpace.
AVS_C_API ColorSpace_Id avs_colorspace_id_get (const AVS_ColorSpace *p_cs)
 Retrieve the type of the colorspace.


Detailed Description

C interface for colorspaces. You can get the colorspace of a clip with the function avs_videoinfo_colorspace_get().

Once you got it, you can check it with avs_colorspace_id_get() and ColorSpace_Id.

Once you have finished with an AVS_ColorSpace, you delete it with avs_colorspace_delete().


Enumeration Type Documentation

enum ColorSpace_Id

Enumerator:
I_EXTERNAL  reports an external colorspace (defined by a plugin)
I_RGB24  24 bits RGB colorspace
I_RGB32  32 bits RGB colorspace
I_YUY2  YUY2 interlaced colorspace.
I_YV12  YV12 planar colorspace.
I_YV24  YV24 planar colorspace.


Function Documentation

AVS_C_API void avs_colorspace_delete ( AVS_ColorSpace p_cs  ) 

Parameters:
p_cs The colorspace to delete.
Delete the colorspace p_cs.

AVS_C_API ColorSpace_Id avs_colorspace_id_get ( const AVS_ColorSpace p_cs  ) 

Parameters:
p_cs The colorspace.
Returns:
The id of the colorspace.
Retrieve the type of the colorspace p_cs.


Generated on Sun Jul 30 18:46:52 2006 for Avisynth by  doxygen 1.4.7