Lines Matching defs:index

94     { "use_odml", "use odml index", offsetof(AVIContext, use_odml), AV_OPT_TYPE_BOOL, {.i64 = 1}, -1, 1, AV_OPT_FLAG_DECODING_PARAM},
216 av_log(s, AV_LOG_ERROR, "ODML index invalid\n");
280 av_log(s, AV_LOG_ERROR, "Failed to restore position after reading index\n");
469 if (maxpos < av_rescale(avi->io_fsize, 9, 10)) // index does not cover the whole file
1089 "Non-interleaved AVI without index, switching to interleaved\n");
1208 pkt->stream_index = sub_st->index;
1540 int index;
1542 index = av_index_search_timestamp(st, ast->frame_offset, AVSEEK_FLAG_ANY);
1543 e = &sti->index_entries[index];
1545 if (index >= 0 && e->timestamp == ast->frame_offset) {
1546 if (index == sti->nb_index_entries-1) {
1611 unsigned int index, tag, flags, len, first_packet = 1;
1645 index = ((tag & 0xff) - '0') * 10;
1646 index += (tag >> 8 & 0xff) - '0';
1647 if (index >= s->nb_streams)
1649 st = s->streams[index];
1652 /* Skip 'xxpc' palette change entries in the index until a logic
1680 for (index = 0; index < s->nb_streams; index++) {
1681 FFStream *const sti = ffstream(s->streams[index]);
1689 /* Scan the index and consider any file with streams more than
1851 int i, index;
1862 /* we only load the index on demand */
1871 index = av_index_search_timestamp(st,
1874 if (index < 0) {
1876 av_log(s, AV_LOG_DEBUG, "Failed to find timestamp %"PRId64 " in index %"PRId64 " .. %"PRId64 "\n",
1884 pos = sti->index_entries[index].pos;
1885 timestamp = sti->index_entries[index].timestamp / FFMAX(ast->sample_size, 1);
1888 timestamp, index, sti->index_entries[index].timestamp);
1924 index = av_index_search_timestamp(st2,
1932 if (index < 0)
1933 index = 0;
1934 ast2->seek_pos = sti2->index_entries[index].pos;
1945 index = av_index_search_timestamp(
1949 if (index < 0)
1950 index = 0;
1951 while (!avi->non_interleaved && index > 0 && sti2->index_entries[index-1].pos >= pos_min)
1952 index--;
1953 ast2->frame_offset = sti2->index_entries[index].timestamp;