Lines Matching defs:ctx
28 int ff_hap_set_chunk_count(HapContext *ctx, int count, int first_in_frame)
31 if (first_in_frame == 1 && ctx->chunk_count != count) {
32 int ret = av_reallocp_array(&ctx->chunks, count, sizeof(HapChunk));
34 ret = av_reallocp_array(&ctx->chunk_results, count, sizeof(int));
36 ctx->chunk_count = 0;
38 ctx->chunk_count = count;
40 } else if (ctx->chunk_count != count) {
50 av_cold void ff_hap_free_context(HapContext *ctx)
52 av_freep(&ctx->tex_buf);
53 av_freep(&ctx->chunks);
54 av_freep(&ctx->chunk_results);