Lines Matching refs:ctx
238 struct vidtv_s302m_ctx *ctx = e->ctx;
245 if (ctx->last_duration <= 0) {
249 ctx->last_tone = beethoven_fur_elise[e->src_buf_offset].note;
250 ctx->last_duration = beethoven_fur_elise[e->src_buf_offset].duration *
253 ctx->note_offset = 0;
255 ctx->last_duration--;
259 if (!ctx->last_tone)
262 pos = (2 * PI * ctx->note_offset * ctx->last_tone) / S302M_SAMPLING_RATE_HZ;
263 ctx->note_offset++;
293 struct vidtv_s302m_ctx *ctx = e->ctx;
299 u8 vucf = ctx->frame_index == 0 ? 0x10 : 0;
321 ctx->frame_index++;
322 if (ctx->frame_index >= S302M_BLOCK_SZ)
323 ctx->frame_index = 0;
349 struct vidtv_s302m_ctx *ctx = e->ctx;
384 ctx->au_count++;
392 struct vidtv_s302m_ctx *ctx = e->ctx;
415 e->access_units->pts = (ctx->au_count * FF_S302M_DEFAULT_PTS_INCREMENT) +
445 struct vidtv_s302m_ctx *ctx;
472 ctx = kzalloc(priv_sz, GFP_KERNEL);
473 if (!ctx)
476 e->ctx = ctx;
477 ctx->last_duration = 0;
522 kfree(e->ctx);