Home
last modified time | relevance | path

Searched refs:pad (Results 1 – 25 of 43) sorted by relevance

12

/foundation/multimedia/player_framework/services/engine/gstreamer/avmetadatahelper/
Davmeta_buffer_blocker.cpp29 GstPadProbeReturn AVMetaBufferBlocker::BlockCallback(GstPad *pad, GstPadProbeInfo *info, gpointer u… in BlockCallback() argument
31 if (pad == nullptr || info == nullptr || usrdata == nullptr) { in BlockCallback()
37 return thizStrong->OnBlockCallback(*pad, *info); in BlockCallback()
42 void AVMetaBufferBlocker::PadAdded(GstElement *elem, GstPad *pad, gpointer userData) in PadAdded() argument
44 CHECK_AND_RETURN(elem != nullptr && pad != nullptr && userData != nullptr); in PadAdded()
48 return thizStrong->OnPadAdded(*elem, *pad); in PadAdded()
86 GstPad *pad = reinterpret_cast<GstPad *>(node->data); in Init() local
89 std::string_view name = PAD_NAME(pad); in Init()
94 AddPadProbe(*pad, type); in Init()
109 bool AVMetaBufferBlocker::CheckUpStreamBlocked(GstPad &pad) in CheckUpStreamBlocked() argument
[all …]
Davmeta_buffer_blocker.h47 static GstPadProbeReturn BlockCallback(GstPad *pad, GstPadProbeInfo *info, gpointer usrdata);
48 static void PadAdded(GstElement *elem, GstPad *pad, gpointer userData);
49 GstPadProbeReturn OnBlockCallback(GstPad &pad, GstPadProbeInfo &info);
50 void OnPadAdded(GstElement &elem, GstPad &pad);
51 bool CheckUpStreamBlocked(GstPad &pad);
52 void AddPadProbe(GstPad &pad, GstPadProbeType type);
56 GstPad *pad; member
Davmeta_elem_meta_collector.cpp156 for (auto &[pad, probeId] : padProbes_) { in Stop()
157 gst_pad_remove_probe(pad, probeId); in Stop()
237 GstPad *pad = reinterpret_cast<GstPad *>(padNode->data); in AddProbeToPadList() local
238 CHECK_AND_RETURN_RET(AddProbeToPad(*pad), false); in AddProbeToPadList()
244 bool AVMetaElemMetaCollector::AddProbeToPad(GstPad &pad) in AddProbeToPad() argument
252 …gulong probeId = gst_pad_add_probe(&pad, GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM, ProbeCallback, this,… in AddProbeToPad()
254 PAD_PARENT_NAME(&pad), PAD_NAME(&pad)) in AddProbeToPad()
256 (void)padProbes_.emplace(&pad, probeId); in AddProbeToPad()
257 (void)trackInfos_.emplace(&pad, TrackInfo {}); in AddProbeToPad()
261 MEDIA_LOGD("add probe to pad %{public}s of %{public}s", PAD_NAME(&pad), PAD_PARENT_NAME(&pad)); in AddProbeToPad()
[all …]
Davmeta_elem_meta_collector.h103 bool AddProbeToPad(GstPad &pad);
107 static GstPadProbeReturn ProbeCallback(GstPad *pad, GstPadProbeInfo *info, gpointer usrdata);
108 void OnEventProbe(GstPad &pad, GstEvent &event);
109 void QueryDuration(GstPad &pad);
155 static void PadAddedCallback(GstElement *elem, GstPad *pad, gpointer userData);
156 void OnPadAdded(GstElement &src, GstPad &pad);
Davmeta_meta_collector.h54 static void PadAdded(GstElement *elem, GstPad *pad, gpointer userData);
/foundation/multimedia/player_framework/services/engine/gstreamer/player/
Dplayer_track_parse.cpp143 void PlayerTrackParse::OnInputSelectPadAddedCb(const GstElement *element, GstPad *pad, gpointer use… in OnInputSelectPadAddedCb() argument
145 …CHECK_AND_RETURN_LOG(element != nullptr && pad != nullptr && userData != nullptr, "param is nullpt… in OnInputSelectPadAddedCb()
148 (void)playerTrackParse->InputSelectAddProbeToPad(element, pad); in OnInputSelectPadAddedCb()
151 bool PlayerTrackParse::InputSelectAddProbeToPad(const GstElement *element, GstPad *pad) in InputSelectAddProbeToPad() argument
157 it->second.padIndexMap[pad] = it->second.padCount; in InputSelectAddProbeToPad()
160 ELEM_NAME(element), PAD_NAME(pad), it->second.padCount); in InputSelectAddProbeToPad()
164 gulong probeId = gst_pad_add_probe(pad, GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM, in InputSelectAddProbeToPad()
167 GST_ELEMENT_NAME(GST_PAD_PARENT(pad)), PAD_NAME(pad)); in InputSelectAddProbeToPad()
168 (void)padProbes_.emplace(pad, probeId); in InputSelectAddProbeToPad()
169 gst_object_ref(pad); in InputSelectAddProbeToPad()
[all …]
Dplayer_track_parse.h46 GstPadProbeReturn GetTrackParse(GstPad *pad, GstPadProbeInfo *info);
47 GstPadProbeReturn ParseTrackInfo(GstPad *pad, GstPadProbeInfo *info, Format &format);
49 bool AddProbeToPad(const GstElement *element, GstPad *pad);
51 static GstPadProbeReturn ProbeCallback(GstPad *pad, GstPadProbeInfo *info, gpointer userData);
52 static void OnPadAddedCb(const GstElement *element, GstPad *pad, gpointer userData);
56 static void OnInputSelectPadAddedCb(const GstElement *element, GstPad *pad, gpointer userData);
57 bool InputSelectAddProbeToPad(const GstElement *element, GstPad *pad);
58 …static GstPadProbeReturn InputSelectProbeCallback(GstPad *pad, GstPadProbeInfo *info, gpointer use…
59 GstPadProbeReturn GetUsedDemux(GstPad *pad, GstPadProbeInfo *info);
62 bool HasSameStreamIdInDemux(GstPad *pad);
[all …]
Dplayer_sinkprovider.cpp120 GstPad *pad = gst_element_get_static_pad(sink, "sink"); in DoCreateAudioSink() local
121 if (pad == nullptr) { in DoCreateAudioSink()
127 (void)gst_pad_add_probe(pad, GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM, in DoCreateAudioSink()
129 gst_object_unref(pad); in DoCreateAudioSink()
313 GstPadProbeReturn PlayerSinkProvider::SinkPadProbeCb(GstPad *pad, GstPadProbeInfo *info, gpointer u… in SinkPadProbeCb() argument
315 (void)pad; in SinkPadProbeCb()
Dplayer_sinkprovider.h57 static GstPadProbeReturn SinkPadProbeCb(GstPad *pad, GstPadProbeInfo *info, gpointer userData);
/foundation/multimedia/player_framework/services/engine/gstreamer/recorder/
Drecorder_pipeline_link_helper.cpp28 #define UNREF_STATIC_PAD(pad, isStaticPad) \ argument
30 if ((isStaticPad) && ((pad) != nullptr)) { \
31 gst_object_unref(pad); \
47 GstPad *pad = nullptr; in GetGstPad() local
49 pad = gst_element_get_static_pad(elem->gstElem_, padName.c_str()); in GetGstPad()
52 pad = gst_element_request_pad_simple(elem->gstElem_, padName.c_str()); in GetGstPad()
55 CHECK_AND_RETURN_RET_LOG(pad != nullptr, nullptr, in GetGstPad()
62 requestedPads_[elem->gstElem_].push_back(pad); in GetGstPad()
65 return pad; in GetGstPad()
129 for (auto &pad : items.second) { in Clear() local
[all …]
Drecorder_element.cpp99 auto block = [] (GstPad *pad, GstPadProbeInfo *info, gpointer userData) { in DrainAll() argument
101 CHECK_AND_RETURN_RET(pad != nullptr && info != nullptr, GST_PAD_PROBE_PASS); in DrainAll()
103 …DIA_LOGI("During flushing, pad %{public}s's probe is processing the probeInfo", GST_PAD_NAME(pad)); in DrainAll()
/foundation/multimedia/player_framework/services/engine/gstreamer/common/utils/
Dgst_utils.h34 #define PAD_NAME(pad) (GST_PAD_NAME(pad) != nullptr) ? GST_PAD_NAME(pad) : "unknown" argument
36 #define PAD_PARENT_NAME(pad) (GST_PAD_PARENT(pad) != nullptr) ? \ argument
37 ((GST_ELEMENT_NAME(GST_PAD_PARENT(pad)) != nullptr) ? \
38 (GST_ELEMENT_NAME(GST_PAD_PARENT(pad))) : "unknown") : "unknown"
Ddumper.cpp90 GstPadProbeReturn Dumper::DumpGstBuffer(GstPad *pad, GstPadProbeInfo *info, gpointer user_data) in DumpGstBuffer() argument
93 CHECK_AND_RETURN_RET(pad != nullptr && info != nullptr, GST_PAD_PROBE_OK); in DumpGstBuffer()
107 if (g_padBufCount.count(pad) == 0) { in DumpGstBuffer()
108 g_padBufCount.emplace(pad, 0); in DumpGstBuffer()
110 bufSeq = g_padBufCount[pad]++; in DumpGstBuffer()
115 if (sprintf_s(fullPath, PATH_MAX, format, GST_DEBUG_PAD_NAME(pad), bufSeq) <= 0) { in DumpGstBuffer()
117 FAKE_POINTER(buf), GST_DEBUG_PAD_NAME(pad)); in DumpGstBuffer()
138 GstPad *pad = gst_element_get_static_pad(element, padname); in AddDumpGstBufferProbe() local
139 CHECK_AND_RETURN(pad != nullptr); in AddDumpGstBufferProbe()
141 … (void)gst_pad_add_probe(pad, GST_PAD_PROBE_TYPE_BUFFER, &Dumper::DumpGstBuffer, nullptr, nullptr); in AddDumpGstBufferProbe()
[all …]
Ddumper.h27 static GstPadProbeReturn DumpGstBuffer(GstPad *pad, GstPadProbeInfo *info, gpointer user_data);
/foundation/multimedia/player_framework/services/engine/gstreamer/plugins/subtitle/
Dgst_subtitle_base_parse_wrap.cpp106 const GstPad *pad) in gst_subtitle_base_parse_get_stream_by_pad() argument
112 if (pad == self->streams[index]->pad) { in gst_subtitle_base_parse_get_stream_by_pad()
122 static void gst_subtitle_base_parse_switch_stream(GstSubtitleBaseParse *self, const GstPad *pad, gb… in gst_subtitle_base_parse_switch_stream() argument
124 g_return_if_fail(self != nullptr && pad != nullptr); in gst_subtitle_base_parse_switch_stream()
129 GstSubtitleStream *stream = gst_subtitle_base_parse_get_stream_by_pad(self, pad); in gst_subtitle_base_parse_switch_stream()
136 static gboolean gst_subtitle_base_parse_src_event(GstPad *pad, GstObject *parent, GstEvent *event) in gst_subtitle_base_parse_src_event() argument
138 g_return_val_if_fail((pad != nullptr) && (parent != nullptr) && (event != nullptr), FALSE); in gst_subtitle_base_parse_src_event()
169 gst_subtitle_base_parse_switch_stream(self, pad, active); in gst_subtitle_base_parse_src_event()
173 ret = gst_pad_event_default(pad, parent, event); in gst_subtitle_base_parse_src_event()
178 ret = gst_pad_event_default(pad, parent, event); in gst_subtitle_base_parse_src_event()
[all …]
Dgst_subtitle_base_parse.h64 GstPad *pad; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/enhance/
Dcontainer_modal_view_enhance.cpp332 PaddingProperty pad; in BuildMaximizeMenuItem() local
333 pad.left = CalcLength(CONTENT_PADDING); in BuildMaximizeMenuItem()
334 return BuildMenuItemPadding(pad, maximizeRow); in BuildMaximizeMenuItem()
365 PaddingProperty pad; in BuildFullScreenMenuItem() local
366 pad.left = CalcLength(CONTENT_PADDING); in BuildFullScreenMenuItem()
367 return BuildMenuItemPadding(pad, fullScreenRow); in BuildFullScreenMenuItem()
379 PaddingProperty pad; in BuildDividerMenuItem() local
380 pad.left = CalcLength(CONTENT_PADDING); in BuildDividerMenuItem()
381 return BuildMenuItemPadding(pad, divider); in BuildDividerMenuItem()
403 PaddingProperty pad; in BuildLeftSplitMenuItem() local
[all …]
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/
Dspunge.h74 FILLP_CHAR pad[4]; member
114 FILLP_UINT8 pad[1]; member
135 FILLP_UINT8 pad; member
/foundation/multimedia/player_framework/services/engine/gstreamer/common/appsrc_engine/
Dappsrc_memory.cpp179 uint32_t pad = noFreeBuffer_ ? bufferSize_ : 0; in SeekAndChangePos() local
180 availableBegin_ = (begin_ + pad) - (filePos_ - pos); in SeekAndChangePos()
340 uint32_t pad; in IsUnreturnedBuffer() local
342 pad = iter->first < iter->second ? 0 : bufferSize_; in IsUnreturnedBuffer()
343 if (!IsInnerRange(iter->first, iter->second + pad, offset, offset + length)) { in IsUnreturnedBuffer()
346 if (offset == iter->first && offset + length == iter->second + pad) { in IsUnreturnedBuffer()
352 } else if (offset + length == iter->second + pad) { in IsUnreturnedBuffer()
/foundation/communication/dsoftbus/core/common/include/
Dsoftbus_queue.h42 uint8_t pad[56]; /* cache line pad */ member
50 uint8_t pad[48]; /* cache line pad */ member
59 uint8_t pad[48]; /* cache line pad */ member
/foundation/filemanagement/dfs_service/utils/dentry/src/
Dmeta_file.cpp223 uint32_t pad = static_cast<uint32_t>(len) | (static_cast<uint32_t>(len) << 8); in Str2HashBuf() local
224 pad |= pad << 16; /* hash pad length 16 */ in Str2HashBuf()
226 uint32_t val = pad; in Str2HashBuf()
230 val = pad; in Str2HashBuf()
236 val = pad; in Str2HashBuf()
244 *buf++ = pad; in Str2HashBuf()
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/src/
Dnode_functions.cpp66 attr->pad = avgPoolAttr.pad; in GetAvgPoolPrimitive()
177 attr->pad = maxPoolAttr.pad; in GetMaxPoolFusionPrimitive()
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/src/
Dnode_functions.cpp66 attr->pad = avgPoolAttr.pad; in GetAvgPoolPrimitive()
177 attr->pad = maxPoolAttr.pad; in GetMaxPoolFusionPrimitive()
/foundation/communication/ipc/ipc/test/serializer/
Dutils_serializer_test.cpp478 const struct Padded pad = { 'p', 0x34567890, 0x2345678998765432 }; variable
488 result = WriteBuffer(&io, static_cast<const void*>(&pad), sizeof(struct Padded));
503 EXPECT_EQ(pad.title, padRead->title);
504 EXPECT_EQ(pad.handle, padRead->handle);
505 EXPECT_EQ(pad.cookie, padRead->cookie);
1171 struct Padded pad; variable
1172 bool result = WriteBuffer(&io, static_cast<const void*>(&pad), 0);
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/
Dstream_packet_header.h59 uint8_t pad : 2; member
263 commonHeader_.pad = 0; in StreamPacketHeader()

12