Home
last modified time | relevance | path

Searched refs:mFp (Results 1 – 12 of 12) sorted by relevance

/frameworks/av/media/img_utils/src/
DFileInput.cpp24 FileInput::FileInput(String8 path) : mFp(NULL), mPath(path), mOpen(false) {} in FileInput()
39 mFp = ::fopen(mPath, "rb"); in open()
40 if (!mFp) { in open()
54 size_t bytesRead = ::fread(buf + offset, sizeof(uint8_t), count, mFp); in read()
55 int error = ::ferror(mFp); in read()
62 if (::feof(mFp) != 0 && bytesRead == 0) { in read()
76 if(::fclose(mFp) != 0) { in close()
DFileOutput.cpp24 FileOutput::FileOutput(String8 path) : mFp(NULL), mPath(path), mOpen(false) {} in FileOutput()
38 mFp = ::fopen(mPath, "wb"); in open()
39 if (!mFp) { in open()
53 ::fwrite(buf + offset, sizeof(uint8_t), count, mFp); in write()
55 int error = ::ferror(mFp); in write()
70 if(::fclose(mFp) != 0) { in close()
/frameworks/base/libs/androidfw/
DAsset.cpp362 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset()
381 assert(mFp == NULL); // no reopen in openChunk()
404 mFp = fdopen(fd, "rb"); in openChunk()
405 if (mFp == NULL) in openChunk()
413 if (fseek(mFp, mStart, SEEK_SET) != 0) { in openChunk()
427 assert(mFp == NULL); // no reopen in openChunk()
481 if (ftell(mFp) != mStart + mOffset) { in read()
483 ftell(mFp), (long) mStart, (long) mOffset); in read()
494 actual = fread(buf, 1, count, mFp); in read()
520 if (mFp != NULL) { in seek()
[all …]
DZipUtils.cpp154 mFp(fp), mReadBuf(new unsigned char[kReadBufSize]) in FileReader()
164 return fread(mReadBuf, 1, readSize, mFp); in read()
167 FILE* mFp; member in FileReader
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
Dmp3reader.cpp351 Mp3Reader::Mp3Reader() : mFp(NULL) { in Mp3Reader()
358 mFp = fopen(file, "rb"); in init()
359 if (mFp == NULL) return false; in init()
364 bool success = resync(mFp, 0 /*match_header*/, &pos, &header); in init()
383 ssize_t n = sourceReadAt(mFp, mCurrentPos, buffer, 4); in getFrame()
399 if (!resync(mFp, mFixedHeader, &pos, NULL /*out_header*/)) { in getFrame()
408 ssize_t n = sourceReadAt(mFp, mCurrentPos, buffer, frame_size); in getFrame()
420 assert(mFp != NULL); in close()
421 fclose(mFp); in close()
Dmp3reader.h42 FILE *mFp;
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlur.cpp39 float mFp[104]; member in android::renderscript::RsdCpuScriptIntrinsicBlur
61 memset(mFp, 0, sizeof(mFp)); in ComputeGaussianWeights()
91 mFp[r + mIradius] = coeff1 * powf(e, floatR * floatR * coeff2); in ComputeGaussianWeights()
92 normalizeFactor += mFp[r + mIradius]; in ComputeGaussianWeights()
98 mFp[r + mIradius] *= normalizeFactor; in ComputeGaussianWeights()
99 mIp[r + mIradius] = (uint16_t)(mFp[r + mIradius] * 65536.0f + 0.5f); in ComputeGaussianWeights()
321 OneVFU4(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, info->dim.x); in kernelU4()
325 OneVU4(info, fout, x1, y, pin, stride, cp->mFp, cp->mIradius); in kernelU4()
333 OneHU4(info, out, x1, buf, cp->mFp, cp->mIradius); in kernelU4()
340 rsdIntrinsicBlurHFU4_K(out, buf - cp->mIradius, cp->mFp, in kernelU4()
[all …]
DrsCpuIntrinsicConvolve3x3.cpp40 float mFp[16]; member in android::renderscript::RsdCpuScriptIntrinsicConvolve3x3
77 memcpy (&mFp, data, dataLength); in setGlobalVar()
79 if (mFp[ct] >= 0) { in setGlobalVar()
80 mIp[ct] = (short)(mFp[ct] * 256.f + 0.5f); in setGlobalVar()
82 mIp[ct] = (short)(mFp[ct] * 256.f - 0.5f); in setGlobalVar()
208 ConvolveOneU4(info, 0, out, py0, py1, py2, cp->mFp); in kernelU4()
226 ConvolveOneU4(info, x1, out, py0, py1, py2, cp->mFp); in kernelU4()
255 ConvolveOneU2(info, 0, out, py0, py1, py2, cp->mFp); in kernelU2()
271 ConvolveOneU2(info, x1, out, py0, py1, py2, cp->mFp); in kernelU2()
300 ConvolveOneU1(info, 0, out, py0, py1, py2, cp->mFp); in kernelU1()
[all …]
DrsCpuIntrinsicConvolve5x5.cpp40 float mFp[28]; member in android::renderscript::RsdCpuScriptIntrinsicConvolve5x5
78 memcpy (&mFp, data, dataLength); in setGlobalVar()
80 if (mFp[ct] >= 0) { in setGlobalVar()
81 mIp[ct] = (short)(mFp[ct] * 256.f + 0.5f); in setGlobalVar()
83 mIp[ct] = (short)(mFp[ct] * 256.f - 0.5f); in setGlobalVar()
377 OneU4(info, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU4()
403 OneU4(info, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU4()
437 OneU2(info, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU2()
452 OneU2(info, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU2()
486 OneU1(info, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU1()
[all …]
/frameworks/av/media/img_utils/include/img_utils/
DFileOutput.h38 FILE *mFp;
DFileInput.h67 FILE *mFp;
/frameworks/base/include/androidfw/
DAsset.h251 FILE* mFp; // for read/seek variable