[cogl/wip/rig: 22/34] basic-video-player: don't try and sample mipmap
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/rig: 22/34] basic-video-player: don't try and sample mipmap
- Date: Thu, 20 Mar 2014 18:03:31 +0000 (UTC)
commit d75dac44b21dc66ab0fb0ae06b929d77d4728bcf
Author: Robert Bragg <robert bragg intel com>
Date: Fri Mar 14 16:45:04 2014 +0000
basic-video-player: don't try and sample mipmap
Since we don't generate a mipmap chain for uploaded video frames this
avoids setting the min filter to COGL_PIPELINE_FILTER_LINEAR_MIPMAP_LINEAR.
Since COGL_PIPELINE_FILTER_LINEAR is the default and since it is also
dubious that cogl-basic-video-player is directly manipulating layers
that are conceptually internal to cogl-gst this removes the loop that
updates the filtering for cogl-gst layers.
examples/cogl-basic-video-player.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/examples/cogl-basic-video-player.c b/examples/cogl-basic-video-player.c
index 34678f3..f894c38 100644
--- a/examples/cogl-basic-video-player.c
+++ b/examples/cogl-basic-video-player.c
@@ -194,24 +194,8 @@ _set_up_pipeline (gpointer instance,
{
Data* data = (Data*) user_data;
- /*
- The cogl-gst sink, depending on the video format, can use up to 3 texture
- layers to render a frame. To avoid overwriting frame data, the first
- free layer in the cogl pipeline needs to be queried before adding any
- additional textures.
- */
-
- int free_layer = cogl_gst_video_sink_get_free_layer (data->sink);
data->video_pipeline = cogl_gst_video_sink_get_pipeline (data->sink);
- while (free_layer > 0)
- {
- free_layer--;
- cogl_pipeline_set_layer_filters (data->video_pipeline, free_layer,
- COGL_PIPELINE_FILTER_LINEAR_MIPMAP_LINEAR,
- COGL_PIPELINE_FILTER_LINEAR);
- }
-
/* disable blending... */
cogl_pipeline_set_blend (data->video_pipeline,
"RGBA = ADD (SRC_COLOR, 0)", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]