• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/ffmpeg-0.5.1/libavformat/

Lines Matching defs:ast

125     AVIStream *ast;
138 ast = st->priv_data;
174 av_add_index_entry(st, pos, ast->cum_len / FFMAX(1, ast->sample_size), len, 0, key ? AVINDEX_KEYFRAME : 0);
176 if(ast->sample_size)
177 ast->cum_len += len;
179 ast->cum_len ++;
210 AVIStream *ast = st->priv_data;
212 int max= ast->sample_size;
215 if(n != 1 || ast->sample_size==0)
225 av_add_index_entry(st, pos+j, ts + j/ast->sample_size, FFMIN(max, size-j), 0, AVINDEX_KEYFRAME);
252 AVIStream *ast = NULL;
332 ast = av_mallocz(sizeof(AVIStream));
333 if (!ast)
335 st->priv_data = ast;
358 ast = s->streams[0]->priv_data;
367 s->streams[0]->priv_data = ast;
369 ast->scale = get_le32(pb);
370 ast->rate = get_le32(pb);
374 if (ast->scale > 0 && ast->rate > 0 && dv_dur > 0) {
376 s->duration = av_rescale(dv_dur, ast->scale, ast->rate);
395 ast->scale = get_le32(pb);
396 ast->rate = get_le32(pb);
397 if(!(ast->scale && ast->rate)){
398 av_log(s, AV_LOG_WARNING, "scale/rate is %u/%u which is invalid. (This file has been generated by broken software.)\n", ast->scale, ast->rate);
400 ast->rate = 1000000;
401 ast->scale = frame_period;
403 ast->rate = 25;
404 ast->scale = 1;
407 av_set_pts_info(st, 64, ast->scale, ast->rate);
409 ast->cum_len=get_le32(pb); /* start */
416 ast->sample_size = get_le32(pb); /* sample ssize */
417 ast->cum_len *= FFMAX(1, ast->sample_size);
418 // av_log(s, AV_LOG_DEBUG, "%d %d %d %d\n", ast->rate, ast->scale, ast->start, ast->sample_size);
424 ast->sample_size = 0;
440 ast->frame_offset= ast->cum_len;
522 if(ast->sample_size && st->codec->block_align && ast->sample_size != st->codec->block_align){
523 av_log(s, AV_LOG_WARNING, "sample size (%d) != block align (%d)\n", ast->sample_size, st->codec->block_align);
524 ast->sample_size= st->codec->block_align;
673 AVIStream *ast = st->priv_data;
674 int64_t ts= ast->frame_offset;
676 if(ast->sample_size)
677 ts /= ast->sample_size;
680 // av_log(s, AV_LOG_DEBUG, "%"PRId64" %d/%d %"PRId64"\n", ts, st->time_base.num, st->time_base.den, ast->frame_offset);
720 AVIStream *ast= st->priv_data;
723 if(ast->sample_size <= 1) // minorityreport.AVI block_align=1024 sample_size=1 IMA-ADPCM
725 else if(ast->sample_size < 32)
726 size= 64*ast->sample_size;
728 size= ast->sample_size;
730 if(size > ast->remaining)
731 size= ast->remaining;
737 if(ast->has_pal && pkt->data && pkt->size<(unsigned)INT_MAX/2){
740 ast->has_pal=0;
743 memcpy(pkt->data + pkt->size - 4*256, ast->pal, 4*256);
756 pkt->dts = ast->frame_offset;
757 // pkt->dts += ast->start;
758 if(ast->sample_size)
759 pkt->dts /= ast->sample_size;
760 //av_log(s, AV_LOG_DEBUG, "dts:%"PRId64" offset:%"PRId64" %d/%d smpl_siz:%d base:%d st:%d size:%d\n", pkt->dts, ast->frame_offset, ast->scale, ast->rate, ast->sample_size, AV_TIME_BASE, avi->stream_index, size);
771 if(index >= 0 && e->timestamp == ast->frame_offset){
778 if(ast->sample_size)
779 ast->frame_offset += pkt->size;
781 ast->frame_offset++;
783 ast->remaining -= size;
784 if(!ast->remaining){
786 ast->packet_size= 0;
825 AVIStream *ast;
827 ast = st->priv_data;
837 && ast->prefix == 'd'*256+'c'
842 ast = ast1;
851 if(ast->sample_size) ast->frame_offset += pkt->size;
852 else ast->frame_offset++;
864 ast->pal[k] = get_be32(pb)>>8;// b + (g << 8) + (r << 16);
865 ast->has_pal= 1;
867 } else if( ((ast->prefix_count<5 || sync+9 > i) && d[2]<128 && d[3]<128) ||
868 d[2]*256+d[3] == ast->prefix /*||
873 if(d[2]*256+d[3] == ast->prefix)
874 ast->prefix_count++;
876 ast->prefix= d[2]*256+d[3];
877 ast->prefix_count= 0;
881 ast->packet_size= size + 8;
882 ast->remaining= size;
887 av_add_index_entry(st, pos, ast->frame_offset / FFMAX(1, ast->sample_size), size, 0, AVINDEX_KEYFRAME);
906 AVIStream *ast;
933 ast = st->priv_data;
936 av_log(s, AV_LOG_DEBUG, "%d cum_len=%"PRId64"\n", len, ast->cum_len);
944 av_add_index_entry(st, pos, ast->cum_len / FFMAX(1, ast->sample_size), len, 0, (flags&AVIIF_INDEX) ? AVINDEX_KEYFRAME : 0);
945 if(ast->sample_size)
946 ast->cum_len += len;
948 ast->cum_len ++;