00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00059 #ifndef ti_sdo_dmai_BufferGfx_h_
00060 #define ti_sdo_dmai_BufferGfx_h_
00061
00062 #include <xdc/std.h>
00063
00064 #include <ti/sdo/dmai/Dmai.h>
00065 #include <ti/sdo/dmai/Buffer.h>
00066 #include <ti/sdo/dmai/VideoStd.h>
00067 #include <ti/sdo/dmai/ColorSpace.h>
00068
00071
00075 typedef struct BufferGfx_Dimensions {
00077 Int32 x;
00078
00080 Int32 y;
00081
00083 Int32 width;
00084
00086 Int32 height;
00087
00090 Int32 lineLength;
00091 } BufferGfx_Dimensions;
00092
00097 typedef struct BufferGfx_Attrs {
00099 Buffer_Attrs bAttrs;
00100
00102 ColorSpace_Type colorSpace;
00103
00105 BufferGfx_Dimensions dim;
00106 } BufferGfx_Attrs;
00107
00120 extern const BufferGfx_Attrs BufferGfx_Attrs_DEFAULT;
00121
00122 #if defined (__cplusplus)
00123 extern "C" {
00124 #endif
00125
00137 extern Buffer_Attrs *BufferGfx_getBufferAttrs(BufferGfx_Attrs *gfxAttrs);
00138
00149 extern Int32 BufferGfx_calcSize(VideoStd_Type videoStd,
00150 ColorSpace_Type colorSpace);
00151
00161 extern Int32 BufferGfx_calcSizeDim(BufferGfx_Dimensions *dimPtr,
00162 ColorSpace_Type colorSpace);
00163
00176 extern Int BufferGfx_calcDimensions(VideoStd_Type videoStd,
00177 ColorSpace_Type colorSpace,
00178 BufferGfx_Dimensions *dimPtr);
00179
00190 extern Int32 BufferGfx_calcLineLength(Int32 width, ColorSpace_Type colorSpace);
00191
00204 extern Int32 BufferGfx_getFrameType(Buffer_Handle hBuf);
00205
00218 extern Void BufferGfx_setFrameType(Buffer_Handle hBuf, Int32 frameType);
00219
00231 extern ColorSpace_Type BufferGfx_getColorSpace(Buffer_Handle hBuf);
00232
00243 extern Void BufferGfx_setColorSpace(Buffer_Handle hBuf,
00244 ColorSpace_Type colorSpace);
00245
00259 extern Void BufferGfx_getDimensions(Buffer_Handle hBuf,
00260 BufferGfx_Dimensions *dimPtr);
00261
00275 extern Int BufferGfx_setDimensions(Buffer_Handle hBuf,
00276 BufferGfx_Dimensions *dimPtr);
00277
00287 extern Void BufferGfx_resetDimensions(Buffer_Handle hBuf);
00288
00304 extern Int BufferGfx_setMaxDimensions(Buffer_Handle hBuf,
00305 BufferGfx_Dimensions *dimPtr);
00306
00307 #if defined (__cplusplus)
00308 }
00309 #endif
00310
00313 #endif