Lines Matching refs:vs
82 VSContext *vs = s->priv_data; in read_close_vs() local
84 if (vs->outnode) in read_close_vs()
85 vs->vsapi->freeNode(vs->outnode); in read_close_vs()
87 av_buffer_unref(&vs->vss_state); in read_close_vs()
89 vs->vsapi = NULL; in read_close_vs()
90 vs->vscore = NULL; in read_close_vs()
91 vs->outnode = NULL; in read_close_vs()
174 VSContext *vs = s->priv_data; in read_header_vs() local
188 vs->vss_state = av_buffer_create(NULL, 0, free_vss_state, vss_state, 0); in read_header_vs()
189 if (!vs->vss_state) { in read_header_vs()
208 if (sz < 0 || sz > vs->max_script_size) { in read_header_vs()
211 sz = vs->max_script_size; in read_header_vs()
231 vs->max_script_size); in read_header_vs()
244 vs->vsapi = vsscript_getVSApi(); in read_header_vs()
245 vs->vscore = vsscript_getCore(vss_state->vss); in read_header_vs()
247 vs->outnode = vsscript_getOutput(vss_state->vss, 0); in read_header_vs()
248 if (!vs->outnode) { in read_header_vs()
260 info = vs->vsapi->getVideoInfo(vs->outnode); in read_header_vs()
269 vs->is_cfr = 1; in read_header_vs()
282 st->codecpar->format = match_pixfmt(info->format, vs->c_order); in read_header_vs()
311 VSContext *vs = s->priv_data; in get_vs_prop_int() local
315 res = vs->vsapi->propGetInt(map, name, 0, &err); in get_vs_prop_int()
339 VSContext *vs = s->priv_data; in read_packet_vs() local
344 const VSVideoInfo *info = vs->vsapi->getVideoInfo(vs->outnode); in read_packet_vs()
352 if (vs->current_frame >= info->numFrames) in read_packet_vs()
369 vsframe = vs->vsapi->getFrame(vs->current_frame, vs->outnode, vserr, sizeof(vserr)); in read_packet_vs()
376 ref_data->vsapi = vs->vsapi; in read_packet_vs()
379 ref_data->vss_state = av_buffer_ref(vs->vss_state); in read_packet_vs()
385 props = vs->vsapi->getFramePropsRO(vsframe); in read_packet_vs()
409 av_assert0(vs->vsapi->getFrameWidth(vsframe, 0) == frame->width); in read_packet_vs()
410 av_assert0(vs->vsapi->getFrameHeight(vsframe, 0) == frame->height); in read_packet_vs()
415 int p = vs->c_order[i]; in read_packet_vs()
418 frame->data[i] = (void *)vs->vsapi->getReadPtr(vsframe, p); in read_packet_vs()
419 frame->linesize[i] = vs->vsapi->getStride(vsframe, p); in read_packet_vs()
450 if (vs->is_cfr) in read_packet_vs()
451 pkt->pts = vs->current_frame; in read_packet_vs()
453 vs->current_frame++; in read_packet_vs()
463 VSContext *vs = s->priv_data; in read_seek_vs() local
465 if (!vs->is_cfr) in read_seek_vs()
468 vs->current_frame = FFMIN(FFMAX(0, ts), s->streams[0]->duration); in read_seek_vs()