• Home
  • Raw
  • Download

Lines Matching refs:context_priv

195    XvMCContextPrivate *context_priv;  in XvMCCreateContext()  local
227 context_priv = CALLOC(1, sizeof(XvMCContextPrivate)); in XvMCCreateContext()
228 if (!context_priv) in XvMCCreateContext()
238 FREE(context_priv); in XvMCCreateContext()
246 FREE(context_priv); in XvMCCreateContext()
258 context_priv->decoder = pipe->create_video_codec(pipe, &templat); in XvMCCreateContext()
260 if (!context_priv->decoder) { in XvMCCreateContext()
264 FREE(context_priv); in XvMCCreateContext()
268 if (!vl_compositor_init(&context_priv->compositor, pipe)) { in XvMCCreateContext()
270 context_priv->decoder->destroy(context_priv->decoder); in XvMCCreateContext()
273 FREE(context_priv); in XvMCCreateContext()
277 if (!vl_compositor_init_state(&context_priv->cstate, pipe)) { in XvMCCreateContext()
279 vl_compositor_cleanup(&context_priv->compositor); in XvMCCreateContext()
280 context_priv->decoder->destroy(context_priv->decoder); in XvMCCreateContext()
283 FREE(context_priv); in XvMCCreateContext()
288 context_priv->color_standard = in XvMCCreateContext()
291 context_priv->procamp = vl_default_procamp; in XvMCCreateContext()
295 context_priv->color_standard, in XvMCCreateContext()
296 &context_priv->procamp, true, &csc in XvMCCreateContext()
298 vl_compositor_set_csc_matrix(&context_priv->cstate, (const vl_csc_matrix *)&csc, 1.0f, 0.0f); in XvMCCreateContext()
300 context_priv->vscreen = vscreen; in XvMCCreateContext()
301 context_priv->pipe = pipe; in XvMCCreateContext()
302 context_priv->subpicture_max_width = subpic_max_w; in XvMCCreateContext()
303 context_priv->subpicture_max_height = subpic_max_h; in XvMCCreateContext()
311 context->privData = context_priv; in XvMCCreateContext()
323 XvMCContextPrivate *context_priv; in XvMCDestroyContext() local
332 context_priv = context->privData; in XvMCDestroyContext()
333 context_priv->decoder->destroy(context_priv->decoder); in XvMCDestroyContext()
334 vl_compositor_cleanup_state(&context_priv->cstate); in XvMCDestroyContext()
335 vl_compositor_cleanup(&context_priv->compositor); in XvMCDestroyContext()
336 context_priv->pipe->destroy(context_priv->pipe); in XvMCDestroyContext()
337 context_priv->vscreen->destroy(context_priv->vscreen); in XvMCDestroyContext()
338 FREE(context_priv); in XvMCDestroyContext()