Home
last modified time | relevance | path

Searched refs:ImageShader (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DSobelFilter.java23 import androidx.media.filterfw.ImageShader;
84 private ImageShader mGradientXShader;
85 private ImageShader mGradientYShader;
86 private ImageShader mMagnitudeShader;
87 private ImageShader mDirectionShader;
108 mGradientXShader = new ImageShader(mGradientXSource); in onPrepare()
109 mGradientYShader = new ImageShader(mGradientYSource); in onPrepare()
110 mMagnitudeShader = new ImageShader(mMagnitudeSource); in onPrepare()
111 mDirectionShader = new ImageShader(mDirectionSource); in onPrepare()
DCameraStreamer.java85 protected HashMap<EGLContext, ImageShader> mTargetShaders
86 = new HashMap<EGLContext, ImageShader>();
155 ImageShader shader = mTargetShaders.get(context); in onCleanupContext()
174 protected ImageShader shaderForContext(EGLContext context) { in shaderForContext()
175 ImageShader shader = mTargetShaders.get(context); in shaderForContext()
183 protected ImageShader createClientShader() { in createClientShader()
214 ImageShader copyShader = shaderForContext(RenderTarget.currentContext()); in grabFrame()
234 protected void updateShaderTargetRect(ImageShader shader) { in updateShaderTargetRect()
292 protected ImageShader mCopyShader = null;
318 ImageShader copyShader = shaderForContext(context); in onRegisterClient()
[all …]
DBrightnessFilter.java22 import androidx.media.filterfw.ImageShader;
31 private ImageShader mShader;
74 mShader = new ImageShader(mBrightnessShader); in onPrepare()
DRotateFilter.java22 import androidx.media.filterfw.ImageShader;
33 private ImageShader mShader;
64 mShader = ImageShader.createIdentity(); in onPrepare()
DToGrayValuesFilter.java24 import androidx.media.filterfw.ImageShader;
56 private ImageShader mShader;
77 mShader = new ImageShader(mGrayPackFragment); in onPrepare()
DSurfaceHolderTarget.java32 import androidx.media.filterfw.ImageShader;
43 private ImageShader mShader = null;
113 mShader = ImageShader.createIdentity(); in onPrepare()
DCropFilter.java27 import androidx.media.filterfw.ImageShader;
39 private ImageShader mShader;
81 mShader = ImageShader.createIdentity(); in onPrepare()
DImageShader.java40 public class ImageShader { class
224 public ImageShader(String fragmentShader) { in ImageShader() method in ImageShader
229 public ImageShader(String vertexShader, String fragmentShader) { in ImageShader() method in ImageShader
234 public static ImageShader createIdentity() { in createIdentity()
235 return new ImageShader(mIdentityShader); in createIdentity()
238 public static ImageShader createIdentity(String vertexShader) { in createIdentity()
239 return new ImageShader(vertexShader, mIdentityShader); in createIdentity()
246 ImageShader shader = RenderTarget.currentTarget().getIdentityShader(); in renderTextureToTarget()
DRenderTarget.java73 private static HashMap<EGLContext, ImageShader> mIdShaders
74 = new HashMap<EGLContext, ImageShader>();
280 public ImageShader getIdentityShader() { in getIdentityShader()
281 ImageShader idShader = mIdShaders.get(mContext); in getIdentityShader()
283 idShader = ImageShader.createIdentity(); in getIdentityShader()
DViewFilter.java131 protected void setupShader(ImageShader shader, Rect frameRect, Rect outputRect) { in setupShader()
DFrameImage2D.java146 ImageShader idShader = RenderTarget.currentTarget().getIdentityShader(); in gpuImageCopy()
DBackingStore.java614 ImageShader.renderTextureToTarget(texture, getRenderTarget(), w, h); in syncTo()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DGpuVideoTrackDecoder.java28 import androidx.media.filterfw.ImageShader;
63 private ImageShader mImageShader;
151 ImageShader imageShader = getImageShader(); in copyFrameDataTo()
189 private ImageShader getImageShader() { in getImageShader()
191 mImageShader = new ImageShader(COPY_FRAGMENT_SHADER); in getImageShader()