Home
last modified time | relevance | path

Searched refs:std (Results 21451 - 21475 of 65967) sorted by relevance

1...<<851852853854855856857858859860>>...2639

/foundation/multimedia/av_codec/services/engine/codec/include/audio/
H A Daudio_codec_adapter.h29 explicit AudioCodecAdapter(const std::string &name);
33 int32_t SetCallback(const std::shared_ptr<AVCodecCallback> &callback) override;
58 std::atomic<CodecState> state_;
59 const std::string name_;
60 std::shared_ptr<AVCodecCallback> callback_;
61 std::shared_ptr<AudioBaseCodec> audioCodec;
62 std::shared_ptr<AudioCodecWorker> worker_;
72 std::string_view stateToString(CodecState state);
/foundation/multimedia/audio_framework/frameworks/js/napi/audiorenderer/callback/
H A Dnapi_audio_renderer_device_change_callback.h41 std::string callbackName = "unknown";
49 std::mutex mutex_;
51 std::list<std::shared_ptr<AutoRef>> callbacks_ {};
70 std::string callbackName = "unknown";
79 std::mutex mutex_;
81 std::list<std::shared_ptr<AutoRef>> callbacks_ {};
/foundation/graphic/graphic_2d/rosen/modules/effect/test/unittest/
H A Dprogram_unittest.cpp40 auto program = std::make_shared<Program>(); in HWTEST_F()
46 auto horizon = std::make_shared<HorizontalBlurFilter>(); in HWTEST_F()
63 auto program = std::make_shared<Program>(); in HWTEST_F()
69 auto vertical = std::make_shared<VerticalBlurFilter>(); in HWTEST_F()
86 auto program = std::make_shared<Program>(); in HWTEST_F()
92 auto saturation = std::make_shared<SaturationFilter>(); in HWTEST_F()
109 auto program = std::make_shared<Program>(); in HWTEST_F()
115 auto saturation = std::make_shared<SaturationFilter>(); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/test/unittest/
H A Dge_grey_shader_filter_test.cpp35 std::shared_ptr<Drawing::Image> MakeImage(Drawing::Canvas& canvas);
38 std::shared_ptr<Drawing::Image> image_ { nullptr };
72 std::unique_ptr<GEGreyShaderFilter> geGreyShaderFilter = in HWTEST_F()
73 std::make_unique<GEGreyShaderFilter>(geGreyShaderFilterParams); in HWTEST_F()
90 std::unique_ptr<GEGreyShaderFilter> geGreyShaderFilter = in HWTEST_F()
91 std::make_unique<GEGreyShaderFilter>(geGreyShaderFilterParams); in HWTEST_F()
108 std::unique_ptr<GEGreyShaderFilter> geGreyShaderFilter = in HWTEST_F()
109 std::make_unique<GEGreyShaderFilter>(geGreyShaderFilterParams); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
H A Drs_value_estimator_test.cpp50 auto curveValueEstimator = std::make_shared<RSCurveValueEstimator<float>>(); in HWTEST_F()
80 auto interpolator = std::make_shared<RSStepsInterpolator>(1, StepsCurvePosition::START); in HWTEST_F()
81 auto curveValueEstimator = std::make_shared<RSCurveValueEstimator<float>>(); in HWTEST_F()
83 auto property = std::make_shared<RSRenderAnimatableProperty<float>>(0.0f); in HWTEST_F()
84 auto startValue = std::make_shared<RSRenderAnimatableProperty<float>>(0.0f); in HWTEST_F()
85 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(1.0f); in HWTEST_F()
86 auto lastValue = std::make_shared<RSRenderAnimatableProperty<float>>(1.0f); in HWTEST_F()
92 std::shared_ptr<RSStepsInterpolator> interpolator2; in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/drawing_engine/drawing_surface/
H A Dsurface_ohos_raster.cpp35 std::unique_ptr<SurfaceFrame> SurfaceOhosRaster::NativeRequestFrame(int32_t width, int32_t height) in NativeRequestFrame()
41 bool SurfaceOhosRaster::NativeFlushFrame(std::unique_ptr<SurfaceFrame>& frame) in NativeFlushFrame()
46 std::unique_ptr<SurfaceFrame> SurfaceOhosRaster::RequestFrame(int32_t width, int32_t height) in RequestFrame()
52 frame_ = std::make_unique<SurfaceFrameOhosRaster>(width, height); in RequestFrame()
67 std::unique_ptr<SurfaceFrame> ret(std::move(frame_)); in RequestFrame()
71 bool SurfaceOhosRaster::FlushFrame(std::unique_ptr<SurfaceFrame>& frame) in FlushFrame()
87 SkCanvas* SurfaceOhosRaster::GetSkCanvas(std::unique_ptr<SurfaceFrame>& frame) in GetSkCanvas()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_vk_image_manager.h57 static std::shared_ptr<NativeVkImageRes> Create(sptr<OHOS::SurfaceBuffer> buffer);
81 std::shared_ptr<NativeVkImageRes> MapVkImageFromSurfaceBuffer(const sptr<OHOS::SurfaceBuffer>& buffer,
85 std::shared_ptr<NativeVkImageRes> CreateImageCacheFromBuffer(sptr<OHOS::SurfaceBuffer> buffer,
89 std::shared_ptr<NativeVkImageRes> NewImageCacheFromBuffer(
92 mutable std::mutex opMutex_;
93 std::queue<int32_t> cacheQueue_; // fifo, size restricted by MAX_CACHE_SIZE
94 std::unordered_map<int32_t, std::shared_ptr<NativeVkImageRes>> imageCacheSeqs_; // guarded by opMutex_
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_path.cpp26 std::shared_ptr<RSPath> RSPath::CreateRSPath() in CreateRSPath()
28 return std::make_shared<RSPath>(); in CreateRSPath()
31 std::shared_ptr<RSPath> RSPath::CreateRSPath(const Drawing::Path& path) in CreateRSPath()
33 auto rsPath = std::make_shared<RSPath>(); in CreateRSPath()
38 std::shared_ptr<RSPath> RSPath::CreateRSPath(const std::string& path) in CreateRSPath()
70 std::shared_ptr<RSPath> RSPath::Reverse() in Reverse()
94 degrees = Drawing::ConvertRadiansToDegrees(std::atan2(tangent.GetY(), tangent.GetX())); in GetPosTan()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/modifier/
H A Drs_modifier_extractor.h57 std::shared_ptr<RSShader> GetBackgroundShader() const;
58 std::shared_ptr<RSImage> GetBgImage() const;
77 std::shared_ptr<RSFilter> GetBackgroundFilter() const;
78 std::shared_ptr<RSFilter> GetFilter() const;
86 std::shared_ptr<RSPath> GetShadowPath() const;
93 std::shared_ptr<RSPath> GetClipBounds() const;
98 std::shared_ptr<RSMask> GetMask() const;
129 std::string Dump() const;
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_interpolator.h43 static RSB_EXPORT const std::shared_ptr<RSInterpolator> DEFAULT;
47 [[nodiscard]] static RSB_EXPORT std::shared_ptr<RSInterpolator> Unmarshalling(Parcel& parcel);
82 RSCustomInterpolator(const std::function<float(float)>& func, int duration);
90 RSCustomInterpolator(uint64_t id, const std::vector<float>&& times, const std::vector<float>&& values);
94 std::vector<float> times_;
95 std::vector<float> values_;
96 std::function<float(float)> interpolateFunc_;
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/
H A Dge_aibar_shader_filter.cpp32 const std::string GEAIBarShaderFilter::GetDescription() const in GetDescription()
37 std::shared_ptr<Drawing::Image> GEAIBarShaderFilter::ProcessImage(Drawing::Canvas& canvas, in ProcessImage()
38 const std::shared_ptr<Drawing::Image> image, const Drawing::Rect& src, const Drawing::Rect& dst) in ProcessImage()
60 std::shared_ptr<Drawing::RuntimeShaderBuilder> GEAIBarShaderFilter::MakeBinarizationShader( in MakeBinarizationShader()
61 float imageWidth, float imageHeight, std::shared_ptr<Drawing::ShaderEffect> imageShader) in MakeBinarizationShader()
63 static std::shared_ptr<Drawing::RuntimeEffect> binarizationShaderEffect_; in MakeBinarizationShader()
95 std::shared_ptr<Drawing::RuntimeShaderBuilder> builder = in MakeBinarizationShader()
96 std::make_shared<Drawing::RuntimeShaderBuilder>(binarizationShaderEffect_); in MakeBinarizationShader()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/
H A Drs_proxy_node.h27 using WeakPtr = std::weak_ptr<RSProxyNode>;
28 using SharedPtr = std::shared_ptr<RSProxyNode>;
35 static SharedPtr Create(NodeId targetNodeId, std::string name = "ProxyNode");
40 const std::string& GetName() const in GetName()
45 void AddChild(std::shared_ptr<RSBaseNode> child, int index) override;
46 void RemoveChild(std::shared_ptr<RSBaseNode> child) override;
60 explicit RSProxyNode(NodeId targetNodeId, std::string name);
71 std::string name_;
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/
H A Drs_resource_manager_test.cpp39 static void TestHookFunction(bool paraUpload, const std::shared_ptr<Drawing::Image>& image, in TestHookFunction()
40 const std::shared_ptr<Media::PixelMap>& pixelMap, uint64_t uniqueId) in TestHookFunction()
61 auto resourceManager = std::make_shared<RSResourceManager>(); in HWTEST_F()
62 auto image = std::make_shared<Drawing::Image>(); in HWTEST_F()
63 auto pixelMap = std::make_shared<Media::PixelMap>(); in HWTEST_F()
79 auto resourceManager = std::make_shared<RSResourceManager>(); in HWTEST_F()
80 auto image = std::make_shared<Drawing::Image>(); in HWTEST_F()
81 auto pixelMap = std::make_shared<Media::PixelMap>(); in HWTEST_F()
/foundation/filemanagement/user_file_service/services/native/file_access_service/include/
H A Dfile_access_service_proxy.h33 const std::shared_ptr<ConnectExtensionInfo> &info) override;
35 const std::shared_ptr<ConnectExtensionInfo> &info) override;
36 int32_t GetExtensionProxy(const std::shared_ptr<ConnectExtensionInfo> &info,
46 std::condition_variable proxyConVar_;
47 std::atomic<bool> isLoadSuccess_{false};
53 explicit ProxyDeathRecipient(std::function<void(const wptr<IRemoteObject> &)> functor) : functor_(functor) {}; in ProxyDeathRecipient()
67 std::function<void(const wptr<IRemoteObject> &)> functor_;
70 static inline std::mutex proxyMutex_;
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/symbol_engine/
H A Dhm_symbol_node_build.h36 const RSEffectStrategy &effectStrategy, const std::pair<float, float> &offset);
39 std::shared_ptr<TextEngine::SymbolAnimationConfig> symbolAnimationConfig);
42 const std::vector<RSGroupSetting> &groupSettings,
43 std::shared_ptr<TextEngine::SymbolAnimationConfig> symbolAnimationConfig);
48 const std::function<bool(const std::shared_ptr<OHOS::Rosen::TextEngine::SymbolAnimationConfig>&)>& in SetAnimation()
90 std::function<bool(const std::shared_ptr<OHOS::Rosen::TextEngine::SymbolAnimationConfig>&)>
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_surface.cpp31 static std::mutex g_surfaceMutex;
32 static std::unordered_map<void*, std::shared_ptr<Surface>> g_surfaceMap;
53 std::shared_ptr<Surface> surface = Surface::MakeRenderTarget(CastToGpuContext(cGpuContext), in OH_Drawing_SurfaceCreateFromGpuContext()
58 std::lock_guard<std::mutex> lock(g_surfaceMutex); in OH_Drawing_SurfaceCreateFromGpuContext()
78 std::lock_guard<std::mutex> lock(g_surfaceMutex); in OH_Drawing_SurfaceDestroy()
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/export/rosen_text/
H A Dhm_symbol_txt.h39 void SetRenderColor(const std::vector<Drawing::DrawingSColor>& colorList);
41 void SetRenderColor(const std::vector<Drawing::Color>& colorList);
63 std::vector<Drawing::DrawingSColor> GetRenderColor() const;
75 std::map<std::string, int> GetVisualMap() const;
80 std::vector<Drawing::DrawingSColor> colorList_;
90 std::map<std::string, int> visualMap_;
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/impl/
H A Ddrawing_painter_impl.h33 RSCanvasParagraphPainter(Drawing::Canvas* canvas, const std::vector<PaintRecord>& paints);
35 void drawTextBlob(const std::shared_ptr<RSTextBlob>& blob, SkScalar x, SkScalar y,
37 void drawTextShadow(const std::shared_ptr<RSTextBlob>& blob, SkScalar x, SkScalar y, SkColor color,
54 std::function<bool(const std::shared_ptr<OHOS::Rosen::TextEngine::SymbolAnimationConfig>&)>& animationFunc in SetAnimation()
69 const std::vector<PaintRecord>& paints_;
70 std::function<bool(
71 const std::shared_ptr<OHOS::Rosen::TextEngine::SymbolAnimationConfig>&)> animationFunc_ = nullptr;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_text_blob.h42 static std::shared_ptr<TextBlob> MakeFromText(const void* text, size_t byteLength,
44 static std::shared_ptr<TextBlob> MakeFromPosText(const void* text, size_t byteLength,
46 static std::shared_ptr<TextBlob> MakeFromRSXform(const void* text, size_t byteLength,
51 std::shared_ptr<Data> Serialize(void* ctx) const override;
53 static std::shared_ptr<TextBlob> Deserialize(const void* data, size_t size, void* ctx);
54 static void GetDrawingGlyphIDforTextBlob(const TextBlob* blob, std::vector<uint16_t>& glyphIds);
56 static void GetDrawingPointsForTextBlob(const TextBlob* blob, std::vector<Point>& points);
59 std::shared_ptr<Rect> Bounds() const override;
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/frame_rate_vote/
H A Drs_video_frame_rate_vote.cpp31 const std::function<void(uint64_t)>& releaseCallback, in RSVideoFrameRateVote()
32 const std::function<void(uint64_t, uint32_t)>& voteCallback) in RSVideoFrameRateVote()
35 std::string queueName = "video_frame_rate_vote_queue_" + std::to_string(surfaceNodeId); in RSVideoFrameRateVote()
36 ffrtQueue_ = std::make_shared<ffrt::queue>(queueName.c_str()); in RSVideoFrameRateVote()
64 RS_LOGI("video vote surfaceNodeId(%{public}s) rate(%{public}u)", std::to_string(surfaceNodeId_).c_str(), rate); in VoteVideoFrameRate()
71 std::lock_guard<ffrt::mutex> autoLock(ffrtMutex_); in SendDelayTask()
84 std::lock_guard<ffrt::mutex> autoLock(ffrtMutex_); in CancelDelayTask()
30 RSVideoFrameRateVote(uint64_t surfaceNodeId, const std::function<void(uint64_t)>& releaseCallback, const std::function<void(uint64_t, uint32_t)>& voteCallback) RSVideoFrameRateVote() argument
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_context.cpp22 void RSContext::RegisterAnimatingRenderNode(const std::shared_ptr<RSRenderNode>& nodePtr) in RegisterAnimatingRenderNode()
36 void RSContext::AddActiveNode(const std::shared_ptr<RSRenderNode>& node) in AddActiveNode()
42 std::lock_guard<std::mutex> lock(activeNodesInRootMutex_); in AddActiveNode()
46 bool RSContext::HasActiveNode(const std::shared_ptr<RSRenderNode>& node) in HasActiveNode()
52 std::lock_guard<std::mutex> lock(activeNodesInRootMutex_); in HasActiveNode()
56 void RSContext::AddPendingSyncNode(const std::shared_ptr<RSRenderNode> node) in AddPendingSyncNode()
/foundation/multimedia/image_framework/interfaces/kits/js/common/include/
H A Dpicture_napi.h32 static std::shared_ptr<Picture> GetPicture(napi_env env, napi_value picture);
33 static napi_value CreatePicture(napi_env env, std::shared_ptr<Picture> &picture);
35 void SetNativePicture(std::shared_ptr<Picture> picture);
55 const std::string &tag, const std::uint32_t &code, const std::string &info);
58 static thread_local std::shared_ptr<Picture> sPicture_;
60 std::shared_ptr<Picture> nativePicture_;
/foundation/multimedia/media_foundation/test/unittest/plugins/
H A DUtSourceTest1.cpp23 static std::shared_ptr<SourcePlugin> PluginCreator(const std::string &name) in PluginCreator()
25 return std::make_shared<UtSourceTest1>(name); in PluginCreator()
28 static Status SourceRegister(const std::shared_ptr<Register> &reg) in SourceRegister()
45 Status OHOS::Media::Plugin::UtSourceTest1::SetSource(std::shared_ptr<MediaSource> source) in SetSource()
50 Status UtSourceTest1::Read(std::shared_ptr<Buffer> &buffer, size_t expectedLen) in Read()
76 std::shared_ptr<Allocator> UtSourceTest1::GetAllocator() in GetAllocator()
78 return std::shared_ptr<Allocator>(); in GetAllocator()
/foundation/multimedia/media_foundation/engine/scene/recorder/internal/
H A Dstate_machine.h57 const std::string& GetCurrentState() const;
70 using Job = std::function<Action()>;
76 void AddState(const std::shared_ptr<State>& state);
80 ErrorCode TransitionTo(const std::shared_ptr<State>& state);
86 mutable std::shared_ptr<State> curState_ {nullptr};
88 std::map<StateId, std::shared_ptr<State>> states_ {};
90 std::queue<Job> pendingJobs_ {};
/foundation/multimedia/media_foundation/test/unittest/
H A DTestFFmpegVideoDecoder.cpp28 std::shared_ptr<CodecPlugin> VideoFfmpegDecoderCreator(const std::string& name) in VideoFfmpegDecoderCreator()
30 return std::make_shared<VideoFfmpegDecoderPlugin>(name); in VideoFfmpegDecoderCreator()
35 std::shared_ptr<CodecPlugin> videoDecoderPlugin = VideoFfmpegDecoderCreator("VideoFfmpegDecoderPluginTest"); in HWTEST()
59 std::shared_ptr<CodecPlugin> videoDecoderPlugin = VideoFfmpegDecoderCreator("VideoFfmpegDecoderPluginTest"); in HWTEST()
72 std::shared_ptr<CodecPlugin> videoDecoderPlugin = VideoFfmpegDecoderCreator("VideoFfmpegDecoderPluginTest"); in HWTEST()
73 std::shared_ptr<Buffer> inputBuffer = std::make_shared<Buffer>(BufferMetaType::VIDEO); in HWTEST()

Completed in 30 milliseconds

1...<<851852853854855856857858859860>>...2639