Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 #ifndef PPAPI_C_PPB_IMAGE_DATA_H_ | 5 #ifndef PPAPI_C_PPB_IMAGE_DATA_H_ |
| 6 #define PPAPI_C_PPB_IMAGE_DATA_H_ | 6 #define PPAPI_C_PPB_IMAGE_DATA_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/c/pp_macros.h" | 10 #include "ppapi/c/pp_macros.h" |
| 11 #include "ppapi/c/pp_module.h" | 11 #include "ppapi/c/pp_module.h" |
| 12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
| 13 #include "ppapi/c/pp_size.h" | 13 #include "ppapi/c/pp_size.h" |
| 14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * @file | 17 * @file |
| 18 * This file defines the PPB_ImageData struct for determining how a browser | 18 * This file defines the PPB_ImageData struct for determining how a browser |
| 19 * handles image data. | 19 * handles image data. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 /** | 22 /** |
| 23 * @addtogroup Enums | 23 * @addtogroup Enums |
| 24 * @{ | 24 * @{ |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 * PP_ImageDataFormat is an enumeration of the different types of | 28 * PP_ImageDataFormat is an enumeration of the different types of |
| 29 * image data formats. | 29 * image data formats. |
| 30 * The third part of each enumeration value describes the memory layout from | |
|
brettw
2011/03/23 17:57:46
Can you put a blank line above this (with just a *
yzshen1
2011/03/23 18:22:40
Done. Thanks!
On 2011/03/23 17:57:46, brettw wrot
| |
| 31 * the lowest address to the highest. For example, BGRA means the B component | |
| 32 * is stored in the lowest address, no matter what endianness the platform is | |
| 33 * using. | |
| 30 */ | 34 */ |
| 31 typedef enum { | 35 typedef enum { |
| 32 PP_IMAGEDATAFORMAT_BGRA_PREMUL, | 36 PP_IMAGEDATAFORMAT_BGRA_PREMUL, |
| 33 PP_IMAGEDATAFORMAT_RGBA_PREMUL | 37 PP_IMAGEDATAFORMAT_RGBA_PREMUL |
| 34 } PP_ImageDataFormat; | 38 } PP_ImageDataFormat; |
| 35 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ImageDataFormat, 4); | 39 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ImageDataFormat, 4); |
| 36 /** | 40 /** |
| 37 * @} | 41 * @} |
| 38 */ | 42 */ |
| 39 | 43 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 163 * | 167 * |
| 164 * @param[in] image_data A PP_Resource corresponding to image data. | 168 * @param[in] image_data A PP_Resource corresponding to image data. |
| 165 */ | 169 */ |
| 166 void (*Unmap)(PP_Resource image_data); | 170 void (*Unmap)(PP_Resource image_data); |
| 167 }; | 171 }; |
| 168 /** | 172 /** |
| 169 * @} | 173 * @} |
| 170 */ | 174 */ |
| 171 | 175 |
| 172 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ | 176 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ |
| 173 | |
| OLD | NEW |