/external/zopfli/src/zopflipng/lodepng/ |
H A D | lodepng.cpp | 2496 case 4: if(!( bd == 8 || bd == 16)) return 37; break; /*grey + alpha*/ 2510 case 4: return 2; /*grey + alpha*/ 2913 index for a color. It's like an octree, but because the alpha channel is used too, each 3475 unsigned char alpha; /*alpha channel, or alpha palette, required*/ member in struct:ColorProfile 3498 profile->alpha = 0; 3533 std::cout << "alpha: " << (int)p->alpha << std::endl; 3595 if(!profile->alpha [all...] |
/external/zxing/core/ |
H A D | core.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/zxing/ com/google/zxing/oned/ ... |
/external/webp/src/dec/ |
H A D | io.c | 149 const uint8_t* alpha = io->a; local 156 if (alpha != NULL) { 158 memcpy(dst, alpha, mb_w * sizeof(*dst)); 159 alpha += io->width; 163 // the user requested alpha, but there is none, set it to opaque. 173 const uint8_t** alpha, int* const num_rows) { 185 // Fortunately, *alpha data is persistent, so we can go back 186 // one row and finish alpha blending, now that the fancy upscaler 188 *alpha -= io->width; 199 const uint8_t* alpha local 172 GetAlphaSourceRow(const VP8Io* const io, const uint8_t** alpha, int* const num_rows) argument 232 const uint8_t* alpha = io->a; local [all...] |
H A D | vp8l.c | 35 // 2. alpha, 534 // Lastly, store alpha if needed. 655 // Special method for paletted alpha data. 711 // Row-processing for the special case when alpha data contains only one 717 // call to ReadSymbol() for red/blue/alpha channels. 857 int red, green, blue, alpha; local 862 alpha = ReadSymbol(&htree_group->htrees_[ALPHA], br); 863 *src = ((uint32_t)alpha << 24) | (red << 16) | (green << 8) | blue; 1197 // first row in the row-blocks. Not needed for paletted alpha. 1199 // Scratch buffer for temporary BGRA storage. Not needed for paletted alpha [all...] |
/external/webp/src/demux/ |
H A D | demux.c | 233 if (alpha_chunks > 0) return PARSE_ERROR; // VP8L has its own alpha 438 // Clear any alpha when the alpha flag is missing. 446 // Also, set ALPHA_FLAG if this is a lossless image with alpha. 650 const ChunkData* const alpha = f->img_components_ + 1; local 657 if (alpha->size_ == 0 && image->size_ == 0) return 0; 658 // Ensure alpha precedes image bitstream. 659 if (alpha->size_ > 0 && alpha->offset_ > image->offset_) { 668 // Ensure alpha precede 824 const ChunkData* const alpha = frame->img_components_ + 1; local [all...] |
/external/webp/src/dsp/ |
H A D | alpha_processing.c | 35 { // (255u << MFIX) / alpha 79 { // alpha * KINV_255 141 if (argb < 0xff000000u) { // alpha < 255 142 if (argb <= 0x00ffffffu) { // alpha == 0 145 const uint32_t alpha = (argb >> 24) & 0xff; local 146 const uint32_t scale = GetScale(alpha, inverse); 157 static void MultRow(uint8_t* const ptr, const uint8_t* const alpha, argument 161 const uint32_t a = alpha[x]; 178 void (*WebPMultRow)(uint8_t* const ptr, const uint8_t* const alpha, 194 const uint8_t* alpha, in 193 WebPMultRows(uint8_t* ptr, int stride, const uint8_t* alpha, int alpha_stride, int width, int num_rows, int inverse) argument 224 const uint8_t* const alpha = rgba + (alpha_first ? 0 : 3); local 287 ExtractAlpha(const uint8_t* argb, int argb_stride, int width, int height, uint8_t* alpha, int alpha_stride) argument [all...] |
H A D | alpha_processing_sse2.c | 23 uint8_t* alpha, int alpha_stride) { 24 // alpha_and stores an 'and' operation of all the alpha[] values. The final 25 // value is not 0xff if any of the alpha[] is not equal to 0xff. 28 const __m128i a_mask = _mm_set1_epi32(0xffu); // to preserve alpha 33 // 'src[4 * width - 4]', because we don't know if alpha is the first or the 48 _mm_storel_epi64((__m128i*)&alpha[i], d0); 49 // accumulate eight alpha 'and' in parallel 55 alpha[i] = alpha_value; 59 alpha += alpha_stride; 61 // Combine the eight alpha 'an 21 ExtractAlpha(const uint8_t* argb, int argb_stride, int width, int height, uint8_t* alpha, int alpha_stride) argument [all...] |
/external/webp/src/enc/ |
H A D | alpha.c | 24 // Encodes the given alpha data via specified compression method 'method'. 29 // 'method = 1' - Use lossless coder on the alpha plane only 36 // 'output' corresponds to the buffer containing compressed alpha data. 39 // 'output_size' corresponds to size of this compressed alpha buffer. 41 // Returns 1 on successfully encoding the alpha and 63 // Transfer the alpha values to the green channel. 80 // Set a low default quality for encoding alpha. Ensure that Alpha quality at 126 // TODO(skal): have a common function and #define's to validate alpha params. 211 static uint32_t GetFilterMap(const uint8_t* alpha, int width, int height, argument 219 const int num_colors = GetNumColors(alpha, widt 242 ApplyFiltersAndEncode(const uint8_t* alpha, int width, int height, size_t data_size, int method, int filter, int reduce_levels, int effort_level, uint8_t** const output, size_t* const output_size, WebPAuxStats* const stats) argument [all...] |
H A D | analysis.c | 92 const int alpha = 255 * (centers[n] - mid) / (max - min); local 94 enc->dqm_[n].alpha_ = clip(alpha, -127, 127); 104 #define ALPHA_SCALE (2 * MAX_ALPHA) // scaling factor for alpha. 106 #define IS_BETTER_ALPHA(alpha, best_alpha) ((alpha) > (best_alpha)) 108 static int FinalAlphaValue(int alpha) { argument 109 alpha = MAX_ALPHA - alpha; 110 return clip(alpha, 0, MAX_ALPHA); 116 int alpha; local 215 const int alpha = mb->alpha_; local 249 int alpha; local 281 int alpha; local 315 int alpha; local 329 MBAnalyze(VP8EncIterator* const it, int alphas[MAX_ALPHA + 1], int* const alpha, int* const uv_alpha) argument 396 int alpha, uv_alpha; member in struct:__anon16955 [all...] |
H A D | picture_csp.c | 26 // If defined, use table to compute x / alpha. 42 // Returns true if alpha[] has non-0xff values. 43 static int CheckNonOpaque(const uint8_t* alpha, int width, int height, argument 45 if (alpha == NULL) return 0; 49 if (alpha[x] != 0xff) return 1; // TODO(skal): check 4/8 bytes at a time. 51 alpha += y_step; 56 // Checking for the presence of non-opaque alpha. 68 if (argb[x] < 0xff000000u) return 1; // test any alpha values != 0xff 600 0, /* alpha = 0 */ 1034 // Insert alpha value [all...] |
H A D | picture_tools.c | 10 // WebPPicture tools: alpha handling, etc. 150 const int alpha = a_ptr[x]; local 151 if (alpha < 0xff) { 162 // Average four alpha values into a single blending weight. 164 const int alpha = local 167 u[x] = BLEND_10BIT(U0, u[x], alpha); 168 v[x] = BLEND_10BIT(V0, v[x], alpha); 171 const int alpha = 2 * (a_ptr[2 * x + 0] + a_ptr2[2 * x + 0]); local 172 u[x] = BLEND_10BIT(U0, u[x], alpha); 173 v[x] = BLEND_10BIT(V0, v[x], alpha); 183 const int alpha = (argb[x] >> 24) & 0xff; local [all...] |
H A D | quant.c | 301 static double QualityToJPEGCompression(double c, double alpha) { argument 302 // We map the complexity 'alpha' and quality setting 'c' to a compression 313 const double expn = (alpha > amax) ? exp_min 314 : (alpha < amin) ? exp_max 315 : exp_max + slope * (alpha - amin);
|
/external/webrtc/src/common_audio/vad/ |
H A D | vad_sp.c | 67 int16_t alpha = 0; local 170 alpha = (int16_t) ALPHA1; // 0.2 in Q15. 172 alpha = (int16_t) ALPHA2; // 0.99 in Q15. 175 tmp32 = WEBRTC_SPL_MUL_16_16(alpha + 1, self->mean_value[channel]); 176 tmp32 += WEBRTC_SPL_MUL_16_16(WEBRTC_SPL_WORD16_MAX - alpha, current_median);
|
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/source/ |
H A D | lpc_masking_model.c | 725 WebRtc_Word16 alpha=328; //0.01 in Q15 local 734 tmp = WEBRTC_SPL_MUL_16_32_RSFT15(alpha, tmp); 737 tmp = WEBRTC_SPL_MUL_16_32_RSFT15(WEBRTC_SPL_LSHIFT_W16(alpha, (sh-shMem)), tmp); // Shift alpha the number of times required to get tmp in QdomLO 740 tmp = WEBRTC_SPL_MUL_16_32_RSFT15(WEBRTC_SPL_LSHIFT_W16(alpha, 6), tmp); // Shift alpha as much as possible without overflow the number of times required to get tmp in QdomHI 772 WebRtc_Word16 alpha=328; //0.01 in Q15 local 780 tmp = WEBRTC_SPL_MUL_16_32_RSFT15(alpha, tmp); 787 tmp = WEBRTC_SPL_MUL_16_32_RSFT15(WEBRTC_SPL_LSHIFT_W16(alpha, (sh-shMem)), tmp); // Shift alpha th [all...] |
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
H A D | lpc_analysis.c | 81 double sum, alpha; local 83 alpha = 0; //warning -DH 92 alpha = r[0] + r[1] * k[0]; 98 k[m] = -sum / alpha; 99 alpha += k[m] * sum; 109 return alpha;
|
/external/webrtc/src/modules/audio_processing/aecm/ |
H A D | aecm_core.c | 67 //Q15 alpha = 0.99439986968132 const Factor for magnitude approximation 71 //Q15 alpha = 0.94234827210087 const Factor for magnitude approximation 75 //Q15 alpha = 0.82247698684306 const Factor for magnitude approximation 1401 WebRtc_UWord16 alpha = 0; local 1439 // magn ~= alpha * max(|imag|,|real|) + beta * min(|imag|,|real|) 1441 // The parameters alpha and beta are stored in Q15 1460 alpha = kAlpha1; 1464 alpha = kAlpha2; 1468 alpha = kAlpha3; 1472 alpha, [all...] |
/external/v8/test/mjsunit/ |
H A D | string-charat.js | 84 var alpha = ['@']; variable 87 alpha[i] = c.charAt(0); 89 var alphaStr = alpha.join(""); 93 assertEquals(alpha[i], alphaStr.charAt(i));
|
H A D | string-index.js | 165 var alpha = ['@']; variable 168 alpha[i] = c[0]; 170 var alphaStr = alpha.join(""); 174 assertEquals(alpha[i], alphaStr[i]);
|
/external/svox/pico/lib/ |
H A D | picosig2.c | 1537 function makeEnhWind(alpha) 1539 s=(bilinmap(alpha,N)); 3623 * - alpha : warping factor 3635 picoos_single alpha; local 3642 alpha = sig_inObj->warp_p;
|
/external/svox/pico/tts/ |
H A D | svox_ssml_parser.cpp | 166 int alpha = 1; /* set to 1 if alphabet is ipa */ local 179 alpha = 0; 195 if (alpha)
|
/external/speex/libspeex/ |
H A D | mdf.c | 704 spx_float_t alpha, alpha_1; local 1083 alpha = FLOAT_DIV32(tmp32, See); 1084 alpha_1 = FLOAT_SUB(FLOAT_ONE, alpha); 1086 st->Pey = FLOAT_ADD(FLOAT_MULT(alpha_1,st->Pey) , FLOAT_MULT(alpha,Pey)); 1087 st->Pyy = FLOAT_ADD(FLOAT_MULT(alpha_1,st->Pyy) , FLOAT_MULT(alpha,Pyy));
|
H A D | scal.c | 76 float *alpha; member in struct:SpeexDecorrState_ 99 st->alpha = speex_alloc(channels*sizeof(float)); 113 st->alpha[ch] = 0; 160 float alpha; local 166 alpha = st->alpha[ch]; 185 st->y[i] = alpha*(x[i-ALLPASS_ORDER+order]-beta*x[i-ALLPASS_ORDER+order-1])*st->vorbis_win[st->frame_size+i+order] 187 - alpha*(ring[ringID] 204 alpha = alpha [all...] |
/external/skia/samplecode/ |
H A D | SampleXfermodesBlur.cpp | 45 void draw_mode(SkCanvas* canvas, SkXfermode* mode, int alpha, argument 68 p.setColor(0x00AA6633 | alpha << 24);
|
/external/skia/src/codec/ |
H A D | SkCodec_libbmp.cpp | 26 // Check for supported alpha types 421 // not have an alpha channel, or they expect the alpha channel to be 422 // ignored. V3+ bmp files introduce an alpha mask and allow the creator 423 // of the image to use the alpha channels. However, many of these images 424 // leave the alpha channel blank and expect to be rendered as opaque. This 426 // V4+, we will use the alpha channel, and fix the image later if it turns 428 // As an exception, V3 bmp-in-ico may use an alpha mask. 436 inputMasks.alpha = get_int(iBuffer.get(), 48); 437 if (inputMasks.alpha ! 680 uint8_t alpha; local [all...] |
H A D | SkMaskSwizzler.cpp | 40 uint8_t alpha = masks->getAlpha(p); local 41 UPDATE_RESULT_ALPHA(alpha); 42 dstPtr[i] = SkPackARGB32NoCheck(alpha, red, green, blue); 59 uint8_t alpha = masks->getAlpha(p); local 60 UPDATE_RESULT_ALPHA(alpha); 61 dstPtr[i] = SkPreMultiplyARGB(alpha, red, green, blue); 92 uint8_t alpha = masks->getAlpha(p); local 93 UPDATE_RESULT_ALPHA(alpha); 94 dstPtr[i/3] = SkPackARGB32NoCheck(alpha, red, green, blue); 110 uint8_t alpha local 145 uint8_t alpha = masks->getAlpha(p); local 164 uint8_t alpha = masks->getAlpha(p); local [all...] |