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.cpp402 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset()
428 assert(mFp == NULL); // no reopen in openChunk()
451 mFp = fdopen(fd, "rb"); in openChunk()
452 if (mFp == NULL) in openChunk()
460 if (fseek(mFp, mStart, SEEK_SET) != 0) { in openChunk()
474 assert(mFp == NULL); // no reopen in openChunk()
528 if (ftell(mFp) != mStart + mOffset) { in read()
530 ftell(mFp), (long) mStart, (long) mOffset); in read()
541 actual = fread(buf, 1, count, mFp); in read()
567 if (mFp != NULL) { in seek()
[all …]
DZipUtils.cpp40 explicit FileReader(FILE* fp) : Reader(), mFp(fp), mCurrentOffset(0) { in FileReader()
48 if (fseek(mFp, offset, SEEK_SET) != 0) { in ReadAtOffset()
55 size_t read = fread(buf, 1, len, mFp); in ReadAtOffset()
65 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
58 memset(mFp, 0, sizeof(mFp)); in ComputeGaussianWeights()
88 mFp[r + mIradius] = coeff1 * powf(e, floatR * floatR * coeff2); in ComputeGaussianWeights()
89 normalizeFactor += mFp[r + mIradius]; in ComputeGaussianWeights()
95 mFp[r + mIradius] *= normalizeFactor; in ComputeGaussianWeights()
96 mIp[r + mIradius] = (uint16_t)(mFp[r + mIradius] * 65536.0f + 0.5f); in ComputeGaussianWeights()
329 OneVFU4(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, info->dim.x); in kernelU4()
333 OneVU4(info, fout, x1, y, pin, stride, cp->mFp, cp->mIradius); in kernelU4()
341 OneHU4(info, out, x1, buf, cp->mFp, cp->mIradius); in kernelU4()
348 rsdIntrinsicBlurHFU4_K(out, buf - cp->mIradius, cp->mFp, in kernelU4()
[all …]
DrsCpuIntrinsicConvolve3x3.cpp37 float mFp[16]; member in android::renderscript::RsdCpuScriptIntrinsicConvolve3x3
70 memcpy (&mFp, data, dataLength); in setGlobalVar()
72 if (mFp[ct] >= 0) { in setGlobalVar()
73 mIp[ct] = (int16_t)(mFp[ct] * 256.f + 0.5f); in setGlobalVar()
75 mIp[ct] = (int16_t)(mFp[ct] * 256.f - 0.5f); in setGlobalVar()
201 ConvolveOneU4(info, 0, out, py0, py1, py2, cp->mFp); in kernelU4()
219 ConvolveOneU4(info, x1, out, py0, py1, py2, cp->mFp); in kernelU4()
248 ConvolveOneU2(info, 0, out, py0, py1, py2, cp->mFp); in kernelU2()
264 ConvolveOneU2(info, x1, out, py0, py1, py2, cp->mFp); in kernelU2()
293 ConvolveOneU1(info, 0, out, py0, py1, py2, cp->mFp); in kernelU1()
[all …]
DrsCpuIntrinsicConvolve5x5.cpp37 float mFp[28]; member in android::renderscript::RsdCpuScriptIntrinsicConvolve5x5
72 memcpy (&mFp, data, dataLength); in setGlobalVar()
74 if (mFp[ct] >= 0) { in setGlobalVar()
75 mIp[ct] = (int16_t)(mFp[ct] * 256.f + 0.5f); in setGlobalVar()
77 mIp[ct] = (int16_t)(mFp[ct] * 256.f - 0.5f); in setGlobalVar()
371 OneU4(info, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU4()
397 OneU4(info, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU4()
431 OneU2(info, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU2()
446 OneU2(info, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU2()
480 OneU1(info, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU1()
[all …]
/frameworks/av/media/img_utils/include/img_utils/
DFileInput.h67 FILE *mFp;
DFileOutput.h38 FILE *mFp;
/frameworks/base/libs/androidfw/include/androidfw/
DAsset.h274 FILE* mFp; // for read/seek variable