Lines Matching defs:body_sid
101 int body_sid;
181 int body_sid;
244 int body_sid;
272 int body_sid;
278 int body_sid;
470 static int mxf_get_stream_index(AVFormatContext *s, KLVPacket *klv, int body_sid)
477 if (track && (!body_sid || !track->body_sid || track->body_sid == body_sid) && !memcmp(klv->key + sizeof(mxf_essence_element_key), track->track_number, sizeof(track->track_number)))
504 return mxf->partitions[a].body_sid;
628 int body_sid;
650 body_sid = find_body_sid_by_absolute_offset(mxf, klv->offset);
651 index = mxf_get_stream_index(s, klv, body_sid);
781 partition->body_sid = avio_rb32(pb);
834 partition->index_sid, partition->body_sid);
1195 essence_data->body_sid = avio_rb32(pb);
1247 segment->body_sid = avio_rb32(pb);
1248 av_log(NULL, AV_LOG_TRACE, "BodySID %d\n", segment->body_sid);
1757 s->body_sid > last_body_sid ||
1758 s->body_sid == last_body_sid && s->index_sid > last_index_sid ||
1759 s->body_sid == last_body_sid && s->index_sid == last_index_sid && s->index_start_position > last_index_start) &&
1761 s->body_sid < best_body_sid ||
1762 s->body_sid == best_body_sid && s->index_sid < best_index_sid ||
1763 s->body_sid == best_body_sid && s->index_sid == best_index_sid && s->index_start_position < best_index_start ||
1764 s->body_sid == best_body_sid && s->index_sid == best_index_sid && s->index_start_position == best_index_start && s->index_duration > best_index_duration)) {
1766 best_body_sid = s->body_sid;
1791 static int mxf_absolute_bodysid_offset(MXFContext *mxf, int body_sid, int64_t offset, int64_t *offset_out, MXFPartition **partition_out)
1805 while (m < b && mxf->partitions[m].body_sid != body_sid)
1826 offset, body_sid);
1834 static int64_t mxf_essence_container_end(MXFContext *mxf, int body_sid)
1839 if (p->body_sid != body_sid)
1885 return mxf_absolute_bodysid_offset(mxf, index_table->body_sid, offset_temp, offset_out, partition_out);
2041 else if (sorted_segments[i-1]->body_sid != sorted_segments[i]->body_sid) {
2084 t->body_sid = sorted_segments[i]->body_sid;
2683 source_track->body_sid = essence_data->body_sid;
3017 if (track1 && track1->body_sid) {
3020 if (track2 && track1->body_sid == track2->body_sid && track1->wrapping != track2->wrapping) {
3027 "with different wrapping\n", i, j, track1->body_sid);
3430 static MXFWrappingScheme mxf_get_wrapping_by_body_sid(AVFormatContext *s, int body_sid)
3434 if (track && track->body_sid == body_sid && track->wrapping != UnknownWrapped)
3452 if (!p->body_sid)
3459 wrapping = (mxf->op == OPAtom) ? ClipWrapped : mxf_get_wrapping_by_body_sid(s, p->body_sid);
3543 if (s->body_sid == track->body_sid)
3551 if (mxf->partitions[i].body_sid != track->body_sid)
3580 /* Make sure we have nonzero unique index_sid, body_sid will be ok, because
3583 track->index_sid = track->body_sid;
3592 segment->body_sid = p->body_sid;
3835 (next_ofs = mxf_essence_container_end(mxf, t->body_sid)) <= 0) {
3947 int body_sid = find_body_sid_by_absolute_offset(mxf, klv.offset);
3948 int index = mxf_get_stream_index(s, &klv, body_sid);