Lines Matching refs:ctx

66     struct SwsContext *ctx;
133 ctx = sws_alloc_context();
134 if (sws_init_context(ctx, NULL, NULL) < 0)
137 ctx->flags |= SWS_FULL_CHR_H_INT;
138 ctx->yuv2rgb_y_offset = rnd();
139 ctx->yuv2rgb_y_coeff = rnd();
140 ctx->yuv2rgb_v2r_coeff = rnd();
141 ctx->yuv2rgb_v2g_coeff = rnd();
142 ctx->yuv2rgb_u2g_coeff = rnd();
143 ctx->yuv2rgb_u2b_coeff = rnd();
149 ctx->dstFormat = planar_fmts[fmi];
163 ff_sws_init_scale(ctx);
164 if (check_func(ctx->yuv2anyX, "yuv2%s_full_X_%d_%d", desc->name, luma_filter_size, dstW)) {
170 call_ref(ctx, luma_filter, luma, luma_filter_size,
173 call_new(ctx, luma_filter, luma, luma_filter_size,
183 bench_new(ctx, luma_filter, luma, luma_filter_size,
190 sws_freeContext(ctx);
198 struct SwsContext *ctx;
229 ctx = sws_alloc_context();
230 if (sws_init_context(ctx, NULL, NULL) < 0)
236 ctx->srcFormat = planar_fmts[fmi];
237 ctx->dstFormat = AV_PIX_FMT_YUVA444P16;
241 ff_sws_init_scale(ctx);
242 if(check_func(ctx->readLumPlanar, "planar_%s_to_y_%d", desc->name, dstW)) {
257 sws_freeContext(ctx);
265 struct SwsContext *ctx;
300 ctx = sws_alloc_context();
301 if (sws_init_context(ctx, NULL, NULL) < 0)
307 ctx->srcFormat = planar_fmts[fmi];
308 ctx->dstFormat = AV_PIX_FMT_YUVA444P16;
312 ff_sws_init_scale(ctx);
313 if(check_func(ctx->readChrPlanar, "planar_%s_to_uv_%d", desc->name, dstW)) {
330 sws_freeContext(ctx);
338 struct SwsContext *ctx;
369 ctx = sws_alloc_context();
370 if (sws_init_context(ctx, NULL, NULL) < 0)
379 ctx->srcFormat = planar_fmts[fmi];
380 ctx->dstFormat = AV_PIX_FMT_YUVA444P16;
384 ff_sws_init_scale(ctx);
385 if(check_func(ctx->readAlpPlanar, "planar_%s_to_a_%d", desc->name, dstW)) {
398 sws_freeContext(ctx);