/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/test/unittest/src/ |
H A D | avmetadata_unit_test.cpp | 62 int64_t timeUs = 0; in GetThumbnail() local 64 std::shared_ptr<PixelMap> frame = helper->FetchFrameAtTime(timeUs, queryOption, param); in GetThumbnail() 66 helper->FrameToFile(frame, testInfo_->name(), timeUs, queryOption); in GetThumbnail() 67 helper->FrameToJpeg(frame, testInfo_->name(), timeUs, queryOption); in GetThumbnail() 68 timeUs = 5000000; // 5000000us in GetThumbnail() 70 frame = helper->FetchFrameAtTime(timeUs, queryOption, param); in GetThumbnail() 72 helper->FrameToFile(frame, testInfo_->name(), timeUs, queryOption); in GetThumbnail() 73 helper->FrameToJpeg(frame, testInfo_->name(), timeUs, queryOption); in GetThumbnail() 77 frame = helper->FetchFrameAtTime(timeUs, queryOption, param); in GetThumbnail() 79 helper->FrameToFile(frame, testInfo_->name(), timeUs, queryOptio in GetThumbnail() 388 int64_t timeUs = 0; HWTEST_F() local 444 int64_t timeUs = 0; HWTEST_F() local 466 int64_t timeUs = 0; HWTEST_F() local 488 int64_t timeUs = 0; HWTEST_F() local 513 int64_t timeUs = 0; HWTEST_F() local 549 int64_t timeUs = 0; HWTEST_F() local 578 int64_t timeUs = 0; HWTEST_F() local [all...] |
H A D | avmetadata_mock.cpp | 112 std::shared_ptr<PixelMap> AVMetadataMock::FetchFrameAtTime(int64_t timeUs, int32_t option, PixelMapParams param) in FetchFrameAtTime() argument 115 return avMetadataHelper_->FetchFrameAtTime(timeUs, option, param); in FetchFrameAtTime() 118 std::shared_ptr<PixelMap> AVMetadataMock::FetchFrameYuv(int64_t timeUs, int32_t option, PixelMapParams param) in FetchFrameYuv() argument 121 return avMetadataHelper_->FetchFrameYuv(timeUs, option, param); in FetchFrameYuv() 161 const char *fileName, int64_t timeUs, int32_t queryOption) in FrameToFile() 173 fileName, timeUs, queryOption, frame->GetWidth(), frame->GetHeight(), frame->GetPixelFormat()); in FrameToFile() 210 const char *fileName, int64_t timeUs, int32_t queryOption) in FrameToJpeg() 219 fileName, timeUs, queryOption, frame->GetWidth(), frame->GetHeight(), frame->GetPixelFormat()); in FrameToJpeg() 160 FrameToFile(std::shared_ptr<PixelMap> frame, const char *fileName, int64_t timeUs, int32_t queryOption) FrameToFile() argument 209 FrameToJpeg(std::shared_ptr<PixelMap> frame, const char *fileName, int64_t timeUs, int32_t queryOption) FrameToJpeg() argument
|
/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/test/unittest/include/ |
H A D | avmetadata_mock.h | 97 std::shared_ptr<PixelMap> FetchFrameAtTime(int64_t timeUs, int32_t option, PixelMapParams param); 98 std::shared_ptr<PixelMap> FetchFrameYuv(int64_t timeUs, int32_t option, PixelMapParams param); 101 void FrameToFile(std::shared_ptr<PixelMap> frame, const char *fileName, int64_t timeUs, int32_t queryOption); 103 void FrameToJpeg(std::shared_ptr<PixelMap> frame, const char *fileName, int64_t timeUs, int32_t queryOption);
|
/foundation/multimedia/player_framework/services/services/engine_intf/ |
H A D | i_avmetadatahelper_engine.h | 78 * nearby will be returned. If timeUs is negative, time position and option will ignored, 86 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) = 0; 95 * nearby will be returned. If timeUs is negative, time position and option will ignored, 103 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) = 0; 107 * @param timeUs : Index of the frame. 114 * @param timeUs : Timestamp of the frame, in microseconds.
|
/foundation/multimedia/media_lite/services/player_lite/impl/player_control/sink/ |
H A D | player_sync.cpp | 398 int64_t timeUs = ptsMs * US2MS; in ProcAudFrame() local 401 if (lastVideoTsUs_ != AV_INVALID_PTS && (lastVideoTsUs_ < timeUs)) { in ProcAudFrame() 408 audTimeSourceDelta_ = firstTimeUs - timeUs; in ProcAudFrame() 410 firstAudFrameTs_ = timeUs; in ProcAudFrame() 415 int64_t latenessMs = (nowUs - timeUs) / MS_SCALE; in ProcAudFrame() 420 lastAudioTsUs_ = timeUs; in ProcAudFrame()
|
/foundation/multimedia/player_framework/services/services/avmetadatahelper/ipc/ |
H A D | avmetadatahelper_service_stub.cpp | 189 std::shared_ptr<AVSharedMemory> AVMetadataHelperServiceStub::FetchFrameAtTime(int64_t timeUs, in FetchFrameAtTime() argument 194 return avMetadateHelperServer_->FetchFrameAtTime(timeUs, option, param); in FetchFrameAtTime() 197 std::shared_ptr<AVBuffer> AVMetadataHelperServiceStub::FetchFrameYuv(int64_t timeUs, in FetchFrameYuv() argument 202 return avMetadateHelperServer_->FetchFrameYuv(timeUs, option, param); in FetchFrameYuv() 339 int64_t timeUs = data.ReadInt64(); in FetchFrameAtTime() local 342 std::shared_ptr<AVSharedMemory> ashMem = FetchFrameAtTime(timeUs, option, param); in FetchFrameAtTime() 349 int64_t timeUs = data.ReadInt64(); in FetchFrameYuv() local 353 std::shared_ptr<AVBuffer> avBuffer = FetchFrameYuv(timeUs, option, param); in FetchFrameYuv()
|
H A D | avmetadatahelper_service_proxy.h | 33 std::shared_ptr<AVSharedMemory> FetchFrameAtTime(int64_t timeUs, 35 std::shared_ptr<AVBuffer> FetchFrameYuv(int64_t timeUs,
|
H A D | i_standard_avmetadatahelper_service.h | 39 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) = 0; 41 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) = 0;
|
H A D | avmetadatahelper_service_stub.h | 42 std::shared_ptr<AVSharedMemory> FetchFrameAtTime(int64_t timeUs, 44 std::shared_ptr<AVBuffer> FetchFrameYuv(int64_t timeUs,
|
H A D | avmetadatahelper_service_proxy.cpp | 227 std::shared_ptr<AVBuffer> AVMetadataHelperServiceProxy::FetchFrameYuv(int64_t timeUs, int32_t option, in FetchFrameYuv() argument 237 (void)data.WriteInt64(timeUs); in FetchFrameYuv() 252 std::shared_ptr<AVSharedMemory> AVMetadataHelperServiceProxy::FetchFrameAtTime(int64_t timeUs, in FetchFrameAtTime() argument 262 (void)data.WriteInt64(timeUs); in FetchFrameAtTime()
|
/foundation/multimedia/player_framework/services/services/avmetadatahelper/client/ |
H A D | avmetadatahelper_client.cpp | 135 std::shared_ptr<AVSharedMemory> AVMetadataHelperClient::FetchFrameAtTime(int64_t timeUs, int32_t option, in FetchFrameAtTime() argument 140 return avMetadataHelperProxy_->FetchFrameAtTime(timeUs, option, param); in FetchFrameAtTime() 143 std::shared_ptr<AVBuffer> AVMetadataHelperClient::FetchFrameYuv(int64_t timeUs, int32_t option, in FetchFrameYuv() argument 148 return avMetadataHelperProxy_->FetchFrameYuv(timeUs, option, param); in FetchFrameYuv()
|
H A D | avmetadatahelper_client.h | 41 std::shared_ptr<AVSharedMemory> FetchFrameAtTime(int64_t timeUs, 43 std::shared_ptr<AVBuffer> FetchFrameYuv(int64_t timeUs,
|
/foundation/multimedia/player_framework/services/engine/histreamer/avmetadatahelper/ |
H A D | avmetadatahelper_impl.cpp | 142 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) in FetchFrameAtTime() 147 return thumbnailGenerator_->FetchFrameAtTime(timeUs, option, param); in FetchFrameAtTime() 151 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) in FetchFrameYuv() 156 return thumbnailGenerator_->FetchFrameYuv(timeUs, option, param); in FetchFrameYuv() 141 FetchFrameAtTime( int64_t timeUs, int32_t option, const OutputConfiguration ¶m) FetchFrameAtTime() argument 150 FetchFrameYuv( int64_t timeUs, int32_t option, const OutputConfiguration ¶m) FetchFrameYuv() argument
|
H A D | avmetadatahelper_impl.h | 47 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) override; 49 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) override;
|
H A D | av_thumbnail_generator.cpp | 241 std::shared_ptr<AVSharedMemory> AVThumbnailGenerator::FetchFrameAtTime(int64_t timeUs, int32_t option, in FetchFrameAtTime() argument 244 MEDIA_LOGI("Fetch frame 0x%{public}06" PRIXPTR " timeUs:%{public}" PRId64 ", option:%{public}d," in FetchFrameAtTime() 246 FAKE_POINTER(this), timeUs, option, param.dstWidth, param.dstHeight, in FetchFrameAtTime() 252 seekTime_ = timeUs; in FetchFrameAtTime() 257 int64_t realSeekTime = timeUs; in FetchFrameAtTime() 258 auto res = SeekToTime(Plugins::Us2Ms(timeUs), static_cast<Plugins::SeekMode>(option), realSeekTime); in FetchFrameAtTime() 277 std::shared_ptr<AVBuffer> AVThumbnailGenerator::FetchFrameYuv(int64_t timeUs, int32_t option, in FetchFrameYuv() argument 280 MEDIA_LOGI("Fetch frame 0x%{public}06" PRIXPTR " timeUs:%{public}" PRId64 ", option:%{public}d," in FetchFrameYuv() 282 FAKE_POINTER(this), timeUs, option, param.dstWidth, param.dstHeight, in FetchFrameYuv() 288 seekTime_ = timeUs; in FetchFrameYuv() [all...] |
H A D | av_thumbnail_generator.h | 38 std::shared_ptr<AVSharedMemory> FetchFrameAtTime(int64_t timeUs, int32_t option, const OutputConfiguration ¶m); 39 std::shared_ptr<AVBuffer> FetchFrameYuv(int64_t timeUs, int32_t option, const OutputConfiguration ¶m);
|
H A D | avmetadata_collector.h | 75 int32_t GetTimeByFrameIndex(uint32_t index, uint64_t &timeUs); 76 int32_t GetFrameIndexByTime(uint64_t timeUs, uint32_t &index);
|
H A D | avmetadata_collector.cpp | 261 int32_t AVMetaDataCollector::GetTimeByFrameIndex(uint32_t index, uint64_t &timeUs) in GetTimeByFrameIndex() argument 265 CHECK_AND_RETURN_RET_LOG(mediaDemuxer_->GetRelativePresentationTimeUsByIndex(trackId, index, timeUs) == Status::OK, in GetTimeByFrameIndex() 270 int32_t AVMetaDataCollector::GetFrameIndexByTime(uint64_t timeUs, uint32_t &index) in GetFrameIndexByTime() argument 274 CHECK_AND_RETURN_RET_LOG(mediaDemuxer_->GetIndexByRelativePresentationTimeUs(trackId, timeUs, index) == Status::OK, in GetFrameIndexByTime()
|
/foundation/multimedia/player_framework/services/services/avmetadatahelper/server/ |
H A D | avmetadatahelper_server.cpp | 239 std::shared_ptr<AVSharedMemory> AVMetadataHelperServer::FetchFrameAtTime(int64_t timeUs, int32_t option, in FetchFrameAtTime() argument 248 return avMetadataHelperEngine_->FetchFrameAtTime(timeUs, option, param); in FetchFrameAtTime() 258 std::shared_ptr<AVBuffer> AVMetadataHelperServer::FetchFrameYuv(int64_t timeUs, int32_t option, in FetchFrameYuv() argument 265 return avMetadataHelperEngine_->FetchFrameYuv(timeUs, option, param); in FetchFrameYuv() 314 auto task = std::make_shared<TaskHandler<int32_t>>([&, this, &timeUs = time] { in GetTimeByFrameIndex() 317 return avMetadataHelperEngine_->GetTimeByFrameIndex(index, timeUs); in GetTimeByFrameIndex()
|
H A D | avmetadatahelper_server.h | 41 std::shared_ptr<AVSharedMemory> FetchFrameAtTime(int64_t timeUs, 43 std::shared_ptr<AVBuffer> FetchFrameYuv(int64_t timeUs,
|
/foundation/multimedia/player_framework/interfaces/inner_api/native/ |
H A D | avmetadatahelper.h | 426 * @param timeUs The time position in microseconds where the frame will be fetched. 429 * nearby will be returned. If timeUs is negative, time position and option will ignored, 436 virtual std::shared_ptr<PixelMap> FetchFrameAtTime(int64_t timeUs, int32_t option, const PixelMapParams ¶m) = 0; 442 * @param timeUs The time position in microseconds where the frame will be fetched. 445 * nearby will be returned. If timeUs is negative, time position and option will ignored, 452 virtual std::shared_ptr<PixelMap> FetchFrameYuv(int64_t timeUs, int32_t option, const PixelMapParams ¶m) = 0; 486 * @param timeUs : Index of the frame. 493 * @param timeUs : Timestamp of the frame, in microseconds.
|
/foundation/multimedia/player_framework/services/include/ |
H A D | i_avmetadatahelper_service.h | 150 * nearby will be returned. If timeUs is negative, time position and option will ignored, 158 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) = 0; 167 * nearby will be returned. If timeUs is negative, time position and option will ignored, 175 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) = 0; 185 * @param timeUs : Index of the frame. 192 * @param timeUs : Timestamp of the frame, in microseconds.
|
/foundation/multimedia/player_framework/test/fuzztest/avmetadata_fuzztest/avmetadatastublocal_fuzzer/ |
H A D | avmetadata_service_proxy_local_fuzzer.h | 60 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) override 65 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) override
|
/foundation/multimedia/player_framework/test/fuzztest/avmetadata_fuzztest/avmetadatastub_fuzzer/ |
H A D | avmetadata_service_proxy_fuzzer.h | 60 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) override 65 int64_t timeUs, int32_t option, const OutputConfiguration ¶m) override
|
/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/ |
H A D | avmetadatahelper_impl.h | 46 std::shared_ptr<PixelMap> FetchFrameAtTime(int64_t timeUs, int32_t option, const PixelMapParams ¶m) override; 47 std::shared_ptr<PixelMap> FetchFrameYuv(int64_t timeUs, int32_t option, const PixelMapParams ¶m) override;
|