Lines Matching refs:context_priv
78 XvMCContextPrivate *context_priv; in XvMCSetAttribute() local
87 context_priv = context->privData; in XvMCSetAttribute()
94 context_priv->procamp.brightness = value / 1000.0f; in XvMCSetAttribute()
96 context_priv->procamp.contrast = value / 1000.0f + 1.0f; in XvMCSetAttribute()
98 context_priv->procamp.saturation = value / 1000.0f + 1.0f; in XvMCSetAttribute()
100 context_priv->procamp.hue = value / 1000.0f; in XvMCSetAttribute()
102 context_priv->color_standard = value ? in XvMCSetAttribute()
110 context_priv->color_standard, in XvMCSetAttribute()
111 &context_priv->procamp, true, &csc in XvMCSetAttribute()
113 vl_compositor_set_csc_matrix(&context_priv->cstate, (const vl_csc_matrix *)&csc, 1.0f, 0.0f); in XvMCSetAttribute()
123 XvMCContextPrivate *context_priv; in XvMCGetAttribute() local
131 context_priv = context->privData; in XvMCGetAttribute()
138 *value = context_priv->procamp.brightness * 1000; in XvMCGetAttribute()
140 *value = context_priv->procamp.contrast * 1000 - 1000; in XvMCGetAttribute()
142 *value = context_priv->procamp.saturation * 1000 + 1000; in XvMCGetAttribute()
144 *value = context_priv->procamp.hue * 1000; in XvMCGetAttribute()
146 *value = context_priv->color_standard == VL_CSC_COLOR_STANDARD_BT_709; in XvMCGetAttribute()