summaryrefslogtreecommitdiff
path: root/avmedia
AgeCommit message (Collapse)AuthorFilesLines
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl2-0/+2
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl2-0/+2
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-14catch by referenceCaolán McNamara1-1/+1
Change-Id: Ib1f04971dc89df6df09bd12595d3ddb148715e28
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava7-8/+8
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini5-7/+7
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-10merge vcllo and vclopenglloMarkus Mohrhard2-2/+0
Change-Id: I419ca67dc1f87dd9ac751aa5a094fecf58136edb
2014-11-07fdo#84938: replace MOUSE_ modifier constants with enumNoel Grandin1-4/+4
and make the two categories of constants non-overlapping, we really don't need to risk confusion in order to save 6 bits in a data structure like this. Change-Id: I2251195d8e45ed04e2a89e47ae9c3e52cf0475c0
2014-11-07Clarify configure GStreamer handlingJan-Marek Glogowski2-3/+3
Currrently --disables-gstreamer disables GStreamer API 1.0 support and --enable-gstreamer-0-10 enables GStreamer API 0.10 support. To build with GStreamer API 0.10 you need to --disable-gstreamer and --enable-gstreamer-0-10, which doesn't seem logical. But actually it's possible to build both avmedia GStreamer backends, so this changes: * --disable-gstreamer to --disable-gstreamer-1-0 * configure variables to include the GStreamer API version "1_0" * adapts the configure help text Change-Id: Icffd8cfb9d80b3021e290675e7c9644c2a31fce8 Reviewed-on: https://gerrit.libreoffice.org/11912 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-11-06Revert "use the new OUString::fromUtf8 method"Stephan Bergmann1-1/+1
This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
2014-11-06use the new OUString::fromUtf8 methodNoel Grandin1-1/+1
Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
2014-11-05fdo#38835 strip out OUString globalsNoel Grandin1-2/+2
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-10-31Removed duplicated includesAndrea Gelmini1-1/+0
Change-Id: I5362d997bfa086c9fb1726efcb15132a966684f6 Reviewed-on: https://gerrit.libreoffice.org/12160 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-10-20-Werror,-Wunused-private-fieldStephan Bergmann2-5/+1
Change-Id: I2e7c2206872dfe22c77555f3a14ea2a10c2453c2
2014-10-20fdo#84938: replace TIB_ constants with enumNoel Grandin1-3/+3
Change-Id: I435ce2331fb49e7ce9fe97bdfddfaef706759a84 Reviewed-on: https://gerrit.libreoffice.org/12023 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-17More fine grained disabling of -Werror for collada headers onlyStephan Bergmann3-2/+30
Change-Id: I4f80d480e6e053038b85f6b26f74abc5921c2f38
2014-10-12Wording: 'Audio/Video' -> 'Audio or Video'Samuel Mehrbrodt1-2/+2
Change-Id: I9572d4c7fb5f50b869e69436302ac8c20e500392
2014-10-11convert SFX_CALLMODE constants to SfxCallMode enum classNoel Grandin1-1/+1
and fix a couple of bugs in SC and SW where the call mode was being passed to the hints parameter by accident Change-Id: Ief805410b3f7035e012e229e77f92d5832430f58 Reviewed-on: https://gerrit.libreoffice.org/11916 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-11convert vcl StateChangedType to enum classNoel Grandin1-2/+2
Change-Id: Ifa46523619ae7fb8d112525b8df594836e51bb8f Reviewed-on: https://gerrit.libreoffice.org/11843 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-06-Werror,-Wnon-virtual-dtorStephan Bergmann1-0/+1
Change-Id: I8fa5c345760185baf1f0fa83c94898b2a5a86719
2014-10-01fdo#82577: Handle TimeNoel Grandin1-2/+2
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-27Term change: Sound/Movie -> Audio/VideoSamuel Mehrbrodt1-3/+3
Change-Id: I389a3db5ca23718035413cbd0252f62eb8c870c3
2014-09-23fdo#82577: Handle WindowNoel Grandin11-33/+33
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-19Related fdo#84000: Improve framerate of the models.Jan Holesovsky1-1/+1
This will start working when we switch to using high-precision timers. Change-Id: I2115cb3e044578bac1a30c008d787613ec81570a
2014-09-17fdo#81237: 2D OpenGL charts was upside-downZolnai Tamás1-1/+1
The problem is that LO drawinglayer uses a coordinate system with an origin at the top-left corner of the screen, while OpenGL uses a complete coordinate system (with all four quarters, e.g.: allows negative values). The points in LO are always positive values which means they are drawn in the first quarter of the OpenGL coordinate system which also means that the origin is at the bottom-left corner of the scene. This difference causes the flipped scene. * To solve that problem scale the projection matrix with -1.0f along the y axis. * glDisable(GL_CULL_FACE) is necessary to avoid dropping primitives after scaling with -1.0. * Since projection matrix mirrors also the textures we don't need to do that inside the ConvertBitmapExToRGBATextureBuffer() method. Change-Id: Ieba642f3e665778a12368fe50a20865ec8f73514
2014-09-15avmedia: sal_False/True -> false/trueStephan Bergmann4-6/+6
Change-Id: I0ecd9e016ab0faa75a58796568d19fe91f6dccee
2014-09-13mac: clean-up obsolete conditional code based on old SDKNorbert Thiebaud1-4/+0
Change-Id: Ie2d476780a48b5815961598e214343d5def962c1
2014-09-12Turn SfxItemState into a C++11 scoped enumerationStephan Bergmann1-2/+2
...to gain further confidence in the claim "that none of the existing code tries to uses combinations of these enum values" (d92602c5b13d0a60439d86c5a033d124178726ca "more fixes for SfxItemState") Change-Id: I987922d945e8738e38adfde83b869adf3ff35b13 Reviewed-on: https://gerrit.libreoffice.org/11384 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-09-11fdo#82994 Added some more audio formatsDaniel Sikeler1-2/+2
Change-Id: I0acd880dc1886f46e1fe146941f1027c9b6ab265 Reviewed-on: https://gerrit.libreoffice.org/11388 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-10Replace uses of old SFX_ITEM_AVAILABLE alias with SFX_ITEM_DEFAULTStephan Bergmann1-1/+1
Change-Id: I88eeac06413fc3935cbbdb357ff8bf9acaa383a8
2014-09-09fdo#82994: Changed filterlabel of .ac3-filesDaniel Sikeler1-1/+1
Change-Id: I7820656211e341e4d1e51821240a9319570fcffd Reviewed-on: https://gerrit.libreoffice.org/11351 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-02coverity#1233484 Division or modulo by float zeroCaolán McNamara1-1/+1
0.0001 is as good as 0 according to reading CPhysicalCamera::moveCamera Change-Id: I70649ef6246154a112db414ccf4c15fcd30ea801
2014-09-02fix buildMarkus Mohrhard1-1/+1
Change-Id: I13c67763ec3cb940292199f3e9e0f3942446959f
2014-08-29Mirror vertically the texture bitmaps for OpenGLZolnai Tamás1-2/+1
In case of glTF models it saves a Mirror() call. In case of OpenGL charts it avoid flipped texts. Change-Id: I1ac980e16bcb5ba6a9a025b638aaac3b08b4aab3
2014-08-29It seems better if the caller allocates the memory for the RGBA buffer.Zolnai Tamás1-1/+2
For example it allows to use std::vector<> and call the method Change-Id: Id4b8e33838d358dd242d0176e42558505fa8d4a3
2014-08-29Upgrade libgltf to 0.0.1Zolnai Tamás5-32/+36
News in this version: - Solve some limitations of walkthrough mode (fdo#81425) - Multisampling (better rendering quality, mainly at the edges) - Better error handling (no crash in case of invalid input file) Change-Id: I46fdf56b00476614487fbcc04178e43e33a01794 Reviewed-on: https://gerrit.libreoffice.org/11179 Reviewed-by: Zolnai Tamás <tamas.zolnai@collabora.com> Tested-by: Zolnai Tamás <tamas.zolnai@collabora.com>
2014-08-28fdo#82994: added missing media extensionsDaniel Sikeler1-1/+6
Change-Id: Ibbce02b43192fd3afb4984f5f38251a518d7be06 Reviewed-on: https://gerrit.libreoffice.org/11172 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2014-08-25set names on a bunch more threads...Michael Stahl1-1/+3
Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
2014-08-23fdo#82577: Handle KeyCodeTor Lillqvist1-8/+8
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11 KeyCode typedef. Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-22Remove some useless tools/debug.hxx includesMarcos Paulo de Souza1-1/+0
Also remove the tools/solar.h included from tools/debug.hxx. The include of solar.h header was necessary in some cases because of a macro or a typedef that was needed. Change-Id: Ia6e15d5c2571c58c9e9138b0d0a7f08ae88053c9 Reviewed-on: https://gerrit.libreoffice.org/11075 Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2014-08-18STRING -> StringThomas Arnhold1-1/+1
Change-Id: I084d99fdd1a34842178b59c17ab108750f7bd11d
2014-08-17libgltf: Append shader language version to the shader filesZolnai Tamás1-12/+1
In general glTF shader files does not contain version directives and in some case it make shader compiler using GLSL 1.1 which leads to that the shader compiler fails. So we need to append the choosen version number which is GLSL 1.3 in case of libgltf, but this also means that from that point OpenGL 3.0 is the new reuirements since GLSL 1.3 is available only from that version. Change-Id: Ic4382266432ea474aeb3e603b32a998b9aeed280
2014-08-15ErrorBox AVMEDIA_ERR_URL to StringThomas Arnhold3-8/+5
Change-Id: Id897c62fbfe9728bef2264769871aade8c82dbdb
2014-08-15Related: rhbz#1130264 plausible fix for reported crashCaolán McNamara2-4/+19
Change-Id: I4ccdf19bfc7986881f7022109f22f47a0f493591
2014-08-07Handle collada libraries seperately: --disable-colladaZolnai Tamás2-7/+7
Depends on gltf support. Change-Id: Ief0452da3d03b0ddbca45272e5f5cd268691aeca
2014-08-05implement --with-system-gltfRene Engelhard3-0/+12
Change-Id: Ic842006b28f8043bcbbaa81ab5a20e15aa52ac82
2014-08-05Upload first official libgltf release: libgltf-0.0.0Zolnai Tamás6-49/+47
News relative to previous draft version: - Memory management improvements (fdo#81180) - Reduced OpenGL requirements (version 3.3 -> version 3.0) - Cleaned up API Change-Id: Ie3caf8684a9f5e6a872a1ac35beafb94df03bcf5 Reviewed-on: https://gerrit.libreoffice.org/10744 Reviewed-by: Zolnai Tamás <zolnaitamas2000@gmail.com> Tested-by: Zolnai Tamás <zolnaitamas2000@gmail.com>
2014-08-03avmedia/gstreamer: use GST_SECONDSimon Danner2-4/+4
use GST_SECOND instead of magic value Change-Id: I992ecbab458f113a75658b1ff69df60068324509 Reviewed-on: https://gerrit.libreoffice.org/10705 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-07-29simplify return argument of SfxPoolItem::GetPresentationNoel Grandin1-2/+2
since all two of the actual call-sites only care about whether it is a valid presentation or not, not what kind of presentation it is. Change-Id: I75717c88878d37b2897741b0c833ff283b3fee59
2014-07-21fdo#81055: Crash due to inadequate checks for GL version / capabilitiesZolnai Tamás1-0/+31
Base line is OpenGL 2.1 + extensions: GL_ARB_framebuffer_object (part of OpenGL 3.0) for glGenFramebuffers, glGenRenderbuffers... GL_ARB_vertex_array_object (part of OpenGL 3.0) for glGenVertexArrays, glBindVertexArray... GL_ARB_sampler_objects (part of OpenGL 3.3) for glGenSamplers, glBindSampler... Change-Id: Ib8acf41ab85cd1677d0341719b3a5b4f743ed756
2014-07-20Avoid a warning, return early on empty URL.Zolnai Tamás1-0/+4
Change-Id: Ie4eb55fa52ee97eb98a5269658ce5183a287618b