Home
last modified time | relevance | path

Searched refs:red (Results 1 – 25 of 151) sorted by relevance

1234567

/frameworks/av/media/libnbaio/
DMonoPipeReader.cpp60 ssize_t red = availableToRead(); in read() local
61 if (CC_UNLIKELY(red <= 0)) { in read()
65 return red; in read()
67 if (CC_LIKELY((size_t) red > count)) { in read()
68 red = count; in read()
72 if (part1 > (size_t) red) { in read()
73 part1 = red; in read()
78 size_t part2 = red - part1; in read()
83 mPipe->updateFrontAndNRPTS(red + mPipe->mFront, nextReadPTS); in read()
84 mFramesRead += red; in read()
[all …]
DPipeReader.cpp74 size_t red = mPipe.mMaxFrames - front; in read() local
75 if (CC_LIKELY(red > count)) { in read()
76 red = count; in read()
79 memcpy(buffer, (char *) mPipe.mBuffer + (front * mFrameSize), red * mFrameSize); in read()
81 if (CC_UNLIKELY(front + red == mPipe.mMaxFrames)) { in read()
82 if (CC_UNLIKELY((count -= red) > front)) { in read()
86 memcpy((char *) buffer + (red * mFrameSize), mPipe.mBuffer, count * mFrameSize); in read()
87 red += count; in read()
90 mFront += red; in read()
91 mFramesRead += red; in read()
[all …]
/frameworks/base/graphics/java/android/graphics/
DColor.java63 public static int red(int color) { in red() method in Color
93 public static int rgb(int red, int green, int blue) { in rgb() argument
94 return (0xFF << 24) | (red << 16) | (green << 8) | blue; in rgb()
107 public static int argb(int alpha, int red, int green, int blue) { in argb() argument
108 return (alpha << 24) | (red << 16) | (green << 8) | blue; in argb()
261 float red = 0.0f; in HSBtoColor() local
274 red = b; in HSBtoColor()
279 red = qv; in HSBtoColor()
284 red = pv; in HSBtoColor()
289 red = pv; in HSBtoColor()
[all …]
/frameworks/support/v7/palette/src/android/support/v7/graphics/
DColorUtils.java36 float r = (Color.red(fg) * alpha1) + (Color.red(bg) * alpha2 * (1f - alpha1)); in compositeColors()
49 double red = Color.red(color) / 255d; in calculateLuminance() local
50 red = red < 0.03928 ? red / 12.92 : Math.pow((red + 0.055) / 1.055, 2.4); in calculateLuminance()
58 return (0.2126 * red) + (0.7152 * green) + (0.0722 * blue); in calculateLuminance()
DColorCutQuantizer.java219 final int r = Color.red(color); in fitBox()
312 if (Color.red(color) >= dimensionMidPoint) { in findSplitPoint()
346 redSum += colorPopulation * Color.red(color); in getAverageColor()
403 ColorUtils.RGBtoHSL(Color.red(color), Color.green(color), Color.blue(color), mTempHsl); in shouldIgnoreColor()
/frameworks/base/core/java/android/hardware/camera2/params/
DTonemapCurve.java103 public TonemapCurve(float[] red, float[] green, float[] blue) { in TonemapCurve() argument
106 checkNotNull(red, "red must not be null"); in TonemapCurve()
110 checkArgumentArrayLengthDivisibleBy(red, POINT_SIZE, "red"); in TonemapCurve()
114 checkArgumentArrayLengthNoLessThan(red, MIN_CURVE_LENGTH, "red"); in TonemapCurve()
118 checkArrayElementsInRange(red, LEVEL_BLACK, LEVEL_WHITE, "red"); in TonemapCurve()
122 mRed = Arrays.copyOf(red, red.length); in TonemapCurve()
DRggbChannelVector.java58 public RggbChannelVector(final float red, final float greenEven, final float greenOdd, in RggbChannelVector() argument
60 mRed = checkArgumentFinite(red, "red"); in RggbChannelVector()
DLensShadingMap.java165 final float red = in getGainFactorVector() local
174 return new RggbChannelVector(red, greenEven, greenOdd, blue); in getGainFactorVector()
/frameworks/native/services/surfaceflinger/RenderEngine/
DDescription.cpp72 void Description::setColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { in setColor() argument
73 mColor[0] = red; in setColor()
DRenderEngine.h70 void clearWithColor(float red, float green, float blue, float alpha);
72 float red, float green, float blue, float alpha);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DUtilities.java150 float bgR = Color.red(bg) / 255f; in computeContrastBetweenColors()
158 float fgR = Color.red(fg) / 255f; in computeContrastBetweenColors()
172 (int) (overlayAlpha * Color.red(baseColor) + in getColorWithOverlay()
173 (1f - overlayAlpha) * Color.red(overlayColor)), in getColorWithOverlay()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableRggbChannelVector.java49 float red = buffer.getFloat(); in unmarshal() local
54 return new RggbChannelVector(red, gEven, gOdd, blue); in unmarshal()
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dvibrance.rs32 float red = (r-max(g, b)) * (1.f / 256.f);
33 float S = (float)(Vib/(1+native_exp(-red*3)))+1;
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dvibrance.rs32 float red = (r-max(g, b)) * (1.f / 256.f);
33 float S = (float)(Vib/(1+native_exp(-red*3)))+1;
/frameworks/native/opengl/libagl/
Ddxt.cpp52 #define red(x) (((x) >> 11) & 0x1f) macro
235 int r0 = red(color0); in decodeDXT1()
239 int r1 = red(color1); in decodeDXT1()
365 int r0 = red(color0); in decodeDXT3()
369 int r1 = red(color1); in decodeDXT3()
522 int r0 = red(color0); in decodeDXT5()
526 int r1 = red(color1); in decodeDXT5()
/frameworks/native/opengl/tests/testFramerate/src/com/android/testframerate/
DTestFramerateView.java76 float red = (now_us % 1000000) / 1000000.f; in onDrawFrame() local
79 GLES20.glClearColor(red, green, blue, 1.0f); in onDrawFrame()
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dvibrance.rs39 float red = (r-max(g, b))/256.f;
40 float sx = (float)(Vib/(1+native_exp(-red*3)));
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DDuotoneFilter.java112 float first[] = { Color.red(mFirstColor)/255f, in updateParameters()
115 float second[] = { Color.red(mSecondColor)/255f, in updateParameters()
/frameworks/native/opengl/libs/GLES_CM/
Dgl_api.in4 void API_ENTRY(glClearColor)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) {
5 CALL_GL_API(glClearColor, red, green, blue, alpha);
13 void API_ENTRY(glColor4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) {
14 CALL_GL_API(glColor4f, red, green, blue, alpha);
139 void API_ENTRY(glClearColorx)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) {
140 CALL_GL_API(glClearColorx, red, green, blue, alpha);
154 void API_ENTRY(glColor4ub)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) {
155 CALL_GL_API(glColor4ub, red, green, blue, alpha);
157 void API_ENTRY(glColor4x)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) {
158 CALL_GL_API(glColor4x, red, green, blue, alpha);
[all …]
/frameworks/native/opengl/tools/glgen/specs/gles11/
DGLES10.spec7 void glClearColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
8 void glClearColorx ( GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha )
13 void glColor4f ( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha )
14 void glColor4x ( GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha )
15 void glColorMask ( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha )
/frameworks/base/media/mca/filterfw/native/core/
Dshader_program.h350 void SetClearColor(float red, float green, float blue, float alpha);
427 float red; member
432 RGBAColor() : red(0), green(0), blue(0), alpha(1) { in RGBAColor()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPathDestructionActivity.java74 int red = MathUtils.random(255); in getRandomColor() local
77 return 0xff000000 | red << 16 | green << 8 | blue; in getRandomColor()
/frameworks/av/media/libstagefright/omx/
DSoftVideoEncoderOMXComponent.cpp139 unsigned red = src[redOffset]; in ConvertRGB32ToPlanar() local
145 ((red * 66 + green * 129 + blue * 25) >> 8) + 16; in ConvertRGB32ToPlanar()
151 ((-red * 38 - green * 74 + blue * 112) >> 8) + 128; in ConvertRGB32ToPlanar()
154 ((red * 112 - green * 94 - blue * 18) >> 8) + 128; in ConvertRGB32ToPlanar()
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL10.java290 float red, in glClearColor() argument
297 int red, in glClearColorx() argument
320 float red, in glColor4f() argument
327 int red, in glColor4x() argument
334 boolean red, in glColorMask() argument
/frameworks/native/opengl/tools/glgen/specs/jsr239/
Dglspec-1.07 void glClearColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
8 void glClearColorx ( GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha )
13 void glColor4f ( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha )
14 void glColor4x ( GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha )
15 void glColorMask ( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha )

1234567