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

/frameworks/av/media/img_utils/src/
H A DFileInput.cpp24 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) {
H A DFileOutput.cpp24 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/libstagefright/codecs/mp3dec/test/
H A Dmp3reader.h42 FILE *mFp; member in class:Mp3Reader
H A Dmp3reader.cpp351 Mp3Reader::Mp3Reader() : mFp(NULL) {
358 mFp = fopen(file, "rb");
359 if (mFp == NULL) return false;
364 bool success = resync(mFp, 0 /*match_header*/, &pos, &header);
383 ssize_t n = sourceReadAt(mFp, mCurrentPos, buffer, 4);
399 if (!resync(mFp, mFixedHeader, &pos, NULL /*out_header*/)) {
408 ssize_t n = sourceReadAt(mFp, mCurrentPos, buffer, frame_size);
420 assert(mFp != NULL);
421 fclose(mFp);
/frameworks/av/media/img_utils/include/img_utils/
H A DFileInput.h67 FILE *mFp; member in class:android::img_utils::FileInput
H A DFileOutput.h38 FILE *mFp; member in class:android::img_utils::FileOutput
/frameworks/base/libs/androidfw/
H A DAsset.cpp362 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL)
381 assert(mFp == NULL); // no reopen
404 mFp = fdopen(fd, "rb");
405 if (mFp == NULL)
413 if (fseek(mFp, mStart, SEEK_SET) != 0) {
427 assert(mFp == NULL); // no reopen
481 if (ftell(mFp) != mStart + mOffset) {
483 ftell(mFp), (long) mStart, (long) mOffset);
494 actual = fread(buf, 1, count, mFp);
520 if (mFp !
[all...]
H A DZipUtils.cpp154 mFp(fp), mReadBuf(new unsigned char[kReadBufSize])
164 return fread(mReadBuf, 1, readSize, mFp);
167 FILE* mFp; member in class:FileReader
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicBlur.cpp39 float mFp[104]; member in class:android::renderscript::RsdCpuScriptIntrinsicBlur
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);
321 OneVFU4(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, info->dim.x);
325 OneVU4(info, fout, x1, y, pin, stride, cp->mFp, cp->mIradius);
333 OneHU4(info, out, x1, buf, cp->mFp, c
[all...]
H A DrsCpuIntrinsicConvolve3x3.cpp40 float mFp[16]; member in class:android::renderscript::RsdCpuScriptIntrinsicConvolve3x3
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(info, 0, out, py0, py1, py2, cp->mFp);
226 ConvolveOneU4(info, x1, out, py0, py1, py2, cp->mFp);
255 ConvolveOneU2(info, 0, out, py0, py1, py2, cp->mFp);
271 ConvolveOneU2(info, x1, out, py0, py1, py2, cp->mFp);
300 ConvolveOneU1(info, 0, out, py0, py1, py2, cp->mFp);
[all...]
H A DrsCpuIntrinsicConvolve5x5.cpp40 float mFp[28]; member in class:android::renderscript::RsdCpuScriptIntrinsicConvolve5x5
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(info, x1, out, py0, py1, py2, py3, py4, cp->mFp);
403 OneU4(info, x1, out, py0, py1, py2, py3, py4, cp->mFp);
437 OneU2(info, x1, out, py0, py1, py2, py3, py4, cp->mFp);
452 OneU2(info, x1, out, py0, py1, py2, py3, py4, cp->mFp);
486 OneU1(info, x1, out, py0, py1, py2, py3, py4, cp->mFp);
[all...]
/frameworks/base/include/androidfw/
H A DAsset.h251 FILE* mFp; // for read/seek member in class:android::_FileAsset

Completed in 1627 milliseconds