Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Jan 2011 16:13:44 +0300
From:      Anonymous <swell.k@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/153729: [patch] graphics/gnash: add VAAPI option
Message-ID:  <86mxnenpiv.fsf@gmail.com>
Resent-Message-ID: <201101061320.p06DK7FM046536@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         153729
>Category:       ports
>Synopsis:       [patch] graphics/gnash: add VAAPI option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 06 13:20:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
depends on ports/153725 (libva) and ports/153727 (VAAPI in ffmpeg)

Running with --hwaccel triggers assert in agg code.
Probably, a local issue.
>Description:
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: graphics/gnash/Makefile
===================================================================
RCS file: /a/.cvsup/ports/graphics/gnash/Makefile,v
retrieving revision 1.52
diff -u -p -r1.52 Makefile
--- graphics/gnash/Makefile	4 Dec 2010 07:31:58 -0000	1.52
+++ graphics/gnash/Makefile	5 Jan 2011 06:32:08 -0000
@@ -64,6 +64,7 @@ OPTIONS=	PLUGIN		"Enable browser plugin"
 		AGG		"Renderer: AGG" on \
 		OPENGL		"Renderer: OpenGL (broken)" off \
 		CAIRO		"Renderer: Cairo (experimental)" off \
+		VAAPI		"HWAccel: VAAPI" off \
 		FFMPEG		"Media handler: ffmpeg (+SDL sound output)" on \
 		GSTREAMER	"Media handler: GStreamer" off
 
@@ -196,6 +197,18 @@ IGNORE=			needs at least one renderer en
 
 CONFIGURE_ARGS+=	--enable-renderer=`${ECHO} ${GNASH_RENDERERS} | ${TR} ' ' ,`
 
+# Hardware acceleration options processing
+#
+.if defined(WITH_VAAPI) && !defined(WITHOUT_FFMPEG)
+LIB_DEPENDS+=		va.1:${PORTSDIR}/multimedia/libva
+PLIST_SUB+=		VAAPI=""
+.elif !defined(WITH_VAAPI)
+CONFIGURE_ARGS+=	--enable-hwaccel=none # XVideo
+PLIST_SUB+=		VAAPI="@comment "
+.else
+IGNORE=			VAAPI currently works only with FFMPEG. Please rerun 'make config' and enable FFMPEG.
+.endif
+
 #
 # Media handler options processing
 #
Index: graphics/gnash/pkg-plist
===================================================================
RCS file: /a/.cvsup/ports/graphics/gnash/pkg-plist,v
retrieving revision 1.15
diff -u -p -r1.15 pkg-plist
--- graphics/gnash/pkg-plist	1 Oct 2010 11:01:37 -0000	1.15
+++ graphics/gnash/pkg-plist	5 Jan 2011 06:35:02 -0000
@@ -224,6 +224,9 @@ lib/gnash/libgnashrender.so.0
 lib/gnash/libgnashsound-%%GNASHVER%%.so
 lib/gnash/libgnashsound.la
 lib/gnash/libgnashsound.so
+%%VAAPI%%lib/gnash/libgnashvaapi-%%GNASHVER%%.so
+%%VAAPI%%lib/gnash/libgnashvaapi.la
+%%VAAPI%%lib/gnash/libgnashvaapi.so
 @comment %%NPAPI%%lib/gnash/libmozsdk.la
 @comment %%NPAPI%%lib/gnash/libmozsdk.so
 @comment %%NPAPI%%lib/gnash/libmozsdk.so.0
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86mxnenpiv.fsf>