mirror of
https://github.com/AetherDroid/android_device_samsung_universal7570-common.git
synced 2025-09-05 16:07:47 -04:00
universal7870: unify camera shims in libexynoscamera_shim
This commit is contained in:
parent
bd9d94d0c5
commit
f6d519da54
4 changed files with 133 additions and 2 deletions
|
@ -14,7 +14,32 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
#include <ui/GraphicBuffer.h>
|
||||
|
||||
extern "C" void _ZN7android5FenceD1Ev() {
|
||||
extern "C" void _ZN7android5FenceD1Ev() { }
|
||||
|
||||
extern "C" void _ZN7android13GraphicBufferC1EjjijjjP13native_handleb(
|
||||
const native_handle_t* handle,
|
||||
android::GraphicBuffer::HandleWrapMethod method,
|
||||
uint32_t width,
|
||||
uint32_t height,
|
||||
int format,
|
||||
uint32_t layerCount,
|
||||
uint64_t usage,
|
||||
uint32_t stride);
|
||||
|
||||
extern "C" void _ZN7android13GraphicBufferC1EjjijjP13native_handleb(
|
||||
uint32_t inWidth,
|
||||
uint32_t inHeight,
|
||||
int inFormat,
|
||||
uint32_t inUsage,
|
||||
uint32_t inStride,
|
||||
native_handle_t* inHandle,
|
||||
bool keepOwnership)
|
||||
{
|
||||
android::GraphicBuffer::HandleWrapMethod inMethod =
|
||||
(keepOwnership ? android::GraphicBuffer::TAKE_HANDLE : android::GraphicBuffer::WRAP_HANDLE);
|
||||
_ZN7android13GraphicBufferC1EjjijjjP13native_handleb(inHandle, inMethod, inWidth, inHeight,
|
||||
inFormat, static_cast<uint32_t>(1), static_cast<uint64_t>(inUsage), inStride);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue