summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* wip: video-sink: add navigation supportlionel/cogl-gst-1.18Lionel Landwerlin2014-04-022-1/+92
|
* cogl-gst: video-sink: add gl upload supportLionel Landwerlin2014-04-021-4/+79
|
* cogl-gst: video-sink: add shutdown method on renderersLionel Landwerlin2014-04-021-0/+21
|
* cogl-gst: video-sink: rework caps exposureLionel Landwerlin2014-04-021-12/+21
|
* cogl: winsys: glx: fix valgrind complaintLionel Landwerlin2014-04-021-1/+1
|
* cogl-gst: video-sink: add video balance supportLionel Landwerlin2014-04-021-32/+431
|
* cogl-gst: video-sink: rework color conversion to care about colorimetryLionel Landwerlin2014-04-021-108/+254
|
* cogl-gst: video-sink: use intended GStreamer API for data/stride/etc...Lionel Landwerlin2014-04-021-30/+54
| | | | Based on a patch for ClutterGst from Matthieu Bouron <matthieu.bouron@collabora.com>
* path: create introspection files for 1.0 and 2.0 APIsLionel Landwerlin2014-04-011-1/+63
|
* path: remove internal inclusion not neededLionel Landwerlin2014-04-011-2/+1
|
* Post-release version bump to 1.18.1Neil Roberts2014-03-211-2/+2
|
* Release 1.18.0 (relase)1.18.0Neil Roberts2014-03-211-5/+5
|
* Updates NEWS for the 1.18.0 releaseNeil Roberts2014-03-211-0/+39
|
* mingw: Try adding a -w64 suffix when searching for a suitable compilerNeil Roberts2014-03-211-1/+1
| | | | | | | | | On 64-bit fedora the 32-bit MinGW compiler is called i686-w64-mingw32-gcc which wasn't being picked up by the mingw-fetch-depdencies script. Reviewed-by: Robert Bragg <robert.bragg@intel.com> (cherry picked from commit f5f0342315e524523c50549e91eb9ff1683ab558)
* Don't use the internal _G_DEFINE_TYPE_EXTENDED_CLASS_INIT macroNeil Roberts2014-03-211-1/+6
| | | | | | | | | This macro is internal to gobject so using it risks breaking Cogl if glib changes its API. Instead we just use its expansion. Note that glib provides two expansions for this depending on the glib version but this only uses the one for older versions. Reviewed-by: Robert Bragg <robert.bragg@intel.com>
* cogl-gst-video-sink: Fix a call to g_return_val_if_failNeil Roberts2014-03-211-1/+1
| | | | | | cogl_gst_video_sink_get_natural_size was using g_return_val_if_fail but its return type is void. For some reason GCC doesn't complain about this but it causes a compile error on clang.
* Revert "cogl-gst: add missing Cogl introspection dependency"Neil Roberts2014-03-211-1/+0
| | | | | | | | | | The pkg-config file might not necessarily be installed yet so I don't think it makes sense to try and include it when running g-ir-scanner. Presumably it should pick up the headers from source directory instead of the installed directory. It seems to build without this patch so let's just revert it. This reverts commit d9c8570f14a43e6c3a48c521e819427f02e816e4.
* onscreen: make closure types visible to introspectionLionel Landwerlin2014-03-212-0/+50
| | | | Reviewed-by: Neil Roberts <neil@linux.intel.com>
* examples: add gjs exampleLionel Landwerlin2014-03-212-0/+47
| | | | Reviewed-by: Neil Roberts <neil@linux.intel.com>
* example: add emscripten files to distLionel Landwerlin2014-03-211-0/+2
| | | | Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl-gtype: add missing gtype macros in intermediate macrosLionel Landwerlin2014-03-214-10/+8
| | | | Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl-gst: add missing Cogl introspection dependencyLionel Landwerlin2014-03-211-0/+1
| | | | Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Registers gtypes for all public objects and structsLionel Landwerlin2014-03-2079-41/+1098
| | | | | | | | | | This adds much more comprehensive support for gobject-introspection based bindings by registering all objects as fundamental types that inherit from CoglObject, and all structs as boxed types. Co-Author: Robert Bragg <robert@linux.intel.com> Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl-pango-pipeline-cache.c: Include forgotten headerChun-wei Fan2014-03-201-0/+1
| | | | | | | | The private header is needed as the cogl_texture_get_format API was made private, so that C4013 (implicit declaration of ...) warnings/errors can be avoided Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Update cogl-path.symbolsChun-wei Fan2014-03-201-0/+1
| | | | | | One symbol was missed when the cogl-path code was split out from Cogl... Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Update cogl.symbolsChun-wei Fan2014-03-201-54/+23
| | | | | | | | | Remove the symbols that are now in cogl-path (where cogl-path.symbols already include), and add the symbols that were added to the Cogl API. Also add internal symbols as required by cogl-path and cogl-pango. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl/cogl-renderer.c: Avoid Clash with Newer Windows SDKsChun-wei Fan2014-03-201-3/+3
| | | | | | | | | | The DriverCallback is a function that is defined by the Windows SDK 8.0+ headers, which was initially used for device driver development. The use of DriverCallback would cause a clash, causing things to break when built with newer Windows SDKs, so rename DriverCallback to CoglDriverCallback to avoid this problem. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl-gst-plugin: Fix the license name in the plugin descriptionNeil Roberts2014-03-201-1/+1
| | | | | | | | | | In commit 1b83ef938f the license in the plugin description was changed from “LGPL” to “MIT”. GStreamer strictly whitelists the names of the licenses and the correct name for the MIT license is “MIT/X11” so it was rejecting the plugin. Reviewed-by: Robert Bragg <robert.bragg@intel.com> (cherry picked from commit ceec0bddb858588c1f04c50dd6cbda9eb044c4cc)
* Expose EGL context/display and GLX contextRobert Bragg2014-03-208-29/+148
| | | | | | | | | | | | | | | | | | | | To help facilitate integration with third party frameworks this exposes the EGL context and display to applications as well as the GLX context. (Note that the GLX display is already available via cogl_xlib_renderer_get_display()) This adds a new top-level <cogl/cogl-glx.h> header that needs to be included explicitly to access the glx specific api. Anyone using these apis will be responsible for checking that Cogl is indeed using EGL or GLX by calling cogl_renderer_get_winsys_id() This will enable GStreamer, for example, to be able to create a GL context that shares resources with Cogl's context. https://bugzilla.gnome.org/show_bug.cgi?id=724992 Reviewed-by: Neil Roberts <neil@linux.intel.com>
* move GLeglImageOES define into cogl-egl-private.hRobert Bragg2014-03-204-10/+85
| | | | | | | | | | This splits out the GLeglImageOES define in cogl-egl.h into a private cogl-egl-private.h header and updates the guards in cogl-egl.h to be consistent with other top-level headers where we need to be careful about how __COGL_H_INSIDE__ is defined and undefined, esp when the gobject introspection scanner is running. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* egl: remove NativeWindowType/NativeDisplayType definesRobert Bragg2014-03-208-16/+9
| | | | | | | | | | This ensures we use EGLNativeWindowType and EGLNativeDisplayType everywhere instead. The previous names come from EGL 1.2 but it seems reasonable to require more recent EGL versions. If someone wanted to add compatibility for EGL 1.2 later it would be straightforward to define the new names to the old. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* sdl2: fix GL driver selectionRobert Bragg2014-03-201-4/+16
| | | | | | | | | SDL2 supports selecting between full OpenGL or OpenGL ES 1/2 but our selection code was written before SDL 2.0 was officially released and since then a new SDL_GL_CONTEXT_PROFILE_MASK attribute was added and we have to explicitly set the SDL_GL_CONTEXT_MINOR_VERSION attribute. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl-gst: add cogl_gst_video_sink_get_natural_size() apiRobert Bragg2014-03-202-0/+119
| | | | | | | | | This adds api for querying a "natural" width and height for a video which has the correct aspect ratio for displaying on square, 1:1 pixels. The natural size is the minimum size where downscaling is not required. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* basic-video-player: don't try and sample mipmapRobert Bragg2014-03-201-16/+0
| | | | | | | | | | | | 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. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* cogl-gst: allocate textures synchronouslyRobert Bragg2014-03-201-3/+10
| | | | | | | | | | | | | | | This makes sure video textures being uploaded via video_texture_new_from_data are allocated before the function returns. This function create a CoglBitmap to wrap the data from gstreamer and by allowing cogl to allocate the texture lazily it's possible that the data being pointed to by the bitmap won't remain valid until we actually come to allocate the texture. Note: we don't simply use cogl_texture_2d_[sliced_]new_from_data() here because we need to be able to call cogl_texture_set_premultiplied() before allocating the texture. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Expose COGL_FEATURE_ID_BUFFER_AGE feature idRobert Bragg2014-03-204-3/+18
| | | | | | | | | This adds a new COGL_FEATURE_ID_BUFFER_AGE feature id that can be used to determine if cogl_onscreen_get_buffer_age() will ever return an age other than 0. This should be used instead of querying the winsys feature via cogl_clutter_winsys_has_feature(). Reviewed-by: Neil Roberts <neil@linux.intel.com>
* glx-feature-functions: update misleading commentRobert Bragg2014-03-201-1/+1
| | | | Reviewed-by: Neil Roberts <neil@linux.intel.com>
* egl: fix incorrect #ifdef guarding of featuresRobert Bragg2014-03-201-2/+1
| | | | | | | | | | We have an #ifdef EGL_WL_bind_wayland_display guard in cogl-winsys-egl-feature-functions.h to avoid referencing wayland types when the EGL header doesn't know about them, but somehow this guard also ended up around the KHR_create_context and EXT_buffer age features too even though they aren't wayland specific. Reviewed-by: Neil Roberts <neil@linux.intel.com>
* Set COGL_WINSYS_FEATURE_BUFFER_AGE on EGLNeil Roberts2014-03-141-0/+5
| | | | | | | | | | | | This winsys feature flag is exposed via the deprecated cogl_clutter_winsys_has_feature function and Clutter is curently relying on it. Previously the EGL winsys was only setting the internal COGL_EGL_WINSYS_FEATURE_BUFFER_AGE flag and there was no mapping to the public flag. Therefore the feature would only be used on GLX. This patch just adds the mapping. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 8418e98b2b1b25515a961ad1bb9f0c4770d6eb1d)
* cogl-winsys-egl-kms: Make sure to close our connection to DRM at shutdownJasper St. Pierre2014-03-121-0/+3
| | | | | Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit dcdba60e95ae7be1b0253d28686d1562c35374ba)
* cogl-winsys-egl-kms: Add cogl_kms_renderer_set_kms_fdJasper St. Pierre2014-03-124-8/+56
| | | | | | | | Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 7bc7ea4cb5e8134a3aeed9615477f4152b558509) Conflicts: cogl/winsys/cogl-winsys-egl-kms.c
* cogl-winsys-egl-wayland: Report an error if we can't find the globals we needJasper St. Pierre2014-03-121-6/+10
| | | | | | | | | | | | | Instead of spinning forever, do a roundtrip, which guarantees that the global messages have been sent by the time we read the sync message. If the proper globals aren't initialized yet, error out immediately. This does mean that users can't use CoglOnscreen with foreign custom surface types without xdg_shell, but when a use case comes for this, we'll investigate then... Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit af9057d35f331e2c9509958fb40627917c477b80)
* build/win32/vs9/Makefile.am: Remove Non-Existing EntryChun-wei Fan2014-03-121-1/+0
| | | | | A project file was removed, which was not updated in Makefile.am, so make up for that.
* Updated Chinese (China) translationWylmer Wang2014-03-081-117/+116
|
* Visual Studio 2010 Projects: Add a PlatformToolset TagChun-wei Fan2014-03-0610-0/+48
| | | | | | | This adds a PlatformToolset tag in order to make upgrading the projects to Visual Studio 2012/2013 formats easier, especially when done with a script. The script, for example, can change the value inside these tags apporpriately to do the upgrade job quite easily.
* Visual Studio 2010 Builds: Fix Header InstallationChun-wei Fan2014-03-041-13/+22
| | | | Some headers were deprecated and therefore moved, so update for that.
* Visual C++ 2008 Builds: Fix Installation of BinariesChun-wei Fan2014-03-041-8/+28
| | | | | The *.dll, *.exe and *.lib files weren't being copied in the *_SDL configs as the project looked for them in the wrong place. Correct that problem.
* Update the Visual Studio 2010 ProjectsChun-wei Fan2014-03-0328-2539/+2439
| | | | | | | | | | | | | | | | | | This updates the Visual Studio 2010 Projects in the following ways, similar to the recent changes to the Visual Studio 2008 projects: -Make all the copying of the pre-configured header files custom build rules, so that it is cleaner when people clean their builds, and the files can be re-copied when updated. -Split up the property sheets, so to ease future maintenance -Make the cogl-path library built as a DLL -Build and link against SDL-2.x for SDL builds -Make everything except the .sln file and the README.txt file use UNIX line endings, for easier maintenance. -Merge cogl_sdl.sln and install-sdl.vcxproj into cogl.sln and install.vcxproj respectively. -Update build of the conformance test to not use COGL_COMPILATION, and make it link to cogl-path.
* build/win32/vs9/cogl.sln: UpdateChun-wei Fan2014-03-031-0/+1
| | | | | Make the install project depend on cogl-path, so that we are certain that the cogl-path DLL gets "installed".
* MSVC 2008 Builds: Split Up the Property SheetsChun-wei Fan2014-03-0318-1209/+1051
| | | | | | | | | | Split up the property sheets, so that it is easier to maintain, and update the project files accordingly. Also clean up the project files by finishing up the merge of the *_sdl.vcproj items into their regular counterparts, and dropping all the *_sdl.* files. Make use of UNIX line endings for all the MSVC 2008 build files, except the .sln file and the README.txt files, for easier maintenance.