/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lice...
copybit调研报告2
copybit模块在android2.0以后归OpenGL管理,在libagl中专门有一个copybit.cpp文件对其进一步封装并进行管理。
当然,也有越狱的时候,这个我们在后面讨论,首先还是看看copybit.cpp。
首先看android.mk,有个宏定义,默认是打开的
#define LIBAGL_USE_GRALLOC_copybitS
首先再来回顾下copybit的接口函数,虽然简单,但功能一个都不少。
copybit模块主要使用的硬件加速功能有:
bitBlit
Stretch
Rotate
Alpha blending
Color Transform
1、bit blit和stretch的实现
strctch并没有特殊去实现,因为所有的坐标数据都是Android的Surface和OpenGL ES层传下来的,主要...