Lines Matching refs:ok
53 int ok = 0;
71 // normally OK but not here since we are not encoding the input image but an
82 ok = (VP8LEncodeStream(&config, &picture, bw) == VP8_ENC_OK);
84 ok = ok && !bw->error_;
85 if (!ok) {
107 int ok = 0;
132 ok = VP8LBitWriterInit(&tmp_bw, data_size >> 3);
133 ok = ok && EncodeLossless(alpha_src, width, height, effort_level,
135 if (ok) {
152 ok = 1;
160 ok = ok && VP8BitWriterAppend(&result->bw, &header, ALPHA_HEADER_LEN);
161 ok = ok && VP8BitWriterAppend(&result->bw, output, output_size);
166 ok = ok && !result->bw.error_;
168 return ok;
234 int ok = 1;
244 for (filter = WEBP_FILTER_NONE; ok && try_map; ++filter, try_map >>= 1) {
247 ok = EncodeAlphaInternal(alpha, width, height, method, filter,
250 if (ok && trial.score < best.score) {
260 ok = EncodeAlphaInternal(alpha, width, height, method, WEBP_FILTER_NONE,
263 if (ok) {
279 return ok;
293 int ok = 1;
331 ok = QuantizeLevels(quant_alpha, width, height, alpha_levels, &sse);
334 if (ok) {
336 ok = ApplyFiltersAndEncode(quant_alpha, width, height, data_size, method,
346 return ok;
417 int ok = 1;
421 ok = WebPGetWorkerInterface()->Sync(worker);
422 // still need to end the worker, even if !ok
429 return ok;