Searched refs:srcFd (Results 1 – 7 of 7) sorted by relevance
/frameworks/av/media/libmediatranscoding/transcoder/benchmark/ |
D | MediaSampleReaderBenchmark.cpp | 49 int srcFd = 0; in ReadMediaSamples() local 52 if ((srcFd = open(srcPath.c_str(), O_RDONLY)) < 0) { in ReadMediaSamples() 57 const size_t fileSize = lseek(srcFd, 0, SEEK_END); in ReadMediaSamples() 58 lseek(srcFd, 0, SEEK_SET); in ReadMediaSamples() 61 auto sampleReader = MediaSampleReaderNDK::createFromFd(srcFd, 0, fileSize); in ReadMediaSamples() 128 close(srcFd); in ReadMediaSamples()
|
D | MediaTrackTranscoderBenchmark.cpp | 255 int srcFd = 0; in GetSampleReader() local 258 if ((srcFd = open(srcPath.c_str(), O_RDONLY)) < 0) { in GetSampleReader() 262 const size_t fileSize = lseek(srcFd, 0, SEEK_END); in GetSampleReader() 263 lseek(srcFd, 0, SEEK_SET); in GetSampleReader() 268 sampleReader = MockSampleReader::createFromFd(srcFd, 0 /* offset */, fileSize); in GetSampleReader() 270 sampleReader = MediaSampleReaderNDK::createFromFd(srcFd, 0 /* offset */, fileSize); in GetSampleReader() 273 if (srcFd > 0) close(srcFd); in GetSampleReader()
|
D | MediaTranscoderBenchmark.cpp | 126 int srcFd = 0; in TranscodeMediaFile() local 134 if ((srcFd = open(srcPath.c_str(), O_RDONLY)) < 0) { in TranscodeMediaFile() 147 status = transcoder->configureSource(srcFd); in TranscodeMediaFile() 240 if (srcFd > 0) close(srcFd); in TranscodeMediaFile()
|
/frameworks/av/media/libmediatranscoding/transcoder/tools/ |
D | Transcode.cpp | 84 const int srcFd = open(config.srcFile.c_str(), O_RDONLY); in transcode() local 85 if (srcFd <= 0) { in transcode() 90 media_status_t status = transcoder->configureSource(srcFd); in transcode() 91 close(srcFd); in transcode()
|
/frameworks/av/media/libmediatranscoding/transcoder/tests/ |
D | HdrTranscodeTests.cpp | 64 const int srcFd = open(srcPath.c_str(), O_RDONLY); in transcode() local 65 EXPECT_EQ(transcoder->configureSource(srcFd), AMEDIA_OK); in transcode() 66 close(srcFd); in transcode()
|
D | MediaTranscoderTests.cpp | 109 const int srcFd = open(srcPath, O_RDONLY); in transcodeHelper() local 110 EXPECT_EQ(transcoder->configureSource(srcFd), AMEDIA_OK); in transcodeHelper() 171 close(srcFd); in transcodeHelper()
|
/frameworks/av/media/libmediatranscoding/ |
D | TranscoderWrapper.cpp | 377 ::ndk::ScopedFileDescriptor srcFd, dstFd; in setupTranscoder() 380 status = clientCb->openFileDescriptor(request.sourceFilePath, "r", &srcFd); in setupTranscoder() 381 if (!status.isOk() || srcFd.get() < 0) { in setupTranscoder() 386 srcFdInt = srcFd.get(); in setupTranscoder()
|