Home | History | Annotate | Download | only in examples

Lines Matching refs:ok

80     const int ok = (fread(data, data_size, 1, in) == 1);
82 if (!ok) {
104 int ok = 1;
107 ok &= (fwrite(out, width * height, 3, fout) == 3);
118 for (y = 0; ok && y < height; ++y) {
119 ok &= (fwrite(out + y * stride, width, 1, fout) == 1);
122 for (y = 0; ok && y < uv_height; ++y) {
123 ok &= (fwrite(u + y * uv_stride, uv_width, 1, fout) == 1);
124 ok &= (fwrite(v + y * uv_stride, uv_width, 1, fout) == 1);
128 if (ok) {