Home
last modified time | relevance | path

Searched refs:pmt (Results 1 – 25 of 37) sorted by relevance

12

/third_party/gstreamer/gstplugins_bad/gst-libs/gst/mpegts/
Dgstmpegtssection.c638 _gst_mpegts_pmt_stream_copy (GstMpegtsPMTStream * pmt) in _gst_mpegts_pmt_stream_copy() argument
642 copy = g_slice_dup (GstMpegtsPMTStream, pmt); in _gst_mpegts_pmt_stream_copy()
643 copy->descriptors = g_ptr_array_ref (pmt->descriptors); in _gst_mpegts_pmt_stream_copy()
649 _gst_mpegts_pmt_stream_free (GstMpegtsPMTStream * pmt) in _gst_mpegts_pmt_stream_free() argument
651 if (pmt->descriptors) in _gst_mpegts_pmt_stream_free()
652 g_ptr_array_unref (pmt->descriptors); in _gst_mpegts_pmt_stream_free()
653 g_slice_free (GstMpegtsPMTStream, pmt); in _gst_mpegts_pmt_stream_free()
661 _gst_mpegts_pmt_copy (GstMpegtsPMT * pmt) in _gst_mpegts_pmt_copy() argument
665 copy = g_slice_dup (GstMpegtsPMT, pmt); in _gst_mpegts_pmt_copy()
666 if (pmt->descriptors) in _gst_mpegts_pmt_copy()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/dshowsrcwrapper/
Dgstdshowfakesink.cpp32 STDMETHODIMP CDshowFakeSink::gst_set_media_type (AM_MEDIA_TYPE * pmt) in gst_set_media_type() argument
34 m_MediaType.Set (*pmt); in gst_set_media_type()
47 HRESULT CDshowFakeSink::CheckMediaType (const CMediaType * pmt) in CheckMediaType() argument
49 if (!IsEqualGUID(pmt->majortype, m_MediaType.majortype) || in CheckMediaType()
50 !IsEqualGUID(pmt->subtype, m_MediaType.subtype) || in CheckMediaType()
51 !IsEqualGUID(pmt->formattype, m_MediaType.formattype) || in CheckMediaType()
52 (pmt->cbFormat != m_MediaType.cbFormat)) in CheckMediaType()
55 VIDEOINFOHEADER *info1 = (VIDEOINFOHEADER*)pmt->pbFormat; in CheckMediaType()
Dgstdshow.cpp43 gst_dshow_free_mediatype (AM_MEDIA_TYPE * pmt) in gst_dshow_free_mediatype() argument
45 if (pmt != NULL) { in gst_dshow_free_mediatype()
46 if (pmt->cbFormat != 0) { in gst_dshow_free_mediatype()
47 CoTaskMemFree ((PVOID) pmt->pbFormat); in gst_dshow_free_mediatype()
48 pmt->cbFormat = 0; in gst_dshow_free_mediatype()
49 pmt->pbFormat = NULL; in gst_dshow_free_mediatype()
51 if (pmt->pUnk != NULL) { in gst_dshow_free_mediatype()
53 pmt->pUnk->Release (); in gst_dshow_free_mediatype()
54 pmt->pUnk = NULL; in gst_dshow_free_mediatype()
57 CoTaskMemFree (pmt); in gst_dshow_free_mediatype()
Dgstdshowfakesink.h44 virtual HRESULT CheckMediaType (const CMediaType * pmt);
47 STDMETHOD (gst_set_media_type) (AM_MEDIA_TYPE * pmt);
/third_party/gstreamer/gstplugins_bad/sys/dvb/
Dcamswclient.c121 send_ca_pmt (CamSwClient * client, GstMpegtsPMT * pmt, in send_ca_pmt() argument
131 ca_pmt = cam_build_ca_pmt (pmt, list_management, cmd_id, &ca_pmt_size); in send_ca_pmt()
157 cam_sw_client_set_pmt (CamSwClient * client, GstMpegtsPMT * pmt) in cam_sw_client_set_pmt() argument
160 g_return_if_fail (pmt != NULL); in cam_sw_client_set_pmt()
162 return send_ca_pmt (client, pmt, 0x03 /* only */ , in cam_sw_client_set_pmt()
167 cam_sw_client_update_pmt (CamSwClient * client, GstMpegtsPMT * pmt) in cam_sw_client_update_pmt() argument
170 g_return_if_fail (pmt != NULL); in cam_sw_client_update_pmt()
172 return send_ca_pmt (client, pmt, 0x05 /* update */ , in cam_sw_client_update_pmt()
Dcamutils.c203 cam_build_ca_pmt (GstMpegtsPMT * pmt, guint8 list_management, guint8 cmd_id, in cam_build_ca_pmt() argument
206 GstMpegtsSection *section = (GstMpegtsSection *) pmt; in cam_build_ca_pmt()
215 len = get_ca_descriptors_length (pmt->descriptors); in cam_build_ca_pmt()
223 for (i = 0; i < pmt->streams->len; i++) { in cam_build_ca_pmt()
224 GstMpegtsPMTStream *pmtstream = g_ptr_array_index (pmt->streams, i); in cam_build_ca_pmt()
264 body = write_ca_descriptors (body, pmt->descriptors); in cam_build_ca_pmt()
267 for (i = 0; i < pmt->streams->len; i++) { in cam_build_ca_pmt()
268 GstMpegtsPMTStream *pmtstream = g_ptr_array_index (pmt->streams, i); in cam_build_ca_pmt()
Ddvbbasebin.c124 const GstMpegtsPMT *pmt; member
147 GstMpegtsSection * pmt);
228 program->pmt = NULL; in dvb_base_bin_add_program()
789 GstMpegtsPMT *pmt; in dvb_base_bin_reset_pmtlist() local
805 pmt = (GstMpegtsPMT *) walk->data; in dvb_base_bin_reset_pmtlist()
806 cam_device_set_pmt (dvbbasebin->hwcam, pmt, flag); in dvb_base_bin_reset_pmtlist()
921 const GstMpegtsPMT * pmt) in dvb_base_bin_remove_pmt_streams() argument
926 for (i = 0; i < pmt->streams->len; i++) { in dvb_base_bin_remove_pmt_streams()
927 GstMpegtsPMTStream *pmtstream = g_ptr_array_index (pmt->streams, i); in dvb_base_bin_remove_pmt_streams()
941 dvb_base_bin_add_pmt_streams (DvbBaseBin * dvbbasebin, const GstMpegtsPMT * pmt) in dvb_base_bin_add_pmt_streams() argument
[all …]
Dcamconditionalaccess.c73 send_ca_pmt (CamConditionalAccess * cas, GstMpegtsPMT * pmt, in send_ca_pmt() argument
84 ca_pmt = cam_build_ca_pmt (pmt, list_management, cmd_id, &ca_pmt_size); in send_ca_pmt()
111 GstMpegtsPMT * pmt, CamConditionalAccessPmtFlag flag) in cam_conditional_access_set_pmt() argument
113 return send_ca_pmt (cas, pmt, flag, 0x01 /* ok_descrambling */ ); in cam_conditional_access_set_pmt()
Dcamswclient.h51 void cam_sw_client_set_pmt (CamSwClient *sw_client, GstMpegtsPMT *pmt);
52 void cam_sw_client_update_pmt (CamSwClient *sw_client, GstMpegtsPMT *pmt);
Dcamdevice.c220 GstMpegtsPMT * pmt, CamConditionalAccessPmtFlag flag) in cam_device_set_pmt() argument
224 g_return_if_fail (pmt != NULL); in cam_device_set_pmt()
226 cam_conditional_access_set_pmt (device->cas, pmt, flag); in cam_device_set_pmt()
Dcamconditionalaccess.h53 GstMpegtsPMT *pmt, CamConditionalAccessPmtFlag flag);
Dcamutils.h58 guint8 *cam_build_ca_pmt (GstMpegtsPMT *pmt, guint8 list_management, guint8 cmd_id, guint *size);
/third_party/gstreamer/gstplugins_bad/gst/mpegtsdemux/
Dmpegtsbase.c328 GstMpegtsPMTStream *pmt = stream->stream; in mpegts_get_descriptor_from_stream() local
333 return gst_mpegts_find_descriptor (pmt->descriptors, tag); in mpegts_get_descriptor_from_stream()
340 GstMpegtsPMTStream *pmt = stream->stream; in mpegts_get_descriptor_from_stream_with_extension() local
346 return gst_mpegts_find_descriptor_with_extension (pmt->descriptors, tag, in mpegts_get_descriptor_from_stream_with_extension()
383 const GstMpegtsPMT *pmt = program->pmt; in mpegts_get_descriptor_from_program() local
385 return gst_mpegts_find_descriptor (pmt->descriptors, tag); in mpegts_get_descriptor_from_program()
538 if (program->pmt) { in mpegts_base_free_program()
540 program->pmt = NULL; in mpegts_base_free_program()
695 _stream_in_pmt (const GstMpegtsPMT * pmt, MpegTSBaseStream * stream) in _stream_in_pmt() argument
697 guint i, nbstreams = pmt->streams->len; in _stream_in_pmt()
[all …]
Dmpegtsbase.h82 const GstMpegtsPMT *pmt; member
226 void (*pmt_info) (GstStructure *pmt);
/third_party/gstreamer/gstplugins_bad/tests/check/libs/
Dmpegts.c244 GstMpegtsPMT *pmt; in GST_START_TEST() local
253 pmt = gst_mpegts_pmt_new (); in GST_START_TEST()
255 pmt->pcr_pid = 0x1FFF; in GST_START_TEST()
256 pmt->program_number = 1; in GST_START_TEST()
259 g_ptr_array_add (pmt->descriptors, desc); in GST_START_TEST()
270 g_ptr_array_add (pmt->streams, stream); in GST_START_TEST()
273 pmt_section = gst_mpegts_section_from_pmt (pmt, 0x30); in GST_START_TEST()
277 pmt = (GstMpegtsPMT *) gst_mpegts_section_get_pmt (pmt_section); in GST_START_TEST()
279 fail_unless (pmt->pcr_pid == 0x1FFF); in GST_START_TEST()
280 fail_unless (pmt->program_number == 1); in GST_START_TEST()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/dshowvideosink/
Ddshowvideofakesrc.cpp52 HRESULT VideoFakeSrcPin::CheckMediaType(const CMediaType *pmt) in CheckMediaType() argument
54 GST_DEBUG ("CheckMediaType called: %p", pmt); in CheckMediaType()
60 if (IsEqualGUID(pmt->majortype,m_MediaType.majortype) && in CheckMediaType()
61 IsEqualGUID(pmt->subtype,m_MediaType.subtype) && in CheckMediaType()
62 IsEqualGUID(pmt->formattype,m_MediaType.formattype) && in CheckMediaType()
63 pmt->cbFormat >= m_MediaType.cbFormat) in CheckMediaType()
65 if (IsEqualGUID(pmt->formattype, FORMAT_VideoInfo)) { in CheckMediaType()
66 VIDEOINFOHEADER *newvh = (VIDEOINFOHEADER *)pmt->pbFormat; in CheckMediaType()
118 STDMETHODIMP VideoFakeSrcPin::SetMediaType (AM_MEDIA_TYPE *pmt) in SetMediaType() argument
120 m_MediaType.Set (*pmt); in SetMediaType()
Ddshowvideofakesrc.h41 virtual HRESULT CheckMediaType(const CMediaType *pmt);
47 STDMETHOD (SetMediaType) (AM_MEDIA_TYPE *pmt);
/third_party/gstreamer/gstplugins_bad/sys/dshowdecwrapper/
Dgstdshowfakesrc.cpp73 HRESULT FakeOutputPin::CheckMediaType(const CMediaType *pmt) in CheckMediaType() argument
75 if (m_MediaType == *pmt) { in CheckMediaType()
94 STDMETHODIMP FakeOutputPin::SetMediaType (AM_MEDIA_TYPE *pmt) in SetMediaType() argument
96 m_MediaType.Set (*pmt); in SetMediaType()
Dgstdshowaudiodec.h144 HRESULT CheckMediaType(const CMediaType *pmt);
145 HRESULT SetMediaType (AM_MEDIA_TYPE *pmt) in SetMediaType() argument
147 m_MediaType.Set (*pmt); in SetMediaType()
Dgstdshowvideodec.h148 HRESULT CheckMediaType(const CMediaType *pmt);
149 HRESULT SetMediaType (AM_MEDIA_TYPE *pmt) in SetMediaType() argument
151 m_MediaType.Set (*pmt); in SetMediaType()
Dgstdshowaudiodec.cpp267 HRESULT AudioFakeSink::CheckMediaType(const CMediaType *pmt) in CheckMediaType() argument
269 if(pmt != NULL) in CheckMediaType()
276 if (IsEqualGUID (pmt->majortype, m_MediaType.majortype) && in CheckMediaType()
277 IsEqualGUID (pmt->subtype, m_MediaType.subtype) && in CheckMediaType()
278 IsEqualGUID (pmt->formattype, m_MediaType.formattype)) in CheckMediaType()
286 if (pmt->formattype == FORMAT_WaveFormatEx) { in CheckMediaType()
287 if (pmt->cbFormat >= sizeof (WAVEFORMATEX) && in CheckMediaType()
290 WAVEFORMATEX *wf1 = (WAVEFORMATEX *)pmt->pbFormat; in CheckMediaType()
298 if (pmt->cbFormat == m_MediaType.cbFormat && in CheckMediaType()
299 pmt->cbFormat == 0 || in CheckMediaType()
[all …]
Dgstdshowfakesrc.h40 virtual HRESULT CheckMediaType(const CMediaType *pmt);
43 STDMETHOD (SetMediaType) (AM_MEDIA_TYPE *pmt);
/third_party/gstreamer/gstplugins_bad/gst/mpegtsmux/tsmux/
Dtsmux.c1674 if (program->pmt.section) in tsmux_program_free()
1675 gst_mpegts_section_unref (program->pmt.section); in tsmux_program_free()
1774 GstMpegtsPMT *pmt; in tsmux_write_pmt() local
1781 pmt = gst_mpegts_pmt_new (); in tsmux_write_pmt()
1784 pmt->pcr_pid = 0x1FFF; in tsmux_write_pmt()
1786 pmt->pcr_pid = tsmux_stream_get_pid (program->pcr_stream); in tsmux_write_pmt()
1793 g_ptr_array_add (pmt->descriptors, descriptor); in tsmux_write_pmt()
1798 g_ptr_array_add (pmt->descriptors, descriptor); in tsmux_write_pmt()
1804 g_ptr_array_add (pmt->descriptors, descriptor); in tsmux_write_pmt()
1820 g_ptr_array_add (pmt->streams, pmt_stream); in tsmux_write_pmt()
[all …]
/third_party/ffmpeg/tests/fate/
Dmpegts.mak18 FATE_MPEGTS_PROBE-$(call DEMDEC, MPEGTS) += fate-mpegts-probe-pmt-merge
19 fate-mpegts-probe-pmt-merge: SRC = $(TARGET_SAMPLES)/mpegts/pmtchange.ts
20 fate-mpegts-probe-pmt-merge: CMD = run $(PROBE_CODEC_NAME_COMMAND) -merge_pmt_versions 1 -i "$(SRC)"
/third_party/ffmpeg/libavformat/
Dmpegtsenc.c56 MpegTSSection pmt; /* MPEG-2 PMT table context */ member
266 put16(&q, 0xe000 | service->pmt.pid); in mpegts_write_pat()
757 mpegts_write_section1(&service->pmt, PMT_TID, service->sid, ts->tables_version, 0, 0, in mpegts_write_pmt()
884 service->pmt.pid = ts->pmt_start_pid + ts->nb_services; in mpegts_add_service()
895 service->pmt.write_packet = section_write_packet; in mpegts_add_service()
896 service->pmt.opaque = s; in mpegts_add_service()
897 service->pmt.cc = 15; in mpegts_add_service()
898 service->pmt.discontinuity= ts->flags & MPEGTS_FLAG_DISCONT; in mpegts_add_service()
1090 if (ts->services[j]->pmt.pid > LAST_OTHER_PID) { in mpegts_init()
1092 … "Invalid PMT PID %d, must be less than %d\n", ts->services[j]->pmt.pid, LAST_OTHER_PID + 1); in mpegts_init()
[all …]

12