HomeSort by relevance Sort by last modified time
    Searched full:nativebuffer (Results 1 - 25 of 169) sorted by null

1 2 3 4 5 6 7

  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
NativeBuffer.java 25 public class NativeBuffer {
36 public NativeBuffer() {
39 public NativeBuffer(int count) {
44 public NativeBuffer mutableCopy() {
45 NativeBuffer result = null;
48 result = (NativeBuffer)myClass.newInstance();
54 throw new RuntimeException("Failed to copy NativeBuffer to mutable instance!");
71 public NativeBuffer retain() {
80 public NativeBuffer release() {
128 private native boolean nativeCopyTo(NativeBuffer buffer)
    [all...]
NativeFrame.java 24 import android.filterfw.core.NativeBuffer;
65 * NativeBuffer. The NativeBuffer returned is only valid for as long as the frame is alive. If
82 // Make sure it is a NativeBuffer subclass
83 if (!NativeBuffer.class.isAssignableFrom(structClass)) {
85 "NativeBuffer!");
89 NativeBuffer structData = null;
91 structData = (NativeBuffer)structClass.newInstance();
246 private native boolean getNativeBuffer(NativeBuffer buffer);
  /libcore/ojluni/src/main/java/sun/nio/fs/
NativeBuffers.java 40 private static ThreadLocal<NativeBuffer[]> threadLocal =
41 new ThreadLocal<NativeBuffer[]>();
46 static NativeBuffer allocNativeBuffer(int size) {
49 return new NativeBuffer(size);
56 static NativeBuffer getNativeBufferFromCache(int size) {
58 NativeBuffer[] buffers = threadLocal.get();
61 NativeBuffer buffer = buffers[i];
76 static NativeBuffer getNativeBuffer(int size) {
77 NativeBuffer buffer = getNativeBufferFromCache(size);
90 static void releaseNativeBuffer(NativeBuffer buffer)
    [all...]
UnixNativeDispatcher.java 38 // returns a NativeBuffer containing the given path
39 private static NativeBuffer copyToNativeBuffer(UnixPath path) {
42 NativeBuffer buffer = NativeBuffers.getNativeBufferFromCache(size);
69 NativeBuffer buffer = copyToNativeBuffer(path);
83 NativeBuffer buffer = NativeBuffers.asNativeBuffer(path);
102 NativeBuffer pathBuffer = copyToNativeBuffer(filename);
103 NativeBuffer modeBuffer = NativeBuffers.asNativeBuffer(Util.toBytes(mode));
123 NativeBuffer existingBuffer = copyToNativeBuffer(existing);
124 NativeBuffer newBuffer = copyToNativeBuffer(newfile);
139 NativeBuffer buffer = copyToNativeBuffer(path)
    [all...]
LinuxNativeDispatcher.java 42 NativeBuffer pathBuffer = NativeBuffers.asNativeBuffer(filename);
43 NativeBuffer typeBuffer = NativeBuffers.asNativeBuffer(type);
71 NativeBuffer buffer = NativeBuffers.asNativeBuffer(name);
88 NativeBuffer buffer = NativeBuffers.asNativeBuffer(name);
103 NativeBuffer buffer = NativeBuffers.asNativeBuffer(name);
NativeBuffer.java 35 class NativeBuffer {
56 NativeBuffer(int size) {
LinuxUserDefinedFileAttributeView.java 106 NativeBuffer buffer = null;
166 NativeBuffer nb;
224 NativeBuffer nb;
300 NativeBuffer buffer = null;
362 NativeBuffer buffer = NativeBuffers.getNativeBuffer(size);
LinuxDosFileAttributeView.java 214 NativeBuffer buffer = NativeBuffers.getNativeBuffer(size);
271 NativeBuffer buffer = NativeBuffers.asNativeBuffer(value);
  /external/swiftshader/src/OpenGL/common/
Image.hpp 263 explicit AndroidNativeImage(ANativeWindowBuffer *nativeBuffer)
264 : egl::Image(nativeBuffer->width, nativeBuffer->height,
265 GLPixelFormatFromAndroid(nativeBuffer->format),
266 nativeBuffer->stride),
267 nativeBuffer(nativeBuffer)
269 nativeBuffer->common.incRef(&nativeBuffer->common);
273 ANativeWindowBuffer *nativeBuffer;
    [all...]
  /hardware/intel/common/utils/ISV/base/
isv_bufmanager.cpp 225 status_t ISVBufferManager::useBuffer(const sp<ANativeWindowBuffer> nativeBuffer)
228 if (nativeBuffer == NULL || mBuffers.size() >= mBuffers.capacity())
233 if (isvBuffer->getHandle() == (unsigned long)nativeBuffer->handle) {
236 __func__, reinterpret_cast<uintptr_t>(nativeBuffer->handle));
242 (unsigned long)nativeBuffer->handle, (unsigned long)nativeBuffer->handle,
243 nativeBuffer->width, nativeBuffer->height,
244 nativeBuffer->stride, nativeBuffer->format
    [all...]
  /frameworks/base/libs/hwui/utils/
TestWindowContext.cpp 111 android::CpuConsumer::LockedBuffer nativeBuffer;
112 android::status_t retval = mCpuConsumer->lockNextBuffer(&nativeBuffer);
127 LOG_ALWAYS_FATAL_IF(nativeBuffer.format != android::PIXEL_FORMAT_RGBA_8888,
129 SkImageInfo nativeConfig = SkImageInfo::Make(nativeBuffer.width, nativeBuffer.height,
134 bool success = nativeWrapper.installPixels(nativeConfig, nativeBuffer.data,
135 nativeBuffer.stride * 4);
150 mCpuConsumer->unlockBuffer(nativeBuffer);
  /frameworks/base/media/mca/filterfw/java/android/filterfw/format/
ObjectFormat.java 22 import android.filterfw.core.NativeBuffer;
60 if (!NativeBuffer.class.isAssignableFrom(clazz)) {
62 "NativeBuffer subclass! (Received class: " + clazz + ").");
65 return ((NativeBuffer)clazz.newInstance()).getElementSize();
  /frameworks/base/media/mca/filterfw/jni/
jni_native_buffer.cpp 21 jclass base_class = env->FindClass("android/filterfw/core/NativeBuffer");
40 jclass base_class = env->FindClass("android/filterfw/core/NativeBuffer");
jni_native_buffer.h 24 * Given a Java NativeBuffer instance, get access to the underlying C pointer and its size. The
30 * Attach a given C data buffer and its size to a given allocated Java NativeBuffer instance. After
  /frameworks/native/libs/gui/
CpuConsumer.cpp 151 status_t CpuConsumer::lockNextBuffer(LockedBuffer *nativeBuffer) {
154 if (!nativeBuffer) return BAD_VALUE;
179 err = lockBufferItem(b, nativeBuffer);
191 ab.mLockedBufferId = getLockedBufferId(*nativeBuffer);
198 status_t CpuConsumer::unlockBuffer(const LockedBuffer &nativeBuffer) {
201 uintptr_t id = getLockedBufferId(nativeBuffer);
  /frameworks/native/libs/gui/include/gui/
CpuConsumer.h 106 status_t lockNextBuffer(LockedBuffer *nativeBuffer);
112 status_t unlockBuffer(const LockedBuffer &nativeBuffer);
  /external/deqp/modules/egl/
teglAndroidUtil.cpp 155 PixelBufferAccess nativeBuffer(texFormat, 64, 64, 1, bufferData);
156 tcu::copy(nativeBuffer, ref->getLevel(0));
  /hardware/intel/common/omx-components/videocodec/
OMXVideoDecoderBase.h 80 DECLARE_HANDLER(OMXVideoDecoderBase, NativeBuffer);
OMXVideoDecoderBase.cpp     [all...]
  /hardware/intel/common/utils/ISV/include/
isv_bufmanager.h 159 status_t useBuffer(const sp<ANativeWindowBuffer> nativeBuffer);
  /frameworks/base/media/mca/
structgen.py 49 jclass base_class = (*env)->FindClass(env, "android/filterfw/core/NativeBuffer");
81 import android.filterfw.core.NativeBuffer;
275 return "public class %s extends NativeBuffer {\n\n"\
  /external/swiftshader/src/OpenGL/libEGL/
libEGL.cpp 1069 ANativeWindowBuffer *nativeBuffer = reinterpret_cast<ANativeWindowBuffer*>(buffer);
1071 if(!nativeBuffer || GLPixelFormatFromAndroid(nativeBuffer->format) == GL_NONE)
1073 ALOGW("%s badness unsupported HAL format=%x", __FUNCTION__, nativeBuffer ? nativeBuffer->format : 0);
1077 Image *image = new AndroidNativeImage(nativeBuffer);
    [all...]
  /frameworks/rs/driver/runtime/
rs_structs.h 49 void * nativeBuffer;
  /frameworks/rs/
rsAllocation.h 70 AHardwareBuffer *nativeBuffer;
rsGrallocConsumer.cpp 160 mAlloc[idx]->mHal.state.nativeBuffer = hardwareBuffer;

Completed in 706 milliseconds

1 2 3 4 5 6 7