Home | History | Annotate | Download | only in b_TensorEm
      1 /*
      2  * Copyright (C) 2008 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #ifndef bts_UINT32RECT_EM_H
     18 #define bts_UINT32RECT_EM_H
     19 
     20 /* ---- includes ----------------------------------------------------------- */
     21 
     22 #include "b_BasicEm/Context.h"
     23 #include "b_BasicEm/Basic.h"
     24 
     25 /* ---- related objects  --------------------------------------------------- */
     26 
     27 /* ---- typedefs ----------------------------------------------------------- */
     28 
     29 /* ---- constants ---------------------------------------------------------- */
     30 
     31 /* ---- object definition -------------------------------------------------- */
     32 
     33 /** 2d vector */
     34 struct bts_Uint32Rect
     35 {
     36 
     37 	/* ---- private data --------------------------------------------------- */
     38 
     39 	/* ---- public data ---------------------------------------------------- */
     40 
     41 	/** upper left component */
     42 	uint32 x1E;
     43 
     44 	/** upper left component */
     45 	uint32 y1E;
     46 
     47 	/** lower right component */
     48 	uint32 x2E;
     49 
     50 	/** lower right component */
     51 	uint32 y2E;
     52 };
     53 
     54 /* ---- associated objects ------------------------------------------------- */
     55 
     56 /* ---- external functions ------------------------------------------------- */
     57 
     58 /* ---- \ghd{ constructor/destructor } ------------------------------------- */
     59 
     60 /* ---- \ghd{ operators } -------------------------------------------------- */
     61 
     62 /* ---- \ghd{ query functions } -------------------------------------------- */
     63 
     64 /* ---- \ghd{ modify functions } ------------------------------------------- */
     65 
     66 /* ---- \ghd{ memory I/O } ------------------------------------------------- */
     67 
     68 /** size object needs when written to memory */
     69 uint32 bts_Uint32Rect_memSize( struct bbs_Context* cpA,
     70 							   const struct bts_Uint32Rect* ptrA );
     71 
     72 /** writes object to memory; returns number of bytes written */
     73 uint32 bts_Uint32Rect_memWrite( struct bbs_Context* cpA,
     74 							    const struct bts_Uint32Rect* ptrA,
     75 								uint16* memPtrA );
     76 
     77 /** reads object from memory; returns number of bytes read */
     78 uint32 bts_Uint32Rect_memRead( struct bbs_Context* cpA,
     79 							   struct bts_Uint32Rect* ptrA,
     80 							   const uint16* memPtrA );
     81 
     82 /* ---- \ghd{ exec functions } --------------------------------------------- */
     83 
     84 
     85 #endif /* bts_UINT32RECT_EM_H */
     86 
     87