Lines Matching defs:sws
86 struct SwsContext *sws;
207 s->sws = sws_alloc_context();
208 if (!s->sws) {
216 av_opt_set_int(s->sws, "srcw", w, 0);
217 av_opt_set_int(s->sws, "srch", h, 0);
218 av_opt_set_int(s->sws, "src_format", in->format, 0);
219 av_opt_set_int(s->sws, "dstw", outlink->w, 0);
220 av_opt_set_int(s->sws, "dsth", outlink->h, 0);
221 av_opt_set_int(s->sws, "dst_format", outlink->format, 0);
222 av_opt_set_int(s->sws, "sws_flags", SWS_BICUBIC, 0);
224 if ((ret = sws_init_context(s->sws, NULL, NULL)) < 0)
227 sws_scale(s->sws, (const uint8_t *const *)&input, in->linesize, 0, h, out->data, out->linesize);
236 sws_freeContext(s->sws);
237 s->sws = NULL;
246 sws_freeContext(s->sws);
247 s->sws = NULL;
276 sws_freeContext(s->sws);
277 s->sws = NULL;