Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Issue 9346012: Video decode in hardware on ARM platform. (Closed)

Created:
8 years, 10 months ago by Arun
Modified:
8 years, 9 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, acolwell+watch_chromium.org, annacc+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org, micahc
Visibility:
Public.

Description

Description: Video decode in hardware on ARM platform. This patch modifies the GpuVideoDecodeAccelerator machinery to enable HW decode on certain platforms. In case of some ARM platforms, the texture memory allocated by GPU(glTexImage2D) cannot be shared with other devices such as a seperate HW decoder. So a Pixmap buffer is allocated and an EGL Image is created from the pixmap handle. This EGL Image is sharable between the HW Decoder and the GPU. TEST=omx_video_decode_accelerator_unittest

Patch Set 1 #

Total comments: 12

Patch Set 2 : '' #

Total comments: 13

Patch Set 3 : '' #

Total comments: 7

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 3

Patch Set 7 : '' #

Total comments: 2

Patch Set 8 : '' #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -41 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/media/gles2_texture_to_egl_image_translator.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -6 lines 0 comments Download
M content/common/gpu/media/gles2_texture_to_egl_image_translator.cc View 1 2 3 4 5 6 7 8 4 chunks +56 lines, -11 lines 0 comments Download
M content/common/gpu/media/omx_video_decode_accelerator.h View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -1 line 0 comments Download
M content/common/gpu/media/omx_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 chunks +37 lines, -22 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 47 (0 generated)
Arun
Hi This patch is related the buffer allocation and sharing only. To test the unit ...
8 years, 10 months ago (2012-02-07 04:58:22 UTC) #1
Ami GONE FROM CHROMIUM
Hi Arun, Are you or your company represented in the AUTHORS file, and have you/has ...
8 years, 10 months ago (2012-02-07 05:11:41 UTC) #2
Arun
Hi Ami I signed the individual CLA today. My company has started the procedure to ...
8 years, 10 months ago (2012-02-07 05:40:51 UTC) #3
Ami GONE FROM CHROMIUM
Thanks for working on this. As I said in a comment below I very much ...
8 years, 10 months ago (2012-02-07 17:05:40 UTC) #4
Arun
Thanks for all the review comments. This is the initial code, so I will make ...
8 years, 10 months ago (2012-02-08 03:57:12 UTC) #5
Arun
https://chromiumcodereview.appspot.com/9346012/diff/1/content/common/gpu/media/gpu_video_decode_accelerator.cc#newcode140 > content/common/gpu/media/gpu_video_decode_accelerator.cc:140: > video_decoder->SetEglState(gfx::GLSurfaceEGL::GetNativeDisplay(), > The fact that this param doesn't depend on any ...
8 years, 10 months ago (2012-02-08 11:49:54 UTC) #6
Ami GONE FROM CHROMIUM
> > glEGLImageTargetTexture2DOES binds the EGL Image to the current active > texture. > So ...
8 years, 10 months ago (2012-02-08 18:47:07 UTC) #7
Arun
> I'm confused; IIUC > egl_create_image_khr(...EGL_NATIVE_PIXMAP_KHR...) creates an EGLImage > wrapping the passed-in Pixmap, so ...
8 years, 10 months ago (2012-02-09 02:49:03 UTC) #8
Ami GONE FROM CHROMIUM
> > Yes, glEGLImageTargetTexture2DOES replaces the texture's memory w/ the > pixmap's > memory under ...
8 years, 10 months ago (2012-02-09 04:51:22 UTC) #9
Arun
> > Interesting. Can most/all of this CL be replaced by making the original > ...
8 years, 10 months ago (2012-02-09 10:04:39 UTC) #10
Ami GONE FROM CHROMIUM
Caught up with mtg notes explaining the decision process. Ignore my comment about glEGLImageTargetTexture2DOES.
8 years, 10 months ago (2012-02-09 18:46:54 UTC) #11
Arun
I have changed the code according the the comments given above.
8 years, 10 months ago (2012-02-16 03:55:13 UTC) #12
Ami GONE FROM CHROMIUM
Nice! https://chromiumcodereview.appspot.com/9346012/diff/13001/content/common/gpu/media/gles2_texture_to_egl_image_translator.cc File content/common/gpu/media/gles2_texture_to_egl_image_translator.cc (right): https://chromiumcodereview.appspot.com/9346012/diff/13001/content/common/gpu/media/gles2_texture_to_egl_image_translator.cc#newcode45 content/common/gpu/media/gles2_texture_to_egl_image_translator.cc:45: if (x_display_) { This seems like a strange ...
8 years, 10 months ago (2012-02-18 00:00:24 UTC) #13
Arun
Patch 3 submitted. component_name_is_sec_h264ext_ is required for some changes in OMX integration. I will submit ...
8 years, 10 months ago (2012-02-20 11:40:43 UTC) #14
Ami GONE FROM CHROMIUM
Almost there. https://chromiumcodereview.appspot.com/9346012/diff/19002/content/common/gpu/media/gles2_texture_to_egl_image_translator.cc File content/common/gpu/media/gles2_texture_to_egl_image_translator.cc (right): https://chromiumcodereview.appspot.com/9346012/diff/19002/content/common/gpu/media/gles2_texture_to_egl_image_translator.cc#newcode28 content/common/gpu/media/gles2_texture_to_egl_image_translator.cc:28: if (!AreEGLExtensionsInitialized()) { What happens if glegl_image_targettexture_2does ...
8 years, 10 months ago (2012-02-20 16:54:27 UTC) #15
Arun
Patch 4 submitted.
8 years, 10 months ago (2012-02-21 06:49:13 UTC) #16
Ami GONE FROM CHROMIUM
Almost ready to land; other than the one nit below, there's just the question of ...
8 years, 10 months ago (2012-02-22 02:29:24 UTC) #17
Arun
Thanks for reviewing the code.
8 years, 10 months ago (2012-02-22 09:26:54 UTC) #18
Arun
On 2012/02/22 02:29:24, Ami Fischman wrote: > Almost ready to land; other than the one ...
8 years, 10 months ago (2012-02-22 11:34:28 UTC) #19
Ami GONE FROM CHROMIUM
On 2012/02/22 11:34:28, Arun wrote: > Micah had told us that the CCLA signed sometime ...
8 years, 10 months ago (2012-02-22 17:59:40 UTC) #20
Arun
I have modified the o_v_d_a.cc for some OMX related changes. The main change is the ...
8 years, 9 months ago (2012-03-05 09:59:22 UTC) #21
Ami GONE FROM CHROMIUM
On 2012/03/05 09:59:22, Arun wrote: > I have modified the o_v_d_a.cc for some OMX related ...
8 years, 9 months ago (2012-03-05 17:25:39 UTC) #22
Arun
I am yet to submit the patch for review. Just wanted to discuss the same ...
8 years, 9 months ago (2012-03-06 03:46:21 UTC) #23
Ami GONE FROM CHROMIUM
> > Does that work with <video>? I'm worried about kMaxVideoFrames being 4 in >> ...
8 years, 9 months ago (2012-03-06 05:04:38 UTC) #24
Arun
> > Hmm; we'll have to test that a fair bit; the "4" has been ...
8 years, 9 months ago (2012-03-07 09:28:11 UTC) #25
Ami GONE FROM CHROMIUM
> > we have solved the issue with 4 buffers in the color conversion. > ...
8 years, 9 months ago (2012-03-07 18:18:03 UTC) #26
Ami GONE FROM CHROMIUM
BTW the CCLA confirmation finally came through so this CL can land once you're done ...
8 years, 9 months ago (2012-03-08 17:37:20 UTC) #27
Arun
I have done few changes for OMX integration also. Will submit the complete patch after ...
8 years, 9 months ago (2012-03-09 04:57:09 UTC) #28
Arun
Patch 6 submitted. I have added few changes required for SEC OMX integration also. Creating ...
8 years, 9 months ago (2012-03-12 05:31:36 UTC) #29
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/9346012/diff/38001/content/common/gpu/media/omx_video_decode_accelerator.cc File content/common/gpu/media/omx_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/9346012/diff/38001/content/common/gpu/media/omx_video_decode_accelerator.cc#newcode25 content/common/gpu/media/omx_video_decode_accelerator.cc:25: void* omx_handle = dlopen("libOMXCore.so", RTLD_NOW); Is this capitalization open ...
8 years, 9 months ago (2012-03-12 16:48:30 UTC) #30
Arun
Patch 7 submitted. Please review the same.
8 years, 9 months ago (2012-03-14 10:09:40 UTC) #31
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/9346012/diff/43001/AUTHORS File AUTHORS (right): https://chromiumcodereview.appspot.com/9346012/diff/43001/AUTHORS#newcode163 AUTHORS:163: Arun Mankuzhi <arun.m@samsung.com> This line should list "Samsung" instead ...
8 years, 9 months ago (2012-03-14 17:21:59 UTC) #32
Arun
https://chromiumcodereview.appspot.com/9346012/diff/43001/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode77 > content/common/gpu/media/video_decode_accelerator_unittest.cc:77: > FILE_PATH_LITERAL("test-25fps.h264:1280:720:250:258:33:175:1"); > You can't change this without providing a new test-25fps.h264 ...
8 years, 9 months ago (2012-03-15 01:50:07 UTC) #33
Ami GONE FROM CHROMIUM
> > https://chromiumcodereview.**appspot.com/9346012/diff/** > 43001/content/common/gpu/**media/video_decode_**accelerator_unittest.cc#** > newcode77<https://chromiumcodereview.appspot.com/9346012/diff/43001/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode77> > >> content/common/gpu/media/**video_decode_accelerator_**unittest.cc:77: >> FILE_PATH_LITERAL("test-25fps.**h264:1280:720:250:258:33:175:**1"); >> You can't ...
8 years, 9 months ago (2012-03-15 02:06:40 UTC) #34
Arun
AUTHORS file and v_d_a_u.cc modified.
8 years, 9 months ago (2012-03-15 03:45:06 UTC) #35
Ami GONE FROM CHROMIUM
LGTM except that: 1) The CCLA signatory is "Samsung" (without additional adjectives) and the CCLA ...
8 years, 9 months ago (2012-03-15 21:09:41 UTC) #36
Arun
Thanks. I will build the latest version and test on Exynos.
8 years, 9 months ago (2012-03-16 04:17:57 UTC) #37
Arun
Checked the commit.
8 years, 9 months ago (2012-03-16 04:21:48 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arunm.chrome@gmail.com/9346012/45005
8 years, 9 months ago (2012-03-16 04:25:46 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arunm.chrome@gmail.com/9346012/45005
8 years, 9 months ago (2012-03-16 04:26:35 UTC) #40
commit-bot: I haz the power
Presubmit check for 9346012-45005 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-16 04:26:42 UTC) #41
Arun
Looks like there are some issue in the commit.
8 years, 9 months ago (2012-03-16 05:03:36 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arunm.chrome@gmail.com/9346012/45005
8 years, 9 months ago (2012-03-16 14:56:42 UTC) #43
commit-bot: I haz the power
Presubmit check for 9346012-45005 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-16 14:56:46 UTC) #44
Ami GONE FROM CHROMIUM
Sorry for the run-around. I checked with People Who Know(tm) and it turns out I ...
8 years, 9 months ago (2012-03-16 17:15:49 UTC) #45
Arun M
Created a new patch with @samsung.com address. https://chromiumcodereview.appspot.com/9724030/
8 years, 9 months ago (2012-03-19 04:39:16 UTC) #46
Ami GONE FROM CHROMIUM
8 years, 9 months ago (2012-03-19 17:13:51 UTC) #47
I marked this issue as closed and L GTM'd & CQ'd the new version at
https://chromiumcodereview.appspot.com/9724030/.

Powered by Google App Engine
This is Rietveld 408576698