Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppb_image_data.h
Go to the documentation of this file.
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 /* From ppb_image_data.idl modified Thu Oct 20 13:57:04 2016. */
7 
8 #ifndef PPAPI_C_PPB_IMAGE_DATA_H_
9 #define PPAPI_C_PPB_IMAGE_DATA_H_
10 
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_resource.h"
15 #include "ppapi/c/pp_size.h"
16 #include "ppapi/c/pp_stdint.h"
17 
18 #define PPB_IMAGEDATA_INTERFACE_1_0 "PPB_ImageData;1.0"
19 #define PPB_IMAGEDATA_INTERFACE PPB_IMAGEDATA_INTERFACE_1_0
20 
64 typedef enum {
65  PP_IMAGEDATAFORMAT_BGRA_PREMUL,
66  PP_IMAGEDATAFORMAT_RGBA_PREMUL
68 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ImageDataFormat, 4);
88  struct PP_Size size;
93  int32_t stride;
94 };
95 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ImageDataDesc, 16);
154  PP_ImageDataFormat format,
155  const struct PP_Size* size,
156  PP_Bool init_to_zero);
182  PP_Bool (*Describe)(PP_Resource image_data, struct PP_ImageDataDesc* desc);
191  void* (*Map)(PP_Resource image_data);
199  void (*Unmap)(PP_Resource image_data);
200 };
201 
202 typedef struct PPB_ImageData_1_0 PPB_ImageData;
207 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */
208 
void(* Unmap)(PP_Resource image_data)
Definition: ppb_image_data.h:199
Definition: ppb_image_data.h:108
struct PP_Size size
Definition: ppb_image_data.h:88
PP_ImageDataFormat format
Definition: ppb_image_data.h:86
int32_t PP_Resource
Definition: pp_resource.h:40
Definition: ppb_image_data.h:81
int32_t stride
Definition: ppb_image_data.h:93
PP_Bool(* IsImageData)(PP_Resource image_data)
Definition: ppb_image_data.h:167
PP_ImageDataFormat
Definition: ppb_image_data.h:64
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Bool(* Describe)(PP_Resource image_data, struct PP_ImageDataDesc *desc)
Definition: ppb_image_data.h:182
PP_Bool(* IsImageDataFormatSupported)(PP_ImageDataFormat format)
Definition: ppb_image_data.h:130
PP_Bool
Definition: pp_bool.h:30
PP_ImageDataFormat(* GetNativeImageDataFormat)(void)
Definition: ppb_image_data.h:117
PP_Resource(* Create)(PP_Instance instance, PP_ImageDataFormat format, const struct PP_Size *size, PP_Bool init_to_zero)
Definition: ppb_image_data.h:153
Definition: pp_size.h:27