summaryrefslogtreecommitdiffstats
path: root/media
Commit message (Collapse)AuthorAgeFilesLines
* Use FFmpeg demuxer and bitstream converters in omx_testhclam@chromium.org2010-01-306-243/+579
| | | | | | | | | | | | | | | | omx_test now uses FFmpeg demuxer and bistream converters. It can now parse mp4 files and convert them to H264 Annex B stream for input to OpenMAX decoder. Also refactored the file to move different reader methods to separate classes. BUG=32753 TEST=this is a test by itself Review URL: http://codereview.chromium.org/556032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37592 0039d316-1c4b-4281-b951-d872f2087c98
* Fix libssl.so link failures on Linux shared lib build.mmoss@google.com2010-01-271-0/+8
| | | | | | | | | | | | http://build.chromium.org/buildbot/waterfall.fyi/builders/Chromium%20Linux%20Builder%20(dbg-shlib)/builds/6369/steps/compile/logs/stdio This has been broken for a long time, I think basically since Linux switched to use_system_ssl=0. Also fix a couple unrelated shared lib failures in media. Review URL: http://codereview.chromium.org/553097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37256 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor some code that depends on FFmpeghclam@chromium.org2010-01-2624-60/+60
| | | | | | | | | | | | | Some FFmpeg header and source files are misplaced: media/filters/ffmpeg_common.{cc, h} -> media/ffmpeg media/tools/media_bench/file_protocol.{cc, h} -> media/ffmpeg And the necessary refactoring for the new location is done. Review URL: http://codereview.chromium.org/555087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37080 0039d316-1c4b-4281-b951-d872f2087c98
* Use OpenMAX for video decoding in the media pipelinehclam@chromium.org2010-01-235-48/+111
| | | | | | | | | | | | | This patch is to fix some issues when using OpenMAX video decoder in the media pipeline. It will enable player_x11 to decode using OpenMAX. This still requires some more work to enable Chrome to use OpenMAX for decoding. Review URL: http://codereview.chromium.org/549124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36936 0039d316-1c4b-4281-b951-d872f2087c98
* More unit tests for OpenMAXhclam@chromium.org2010-01-221-22/+95
| | | | | | | | | | | | | | | Added the following test cases: - Transition to executing state and back - Free component handle during executing state to expose leakage. - Request component handle using callbacks struct on stack and clear. This exposes bugs in library that doesn't copy the struct. TEST=omx_unittests BUG=NONE Review URL: http://codereview.chromium.org/548095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36912 0039d316-1c4b-4281-b951-d872f2087c98
* linux: add display option to media_bench, using GLpiman@chromium.org2010-01-224-54/+310
| | | | | | Review URL: http://codereview.chromium.org/523120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36886 0039d316-1c4b-4281-b951-d872f2087c98
* Switches to enable OpenMAX for video decoding in Chromehclam@chromium.org2010-01-224-5/+9
| | | | | | | | | Added a --enable-openmax switch to enable OpenMAX for video decoding. Review URL: http://codereview.chromium.org/555046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36883 0039d316-1c4b-4281-b951-d872f2087c98
* Unit tests for testing OpenMAX supporthclam@chromium.org2010-01-221-24/+331
| | | | | | | | | | | | | Added the following test cases: 1. GetComponentsByRole() now works with valid roles 2. GetHandle() / FreeHandle() pair on video decoder component 3. General configuration of video decoder component TEST=omx_unittests Review URL: http://codereview.chromium.org/550051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36834 0039d316-1c4b-4281-b951-d872f2087c98
* Video and OpenMAX: add role name to replace vendor specific component name.hclam@chromium.org2010-01-214-36/+106
| | | | | | | | | | | | | | | | | | | Add role name to replace vendor specific component name. Remove vendor specific Open MAX component name. use role name to find the appropriate component name in current OMX core library. We only pick the first component name returned and ignore all the other components with the same role. BUG=none TEST=none Reviewed: http://codereview.chromium.org/551084/show Submitted for: jiesun@chromium.org Review URL: http://codereview.chromium.org/546098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36716 0039d316-1c4b-4281-b951-d872f2087c98
* Separate input data into NALUs for testing OpenMAXhclam@chromium.org2010-01-201-30/+103
| | | | | | | | | | Feed OpenMAX H264 decoder into chunks of NALUs. That will solve some compability issues with decoders that require NALUs as boundary. Review URL: http://codereview.chromium.org/546018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36686 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build caused by omx_testhclam@chromium.org2010-01-151-0/+2
| | | | | | | | | | TBR=scherkus Initialize struct variables by memset()ing them. Review URL: http://codereview.chromium.org/552017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36401 0039d316-1c4b-4281-b951-d872f2087c98
* enable simple encoding in omx_codechclam@chromium.org2010-01-155-267/+585
| | | | | | | | | | | | | | | | | | | 1. add Format callback to notify media format change. 2. add timestamp to encoder input sample. 3. add loop count to input streams. 4. add enable-csc in encoder path. 5. measure initial delay 6. move color space conversion inside TestApp.(according to Alpha). 7. copy component name in OmxCodec ( Andrew ). BUG=31804 Submitted for: jiesun@chromium.org Reviewed: http://codereview.chromium.org/519084/show Review URL: http://codereview.chromium.org/552016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36400 0039d316-1c4b-4281-b951-d872f2087c98
* A simple sample video for decoder testing.fbarchard@chromium.org2010-01-131-0/+0
| | | | | | | | | BUG=30789 TEST=play this video with media_bench and ensure content decodes quickly and correctly. Review URL: http://codereview.chromium.org/545034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36174 0039d316-1c4b-4281-b951-d872f2087c98
* Simple unit tests for OpenMAX video decoderhclam@chromium.org2010-01-131-3/+36
| | | | | | | | | | Added two simple test cases for OpenMAX video decoder. One does init and deinit of OpenMAX. The other one enumerate available components of video_decoder role. Review URL: http://codereview.chromium.org/524044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36170 0039d316-1c4b-4281-b951-d872f2087c98
* More plumbing of the low latency modecpu@chromium.org2010-01-136-27/+69
| | | | | | | | | | | | | | - added flag to factory to request low latency mode - implemented switch from triple buffered to double buffer on windows (mac is already double buffered all the time) - added tests BUG=28292 TEST=ut included Review URL: http://codereview.chromium.org/523073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36090 0039d316-1c4b-4281-b951-d872f2087c98
* omx_test refactor to add encoder support. (only start)hclam@chromium.org2010-01-124-85/+316
| | | | | | | | | | | | | 1. add --dumpraw options 2. add --dumpyuv options to convert NV21 to IYUV 3. change StartUp() function to take input and output format. Reviewed: http://codereview.chromium.org/523044/show Submitted for: jiesun@chromium.org Review URL: http://codereview.chromium.org/542017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35976 0039d316-1c4b-4281-b951-d872f2087c98
* Retry 35837 linux: grab device name before closing itajwong@chromium.org2010-01-092-3/+14
| | | | | | | | | | | | PcmClose frees the handle regardless of whether there's an error while shutting down, so grab the PcmName result first in case we want to use it in an error message. Original Review URL: http://codereview.chromium.org/538005 BUG=20006 Review URL: http://codereview.chromium.org/542002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35854 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 35837 - Failed media tests - linux: grab device name before closing itrsesek@chromium.org2010-01-081-3/+2
| | | | | | | | | | | | | | | PcmClose frees the handle regardless of whether there's an error while shutting down, so grab the PcmName result first in case we want to use it in an error message. BUG=20006 Review URL: http://codereview.chromium.org/538005 TBR=evan@chromium.org Review URL: http://codereview.chromium.org/540003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35848 0039d316-1c4b-4281-b951-d872f2087c98
* linux: grab device name before closing itevan@chromium.org2010-01-081-2/+3
| | | | | | | | | | | | PcmClose frees the handle regardless of whether there's an error while shutting down, so grab the PcmName result first in case we want to use it in an error message. BUG=20006 Review URL: http://codereview.chromium.org/538005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35837 0039d316-1c4b-4281-b951-d872f2087c98
* Revert my last two commits that brokoe the buildhclam@chromium.org2010-01-064-311/+80
| | | | | | | | TBR=scherkus Review URL: http://codereview.chromium.org/524050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35642 0039d316-1c4b-4281-b951-d872f2087c98
* Fix linux buildhclam@chromium.org2010-01-061-3/+4
| | | | | | | | | | | Linux 64 bit build complains about printf. Comment out those problematic lines. TBR=ajwong Review URL: http://codereview.chromium.org/524049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35641 0039d316-1c4b-4281-b951-d872f2087c98
* omx_test refactor to add encoder support. (only start)hclam@chromium.org2010-01-064-80/+310
| | | | | | | | | | | | | | | 1. add --dumpraw options 2. add --dumpyuv options to convert NV21 to IYUV 3. change StartUp() function to take input and output format. Submitted=jiesun@google.com Reviewed=hclam@google.com Review=http://codereview.chromium.org/523044 BUG=NONE Review URL: http://codereview.chromium.org/525053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35639 0039d316-1c4b-4281-b951-d872f2087c98
* Use the standard DeleteTask rather than rolling my own.ajwong@chromium.org2009-12-301-13/+1
| | | | | | | | | TBR=scherkus BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35364 0039d316-1c4b-4281-b951-d872f2087c98
* Clarify licenses on a bunch of files.evan@chromium.org2009-12-291-0/+4
| | | | | | | | | | | In this process, I also filed bugs on various projects we depend on that also have unclear licenses. BUG=28291 Review URL: http://codereview.chromium.org/521009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35323 0039d316-1c4b-4281-b951-d872f2087c98
* Retry r35228: Fix windows build due to missing mock ffmpeg entry points.ajwong@chromium.org2009-12-232-0/+6
| | | | | | | | Original Review URL: http://codereview.chromium.org/522004 TBR: levin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35238 0039d316-1c4b-4281-b951-d872f2087c98
* TBR: levinajwong@chromium.org2009-12-232-6/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35229 0039d316-1c4b-4281-b951-d872f2087c98
* Fix windows build due to missing mock ffmpeg entry points.ajwong@chromium.org2009-12-232-0/+6
| | | | | | Review URL: http://codereview.chromium.org/522004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35228 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation of OmxVideoDecodeEngine.ajwong@chromium.org2009-12-2227-700/+1602
| | | | | | | | | | | | | | | | | | Also moves FFmpegVideoDecodeEngine FFmpegVideoDecoder, OmxVideoDecoder, and VideoDecoderImpl into their own files. Refactors FFmpegDemuxerTest to be less of a characterization test, and to hopefully be less fragile. Creates a set of utilities for handling Callbacks versus Tasks, and resource management related to Callbacks. Re-enables the annexb filters for the chrome build of FFmpeg. Added a BitstreamConverter class that abstracts the bitstream filter code. Cleans up a few gyp mistakes with flag exporting. Review URL: http://codereview.chromium.org/492023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35171 0039d316-1c4b-4281-b951-d872f2087c98
* Add a low-latency audio test that uses syncsocketscpu@chromium.org2009-12-171-0/+118
| | | | | | | | | BUG=none TEST=unit test included Review URL: http://codereview.chromium.org/500002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34787 0039d316-1c4b-4281-b951-d872f2087c98
* Give classes with virtual methods virtual protected destructors instead of ↵jamesr@chromium.org2009-12-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | implicit non-virtual public destructors. Was originally: Replace public nonvirtual destructors in classes with virtual members with protected nonvirtual destructors where possible, and with public virtual destructors where destruction of a derived class occurs. (Excluding chrome/browser/...) (Part 4 of http://www.gotw.ca/publications/mill18.htm has a rationale for why public nonvirtual destructors in classes with virtual members is dangerous.) Patch by: Jacob Mandelson (jlmjln@gmail.com) BUG=none TEST=base_unittests & app_unittests Review URL: http://codereview.chromium.org/200106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34633 0039d316-1c4b-4281-b951-d872f2087c98
* Link the following tests against tcmalloc:glider@chromium.org2009-12-101-0/+7
| | | | | | | | | | | | | | | | | | | | | app_unittests browser_tests startup_tests media_unittests printing_unittests net_unittests googleurl_unittests ipc_tests unit_tests ui_tests This patch was originally reviewed as http://codereview.chromium.org/466089 TBR=willchan Review URL: http://codereview.chromium.org/488004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34247 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor FFmpegVideoDecoder to try and generalize code common to all video ↵ajwong@chromium.org2009-12-1015-360/+913
| | | | | | | | | | decoders. This changes the DecoderBase API to be fully asynchronous when invoking its subclass's actions. Review URL: http://codereview.chromium.org/465044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34208 0039d316-1c4b-4281-b951-d872f2087c98
* 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