Lines Matching defs:index
275 /* decoded index table */
279 int nb_ptses; /* number of PTSes or total duration of index */
627 int index;
651 index = mxf_get_stream_index(s, klv, body_sid);
652 if (index < 0)
680 pkt->stream_index = index;
916 // use the same Instance UID for different index tables...
1865 int64_t index = edit_unit - s->index_start_position;
1868 offset_temp += s->edit_unit_byte_count * index;
1871 index *= 2; /* Avid index */
1873 if (index < 0 || index >= s->nb_index_entries) {
1879 offset_temp = s->stream_offset_entries[index];
1978 index_delta = 2; /* Avid index */
1985 int index = x + offset;
1996 if (index < 0 || index >= index_table->nb_ptses) {
1998 "index entry %i + TemporalOffset %i = %i, which is out of bounds\n",
1999 x, offset, index);
2004 index_table->ptses[index] = x;
2009 /* calculate the fake index table in display order */
2023 * Sorts and collects index table segments into index tables.
2033 av_log(mxf->fc, AV_LOG_WARNING, "broken or empty index\n");
2051 av_log(mxf->fc, AV_LOG_ERROR, "failed to allocate index tables\n");
2056 /* distribute sorted segments to index tables */
2249 this return the first components with a valid Descriptor typically index 0 */
2546 "falling back to unknown channel layout\n", st->index, i);
2554 buf, st->index);
2559 "falling back to unknown channel layout\n", st->index);
2740 material_track->edit_rate.den, st->index);
2754 av_log(mxf->fc, AV_LOG_INFO, "source track %d: stream %d, no descriptor found\n", source_track->track_id, st->index);
2762 av_log(mxf->fc, AV_LOG_INFO, "wrapping of stream %d is unknown\n", st->index);
2946 st->index);
3509 /* expect PCM with exactly one index table segment and a small (< 32) EUBC */
3572 av_log(mxf->fc, AV_LOG_WARNING, "guessing index for stream %d using edit unit byte count %d\n", st->index, edit_unit_byte_count);
3581 * using the same SID for index is forbidden in MXF. */
3737 /* we need to do this before computing the index tables
3750 av_log(mxf->fc, AV_LOG_INFO, "got %i index tables - only the first one (IndexSID %i) will be used\n",
3753 av_log(mxf->fc, AV_LOG_ERROR, "cannot demux OPAtom without an index\n");
3812 st->index, time_base.num, time_base.den,
3845 av_log(mxf->fc, AV_LOG_ERROR, "cannot find current edit unit for stream %d, invalid index?\n", st->index);
3850 av_log(mxf->fc, AV_LOG_ERROR, "failed to find next track edit unit in stream %d\n", st->index);
3856 av_log(mxf->fc, AV_LOG_WARNING, "edit unit sync lost on stream %d, jumping from %"PRId64" to %"PRId64"\n", st->index, edit_unit, new_edit_unit);
3889 /* see if we have an index table to derive timestamps from */
3948 int index = mxf_get_stream_index(s, &klv, body_sid);
3953 if (index < 0) {
3955 "error getting stream index %"PRIu32"\n",
3960 st = s->streams[index];
3963 if (s->streams[index]->discard == AVDISCARD_ALL)
3975 avpriv_request_sample(s, "Huge KLV without proper index in non-frame wrapped essence");
3997 ret = mxf_get_d10_aes3_packet(s->pb, s->streams[index],
4005 s->streams[index]->codecpar->codec_id == AV_CODEC_ID_EIA_608) {
4006 ret = mxf_get_eia608_packet(s, s->streams[index], pkt, klv.length);
4018 pkt->stream_index = index;
4136 /* If the first index table does not belong to the stream, then find a stream which does belong to the index table */
4165 /* behave as if we have a proper index */
4168 /* get the stored order index from the display order index */