Lines Matching refs:ctx
63 struct SwsContext *ctx;
91 ctx = sws_alloc_context();
92 if (sws_init_context(ctx, NULL, NULL) < 0)
95 ff_sws_init_scale(ctx);
109 if (check_func(ctx->yuv2planeX, "yuv2yuvX_%d_%d_%d", filter_sizes[fsi], osi, dstW)){
119 if(ctx->use_mmx_vfilter){
132 sws_freeContext(ctx);
156 struct SwsContext *ctx;
177 ctx = sws_alloc_context();
178 if (sws_init_context(ctx, NULL, NULL) < 0)
188 ctx->srcBpc = hscale_pairs[hpi][0];
189 ctx->dstBpc = hscale_pairs[hpi][1];
190 ctx->hLumFilterSize = ctx->hChrFilterSize = width;
222 ctx->dstW = ctx->chrDstW = input_sizes[dstWi];
223 ff_sws_init_scale(ctx);
226 ff_shuffle_filter_coefficients(ctx, filterPosAvx, width, filterAvx2, SRC_PIXELS);
228 if (check_func(ctx->hcScale, "hscale_%d_to_%d__fs_%d_dstW_%d", ctx->srcBpc, ctx->dstBpc + 1, width, ctx->dstW)) {
232 call_ref(NULL, dst0, ctx->dstW, src, filter, filterPos, width);
233 call_new(NULL, dst1, ctx->dstW, src, filterAvx2, filterPosAvx, width);
234 if (memcmp(dst0, dst1, ctx->dstW * sizeof(dst0[0])))
236 bench_new(NULL, dst0, ctx->dstW, src, filter, filterPosAvx, width);
241 sws_freeContext(ctx);