summaryrefslogtreecommitdiffstats
path: root/media/tools
Commit message (Collapse)AuthorAgeFilesLines
* 1. remove initial rendering lag time for egl image decoding pathwjia@google.com2010-06-2410-59/+84
| | | | | | | | | | | 2. put all GLES operations in one thread BUG=none TEST=dev platform and desktop Review URL: http://codereview.chromium.org/2836019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50749 0039d316-1c4b-4281-b951-d872f2087c98
* move DEPS of app into player_x11wjia@google.com2010-06-241-0/+0
| | | | | | | | | BUG=none TEST=try bots Review URL: http://codereview.chromium.org/2828023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50745 0039d316-1c4b-4281-b951-d872f2087c98
* media_Bench and ffmpeg_tests disable exception handler by defaultfbarchard@chromium.org2010-06-241-2/+8
| | | | | | | | | BUG=47307 TEST=no change in normal behavior. Review URL: http://codereview.chromium.org/2811026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50684 0039d316-1c4b-4281-b951-d872f2087c98
* Allow src/media/tools/ to include files from app.tony@chromium.org2010-06-231-0/+4
| | | | | | | | | | Seems ok since these are stand alone programs. TBR=wjia Review URL: http://codereview.chromium.org/2834017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50565 0039d316-1c4b-4281-b951-d872f2087c98
* code cleanup for media code for video renerers.jiesun@google.com2010-06-237-71/+29
| | | | | | | | | add more generic surface format and surface type signalling from video decoder to video renderer. if we want to allocate buffer in renderer, we had to know these kind of information. remove redundant ParseMediaFormat and duplicated width,height, egl_image_supports in derived class of VideoRenderBase. Review URL: http://codereview.chromium.org/2829009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50558 0039d316-1c4b-4281-b951-d872f2087c98
* fix broken gl rendererwjia@google.com2010-06-232-27/+4
| | | | | | | | | BUG=none TEST=player_x11 Review URL: http://codereview.chromium.org/2803019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50555 0039d316-1c4b-4281-b951-d872f2087c98
* add play controljiesun@google.com2010-06-161-17/+60
| | | | | | Review URL: http://codereview.chromium.org/2813006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50041 0039d316-1c4b-4281-b951-d872f2087c98
* 1. support stop mode for omxwjia@google.com2010-06-151-3/+9
| | | | | | | | | | | 2. make player_x11 respond to button event quickly BUG=none TEST=dev platform Review URL: http://codereview.chromium.org/2781010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49749 0039d316-1c4b-4281-b951-d872f2087c98
* 1. make omx engine the driving force to read bit streamwjia@google.com2010-06-102-5/+2
| | | | | | | | | | | | 2. update omx_codec_unittest and omx_test correspondingly 3. fix copy&paste error in shader code BUG=none TEST=dev platform Review URL: http://codereview.chromium.org/2752002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49428 0039d316-1c4b-4281-b951-d872f2087c98
* revert cl 49121 since the way of using glEglImageTargetTexture2DOES is ↵wjia@google.com2010-06-092-23/+24
| | | | | | | | | | | | undefined and it crashes randomly. BUG=none TEST=dev platform Review URL: http://codereview.chromium.org/2765005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49318 0039d316-1c4b-4281-b951-d872f2087c98
* change X/GL thread to message loop for injecting taskjiesun@google.com2010-06-097-82/+82
| | | | | | | | | | | | | | 1. there are need to allocate buffer in this thread, requested by other threads. therefore it is natural to use message loop instead of infinite loop. 2. in the future, gpu command buffer consumer is running on it own thread and own the eglContext. we need to post buffer allocation there, therefore this change make player_x11 more resemble the real workflow in chrome. TEST= glVideoRender on host machine. glesVideoRender/x11VideoRender on arm netbook. BUGS=None Review URL: http://codereview.chromium.org/2724005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49255 0039d316-1c4b-4281-b951-d872f2087c98
* use glEGLImageTargetTexture2DOES instead of FindTexture()jiesun@google.com2010-06-072-24/+23
| | | | | | Review URL: http://codereview.chromium.org/2719001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49121 0039d316-1c4b-4281-b951-d872f2087c98
* add support of OpenMAX EGL image decodingwjia@google.com2010-06-073-57/+199
| | | | | | | | | | | | add support of GLES2 EGL image rendering OpenMAX system memory decoding almost works expect flow control in video renderer base BUG=none TEST=dev platform Review URL: http://codereview.chromium.org/2456006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49089 0039d316-1c4b-4281-b951-d872f2087c98
* some vendor's compiler had issues about the constant variable.jiesun@google.com2010-06-021-2/+5
| | | | | | | | | | | we had to use uniform. TEST=On vendor's board. BUG=None. Review URL: http://codereview.chromium.org/2436007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48758 0039d316-1c4b-4281-b951-d872f2087c98
* Adding support for playing audio only also files through player_x11 ↵scherkus@chromium.org2010-06-021-3/+10
| | | | | | | | | | | | application. Currently the application just hangs without doing anything if an audio only file is given as input to it. Patch by sashinde@nvidia.com: http://codereview.chromium.org/2075018 BUG=none TEST=Try playing an audio only file before and after this change. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48694 0039d316-1c4b-4281-b951-d872f2087c98
* make opengles 2.0 worksjiesun@google.com2010-06-011-1/+3
| | | | | | | | | BUG=None TEST=NVIDIA Review URL: http://codereview.chromium.org/2455003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48651 0039d316-1c4b-4281-b951-d872f2087c98
* Remove omx_codec since OMX client implementation is in ↵wjia@google.com2010-05-281-71/+86
| | | | | | | | | | | | | omx_video_decode_engine. Update omx_test to use omx_video_decode_engine. Contributed by wjia@chromium.org BUG=none TEST=tested on tegra Review URL: http://codereview.chromium.org/2255005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48492 0039d316-1c4b-4281-b951-d872f2087c98
* 1. decoder interface now looks a little strange, until we refactoring.jiesun@google.com2010-05-211-8/+5
| | | | | | | | 2. first step to merge omx_decoder_engine/omx_codec by making omx_decoder_engine as simple as possible. Disable omx_codec_unittests during this process. Review URL: http://codereview.chromium.org/2117020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47965 0039d316-1c4b-4281-b951-d872f2087c98
* Enable error recognition and error concealment options in qualification ↵fbarchard@chromium.org2010-05-171-0/+12
| | | | | | | | | | | software, for consistency with Chrome, and as a switch in media_bench BUG=31093 TEST=media_bench --error-correction --stream=video --video-threads=1 d:\mediatests\tulip\tulip2.mp4 Review URL: http://codereview.chromium.org/2107009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47443 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Add a bunch of missing includes.thestig@chromium.org2010-05-101-1/+2
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2018001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46850 0039d316-1c4b-4281-b951-d872f2087c98
* Add EGLImage as one media type different than regular uncompressed video buffer.scherkus@chromium.org2010-05-057-8/+20
| | | | | | | | | | | | | | Video renderer could get this info via decoder->media_format(). This is needed in case video renderer is the buffer allocator. Patch by wjia@chromium.org: http://codereview.chromium.org/1725021/show BUG=NONE TEST=compiles Review URL: http://codereview.chromium.org/1952003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46479 0039d316-1c4b-4281-b951-d872f2087c98
* Remove OmxSink interface because Buffer Allocation will go through Allocator ↵jiesun@google.com2010-04-273-52/+7
| | | | | | | | | | in the future, and all allocation required parameters will be passed to "Allocator factory" during intiailized phase of render/decoder. Remove OMX_BUFFERHEADERTYPE merge logic, this is based on assumptions that all vendor will use one frame per buffer scheme instead of one slice(multiple rows) per buffer which is specified by OpenMAX IL Spec. Review URL: http://codereview.chromium.org/1786001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45705 0039d316-1c4b-4281-b951-d872f2087c98
* Vertical Scaler better pipelined for Atomfbarchard@chromium.org2010-04-231-2/+8
| | | | | | | | | BUG=42064 TEST=sse2 version of scaling should be faster on Atom. No quality change. Review URL: http://codereview.chromium.org/1700010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45431 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 45265 - Speed up vertical filtering using v = a+(ba)*x formulafbarchard@chromium.org2010-04-221-6/+0
| | | | | | | | | | | BUG=42064 TEST=unittests should still pass Review URL: http://codereview.chromium.org/1733004 TBR=jamesr@chromium.org Review URL: http://codereview.chromium.org/1718007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45270 0039d316-1c4b-4281-b951-d872f2087c98
* Speed up vertical filtering using v = a+(b-a)*x formulafbarchard@chromium.org2010-04-211-0/+6
| | | | | | | | BUG=42064 TEST=unittests should still pass Review URL: http://codereview.chromium.org/1733004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45265 0039d316-1c4b-4281-b951-d872f2087c98
* Issues with video loopinghclam@chromium.org2010-04-201-2/+2
| | | | | | | | | | | | | | | | | Some video streams are badly muxed and have video packets with timestamps greater than the duration. This causes the logic in the video renderer to sleep forever and never read the end-of-stream packet and thus the stream is never ended. This change adjusted the condition on when we should sleep and handle timestamp greater than duration as a special case. TEST=video loops BUG=41579 Review URL: http://codereview.chromium.org/1652011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45124 0039d316-1c4b-4281-b951-d872f2087c98
* scaler_bench is a simple benchmark that can be used to measure performance ↵sergeyu@chromium.org2010-04-202-0/+210
| | | | | | | | | | | | | of our image scaling code. In this version it times performance of image scaling using Skia, and using Chromium's own scaler with and without filtering. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44950 Review URL: http://codereview.chromium.org/1518034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45067 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 44950 - scaler_bench is a simple benchmark that can be used to ↵sergeyu@chromium.org2010-04-191-205/+0
| | | | | | | | | | | | | | measure performance of our image scaling code. In this version it times performance of image scaling using Skia, and using Chromium's own scaler with and without filtering. BUG=none TEST=none Review URL: http://codereview.chromium.org/1518034 TBR=sergeyu@chromium.org Review URL: http://codereview.chromium.org/1572047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44966 0039d316-1c4b-4281-b951-d872f2087c98
* scaler_bench is a simple benchmark that can be used to measure performance ↵sergeyu@chromium.org2010-04-191-0/+205
| | | | | | | | | | | of our image scaling code. In this version it times performance of image scaling using Skia, and using Chromium's own scaler with and without filtering. BUG=none TEST=none Review URL: http://codereview.chromium.org/1518034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44950 0039d316-1c4b-4281-b951-d872f2087c98
* code fix for video framejiesun@google.com2010-04-162-72/+63
| | | | | | Review URL: http://codereview.chromium.org/1623011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44774 0039d316-1c4b-4281-b951-d872f2087c98
* Remove 2 memcpy() in the OpenMAX code pathhclam@chromium.org2010-04-151-4/+5
| | | | | | | | | | | | Reviewed: http://codereview.chromium.org/1620012 Submitted for: wjia@chromium.org This also fixes new/delete mismatch in the last commit by using scoped_array for data. Review URL: http://codereview.chromium.org/1630026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44677 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Remove 2 memcpy() for omx video decode input"hclam@chromium.org2010-04-141-5/+4
| | | | | | | | | | Reverr r44537 as it introduces memory leaks. TBR=wjia@google.com, rsesek@chromium.org Review URL: http://codereview.chromium.org/1585038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44568 0039d316-1c4b-4281-b951-d872f2087c98
* Remove 2 memcpy() for omx video decode inputhclam@chromium.org2010-04-141-4/+5
| | | | | | | | | | | | Some refactoring to remove 2 memcpy() for encoded video data for OpenMAX. Submitted for: wjia@google.com Reviewer: http://codereview.chromium.org/1574024/show Review URL: http://codereview.chromium.org/1572037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44537 0039d316-1c4b-4281-b951-d872f2087c98
* player_wtl add hotkey CTRL-F for filtering on/offfbarchard@chromium.org2010-04-141-3/+3
| | | | | | | | | BUG=19113 TEST=none Review URL: http://codereview.chromium.org/1547032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44439 0039d316-1c4b-4281-b951-d872f2087c98
* add filtering to player_wtlfbarchard@chromium.org2010-04-095-27/+76
| | | | | | | | | BUG=19113 TEST=none Review URL: http://codereview.chromium.org/1576030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44130 0039d316-1c4b-4281-b951-d872f2087c98
* Optimized version of bilinear video scaler. It is about 2 times faster than ↵sergeyu@chromium.org2010-04-091-1/+2
| | | | | | | | | | | Skia that is currently used for video scaling. BUG=19113 TEST=none Review URL: http://codereview.chromium.org/1556021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44119 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 42727 - ffmpeg roll chromium binariesfbarchard@chromium.org2010-03-261-2/+2
| | | | | | | | | | | bug=none test=none TBR=fbarchard@chromium.org Review URL: http://codereview.chromium.org/1401002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42728 0039d316-1c4b-4281-b951-d872f2087c98
* ffmpeg roll chromium binariesfbarchard@chromium.org2010-03-261-2/+2
| | | | | | | | bug=none test=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42727 0039d316-1c4b-4281-b951-d872f2087c98
* Merged VideoSurface, VideoFrame and VideoFrameImpl in VideoFrame.scherkus@chromium.org2010-03-232-64/+59
| | | | | | | | | | | Patch by sergeyu@chromium.org BUG=28100 TEST=Ran media_unittests Review URL: http://codereview.chromium.org/1226001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42391 0039d316-1c4b-4281-b951-d872f2087c98
* win: string_util.h -> utf_string_conversions.h fix.jhawkins@google.com2010-03-111-1/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/830002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41292 0039d316-1c4b-4281-b951-d872f2087c98
* Move wtl from chrome/third_party to third_party/. Thistony@chromium.org2010-03-091-2/+2
| | | | | | | | | | | breaks dependencies on chrome from webkit, app, views and base. BUG=37649 TEST=compiles Review URL: http://codereview.chromium.org/699001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41001 0039d316-1c4b-4281-b951-d872f2087c98
* media: string_util.h -> utf_string_conversions.h fix.jhawkins@chromium.org2010-03-062-2/+2
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/668227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40852 0039d316-1c4b-4281-b951-d872f2087c98
* Fix license headers in X11/GL/GLES video renderers.scherkus@chromium.org2010-03-033-9/+9
| | | | | | | | | | TBR=piman BUG=none TEST=none Review URL: http://codereview.chromium.org/666006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40542 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing some subtle issues with player_x11 and GL/GLES video renderers.scherkus@chromium.org2010-03-035-58/+56
| | | | | | | | | BUG=n/a TEST=n/a Review URL: http://codereview.chromium.org/665008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40539 0039d316-1c4b-4281-b951-d872f2087c98
* ffmpeg better message for error on opening file if the file opens but the ↵fbarchard@chromium.org2010-03-032-10/+30
| | | | | | | | | | | codec is not supported. BUG=37256 TEST=ffmpeg_tests.exe d:\mediatests\elephant2.m4v with chromium and you should get 'File format not supported' Review URL: http://codereview.chromium.org/661426 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40472 0039d316-1c4b-4281-b951-d872f2087c98
* Generate stubs for OpenMAX ILhclam@chromium.org2010-03-022-0/+14
| | | | | | | | | | | | Generate stubs for OpenMAX IL so we don't need a real OpenMAX library for building. The actual library is loaded during runtime. TEST=Build is green TEST=Running omx_test works on hardware with OpenMAX support Review URL: http://codereview.chromium.org/661135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40418 0039d316-1c4b-4281-b951-d872f2087c98
* Using bitstream filters if OpenMAX is enabledhclam@chromium.org2010-03-011-0/+6
| | | | | | | | | | | | | | | Use FFmpeg bitstream filters if OpenMAX is enabled. The following filters are used: 1. h264_mp4toannexb 2. mpeg4video_es 3. vc1_asftorcv 4. vc1_asftoannexg TEST=run player_x11 with --enable-openmax and the above formats work Review URL: http://codereview.chromium.org/661059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40306 0039d316-1c4b-4281-b951-d872f2087c98
* Some fixes to player_x11 when OpenMAX is enabledhclam@chromium.org2010-02-201-1/+0
| | | | | | | | | | | - remove the --enable-h264-annexb-filter flag - OmxVideoDecodeEngine have some problems dealing EOS buffers TEST=player_x11 runs with --enable-openmax Review URL: http://codereview.chromium.org/652008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39542 0039d316-1c4b-4281-b951-d872f2087c98
* Pulled out Callback code into base/callback.h. This is the first step ↵akalin@chromium.org2010-02-192-3/+5
| | | | | | | | | | | | | towards redoing the Callback interfaces. Added and removed includes as needed. BUG=35223 TEST=trybots Review URL: http://codereview.chromium.org/646061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39419 0039d316-1c4b-4281-b951-d872f2087c98
* gles2: fix stride supportpiman@chromium.org2010-02-171-3/+26
| | | | | | Review URL: http://codereview.chromium.org/626009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39283 0039d316-1c4b-4281-b951-d872f2087c98