Changeset 50975 in vbox for trunk/src/VBox
- Timestamp:
- Apr 4, 2014 7:12:59 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 93144
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_unpack.h
r50973 r50975 37 37 } CR_UNPACK_BUFFER_TYPE; 38 38 39 DECLINLINE(CR_UNPACK_BUFFER_TYPE) crUnpackGetBufferType(const void *opcodes, unsigned int num_opcodes) 40 { 41 const uint8_t *pu8Codes = (const uint8_t *)opcodes; 42 43 CR_UNPACK_BUFFER_TYPE enmType; 44 uint8_t first; 45 uint8_t last; 46 47 if (!num_opcodes) 48 return CR_UNPACK_BUFFER_TYPE_GENERIC; 49 50 first = pu8Codes[0]; 51 last = pu8Codes[1-(int)num_opcodes]; 52 53 enmType = (first != CR_CMDBLOCKBEGIN_OPCODE) ? CR_UNPACK_BUFFER_TYPE_GENERIC : CR_UNPACK_BUFFER_TYPE_CMDBLOCK_BEGIN; 54 55 if (last != CR_CMDBLOCKEND_OPCODE) 56 return enmType; 57 58 /* last is CMDBLOCKEND*/ 59 return (enmType == CR_UNPACK_BUFFER_TYPE_CMDBLOCK_BEGIN) ? CR_UNPACK_BUFFER_TYPE_GENERIC : CR_UNPACK_BUFFER_TYPE_CMDBLOCK_END; 60 } 39 DECLEXPORT(CR_UNPACK_BUFFER_TYPE) crUnpackGetBufferType(const void *opcodes, unsigned int num_opcodes); 61 40 62 41 extern CRNetworkPointer * return_ptr; -
trunk/src/VBox/HostServices/SharedOpenGL/Makefile.kmk
r50974 r50975 53 53 endif 54 54 VBoxSharedCrOpenGL_INTERMEDIATES = \ 55 $(TEMPLATE_VBOXMAINEXE_INTERMEDIATES) \ 56 $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h 57 55 $(TEMPLATE_VBOXMAINEXE_INTERMEDIATES) 58 56 VBoxSharedCrOpenGL_INCS.win = \ 59 57 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC) \ -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack.py
r50973 r50975 205 205 cr_unpackData = node->unpackData; 206 206 crFree( node ); 207 } 208 209 CR_UNPACK_BUFFER_TYPE crUnpackGetBufferType(const void *opcodes, unsigned int num_opcodes) 210 { 211 const uint8_t *pu8Codes = (const uint8_t *)opcodes; 212 213 CR_UNPACK_BUFFER_TYPE enmType; 214 uint8_t first; 215 uint8_t last; 216 217 if (!num_opcodes) 218 return CR_UNPACK_BUFFER_TYPE_GENERIC; 219 220 first = pu8Codes[0]; 221 last = pu8Codes[1-(int)num_opcodes]; 222 223 enmType = (first != CR_CMDBLOCKBEGIN_OPCODE) ? CR_UNPACK_BUFFER_TYPE_GENERIC : CR_UNPACK_BUFFER_TYPE_CMDBLOCK_BEGIN; 224 225 if (last != CR_CMDBLOCKEND_OPCODE) 226 return enmType; 227 228 /* last is CMDBLOCKEND*/ 229 return (enmType == CR_UNPACK_BUFFER_TYPE_CMDBLOCK_BEGIN) ? CR_UNPACK_BUFFER_TYPE_GENERIC : CR_UNPACK_BUFFER_TYPE_CMDBLOCK_END; 207 230 } 208 231
Note:
See TracChangeset
for help on using the changeset viewer.