Initial work
This commit is contained in:
commit
3222551702
374 changed files with 40290 additions and 0 deletions
10
external/android-emugl/host/libs/renderControl_dec/Android.mk
vendored
Normal file
10
external/android-emugl/host/libs/renderControl_dec/Android.mk
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
|
||||
### host library ############################################
|
||||
$(call emugl-begin-host-static-library,lib_renderControl_dec)
|
||||
$(call emugl-import,libOpenglCodecCommon)
|
||||
$(call emugl-gen-decoder,$(LOCAL_PATH),renderControl)
|
||||
# For renderControl_types.h
|
||||
$(call emugl-export,C_INCLUDES,$(LOCAL_PATH))
|
||||
$(call emugl-end-module)
|
||||
14
external/android-emugl/host/libs/renderControl_dec/CMakeLists.txt
vendored
Normal file
14
external/android-emugl/host/libs/renderControl_dec/CMakeLists.txt
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
set(GENERATED_SOURCES
|
||||
renderControl_dec.cpp
|
||||
renderControl_server_context.cpp)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${GENERATED_SOURCES}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_BINARY_DIR}/external/android-emugl/host/tools/emugen/emugen
|
||||
-D ${CMAKE_CURRENT_BINARY_DIR} renderControl
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS emugen)
|
||||
|
||||
add_library(renderControl_dec ${GENERATED_SOURCES})
|
||||
target_link_libraries(renderControl_dec OpenglCodecCommon)
|
||||
44
external/android-emugl/host/libs/renderControl_dec/renderControl.attrib
vendored
Normal file
44
external/android-emugl/host/libs/renderControl_dec/renderControl.attrib
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
GLOBAL
|
||||
base_opcode 10000
|
||||
encoder_headers <stdint.h> <EGL/egl.h> "glUtils.h"
|
||||
|
||||
rcGetEGLVersion
|
||||
dir major out
|
||||
len major sizeof(EGLint)
|
||||
dir minor out
|
||||
len minor sizeof(EGLint)
|
||||
|
||||
rcQueryEGLString
|
||||
dir buffer out
|
||||
len buffer bufferSize
|
||||
|
||||
rcGetGLString
|
||||
dir buffer out
|
||||
len buffer bufferSize
|
||||
|
||||
rcGetNumConfigs
|
||||
dir numAttribs out
|
||||
len numAttribs sizeof(uint32_t)
|
||||
|
||||
rcGetConfigs
|
||||
dir buffer out
|
||||
len buffer bufSize
|
||||
|
||||
rcChooseConfig
|
||||
dir attribs in
|
||||
len attribs attribs_size
|
||||
dir configs out
|
||||
var_flag configs nullAllowed
|
||||
len configs configs_size*sizeof(uint32_t)
|
||||
|
||||
rcReadColorBuffer
|
||||
dir pixels out
|
||||
len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height)
|
||||
|
||||
rcUpdateColorBuffer
|
||||
dir pixels in
|
||||
len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height)
|
||||
var_flag pixels isLarge
|
||||
|
||||
rcCloseColorBuffer
|
||||
flag flushOnEncode
|
||||
29
external/android-emugl/host/libs/renderControl_dec/renderControl.in
vendored
Normal file
29
external/android-emugl/host/libs/renderControl_dec/renderControl.in
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
GL_ENRTY(GLint, rcGetRendererVersion)
|
||||
GL_ENTRY(EGLint, rcGetEGLVersion, EGLint *major, EGLint *minor)
|
||||
GL_ENTRY(EGLint, rcQueryEGLString, EGLenum name, void *buffer, EGLint bufferSize)
|
||||
GL_ENTRY(EGLint, rcGetGLString, EGLenum name, void *buffer, EGLint bufferSize)
|
||||
GL_ENTRY(EGLint, rcGetNumConfigs, uint32_t *numAttribs)
|
||||
GL_ENTRY(EGLint, rcGetConfigs, uint32_t bufSize, GLuint *buffer)
|
||||
GL_ENTRY(EGLint, rcChooseConfig, EGLint *attribs, uint32_t attribs_size, uint32_t *configs, uint32_t configs_size)
|
||||
GL_ENTRY(EGLint, rcGetFBParam, EGLint param)
|
||||
GL_ENTRY(uint32_t, rcCreateContext, uint32_t config, uint32_t share, uint32_t glVersion)
|
||||
GL_ENTRY(void, rcDestroyContext, uint32_t context)
|
||||
GL_ENTRY(uint32_t, rcCreateWindowSurface, uint32_t config, uint32_t width, uint32_t height)
|
||||
GL_ENTRY(void, rcDestroyWindowSurface, uint32_t windowSurface)
|
||||
GL_ENTRY(uint32_t, rcCreateColorBuffer, uint32_t width, uint32_t height, GLenum internalFormat)
|
||||
GL_ENTRY(void, rcOpenColorBuffer, uint32_t colorbuffer)
|
||||
GL_ENTRY(void, rcCloseColorBuffer, uint32_t colorbuffer)
|
||||
GL_ENTRY(void, rcSetWindowColorBuffer, uint32_t windowSurface, uint32_t colorBuffer)
|
||||
GL_ENTRY(int, rcFlushWindowColorBuffer, uint32_t windowSurface)
|
||||
GL_ENTRY(EGLint, rcMakeCurrent, uint32_t context, uint32_t drawSurf, uint32_t readSurf)
|
||||
GL_ENTRY(void, rcFBPost, uint32_t colorBuffer)
|
||||
GL_ENTRY(void, rcFBSetSwapInterval, EGLint interval)
|
||||
GL_ENTRY(void, rcBindTexture, uint32_t colorBuffer)
|
||||
GL_ENTRY(void, rcBindRenderbuffer, uint32_t colorBuffer)
|
||||
GL_ENTRY(EGLint, rcColorBufferCacheFlush, uint32_t colorbuffer, EGLint postCount,int forRead)
|
||||
GL_ENTRY(void, rcReadColorBuffer, uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void *pixels)
|
||||
GL_ENTRY(int, rcUpdateColorBuffer, uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void *pixels)
|
||||
GL_ENTRY(int, rcOpenColorBuffer2, uint32_t colorbuffer)
|
||||
GL_ENTRY(uint32_t, rcCreateClientImage, uint32_t context, EGLenum target, GLuint buffer)
|
||||
GL_ENTRY(int, rcDestroyClientImage, uint32_t image)
|
||||
GL_ENTRY(void, rcSelectChecksumCalculator, uint32_t newProtocol, uint32_t reserved)
|
||||
11
external/android-emugl/host/libs/renderControl_dec/renderControl.types
vendored
Normal file
11
external/android-emugl/host/libs/renderControl_dec/renderControl.types
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
uint32_t 32 0x%08x
|
||||
EGLint 32 0x%08x
|
||||
GLint 32 0x%08x
|
||||
GLuint 32 0x%08x
|
||||
GLenum 32 0x%08x
|
||||
EGLenum 32 0x%08x
|
||||
uint32_t* 32 0x%08x
|
||||
EGLint* 32 0x%08x
|
||||
GLint* 32 0x%08x
|
||||
GLuint* 32 0x%08x
|
||||
void* 32 0x%08x
|
||||
28
external/android-emugl/host/libs/renderControl_dec/renderControl_types.h
vendored
Normal file
28
external/android-emugl/host/libs/renderControl_dec/renderControl_types.h
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Copyright 2011 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/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <EGL/egl.h>
|
||||
#include "glUtils.h"
|
||||
|
||||
// values for 'param' argument of rcGetFBParam
|
||||
#define FB_WIDTH 1
|
||||
#define FB_HEIGHT 2
|
||||
#define FB_XDPI 3
|
||||
#define FB_YDPI 4
|
||||
#define FB_FPS 5
|
||||
#define FB_MIN_SWAP_INTERVAL 6
|
||||
#define FB_MAX_SWAP_INTERVAL 7
|
||||
Loading…
Add table
Add a link
Reference in a new issue