/foundation/multimedia/media_foundation/engine/pipeline/filters/common/buffer_calibration/ |
H A D | strict_monotonic_pts_cal.h | 31 if (std::abs(ptr->pts - startTime_) > startTimeDiffThreshold_ || ptr->pts < 0) { 32 ptr->pts = startTime_; 39 if (std::abs(predictedPts - ptr->pts) < ptsDiffThreshold_ && ptr->pts > 0) { 42 ptr->pts = ptr->dts; 44 ptr->pts = predictedPts; 47 lastPts_ = ptr->pts;
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | points.cpp | 41 void Points::fill_pts(OH_Drawing_Point2D pts[], size_t n, TestRend* rand) in fill_pts() argument 49 pts[i].x = x; in fill_pts() 50 pts[i].y = y; in fill_pts() 73 OH_Drawing_Point2D pts[n]; in OnTestFunction() local 74 fill_pts(pts, n, &rand); in OnTestFunction() 77 OH_Drawing_CanvasDrawPoints(canvas, POINT_MODE_POLYGON, n, pts); in OnTestFunction() 81 OH_Drawing_CanvasDrawPoints(canvas, POINT_MODE_LINES, n, pts); in OnTestFunction() 85 OH_Drawing_CanvasDrawPoints(canvas, POINT_MODE_POINTS, n, pts); in OnTestFunction() 89 OH_Drawing_CanvasDrawPoints(canvas, POINT_MODE_POINTS, n, pts); in OnTestFunction()
|
H A D | gradient_dirty_laundry.cpp | 79 OH_Drawing_Point2D pts[] = { { 0, 0 }, { 100.0, 100.0 } }; // 100.0, 100.0 坐标点 in MakeRadial() local 80 OH_Drawing_Point2D Point = { (pts[0].x + pts[1].x) / 2, (pts[0].y + pts[1].y) / 2 }; // 取[0] 和[2] 的元素中点 in MakeRadial() 92 OH_Drawing_Point2D pts[] = { { 0, 0 }, { 100.0, 100.0 } }; // 100 设置点 in MakeSweep() local 93 OH_Drawing_Point2D Point = { (pts[0].x + pts[1].x) / 2, (pts[0].y + pts[ in MakeSweep() [all...] |
H A D | points_mask_filter.cpp | 51 OH_Drawing_Point2D pts[N]; in OnTestFunction() local 53 for (OH_Drawing_Point2D& p : pts) { in OnTestFunction() 74 OH_Drawing_CanvasDrawPoints(canvas, OH_Drawing_PointMode::POINT_MODE_POINTS, N, pts); in OnTestFunction() 80 OH_Drawing_CanvasDrawPoints(canvas, OH_Drawing_PointMode::POINT_MODE_POINTS, N, pts); in OnTestFunction()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/test/unittest/common/base/ |
H A D | dcamera_sink_frame_info_test.cpp | 37 "pts": 1, 47 "pts": 1, 57 "pts": "test", 67 "pts": 1, 77 "pts": 1, 87 "pts": 1, 97 "pts": 1, 107 "pts": 1,
|
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/ |
H A D | ge_linear_gradient_blur_shader_filter.cpp | 192 Drawing::Point (&pts)[2], const Drawing::Rect& clipBounds, GEGradientDirection direction) // 2 size of points 196 pts[0].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetTop()); // 2 middle of width; 197 pts[1].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetBottom()); // 2 middle of width; 201 pts[0].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetBottom()); // 2 middle of width; 202 pts[1].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetTop()); // 2 middle of width; 206 pts[0].Set(clipBounds.GetLeft(), clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle of height; 207 pts[1].Set(clipBounds.GetRight(), 212 pts[0].Set(clipBounds.GetRight(), 214 pts[1].Set(clipBounds.GetLeft(), clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle of height; 220 return ProcessGradientDirectionPoints(pts, clipBound 270 Drawing::Point pts[2]; // 2 size of points MakeAlphaGradientShader() local [all...] |
/foundation/multimedia/player_framework/frameworks/native/video_editor/test/unittest/codec/video/decoder/ |
H A D | video_decoder_engine_impl_test.cpp | 40 void OnDecodeFrame(uint64_t pts) override 42 pts_ = pts; 108 uint64_t pts = 100; in HWTEST_F() local 109 engine->OnDecodeFrame(pts); in HWTEST_F() 110 EXPECT_EQ(cb->pts_, pts); in HWTEST_F() 118 uint64_t pts = 100; in HWTEST_F() local 120 engine->OnDecodeFrame(pts); in HWTEST_F()
|
H A D | video_decoder_engine_test.cpp | 42 void OnDecodeFrame(uint64_t pts) override 44 pts_ = pts;
|
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtp/src/ |
H A D | rtp_codec_h264.cpp | 217 void RtpEncoderH264::InsertConfigFrame(uint32_t pts) in InsertConfigFrame() argument 223 PackRtp(sps_->Data() + sps_->PrefixSize(), sps_->Size() - sps_->PrefixSize(), pts, false, false); in InsertConfigFrame() 224 PackRtp(pps_->Data() + pps_->PrefixSize(), pps_->Size() - pps_->PrefixSize(), pts, false, false); in InsertConfigFrame() 237 void RtpEncoderH264::PackRtp(const uint8_t *data, size_t len, uint32_t pts, bool isMark, bool gopPos) in PackRtp() argument 241 PackSingle(data, len, pts, isMark, gopPos); in PackRtp() 243 PackRtpFu(data, len, pts, isMark, gopPos); in PackRtp() 247 void RtpEncoderH264::PackRtpFu(const uint8_t *data, size_t len, uint32_t pts, bool isMark, bool gopPos) in PackRtpFu() argument 252 PackRtpStapA(data, len, pts, isMark, gopPos); in PackRtpFu() 269 auto rtp = MakeRtp(nullptr, packetSize + 2, fuFlags->endBit_ && isMark, pts); // 2:fixed size in PackRtpFu() 288 void RtpEncoderH264::PackRtpStapA(const uint8_t *data, size_t len, uint32_t pts, boo argument 305 PackSingle(const uint8_t *data, size_t len, uint32_t pts, bool isMark, bool gopPos) PackSingle() argument [all...] |
/foundation/multimedia/player_framework/frameworks/native/video_editor/composite_engine/impl/ |
H A D | video_composite_engine.cpp | 93 void VideoCompositeEngine::OnDecodeFrame(uint64_t pts) in OnDecodeFrame() argument 95 MEDIA_LOGD("[%{public}s] OnDecodeFrame[pts = %{public}" PRIu64 "].", logTag_.c_str(), pts); in OnDecodeFrame() 103 void VideoCompositeEngine::OnEncodeFrame(uint64_t pts) in OnEncodeFrame() argument 105 MEDIA_LOGD("[%{public}s] OnEncodeFrame[pts = %{public}" PRIu64 "].", logTag_.c_str(), pts); in OnEncodeFrame() 113 void VideoCompositeEngine::OnRenderFinish(uint64_t pts, GraphicsRenderResult result) in OnRenderFinish() argument 115 MEDIA_LOGD("[%{public}s] OnRenderFinish, pts: %{public}" PRIu64 ", result = %{public}u.", in OnRenderFinish() 116 logTag_.c_str(), pts, result); in OnRenderFinish()
|
H A D | video_composite_engine.h | 37 void OnDecodeFrame(uint64_t pts) override; 40 void OnEncodeFrame(uint64_t pts) override; 43 void OnRenderFinish(uint64_t pts, GraphicsRenderResult result);
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/ |
H A D | codec_buffer.cpp | 41 omxBuffer_->pts = 0; in Init() 91 omxBuffer_->pts = pluginBuffer->pts; in Copy() 92 MEDIA_LOG_DD("plugin flag: " PUBLIC_LOG_U32 ", pts: " PUBLIC_LOG_D64, omxBuffer_->flag, omxBuffer_->pts); in Copy() 118 omxBuffer_->pts = pluginBuffer->pts; in Rebind() 119 MEDIA_LOG_DD("plugin flag: " PUBLIC_LOG_U32 ", pts: " PUBLIC_LOG_D64, omxBuffer_->flag, omxBuffer_->pts); in Rebind() 170 buffer->pts in Unbind() [all...] |
/foundation/multimedia/av_codec/test/moduletest/demuxer/src/InnerAPI/ |
H A D | inner_demuxer_parser_sample.cpp | 275 int64_t pts = GetPtsFromWorkPts(workPts); in RunSeekScene() local 277 if (pts > duration / durationNum) { in RunSeekScene() 278 cout << "pts > duration" << endl; in RunSeekScene() 282 ret = this->demuxer_->StartReferenceParser(pts); in RunSeekScene() 283 cout << "StartReferenceParser pts:" << pts << endl; in RunSeekScene() 289 ret = demuxer_->SeekToTime(pts, Media::SeekMode::SEEK_PREVIOUS_SYNC); in RunSeekScene() 305 if (avBuffer->pts_ >= pts * ptsNum || avBuffer->flag_ == AVCODEC_BUFFER_FLAG_EOS) { in RunSeekScene() 324 int64_t pts = GetPtsFromWorkPts(workPts); in RunSpeedScene() local 326 ret = demuxer_->SeekToTime(pts, Medi in RunSpeedScene() 415 int64_t pts = 0; GetPtsFromWorkPts() local [all...] |
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtp/include/ |
H A D | rtp_codec_h264.h | 66 void InsertConfigFrame(uint32_t pts); 68 void PackRtp(const uint8_t *data, size_t len, uint32_t pts, bool isMark, bool gopPos); 69 void PackRtpFu(const uint8_t *data, size_t len, uint32_t pts, bool isMark, bool gopPos); 70 void PackSingle(const uint8_t *data, size_t len, uint32_t pts, bool isMark, bool gopPos); 71 void PackRtpStapA(const uint8_t *data, size_t len, uint32_t pts, bool isMark, bool gopPos);
|
/foundation/multimedia/player_framework/frameworks/native/video_editor/codec/video/decoder/ |
H A D | video_decoder_engine_impl.cpp | 68 void VideoDecoderEngineImpl::OnDecodeFrame(uint64_t pts) in OnDecodeFrame() argument 72 MEDIA_LOGE("[%{public}s] OnDecodeFrame[pts= %{public}" PRIu64 "], but callback is expired.", in OnDecodeFrame() 73 logTag_.c_str(), pts); in OnDecodeFrame() 76 cbPtr->OnDecodeFrame(pts); in OnDecodeFrame()
|
/foundation/multimedia/av_codec/test/moduletest/muxer/InnerAPI/ |
H A D | InnerAVMuxerFuzzTest.cpp | 189 int64_t pts = 0; in HWTEST_F() local 202 pts += 21; in HWTEST_F() 205 cout << "pts is:" << pts << endl; in HWTEST_F() 211 avMemBuffer->pts_ = pts; in HWTEST_F() 220 static int HwTest_AddTrack(std::shared_ptr<Meta> mediaParams, int64_t *pts, int32_t *size, AVMuxerDemo *muxerDemo) in HwTest_AddTrack() argument 267 *pts += PTS; in HwTest_AddTrack() 271 cout << "pts is:" << *pts << endl; in HwTest_AddTrack() 297 int64_t pts in HWTEST_F() local [all...] |
/foundation/CastEngine/castengine_wifi_display/services/protocol/frame/ |
H A D | aac_frame.cpp | 20 AACFrame::AACFrame(uint8_t *ptr, size_t size, uint32_t dts, uint32_t pts, size_t prefix_size) in AACFrame() argument 24 pts_ = pts; in AACFrame()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/hardware/imagecodec/ |
H A D | image_codec_buffer.h | 37 void GetBufferCirculateInfo(int64_t& pts, uint32_t& flag, uint32_t& size, uint32_t& offset) const in GetBufferCirculateInfo() argument 39 pts = pts_; in GetBufferCirculateInfo() 44 void SetBufferCirculateInfo(int64_t pts, uint32_t flag, uint32_t size, uint32_t offset) in SetBufferCirculateInfo() argument 46 pts_ = pts; in SetBufferCirculateInfo()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/src/ |
H A D | dcamera_sink_frame_info.cpp | 65 cJSON *pts = cJSON_GetObjectItemCaseSensitive(rootValue, FRAME_INFO_PTS.c_str()); in Unmarshal() local 66 if (pts == nullptr || !cJSON_IsNumber(pts)) { in Unmarshal() 70 pts_ = static_cast<int64_t>(pts->valueint); in Unmarshal()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_text_blob.cpp | 106 Point* pts = new (std::nothrow) Point[count]; in OH_Drawing_TextBlobCreateFromPosText() local 107 if (pts == nullptr) { in OH_Drawing_TextBlobCreateFromPosText() 111 pts[i] = CastToPoint(cPoints[i]); in OH_Drawing_TextBlobCreateFromPosText() 114 pts, font, static_cast<TextEncoding>(cTextEncoding)); in OH_Drawing_TextBlobCreateFromPosText() 116 delete [] pts; in OH_Drawing_TextBlobCreateFromPosText() 121 delete [] pts; in OH_Drawing_TextBlobCreateFromPosText()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/imagecodec/ |
H A D | image_codec_dfx.cpp | 92 inTimeMap_[info.omxBuffer->pts] = now; in UpdateInputRecord() 100 HLOGI("pts = %{public}" PRId64 ", len = %{public}u, flags = 0x%{public}x", in UpdateInputRecord() 101 info.omxBuffer->pts, info.omxBuffer->filledLen, info.omxBuffer->flag); in UpdateInputRecord() 104 HLOGI("pts = %{public}" PRId64 ", len = %{public}u, flags = 0x%{public}x, in fps %{public}.2f", in UpdateInputRecord() 105 info.omxBuffer->pts, info.omxBuffer->filledLen, info.omxBuffer->flag, inFps); in UpdateInputRecord() 114 auto it = inTimeMap_.find(info.omxBuffer->pts); in UpdateOutputRecord() 131 HLOGI("pts = %{public}" PRId64 ", len = %{public}u, flags = 0x%{public}x, " in UpdateOutputRecord() 133 info.omxBuffer->pts, info.omxBuffer->filledLen, info.omxBuffer->flag, in UpdateOutputRecord() 137 HLOGI("pts = %{public}" PRId64 ", len = %{public}u, flags = 0x%{public}x, " in UpdateOutputRecord() 139 info.omxBuffer->pts, inf in UpdateOutputRecord() [all...] |
/foundation/multimedia/av_codec/test/nativedemo/e2e_demo/ |
H A D | avcodec_e2e_demo_api10.cpp | 42 int32_t pts; member 48 return f1.pts < f2.pts; in FrameCompare() 85 static void sortFrame(OH_AVCodec *codec, uint32_t index, int32_t pts, uint32_t duration) in sortFrame() argument 87 FrameInfo info = {index, pts}; in sortFrame() 94 if (second.pts - first.pts <= (duration * FRAME_INTERVAL_TIMES)) { in sortFrame() 115 sortFrame(codec, index, attr->pts, demo->frameDuration); in OnDecOutputDataAvailable()
|
/foundation/arkui/ace_engine/frameworks/core/components/track/ |
H A D | rosen_render_linear_track.h | 52 sk_sp<SkShader> BlendSkShader(const SkPoint pts, const SkColor color, bool useAnimator = false); 54 std::shared_ptr<RSShaderEffect> BlendSkShader(const RSPoint pts, const RSColorQuad color, bool useAnimator = false);
|
/foundation/multimedia/av_codec/test/nativedemo/audio_demo/ |
H A D | avcodec_audio_decoder_inner_demo.cpp | 162 int32_t ADecInnerDemo::HandleNormalInput(const uint32_t &index, const int64_t &pts, const size_t &size) in HandleNormalInput() argument 166 attr.presentationTimeUs = pts; in HandleNormalInput() 180 int64_t pts; in InputFunc() local 203 inputFile_.read((char *)&pts, sizeof(pts)); in InputFunc() 204 DEMO_CHECK_AND_BREAK_LOG(inputFile_.gcount() == sizeof(pts), "Fatal: read pts fail"); in InputFunc() 208 auto result = HandleNormalInput(index, pts, size); in InputFunc()
|
/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/ |
H A D | tester_common.cpp | 132 attr.pts = now; in BeforeQueueInput() 134 SaveVivid(attr.pts); in BeforeQueueInput() 141 TLOGI("%s input: flags=0x%x, pts=%" PRId64 ", size=%d", codecStr, attr.flags, attr.pts, attr.size); in BeforeQueueInput() 144 TLOGI("%s input: flags=0x%x, pts=%" PRId64 ", size=%d", codecStr, attr.flags, attr.pts, attr.size); in BeforeQueueInput() 164 TLOGI("%s output: flags=0x%x, pts=%" PRId64 ", size=%d", codecStr, attr.flags, attr.pts, attr.size); in AfterGotOutput() 172 int64_t fromInToOut = now - attr.pts; in AfterGotOutput() 179 TLOGI("%s output: flags=0x%x, pts in AfterGotOutput() 689 SaveVivid(int64_t pts) SaveVivid() argument [all...] |