/frameworks/av/media/img_utils/src/ |
FileInput.cpp | 24 FileInput::FileInput(String8 path) : mFp(NULL), mPath(path), mOpen(false) {} 39 mFp = ::fopen(mPath, "rb"); 40 if (!mFp) { 54 size_t bytesRead = ::fread(buf + offset, sizeof(uint8_t), count, mFp); 55 int error = ::ferror(mFp); 62 if (::feof(mFp) != 0 && bytesRead == 0) { 76 if(::fclose(mFp) != 0) {
|
FileOutput.cpp | 24 FileOutput::FileOutput(String8 path) : mFp(NULL), mPath(path), mOpen(false) {} 38 mFp = ::fopen(mPath, "wb"); 39 if (!mFp) { 53 ::fwrite(buf + offset, sizeof(uint8_t), count, mFp); 55 int error = ::ferror(mFp); 70 if(::fclose(mFp) != 0) {
|
/frameworks/av/media/img_utils/include/img_utils/ |
FileInput.h | 67 FILE *mFp;
|
FileOutput.h | 38 FILE *mFp;
|
/frameworks/base/libs/androidfw/ |
Asset.cpp | 356 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) 375 assert(mFp == NULL); // no reopen 398 mFp = fdopen(fd, "rb"); 399 if (mFp == NULL) 407 if (fseek(mFp, mStart, SEEK_SET) != 0) { 421 assert(mFp == NULL); // no reopen 475 if (ftell(mFp) != mStart + mOffset) { 477 ftell(mFp), (long) mStart, (long) mOffset); 488 actual = fread(buf, 1, count, mFp); 514 if (mFp != NULL) [all...] |
ZipUtils.cpp | 154 mFp(fp), mReadBuf(new unsigned char[kReadBufSize]) 164 return fread(mReadBuf, 1, readSize, mFp); 167 FILE* mFp;
|
/frameworks/rs/cpu_ref/ |
rsCpuIntrinsicBlur.cpp | 39 float mFp[104]; 61 memset(mFp, 0, sizeof(mFp)); 91 mFp[r + mIradius] = coeff1 * powf(e, floatR * floatR * coeff2); 92 normalizeFactor += mFp[r + mIradius]; 98 mFp[r + mIradius] *= normalizeFactor; 99 mIp[r + mIradius] = (uint16_t)(mFp[r + mIradius] * 65536.0f + 0.5f); 320 OneVFU4(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, p->dimX); 324 OneVU4(p, fout, x1, y, pin, stride, cp->mFp, cp->mIradius); 332 OneHU4(p, out, x1, buf, cp->mFp, cp->mIradius) [all...] |
rsCpuIntrinsicConvolve3x3.cpp | 40 float mFp[16]; 77 memcpy (&mFp, data, dataLength); 79 if (mFp[ct] >= 0) { 80 mIp[ct] = (short)(mFp[ct] * 256.f + 0.5f); 82 mIp[ct] = (short)(mFp[ct] * 256.f - 0.5f); 208 ConvolveOneU4(p, 0, out, py0, py1, py2, cp->mFp); 226 ConvolveOneU4(p, x1, out, py0, py1, py2, cp->mFp); 255 ConvolveOneU2(p, 0, out, py0, py1, py2, cp->mFp); 271 ConvolveOneU2(p, x1, out, py0, py1, py2, cp->mFp); 300 ConvolveOneU1(p, 0, out, py0, py1, py2, cp->mFp); [all...] |
rsCpuIntrinsicConvolve5x5.cpp | 40 float mFp[28]; 78 memcpy (&mFp, data, dataLength); 80 if (mFp[ct] >= 0) { 81 mIp[ct] = (short)(mFp[ct] * 256.f + 0.5f); 83 mIp[ct] = (short)(mFp[ct] * 256.f - 0.5f); 377 OneU4(p, x1, out, py0, py1, py2, py3, py4, cp->mFp); 403 OneU4(p, x1, out, py0, py1, py2, py3, py4, cp->mFp); 437 OneU2(p, x1, out, py0, py1, py2, py3, py4, cp->mFp); 452 OneU2(p, x1, out, py0, py1, py2, py3, py4, cp->mFp); 486 OneU1(p, x1, out, py0, py1, py2, py3, py4, cp->mFp); [all...] |
/frameworks/base/include/androidfw/ |
Asset.h | 251 FILE* mFp; // for read/seek
|