/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.39/ |
H A D | changelogs-multimedia.md | 11 针对视频轨获取的 OH_AVCodecBufferAttr 中 `pts` 属性,会在文件实际封装信息的基础上减去轨道起始时间,使其从0开始, 12 导致音视频轨道 `pts` 处理不一致,调用方依赖 `pts` 实现音画同步时,部分视频效果异常。 16 该变更为非兼容性变更,用户获取的视频轨 `pts` 属性值变更,不再统一从0开始,统一提供文件实际封装的原始 `pts` 信息。 34 变更后 `pts` 获取方式不变,内部不再进行额外处理,为文件实际封装的时间戳信息,调用方可使用变更后 `pts`,结合业务逻辑进行使用和处理, 51 int64_t newPts = info.pts; 54 并且从API12开始,支持获取轨道起始时间信息 `OH_MD_KEY_TRACK_START_TIME`,用户也可通过变更后 `pts`,结合轨道起始时间,转换为变更前 `pts`,代码如下:
|
/ohos5.0/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) { in CorrectPts() 32 ptr->pts = startTime_; in CorrectPts() 39 if (std::abs(predictedPts - ptr->pts) < ptsDiffThreshold_ && ptr->pts > 0) { in CorrectPts() 42 ptr->pts = ptr->dts; in CorrectPts() 44 ptr->pts = predictedPts; in CorrectPts() 47 lastPts_ = ptr->pts; in CorrectPts()
|
/ohos5.0/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… 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[1].y) / 2 }; // 取[0] 和[2] … in MakeSweep()
|
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()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | pty_process.rs | 78 let pts = pty.pts().unwrap(); in sdv_pty_process_read_and_write_test() localVariable 81 let mut child = command.spawn(&pts).unwrap(); in sdv_pty_process_read_and_write_test() 108 let pts = pty.pts().unwrap(); in sdv_pty_split_test() localVariable 112 let mut child = command.spawn(&pts).unwrap(); in sdv_pty_split_test() 140 let pts = pty.pts().unwrap(); in sdv_pty_into_split_test() localVariable 144 let mut child = command.spawn(&pts).unwrap(); in sdv_pty_into_split_test() 173 let pts = pty.pts().unwrap(); in sdv_pty_unsplit_test() localVariable 178 let mut child = command.spawn(&pts).unwrap(); in sdv_pty_unsplit_test() 200 let pts = pty.pts().unwrap(); in sdv_pty_debug_test() localVariable
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/pty_process/ |
H A D | command.rs | 288 let stdin = pts.clone_stdio()?; in spawn() 292 let stdout = pts.clone_stdio()?; in spawn() 296 let stderr = pts.clone_stdio()?; in spawn() 300 let mut session_leader = pts.session_leader(); in spawn() 581 let pts = pty.pts().unwrap(); in ut_pty_process_read_write_test() localVariable 584 let mut child = command.spawn(&pts).unwrap(); in ut_pty_process_read_write_test() 611 let pts = pty.pts().unwrap(); in ut_pty_process_split_test() localVariable 615 let mut child = command.spawn(&pts).unwrap(); in ut_pty_process_split_test() 643 let pts = pty.pts().unwrap(); in ut_pty_process_into_split_test() localVariable 676 let pts = pty.pts().unwrap(); in ut_pty_process_unsplit_test() localVariable [all …]
|
H A D | sys.rs | 62 pub(crate) fn pts(&self, size: usize) -> io::Result<PtsInner> { in pts() method 223 let pts = pty.pts(1); in ut_pty_pts_size_test() localVariable 224 assert!(pts.is_ok()); in ut_pty_pts_size_test() 225 let pts = pts.unwrap(); in ut_pty_pts_size_test() localVariable 226 assert!(pts.as_fd().as_raw_fd() >= 0); in ut_pty_pts_size_test() 227 assert!(pts.as_raw_fd() >= 0); in ut_pty_pts_size_test() 228 let fd = OwnedFd::from(pts); in ut_pty_pts_size_test()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/ |
H A D | ge_linear_gradient_blur_shader_filter.cpp | 207 pts[1].Set(clipBounds.GetRight(), in GetGEGradientDirectionPoints() 212 pts[0].Set(clipBounds.GetRight(), in GetGEGradientDirectionPoints() 228 pts[0].Set(clipBounds.GetLeft(), clipBounds.GetTop()); in ProcessGradientDirectionPoints() 234 pts[1].Set(clipBounds.GetLeft(), clipBounds.GetTop()); in ProcessGradientDirectionPoints() 238 pts[0].Set(clipBounds.GetRight(), clipBounds.GetTop()); in ProcessGradientDirectionPoints() 244 pts[1].Set(clipBounds.GetRight(), clipBounds.GetTop()); in ProcessGradientDirectionPoints() 254 std::vector<Drawing::Point> points(pts, pts + 2); // 2 size of pts in ProcessGradientDirectionPoints() 256 pts[0].Set(points[0].GetX(), points[0].GetY()); in ProcessGradientDirectionPoints() 257 pts[1].Set(points[1].GetX(), points[1].GetY()); in ProcessGradientDirectionPoints() 266 Drawing::Point pts[2]; // 2 size of points in MakeAlphaGradientShader() local [all …]
|
/ohos5.0/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() 282 ret = this->demuxer_->StartReferenceParser(pts); in RunSeekScene() 324 int64_t pts = GetPtsFromWorkPts(workPts); in RunSpeedScene() local 350 if (avBuffer->pts_ >= pts * num) { in RunSpeedScene() 415 int64_t pts = 0; in GetPtsFromWorkPts() local 419 pts = 0; in GetPtsFromWorkPts() 422 pts = duration / num; in GetPtsFromWorkPts() 426 pts = rd() % duration / num; in GetPtsFromWorkPts() 429 pts = specified_pts; in GetPtsFromWorkPts() [all …]
|
/ohos5.0/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,
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.39/ |
H A D | changelogs-multimedia.md | 11 …pts** in the obtained **OH_AVCodecBufferAttr** struct is the timestamp encapsulated in the file mi… 15 … non-compatible change. The **pts** value of the video track obtained is no longer starting from 0… 33 …pts** remains unchanged. However, no additional processing is performed internally. As such, **pts… 50 int64_t newPts = info.pts; 53 You can also convert the obtained **pts** to **pts** before the change based on the track start tim…
|
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/ |
H A D | pts_and_index_conversion.cpp | 471 int64_t pts = 0; // init pts in PTSAndIndexConvertSttsAndCttsProcess() local 519 int64_t pts = 0; // init pts in PTSAndIndexConvertOnlySttsProcess() local 572 absolutePTSIndexZero_ = pts < absolutePTSIndexZero_ ? pts : absolutePTSIndexZero_; in PTSAndIndexConvertSwitchProcess() 575 IndexToRelativePTSProcess(pts, index); in PTSAndIndexConvertSwitchProcess() 589 indexToRelativePTSMaxHeap_.push(pts); in IndexToRelativePTSProcess() 593 indexToRelativePTSMaxHeap_.push(pts); in IndexToRelativePTSProcess() 601 if (relativePTSToIndexPTSMin_ > pts) { in RelativePTSToIndexProcess() 602 relativePTSToIndexPTSMin_ = pts; in RelativePTSToIndexProcess() 604 if (relativePTSToIndexPTSMax_ < pts) { in RelativePTSToIndexProcess() 605 relativePTSToIndexPTSMax_ = pts; in RelativePTSToIndexProcess() [all …]
|
/ohos5.0/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 …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 …LOG_DD("plugin flag: " PUBLIC_LOG_U32 ", pts: " PUBLIC_LOG_D64, omxBuffer_->flag, omxBuffer_->pts); in Rebind() 170 buffer->pts = omxBuffer->pts; in Unbind()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-avcodec-kit/ |
H A D | _o_h___a_v_codec_buffer_attr.md | 22 | int64_t [pts](#pts) | 此缓冲区的显示时间戳(以微秒为单位)。 | 53 ### pts subsection 56 int64_t OH_AVCodecBufferAttr::pts
|
/ohos5.0/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()
|
/ohos5.0/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() 101 info.omxBuffer->pts, info.omxBuffer->filledLen, info.omxBuffer->flag); 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() 133 info.omxBuffer->pts, info.omxBuffer->filledLen, info.omxBuffer->flag, in UpdateOutputRecord() 139 info.omxBuffer->pts, info.omxBuffer->filledLen, info.omxBuffer->flag, in UpdateOutputRecord() 202 … DUMP_PATH, prefix.c_str(), w, h, alignedW, fmt->strFmt.c_str(), omxBuffer->pts); in DumpSurfaceBuffer() 236 DUMP_PATH, prefix.c_str(), imgCodecBuffer->GetStride(), omxBuffer->pts); in DumpLinearBuffer()
|
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/muxer/InnerAPI/ |
H A D | InnerAVMuxerFuzzTest.cpp | 189 int64_t pts = 0; variable 202 pts += 21; 205 cout << "pts is:" << pts << endl; 211 avMemBuffer->pts_ = pts; 220 static int HwTest_AddTrack(std::shared_ptr<Meta> mediaParams, int64_t *pts, int32_t *size, AVMuxerD… in HwTest_AddTrack() argument 267 *pts += PTS; in HwTest_AddTrack() 271 cout << "pts is:" << *pts << endl; in HwTest_AddTrack() 297 int64_t pts = 0; variable 317 int trackIndex = HwTest_AddTrack(mediaParams, &pts, &size, muxerDemo);
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/codec/ |
H A D | _omx_codec_buffer_v10.md | 31 | long [pts](#pts) | 缓冲区第一个逻辑样本时间戳。 | 137 ### pts subsection 140 long OmxCodecBuffer::pts
|
H A D | _omx_codec_buffer_v20.md | 31 | long [pts](#pts) | 缓冲区第一个逻辑样本时间戳。 | 140 ### pts subsection 143 long OmxCodecBuffer::pts
|
/ohos5.0/docs/en/application-dev/reference/apis-avcodec-kit/ |
H A D | _o_h___a_v_codec_buffer_attr.md | 22 | int64_t [pts](#pts) | Defines the display timestamp of the buffer, in microseconds.| 53 ### pts subsection 56 int64_t OH_AVCodecBufferAttr::pts
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkcanvas_fuzzer/ |
H A D | canvas_fuzzer.cpp | 344 pts[i] = {GetObject<float>(), GetObject<float>()}; in CanvasFuzzTest003() 360 vertexCount, pts, texs, colors, indexCount, indices, in CanvasFuzzTest003() 363 vertexCount, pts, texs, nullptr, indexCount, indices, in CanvasFuzzTest003() 366 vertexCount, pts, texs, colors, indexCount, indices, in CanvasFuzzTest003() 469 OH_Drawing_Point2D* pts = new OH_Drawing_Point2D[count]; in CanvasFuzzTest001() local 471 pts[i] = {GetObject<float>(), GetObject<float>()}; in CanvasFuzzTest001() 474 count, pts); in CanvasFuzzTest001() 476 count, pts); in CanvasFuzzTest001() 479 if (pts != nullptr) { in CanvasFuzzTest001() 480 delete[] pts; in CanvasFuzzTest001() [all …]
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/ |
H A D | tester_common.cpp | 134 attr.pts = now; in BeforeQueueInput() 136 SaveVivid(attr.pts); in BeforeQueueInput() 174 int64_t fromInToOut = now - attr.pts; in AfterGotOutput() 182 codecStr, attr.flags, attr.pts, attr.size, oneFrameCostMs, averageCostMs); in AfterGotOutput() 210 auto it = vividMap_.find(buf.attr.pts); in CheckVivid() 215 vividMap_.erase(buf.attr.pts); in CheckVivid() 221 TLOGI("--- output pts %" PRId64 " has no sample but input has vivid", buf.attr.pts); in CheckVivid() 225 TLOGI("--- output pts %" PRId64 " has no vivid but input has vivid", buf.attr.pts); in CheckVivid() 434 .timestamp = buf.attr.pts, in ReturnInputSurfaceBuffer() 720 void TesterCommon::SaveVivid(int64_t pts) in SaveVivid() argument [all …]
|