summaryrefslogtreecommitdiffstats
path: root/media
Commit message (Collapse)AuthorAgeFilesLines
* Checking in the beginnings of omx_unittests.scherkus@chromium.org2009-12-093-3/+38
| | | | | | | | | | | | Also renamed omx_wrapper to the simpler (and more accurate!) omx. BUG=n/a TEST=n/a Review URL: http://codereview.chromium.org/467055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34124 0039d316-1c4b-4281-b951-d872f2087c98
* Factor out PtsHeap into a reusable class.ajwong@chromium.org2009-12-026-80/+141
| | | | | | Review URL: http://codereview.chromium.org/459009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33605 0039d316-1c4b-4281-b951-d872f2087c98
* Move some XDG code from chrome to base, make DIR_USER_CACHE generic rather ↵thestig@chromium.org2009-12-023-1/+3
| | | | | | | | | | than Chromium specific, and clean up a few headers. BUG=none TEST=none Review URL: http://codereview.chromium.org/449048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33565 0039d316-1c4b-4281-b951-d872f2087c98
* Signal handler for player_x11 applicationhclam@chromium.org2009-12-021-5/+17
| | | | | | | | | SIGTERM and SIGINT handler for player_x11 tool so that it terminates the media pipeline properly when CTRL+C is received. Review URL: http://codereview.chromium.org/450030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33536 0039d316-1c4b-4281-b951-d872f2087c98
* Rename OmxVideoDecoder, and break up the omx library files from the omx_test ↵ajwong@chromium.org2009-12-024-86/+107
| | | | | | | | target. Review URL: http://codereview.chromium.org/449070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33516 0039d316-1c4b-4281-b951-d872f2087c98
* Benchmark memcpy of the output of OpenMAX decoderhclam@chromium.org2009-12-021-4/+23
| | | | | | | | | Add --copy option to omx_test for benchmarking memcpy performance from the output of OpenMAX decoder. Review URL: http://codereview.chromium.org/450031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33513 0039d316-1c4b-4281-b951-d872f2087c98
* Add codec id into the media_format so that downstream filters can determine ↵ajwong@chromium.org2009-12-013-0/+6
| | | | | | | | codec support. Review URL: http://codereview.chromium.org/457023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33472 0039d316-1c4b-4281-b951-d872f2087c98
* Enable the mpeg4toannexb bitstream filter.ajwong@chromium.org2009-11-302-0/+30
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/441024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33307 0039d316-1c4b-4281-b951-d872f2087c98
* Use argv[0] to print out executable usage info for media tools.scherkus@chromium.org2009-11-254-4/+5
| | | | | | | | | | BUG=n/a TESt=n/a Review URL: http://codereview.chromium.org/434101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33148 0039d316-1c4b-4281-b951-d872f2087c98
* Fix help dialog for player_x11.scherkus@chromium.org2009-11-251-1/+1
| | | | | | | | | | | BUG=n/a TEST=n/a TBR=hclam Review URL: http://codereview.chromium.org/443005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33098 0039d316-1c4b-4281-b951-d872f2087c98
* Re-organizing all tools under /src/media to be consistent with the rest of ↵scherkus@chromium.org2009-11-2525-83/+73
| | | | | | | | | | | | the repository. TEST=n/a BUG=n/a Review URL: http://codereview.chromium.org/431046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33089 0039d316-1c4b-4281-b951-d872f2087c98
* Minor cleanup to some OpenMAX code.scherkus@chromium.org2009-11-254-14/+20
| | | | | | | | | | | | Renamed Eos() to IsEndOfStream() to be consistent with other buffer implementations. BUG=n/a TEST=n/a Review URL: http://codereview.chromium.org/440007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33019 0039d316-1c4b-4281-b951-d872f2087c98
* Implement method stubs for OpenMAX IL instead of relying on -lOmxCore.scherkus@chromium.org2009-11-254-35/+21
| | | | | | | | | | | | | | You can switch to using -lOmxCore by setting the gyp variable use_system_openmax=1. Also fixed type-punning warnings in omx_video_decoder.cc BUG=28663 TEST=building omx_test should have no linker errors Review URL: http://codereview.chromium.org/431041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33012 0039d316-1c4b-4281-b951-d872f2087c98
* X11 media player for video playbackhclam@chromium.org2009-11-254-0/+485
| | | | | | | | | | | A X11 media player application that uses the video stack pipeline. It uses XRender when possible, this will allow the XRender extension to convert RGBA8888 to the target depth and bits per pixel on the X Server. Review URL: http://codereview.chromium.org/399113 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33007 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Implement method stubs for OpenMAX IL instead of relying on -lOmxCore."scherkus@chromium.org2009-11-243-17/+31
| | | | | | | Review URL: http://codereview.chromium.org/431040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32993 0039d316-1c4b-4281-b951-d872f2087c98
* Implement method stubs for OpenMAX IL instead of relying on -lOmxCore.scherkus@chromium.org2009-11-243-31/+17
| | | | | | | | | | | | You can switch to using -lOmxCore by setting the gyp variable use_system_openmax=1. BUG=28663 TEST=building omx_test should have no linker errors Review URL: http://codereview.chromium.org/436021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32988 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes for bellagio compatibility.ajwong@chromium.org2009-11-242-43/+46
| | | | | | Review URL: http://codereview.chromium.org/435011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32897 0039d316-1c4b-4281-b951-d872f2087c98
* Add compiler-specific "examine printf format" attributes to printfs.evan@chromium.org2009-11-202-3/+5
| | | | | | | | | | | | Functions that take a printf-style format get a new annotation, which produces a bunch of compiler warnings when you use printf impoperly. This change adds the annotations and fixes the warnings. We now must use PRId64 for 64-bit numbers and the PRIsz for size_t. Review URL: http://codereview.chromium.org/339059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32600 0039d316-1c4b-4281-b951-d872f2087c98
* Check for null frame pointers and do nothing to avoid a crash.fbarchard@chromium.org2009-11-191-0/+9
| | | | | | | | | BUG=27675 TEST=play this http://fbarchard-kir.ad.corp.google.com/mediatests/runthrough.mp4 and do lots of seeks. A crash will occur after about 5 or 10 seeks without this patch. Review URL: http://codereview.chromium.org/401021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32455 0039d316-1c4b-4281-b951-d872f2087c98
* Replace hard-coded media_format() methods with Google Mock methods declared ↵scherkus@chromium.org2009-11-184-49/+80
| | | | | | | | | | | | | | | | in mock_filters.h. Updated unit tests accordingly. Patch by Dominic Jodoin <dominic.jodoin@gmail.com> BUG=21040 TEST=Run the media_unittests and AudioRendererImplTest test suite in unit_tests. Ensure there is no Google Mock failures and that all tests are passing. Review URL: http://codereview.chromium.org/404016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32267 0039d316-1c4b-4281-b951-d872f2087c98
* Test program for OpenMAX video decodinghclam@chromium.org2009-11-134-8/+205
| | | | | | | | | | Including gyp file for openmax and the test application. The test application will link against libOmxCore.so which is provided by the target system. Review URL: http://codereview.chromium.org/391030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31957 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build bustage cause by checkdepshclam@chromium.org2009-11-121-0/+1
| | | | | | | | TBR=scherkus Review URL: http://codereview.chromium.org/385063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31771 0039d316-1c4b-4281-b951-d872f2087c98
* OpenMAX for video decoderhclam@chromium.org2009-11-124-0/+1493
| | | | | | | | | | | Base class of using a OMX component for video decoding. This class defines the specific behavior of using an OMX component for video decoding. It tries not to be hardware specific as much as possible. Review URL: http://codereview.chromium.org/372037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31770 0039d316-1c4b-4281-b951-d872f2087c98
* Use GetSwitchValueASCII.tony@chromium.org2009-11-061-10/+10
| | | | | | | | | | | | BUG=24672 TEST=None Original patch by Thiago Farina <thiago.farina@gmail.com> at http://codereview.chromium.org/296004 Review URL: http://codereview.chromium.org/373013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31269 0039d316-1c4b-4281-b951-d872f2087c98
* First patch in making destructors of refcounted objects private.jam@chromium.org2009-11-054-3/+21
| | | | | | | BUG=26749 Review URL: http://codereview.chromium.org/360042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31136 0039d316-1c4b-4281-b951-d872f2087c98
* Limit frequency of audio to 48000.fbarchard@chromium.org2009-11-051-0/+9
| | | | | | | | | BUG=24480 TEST=Play colors2.ogv and do a seek. Should play and seek but audio will be mute. Review URL: http://codereview.chromium.org/365010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31084 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce sleep time on Mac to 500 ms, same as PCfbarchard@chromium.org2009-11-051-1/+1
| | | | | | | | | BUG=26555 TEST=run valgrind or let build bot do it and if it runs faster than you can go make a coffee and get back, then its good. Review URL: http://codereview.chromium.org/366023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31078 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash in AudioRendererImpl by adding a MessageLoop DestructionObserver.scherkus@chromium.org2009-11-051-0/+7
| | | | | | | | | | | | Wrote unit tests for the entire class and fixed some other bugs that cropped up. BUG=25075 TEST=unit_tests, also closing tabs/browser shouldn't try to use dead IO loop Review URL: http://codereview.chromium.org/363007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31070 0039d316-1c4b-4281-b951-d872f2087c98
* wav_ola_test - add CommandLine::Reset to clean up ValGrind memory leak fix.fbarchard@chromium.org2009-11-051-1/+1
| | | | | | | | | BUG=25945 TEST=similar to media_bench you should be able to valgrind on the tool and not see memory leaks. Review URL: http://codereview.chromium.org/363021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31063 0039d316-1c4b-4281-b951-d872f2087c98
* Add a command line reset to clean up memory leak found by valgrind.fbarchard@chromium.org2009-11-051-0/+1
| | | | | | | | | BUG=25945 TEST=valgrind --tool=memcheck --num-callers=30 --leak-check=full --gen-suppressions=all --demangle=no out/Debug/media_bench --stream=video ~/media/color2.mp4 Review URL: http://codereview.chromium.org/363016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31055 0039d316-1c4b-4281-b951-d872f2087c98
* SetVolume and GetVolume take one volume instead of separate left and right ↵fbarchard@chromium.org2009-11-0413-88/+72
| | | | | | | | | | | volumes. BUG=26660 TEST=no visible difference. Make sure volume still works. Code size should go down marginally. Review URL: http://codereview.chromium.org/357004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31018 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce test duration for valgrind.fbarchard@chromium.org2009-11-031-1/+1
| | | | | | | | | BUG=26556 TEST=run valgrind on Mac unittests. Should take less than 1 minute for YUV test. Review URL: http://codereview.chromium.org/346036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30805 0039d316-1c4b-4281-b951-d872f2087c98
* Add yasm and ffmpeg into the build tree for linux.ajwong@chromium.org2009-10-301-0/+10
| | | | | | | | | BUG=22307 TEST=builds correctly, and an html5 video runs. Review URL: http://codereview.chromium.org/300013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30571 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leaks in media_bench.scherkus@chromium.org2009-10-271-12/+19
| | | | | | | | | | BUG=25855,25945 TEST=valgrind should report no leaks caused by media_bench itself Review URL: http://codereview.chromium.org/332038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30228 0039d316-1c4b-4281-b951-d872f2087c98
* Data to reproduce infinite loop fixed by 48_aac_infinite_loop.patchfbarchard@chromium.org2009-10-261-0/+0
| | | | | | Review URL: http://codereview.chromium.org/333019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30102 0039d316-1c4b-4281-b951-d872f2087c98
* Quick fix for Alsa stutter - Wake up sooner.fbarchard@chromium.org2009-10-221-0/+3
| | | | | | | | | BUG=23974 TEST=http://fbarchard-kir.ad.corp.google.com/testmatrix/red/red2.ogv Review URL: http://codereview.chromium.org/316005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29761 0039d316-1c4b-4281-b951-d872f2087c98
* Fold first 3 channels of multichannel instead of 5. Use fixed point.fbarchard@chromium.org2009-10-202-94/+113
| | | | | | | | | BUG=none TEST=play a multichannel video, such as trek6.ogv. Voices should sound centered and music stereo. Review URL: http://codereview.chromium.org/304006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29550 0039d316-1c4b-4281-b951-d872f2087c98
* Fix incorrect usage of scope_ptr with an array.tkent@chromium.org2009-10-191-1/+1
| | | | | | | | | | | NullAudioRender::buffer_ was declared as scoped_ptr<uint8>, But NullAudioRender::OnInitialize() sets uint8[] to it. BUG=none TEST=none Review URL: http://codereview.chromium.org/301001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29391 0039d316-1c4b-4281-b951-d872f2087c98
* media.gyp - remove condition that prevents qt_faststart from building on x64.fbarchard@chromium.org2009-10-171-11/+7
| | | | | | | | | BUG=25098 TEST=make -j6 -r qt_faststart BUILDTYPE=Release Review URL: http://codereview.chromium.org/289009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29358 0039d316-1c4b-4281-b951-d872f2087c98
* -fPIC buildable version of yuv for 64 bit linux.fbarchard@chromium.org2009-10-161-97/+106
| | | | | | | | | BUG=25070 TEST=add -fPIC to gcc. Old code failed to build. New code builds with 64 bit. Review URL: http://codereview.chromium.org/269106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29329 0039d316-1c4b-4281-b951-d872f2087c98
* Move Alsa device opening into the audio thread, and add in support for ↵ajwong@chromium.org2009-10-1610-121/+694
| | | | | | | | | | | | | | | multi-channel audio. Moving the device opening into the audio thread will prevent browser hangs for badly behaving alsa implementations (like pulseaudio) that can hang snd_pcm_open if pulseaudiod is wedged, even if SND_PCM_NONBLOCK is requested. For multi-channel audio, device enumeration has been added to try and find a multi-channel device with a stable channel mapping. According to http://0pointer.de/blog/projects/guide-to-sound-apis.html, default should only be used with mono and stereo stream because the channel ordering is not defined by Alsa. To get a well-defined channel ordering, one must use one of the surround40, surround51, etc., device names. However, these device names do not always allow multiple opens, so a fallback scheme is implemented to use default if necessary. BUG=20945,17703 TEST=listened with built-in soundcard and USB soundcard with various other audio programs running. Review URL: http://codereview.chromium.org/275022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29299 0039d316-1c4b-4281-b951-d872f2087c98
* Report stalled event correctly for <video>hclam@chromium.org2009-10-164-1/+45
| | | | | | | | | | | | | | | | | | | | | BUG=20127 BUG=13568 TEST=Opens a web page, stalled event should be fire only if network is actuall stalled. What this patch does: 1. Report Loading / Idle according to whether we are actively receiving data in the BuffereResourceLoader. This is done by signaling the network events to BufferedDataSource and then to the media playback pipeline. 2. Report byteLoaded() as the last byte position buffered. This will enable an actual ticking progress for the progress event. With this value actually ticking, stalled event is suppressed. Review URL: http://codereview.chromium.org/269002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29235 0039d316-1c4b-4281-b951-d872f2087c98
* Mark YUV conversion functions private_extern on the Mac. These symbols don'tmark@chromium.org2009-10-151-2/+0
| | | | | | | | | | | need to leak beyond the module in which they're used. BUG=24911 TEST=nm C.app/Contents/Versions/*/C F.framework/C F | grep " [A-TV-Z] " should not show _MacConvertYUVToRGB32Row or _MacScaleYUVToRGB32Row. Review URL: http://codereview.chromium.org/269098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29181 0039d316-1c4b-4281-b951-d872f2087c98
* Pad time to next audio data write to compensate for nanosleep inaccuracy on ↵ajwong@chromium.org2009-10-151-0/+10
| | | | | | | | | | | | | linux. Nanosleep on linux can miss its deadline by up to 10ms (according to the manpage). Pad 20ms (2x that amount) to give room for missed deadlines. BUG=23974 TEST=listened to previously stuttering audio clip on low-end hardware. Review URL: http://codereview.chromium.org/271081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29163 0039d316-1c4b-4281-b951-d872f2087c98
* MMX2 improvements on Linux 64 bit.fbarchard@chromium.org2009-10-153-77/+87
| | | | | | | | | | | MMX2 to avoid EMMS LEA to remove 2 instructions from Scale loop shuffle to remove one instruction sub at top of loop avoids one branch Review URL: http://codereview.chromium.org/269088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29107 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the base_gfx project since it no longer has an external dependencies.brettw@chromium.org2009-10-141-0/+1
| | | | | | | | | | Replace it with base_i18n which encapsulates all ICU dependencies. BUG=none TEST=none Review URL: http://codereview.chromium.org/267048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29036 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 29019.finnur@chromium.org2009-10-143-70/+66
| | | | | | | | | Reverting due to test_shell_tests Linux 64 release failures TBR: fbarchard Review URL: http://codereview.chromium.org/275021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29031 0039d316-1c4b-4281-b951-d872f2087c98
* Use lea to remove 2 instructions from the inner loop of YUV Scale.fbarchard@chromium.org2009-10-143-66/+70
| | | | | | | | | | | Use MMX2 to remove emms. unittest has code to time yuv scale and convert 100 times so it takes about 1 second... useful for catching performance issues. But the code is disabled. BUG=23263 TEST=media_unittest should pass and run much faster: 28% faster than 32 bit version. Review URL: http://codereview.chromium.org/273047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29019 0039d316-1c4b-4281-b951-d872f2087c98
* Add 'Hash' to printf for test corpus script compatibility and future hash ↵fbarchard@chromium.org2009-10-141-3/+3
| | | | | | | | compatibility. Review URL: http://codereview.chromium.org/276025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29002 0039d316-1c4b-4281-b951-d872f2087c98
* Turn NULL used as int to 0.phajdan.jr@chromium.org2009-10-132-4/+4
| | | | | | | | | | | | | (Excluding chrome/browser/...) Landing patch for Jacob Mandelson. Original review: http://codereview.chromium.org/195067 BUG=none TEST=base_unittests & app_unittests Review URL: http://codereview.chromium.org/267076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28810 0039d316-1c4b-4281-b951-d872f2087c98