/third_party/gstreamer/gstplugins_bad/gst/mxf/ |
D | mxfalaw.c | 186 MXFFraction edit_rate; member 196 gst_util_uint64_scale (md->rate, md->edit_rate.d, md->edit_rate.n); in mxf_alaw_write_func() 198 md->error += (md->edit_rate.d * md->rate) % (md->edit_rate.n); in mxf_alaw_write_func() 199 if (md->error >= md->edit_rate.n) { in mxf_alaw_write_func() 284 MXFMetadataTimelineTrack * track, MXFFraction * edit_rate) in mxf_alaw_get_edit_rate() argument 298 if (((gdouble) tmp->edit_rate.n) / ((gdouble) tmp->edit_rate.d) < min) { in mxf_alaw_get_edit_rate() 299 min = ((gdouble) tmp->edit_rate.n) / ((gdouble) tmp->edit_rate.d); in mxf_alaw_get_edit_rate() 300 memcpy (edit_rate, &tmp->edit_rate, sizeof (MXFFraction)); in mxf_alaw_get_edit_rate() 306 edit_rate->n = 10; in mxf_alaw_get_edit_rate() 307 edit_rate->d = 1; in mxf_alaw_get_edit_rate() [all …]
|
D | mxfdemux.c | 834 if (track->edit_rate.n <= 0 || track->edit_rate.d <= 0) { in gst_mxf_demux_update_essence_tracks() 858 common_rate = track->edit_rate; in gst_mxf_demux_update_essence_tracks() 859 } else if (common_rate.n * track->edit_rate.d != in gst_mxf_demux_update_essence_tracks() 860 common_rate.d * track->edit_rate.n) { in gst_mxf_demux_update_essence_tracks() 1014 if (gst_util_uint64_scale (GST_SECOND, track->edit_rate.d, in gst_mxf_demux_update_essence_tracks() 1015 track->edit_rate.n) < 10 * GST_MSECOND) { in gst_mxf_demux_update_essence_tracks() 1020 gst_util_uint64_scale (25 * GST_MSECOND, track->edit_rate.n, in gst_mxf_demux_update_essence_tracks() 1021 track->edit_rate.d * GST_SECOND); in gst_mxf_demux_update_essence_tracks() 1138 track->track_name, mtrack->edit_rate.n, mtrack->edit_rate.d, in gst_mxf_demux_show_topology() 1194 track->track_name, mtrack->edit_rate.n, mtrack->edit_rate.d, in gst_mxf_demux_show_topology() [all …]
|
D | mxfmux.c | 712 caps, pad->mapping_data, buffer, p, track, &track->edit_rate); in gst_mxf_mux_create_metadata() 824 buffer, source_package, source_track, &track->edit_rate); in gst_mxf_mux_create_metadata() 829 if (track->edit_rate.n != source_track->edit_rate.n || in gst_mxf_mux_create_metadata() 830 track->edit_rate.d != source_track->edit_rate.d) { in gst_mxf_mux_create_metadata() 831 memcpy (&source_track->edit_rate, &track->edit_rate, in gst_mxf_mux_create_metadata() 835 if (track->edit_rate.d <= 0 || track->edit_rate.n <= 0) { in gst_mxf_mux_create_metadata() 842 ((gdouble) track->edit_rate.n) / ((gdouble) track->edit_rate.d)) { in gst_mxf_mux_create_metadata() 844 ((gdouble) track->edit_rate.n) / ((gdouble) track->edit_rate.d); in gst_mxf_mux_create_metadata() 845 memcpy (&min_edit_rate, &track->edit_rate, sizeof (MXFFraction)); in gst_mxf_mux_create_metadata() 903 memcpy (&track->edit_rate, &min_edit_rate, sizeof (MXFFraction)); in gst_mxf_mux_create_metadata() [all …]
|
D | mxfaes-bwf.c | 1490 MXFFraction edit_rate; member 1500 gst_util_uint64_scale (md->rate, md->edit_rate.d, md->edit_rate.n); in mxf_bwf_write_func() 1502 md->error += (md->edit_rate.d * md->rate) % (md->edit_rate.n); in mxf_bwf_write_func() 1503 if (md->error >= md->edit_rate.n) { in mxf_bwf_write_func() 1589 MXFMetadataTimelineTrack * track, MXFFraction * edit_rate) in mxf_bwf_get_edit_rate() argument 1603 if (((gdouble) tmp->edit_rate.n) / ((gdouble) tmp->edit_rate.d) < min) { in mxf_bwf_get_edit_rate() 1604 min = ((gdouble) tmp->edit_rate.n) / ((gdouble) tmp->edit_rate.d); in mxf_bwf_get_edit_rate() 1605 memcpy (edit_rate, &tmp->edit_rate, sizeof (MXFFraction)); in mxf_bwf_get_edit_rate() 1611 edit_rate->n = 10; in mxf_bwf_get_edit_rate() 1612 edit_rate->d = 1; in mxf_bwf_get_edit_rate() [all …]
|
D | mxfdv-dif.c | 242 MXFMetadataTimelineTrack * track, MXFFraction * edit_rate) in mxf_dv_dif_get_edit_rate() argument 244 edit_rate->n = a->sample_rate.n; in mxf_dv_dif_get_edit_rate() 245 edit_rate->d = a->sample_rate.d; in mxf_dv_dif_get_edit_rate()
|
D | mxfvc3.c | 255 MXFMetadataTimelineTrack * track, MXFFraction * edit_rate) in mxf_vc3_get_edit_rate() argument 257 edit_rate->n = a->sample_rate.n; in mxf_vc3_get_edit_rate() 258 edit_rate->d = a->sample_rate.d; in mxf_vc3_get_edit_rate()
|
D | mxfjpeg2000.c | 336 MXFMetadataTimelineTrack * track, MXFFraction * edit_rate) in mxf_jpeg2000_get_edit_rate() argument 338 edit_rate->n = a->sample_rate.n; in mxf_jpeg2000_get_edit_rate() 339 edit_rate->d = a->sample_rate.d; in mxf_jpeg2000_get_edit_rate()
|
D | mxfvanc.c | 407 MXFMetadataTimelineTrack * track, MXFFraction * edit_rate) in mxf_vanc_get_edit_rate() argument 416 edit_rate->n = fps_n; in mxf_vanc_get_edit_rate() 417 edit_rate->d = fps_d; in mxf_vanc_get_edit_rate()
|
D | mxfmpeg.c | 1054 MXFMetadataTimelineTrack * track, MXFFraction * edit_rate) in mxf_mpeg_audio_get_edit_rate() argument 1058 edit_rate->n = md->rate; in mxf_mpeg_audio_get_edit_rate() 1059 edit_rate->d = md->spf; in mxf_mpeg_audio_get_edit_rate() 1366 MXFMetadataTimelineTrack * track, MXFFraction * edit_rate) in mxf_mpeg_video_get_edit_rate() argument 1368 (*edit_rate).n = a->sample_rate.n; in mxf_mpeg_video_get_edit_rate() 1369 (*edit_rate).d = a->sample_rate.d; in mxf_mpeg_video_get_edit_rate()
|
D | mxfessence.h | 49 … *buf, MXFMetadataSourcePackage *package, MXFMetadataTimelineTrack *track, MXFFraction *edit_rate);
|
D | mxfup.c | 635 MXFMetadataTimelineTrack * track, MXFFraction * edit_rate) in mxf_up_get_edit_rate() argument 637 edit_rate->n = a->sample_rate.n; in mxf_up_get_edit_rate() 638 edit_rate->d = a->sample_rate.d; in mxf_up_get_edit_rate()
|
D | mxfmetadata.h | 550 MXFFraction edit_rate; member
|
D | mxfmetadata.c | 2645 if (!mxf_fraction_parse (&self->edit_rate, tag_data, tag_size)) in mxf_metadata_timeline_track_handle_tag() 2647 GST_DEBUG (" edit rate = %d/%d", self->edit_rate.n, self->edit_rate.d); in mxf_metadata_timeline_track_handle_tag() 2682 self->edit_rate.n, self->edit_rate.d, MXF_QUARK (ORIGIN), G_TYPE_INT64, in mxf_metadata_timeline_track_to_structure() 2703 GST_WRITE_UINT32_BE (t->data, self->edit_rate.n); in mxf_metadata_timeline_track_write_tags() 2704 GST_WRITE_UINT32_BE (t->data + 4, self->edit_rate.d); in mxf_metadata_timeline_track_write_tags()
|
/third_party/ffmpeg/libavformat/ |
D | mxfdec.c | 174 AVRational edit_rate; member 1004 track->edit_rate.num = avio_rb32(pb); in mxf_read_track() 1005 track->edit_rate.den = avio_rb32(pb); in mxf_read_track() 1660 …Context *mxf, MXFIndexTable *index_table, int64_t edit_unit, AVRational edit_rate, int64_t *edit_u… in mxf_edit_unit_absolute_offset() argument 1665 edit_unit = av_rescale_q(edit_unit, index_table->segments[0]->index_edit_rate, edit_rate); in mxf_edit_unit_absolute_offset() 1691 *edit_unit_out = av_rescale_q(edit_unit, edit_rate, s->index_edit_rate); in mxf_edit_unit_absolute_offset() 1909 t->segments[k]->index_edit_rate = mxf_track->edit_rate; in mxf_compute_index_tables() 2181 if (physical_track->edit_rate.num <= 0 || in mxf_parse_physical_source_package() 2182 physical_track->edit_rate.den <= 0) { in mxf_parse_physical_source_package() 2186 physical_track->edit_rate.num, in mxf_parse_physical_source_package() [all …]
|