• Home
  • Raw
  • Download

Lines Matching refs:vi

85     const AVS_VideoInfo *vi;  member
243 st->codecpar->width = avs->vi->width; in avisynth_create_stream_video()
244 st->codecpar->height = avs->vi->height; in avisynth_create_stream_video()
246 st->avg_frame_rate = (AVRational) { avs->vi->fps_numerator, in avisynth_create_stream_video()
247 avs->vi->fps_denominator }; in avisynth_create_stream_video()
249 st->duration = avs->vi->num_frames; in avisynth_create_stream_video()
250 st->nb_frames = avs->vi->num_frames; in avisynth_create_stream_video()
251 avpriv_set_pts_info(st, 32, avs->vi->fps_denominator, avs->vi->fps_numerator); in avisynth_create_stream_video()
253 av_log(s, AV_LOG_TRACE, "avs_is_field_based: %d\n", avs_is_field_based(avs->vi)); in avisynth_create_stream_video()
254 av_log(s, AV_LOG_TRACE, "avs_is_parity_known: %d\n", avs_is_parity_known(avs->vi)); in avisynth_create_stream_video()
261 if (avs_is_field_based(avs->vi)) { in avisynth_create_stream_video()
262 if (avs_is_tff(avs->vi)) { in avisynth_create_stream_video()
265 else if (avs_is_bff(avs->vi)) { in avisynth_create_stream_video()
270 switch (avs->vi->pixel_type) { in avisynth_create_stream_video()
475 "unknown AviSynth colorspace %d\n", avs->vi->pixel_type); in avisynth_create_stream_video()
513 st->codecpar->sample_rate = avs->vi->audio_samples_per_second; in avisynth_create_stream_audio()
514 st->codecpar->channels = avs->vi->nchannels; in avisynth_create_stream_audio()
515 st->duration = avs->vi->num_audio_samples; in avisynth_create_stream_audio()
516 avpriv_set_pts_info(st, 64, 1, avs->vi->audio_samples_per_second); in avisynth_create_stream_audio()
518 switch (avs->vi->sample_type) { in avisynth_create_stream_audio()
536 "unknown AviSynth sample type %d\n", avs->vi->sample_type); in avisynth_create_stream_audio()
550 if (avs_has_video(avs->vi)) { in avisynth_create_stream()
558 if (avs_has_audio(avs->vi)) { in avisynth_create_stream()
604 avs->vi = avs_library.avs_get_video_info(avs->clip); in avisynth_open_file()
658 if (avs->curr_frame >= avs->vi->num_frames) in avisynth_read_packet_video()
666 bits = avs_library.avs_bits_per_pixel(avs->vi); in avisynth_read_packet_video()
670 pkt->size = (((int64_t)avs->vi->width * in avisynth_read_packet_video()
671 (int64_t)avs->vi->height) * bits) / 8; in avisynth_read_packet_video()
702 if (avs_library.avs_is_color_space(avs->vi, AVS_CS_BGR) || in avisynth_read_packet_video()
703 avs_library.avs_is_color_space(avs->vi, AVS_CS_BGR48) || in avisynth_read_packet_video()
704 avs_library.avs_is_color_space(avs->vi, AVS_CS_BGR64)) { in avisynth_read_packet_video()
727 if (avs->curr_sample >= avs->vi->num_audio_samples) in avisynth_read_packet_audio()
730 fps.num = avs->vi->fps_numerator; in avisynth_read_packet_audio()
731 fps.den = avs->vi->fps_denominator; in avisynth_read_packet_audio()
732 samplerate.num = avs->vi->audio_samples_per_second; in avisynth_read_packet_audio()
735 if (avs_has_video(avs->vi)) { in avisynth_read_packet_audio()
736 if (avs->curr_frame < avs->vi->num_frames) in avisynth_read_packet_audio()
752 if (avs->curr_sample + samples > avs->vi->num_audio_samples) in avisynth_read_packet_audio()
753 samples = avs->vi->num_audio_samples - avs->curr_sample; in avisynth_read_packet_audio()
761 pkt->size = avs_bytes_per_channel_sample(avs->vi) * in avisynth_read_packet_audio()
762 samples * avs->vi->nchannels; in avisynth_read_packet_audio()
817 if (ret == AVERROR_EOF && avs_has_audio(avs->vi)) { in avisynth_read_packet()
823 if (ret == AVERROR_EOF && avs_has_video(avs->vi)) { in avisynth_read_packet()
852 fps = (AVRational) { avs->vi->fps_numerator, in avisynth_read_seek()
853 avs->vi->fps_denominator }; in avisynth_read_seek()
854 samplerate = (AVRational) { avs->vi->audio_samples_per_second, 1 }; in avisynth_read_seek()
859 if ((timestamp >= avs->vi->num_frames) || in avisynth_read_seek()
864 if (avs_has_audio(avs->vi)) in avisynth_read_seek()
867 if ((timestamp >= avs->vi->num_audio_samples) || (timestamp < 0)) in avisynth_read_seek()
870 if (avs_has_video(avs->vi)) { in avisynth_read_seek()