Forums - Video stream processing on Android using OpenCL

1 post / 0 new
Video stream processing on Android using OpenCL
Pavel_Gaenko
Join Date: 17 Jan 14
Posts: 7
Posted: Tue, 2014-02-04 03:26

Dear all,

Currently I am making investigations how much processing it is possible to apply to the video stream using OpenCL and Adreno gpu.

I want to make processing in NV21 format directly without color space conversions, as it is usually done on desktop gpu.  I found examples how to get GL_TEXTURE_EXTERNAL_OES  OpenGL texture directly from Camera or MediaPlayer . Using fragment shader it is converted to RGBA on the fly.

Is it possible to interop GL_TEXTURE_EXTERNAL_OES  GL texture to CL without data copy? And can it be accessed as YUV without conversion? It will be great to have it as buffer.

The main question what is the fastest and most effective (with less copy operations) way to get NV21 data from media sources in OpenCL on Android.

 

Thanks, Pavel.

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.