Skip to content

Instantly share code, notes, and snippets.

View ndufresne's full-sized avatar

Nicolas Dufresne ndufresne

View GitHub Profile
Jan 01 00:39:37 endless gnome-session[1907]: Window manager warning: Log level 6: The program 'eos-shell' received an X Window System error.
Jan 01 00:39:37 endless gnome-session[1907]: This probably reflects a bug in the program.
Jan 01 00:39:37 endless gnome-session[1907]: The error was 'BadRequest (invalid request code or no such operation)'.
Jan 01 00:39:37 endless gnome-session[1907]: (Details: serial 1795 error_code 1 request_code 138 minor_code 31)
Jan 01 00:39:37 endless gnome-session[1907]: (Note to programmers: normally, X errors are reported asynchronously;
Jan 01 00:39:37 endless gnome-session[1907]: that is, you will receive the error a while after causing it.
Jan 01 00:39:37 endless gnome-session[1907]: To debug your program, run it with the GDK_SYNCHRONIZE environment
Jan 01 00:39:37 endless gnome-session[1907]: variable to change this behavior. You can then get a meaningful
Jan 01 00:39:37 endless gnome-session[1907]: backtrace from your debugger if you break on the gdk_x_error() function.)
Ja
function checkFormats() {
var videoElement = document.createElement('video');
var setCompatibility = function(id, isCompatible) {
var el = document.getElementById(id);
el.className = el.className.replace(
/\bunknown\b/, isCompatible ? 'success' : 'error');
};
var videoCompatible = videoElement && videoElement.canPlayType;
From 35fef0cb8e0fcb4de709eac8647d710dadab0415 Mon Sep 17 00:00:00 2001
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Date: Wed, 9 Apr 2014 14:41:14 -0400
Subject: [PATCH] s5p-fimc: Fix tile width alignment
Because of the Z pattern used in 64x32 tiles format, the width must be aligned to
a multiple of 128. Otherwise we end up with image size shorter then required.
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
---
0:00:00.108384043 16597 0xb5c01c00 INFO glcontext gstglcontext.c:775:gst_gl_context_create_thread: available GL APIs: gles2
0:00:00.108536834 16597 0xb5c01c00 INFO glcontext gstglcontext.c:574:_create_context_gles2: GL_VERSION: (null)
0:00:00.108593084 16597 0xb5c01c00 INFO glcontext gstglcontext.c:576:_create_context_gles2: GL_SHADING_LANGUAGE_VERSION: (null)
0:00:00.108649459 16597 0xb5c01c00 INFO glcontext gstglcontext.c:577:_create_context_gles2: GL_VENDOR: (null)
0:00:00.108694417 16597 0xb5c01c00 INFO glcontext gstglcontext.c:578:_create_context_gles2: GL_RENDERER: (null)
0:00:00.108758750 16597 0xb5c01c00 DEBUG glcontext gstglcontext.c:835:gst_gl_context_create_thread:<GstGLContextEGL@0xca1b8> GL_EXTENSIONS:
0:00:00.109290416 16597 0x146660 INFO glcontext gstglcontext.c:555:gst_gl_context_create: gl thread created
0:00:00.109627373 16597 0xb5c01c00 TRACE glcontext gstglcontext.c:953:_gst_gl_
diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c
index 432d8bd..25dd1dc 100644
--- a/gst-libs/gst/gl/gstglcontext.c
+++ b/gst-libs/gst/gl/gstglcontext.c
@@ -789,10 +789,18 @@ gst_gl_context_create_thread (GstGLContext * context)
g_free (compiled_api_s);
g_free (user_api_string);
+#if 0
gl->GetError = gst_gl_context_get_proc_address (context, "glGetError");
diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c
index c728898..f0f1cd1 100644
--- a/ext/gl/gstglimagesink.c
+++ b/ext/gl/gstglimagesink.c
@@ -249,7 +249,7 @@ gst_glimage_sink_class_init (GstGLImageSinkClass * klass)
gstbasesink_class->get_times = gst_glimage_sink_get_times;
gstbasesink_class->preroll = gst_glimage_sink_render;
gstbasesink_class->render = gst_glimage_sink_render;
- gstbasesink_class->prepare = gst_glimage_sink_prepare;
+// gstbasesink_class->prepare = gst_glimage_sink_prepare;
diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c
index 878984c..6b4a390 100644
--- a/gst-libs/gst/video/gstvideodecoder.c
+++ b/gst-libs/gst/video/gstvideodecoder.c
@@ -2751,7 +2751,9 @@ gst_video_decoder_clip_and_push_buf (GstVideoDecoder * decoder, GstBuffer * buf)
if (G_UNLIKELY (priv->error_count))
priv->error_count = 0;
+ GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
ret = gst_pad_push (decoder->srcpad, buf);
From cb2e9cc6afa44fcfefbea52006005347c0ecf923 Mon Sep 17 00:00:00 2001
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Date: Thu, 15 May 2014 16:01:09 -0400
Subject: [PATCH] mfc: Only allow 2 context and adjust CMA reservation
This patch configure the MFC to only allow 2 context, and raise the left
memory bank in order to support highest DPB for 2 decoding instances.
---
arch/arm/mach-exynos/mach-hkdk4412.c | 2 +-
drivers/media/platform/s5p-mfc/s5p_mfc_common.h | 2 +-
0002a310 20 3c 64 63 3a 74 69 74 6c 65 3e 0a 20 20 20 20 | <dc:title>. |
0002a320 20 20 20 3c 72 64 66 3a 41 6c 74 3e 0a 20 20 20 | <rdf:Alt>. |
0002a330 20 20 20 20 20 3c 72 64 66 3a 6c 69 20 78 6d 6c | <rdf:li xml|
0002a340 3a 6c 61 6e 67 3d 22 78 2d 64 65 66 61 75 6c 74 |:lang="x-default|
0002a350 22 3e 50 72 69 6e 74 3c 2f 72 64 66 3a 6c 69 3e |">Print</rdf:li>|
0002a360 0a 20 20 20 20 20 20 20 3c 2f 72 64 66 3a 41 6c |. </rdf:Al|
0002a370 74 3e 0a 20 20 20 20 20 20 3c 2f 64 63 3a 74 69 |t>. </dc:ti|
0002a380 74 6c 65 3e 0a 20 20 20 20 20 20 3c 78 6d 70 3a |tle>. <xmp:|
From e951fc15388135521f4e6b9f393f497df430d0b7 Mon Sep 17 00:00:00 2001
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Date: Thu, 15 May 2014 16:01:09 -0400
Subject: [PATCH] mfc: Adjust CMA reservation to allow 4 HD context
This patch configure the MFC CMA reservation to allow up to 4 contexts
running HD videos. Bank configurations are:
Left MFC: 256, Right MFC 128.