diff options
Diffstat (limited to 'libcopybit/copybit_c2d.cpp')
-rw-r--r-- | libcopybit/copybit_c2d.cpp | 41 |
1 files changed, 10 insertions, 31 deletions
diff --git a/libcopybit/copybit_c2d.cpp b/libcopybit/copybit_c2d.cpp index 9936eb666..240ba26c6 100644 --- a/libcopybit/copybit_c2d.cpp +++ b/libcopybit/copybit_c2d.cpp @@ -194,22 +194,22 @@ static int open_copybit(const struct hw_module_t* module, const char* name, struct hw_device_t** device); static struct hw_module_methods_t copybit_module_methods = { -open: open_copybit + .open = open_copybit, }; /* * The COPYBIT Module */ struct copybit_module_t HAL_MODULE_INFO_SYM = { -common: { -tag: HARDWARE_MODULE_TAG, - version_major: 1, - version_minor: 0, - id: COPYBIT_HARDWARE_MODULE_ID, - name: "QCT COPYBIT C2D 2.0 Module", - author: "Qualcomm", - methods: ©bit_module_methods - } + .common = { + .tag = HARDWARE_MODULE_TAG, + .version_major = 1, + .version_minor = 0, + .id = COPYBIT_HARDWARE_MODULE_ID, + .name = "QCT COPYBIT C2D 2.0 Module", + .author = "Qualcomm", + .methods = ©bit_module_methods + } }; @@ -925,27 +925,6 @@ static int get(struct copybit_device_t *dev, int name) return value; } -static int is_alpha(int cformat) -{ - int alpha = 0; - switch (cformat & 0xFF) { - case C2D_COLOR_FORMAT_8888_ARGB: - case C2D_COLOR_FORMAT_8888_RGBA: - case C2D_COLOR_FORMAT_5551_RGBA: - case C2D_COLOR_FORMAT_4444_ARGB: - alpha = 1; - break; - default: - alpha = 0; - break; - } - - if(alpha && (cformat&C2D_FORMAT_DISABLE_ALPHA)) - alpha = 0; - - return alpha; -} - /* Function to check if we need a temporary buffer for the blit. * This would happen if the requested destination stride and the * C2D stride do not match. We ignore RGB buffers, since their |