r 192 fftools/ffmpeg.c AVSubtitleRect *r) r 198 fftools/ffmpeg.c if (r->type != SUBTITLE_BITMAP) { r 202 fftools/ffmpeg.c if (r->x < 0 || r->x + r->w > w || r->y < 0 || r->y + r->h > h) { r 204 fftools/ffmpeg.c r->x, r->y, r->w, r->h, w, h r 209 fftools/ffmpeg.c dst += r->y * dst_linesize + r->x * 4; r 210 fftools/ffmpeg.c src = r->data[0]; r 211 fftools/ffmpeg.c pal = (uint32_t *)r->data[1]; r 212 fftools/ffmpeg.c for (y = 0; y < r->h; y++) { r 215 fftools/ffmpeg.c for (x = 0; x < r->w; x++) r 218 fftools/ffmpeg.c src += r->linesize[0]; r 1892 fftools/ffprobe.c size_t l, t, r, b; r 1894 fftools/ffprobe.c &l, &t, &r, &b); r 1897 fftools/ffprobe.c print_int("bound_right", r); r 820 libavcodec/aacps.c static void stereo_processing(PSContext *ps, INTFLOAT (*l)[32][2], INTFLOAT (*r)[32][2], int is34) r 975 libavcodec/aacps.c l[k] + 1 + start, r[k] + 1 + start, r 49 libavcodec/aacpsdsp.h void (*stereo_interpolate[2])(INTFLOAT (*l)[2], INTFLOAT (*r)[2], r 145 libavcodec/aacpsdsp_template.c static void ps_stereo_interpolate_c(INTFLOAT (*l)[2], INTFLOAT (*r)[2], r 163 libavcodec/aacpsdsp_template.c INTFLOAT r_re = r[n][0]; r 164 libavcodec/aacpsdsp_template.c INTFLOAT r_im = r[n][1]; r 171 libavcodec/aacpsdsp_template.c r[n][0] = AAC_MADD30(h1, l_re, h3, r_re); r 172 libavcodec/aacpsdsp_template.c r[n][1] = AAC_MADD30(h1, l_im, h3, r_im); r 176 libavcodec/aacpsdsp_template.c static void ps_stereo_interpolate_ipdopd_c(INTFLOAT (*l)[2], INTFLOAT (*r)[2], r 194 libavcodec/aacpsdsp_template.c INTFLOAT r_re = r[n][0]; r 195 libavcodec/aacpsdsp_template.c INTFLOAT r_im = r[n][1]; r 207 libavcodec/aacpsdsp_template.c r[n][0] = AAC_MSUB30_V8(h01, l_re, h03, r_re, h11, l_im, h13, r_im); r 208 libavcodec/aacpsdsp_template.c r[n][1] = AAC_MADD30_V8(h01, l_im, h03, r_im, h11, l_re, h13, r_re); r 30 libavcodec/aarch64/aacpsdsp_init_aarch64.c void ff_ps_stereo_interpolate_neon(float (*l)[2], float (*r)[2], r 33 libavcodec/aarch64/aacpsdsp_init_aarch64.c void ff_ps_stereo_interpolate_ipdopd_neon(float (*l)[2], float (*r)[2], r 1597 libavcodec/ac3enc.c unsigned int r; r 1598 libavcodec/ac3enc.c r = 1; r 1601 libavcodec/ac3enc.c r = mul_poly(r, a, poly); r 1605 libavcodec/ac3enc.c return r; r 574 libavcodec/agm.c uint8_t r = 0, g = 0, b = 0; r 581 libavcodec/agm.c dst[x*3+0] = bytestream2_get_byteu(gbyte) + r; r 582 libavcodec/agm.c r = dst[x*3+0]; r 109 libavcodec/alacenc.c int divisor, q, r; r 114 libavcodec/alacenc.c r = x % divisor; r 126 libavcodec/alacenc.c if (r > 0) r 127 libavcodec/alacenc.c put_bits(&s->pbctx, k, r+1); r 131 libavcodec/alpha/me_cmp_alpha.c uint64_t l, r; r 136 libavcodec/alpha/me_cmp_alpha.c r = ldq(pix2 + 8); r 137 libavcodec/alpha/me_cmp_alpha.c p2_l = avg2(l, (l >> 8) | ((uint64_t) r << 56)); r 138 libavcodec/alpha/me_cmp_alpha.c p2_r = avg2(r, (r >> 8) | ((uint64_t) pix2[16] << 56)); r 153 libavcodec/alpha/me_cmp_alpha.c uint64_t l, m, r; r 159 libavcodec/alpha/me_cmp_alpha.c r = ldq_u(pix2 + 16); r 161 libavcodec/alpha/me_cmp_alpha.c p2_r = avg2(extql(m, disalign) | extqh(r, disalign), r); r 173 libavcodec/alpha/me_cmp_alpha.c uint64_t l, m, r; r 179 libavcodec/alpha/me_cmp_alpha.c r = ldq_u(pix2 + 16); r 182 libavcodec/alpha/me_cmp_alpha.c p2_r = avg2(extql(m, disalign) | extqh(r, disalign), r 183 libavcodec/alpha/me_cmp_alpha.c extql(m, disalign1) | extqh(r, disalign1)); r 49 libavcodec/alpha/simple_idct_alpha.c uint64_t l, r, t2; r 51 libavcodec/alpha/simple_idct_alpha.c r = ldq(row + 4); r 53 libavcodec/alpha/simple_idct_alpha.c if (l == 0 && r == 0) r 58 libavcodec/alpha/simple_idct_alpha.c if (((l & ~0xffffUL) | r) == 0) { r 82 libavcodec/alpha/simple_idct_alpha.c t = extwl(r, 0); /* row[4] */ r 91 libavcodec/alpha/simple_idct_alpha.c t = extwl(r, 4); /* row[6] */ r 124 libavcodec/alpha/simple_idct_alpha.c t = extwl(r, 2); /* row[5] */ r 133 libavcodec/alpha/simple_idct_alpha.c t = extwl(r, 6); /* row[7] */ r 234 libavcodec/alpha/simple_idct_alpha.c uint64_t l, r; r 243 libavcodec/alpha/simple_idct_alpha.c l = ldq(col + 0 * 4); r = ldq(col + 1 * 4); r 244 libavcodec/alpha/simple_idct_alpha.c stq(l, col + 2 * 4); stq(r, col + 3 * 4); r 245 libavcodec/alpha/simple_idct_alpha.c stq(l, col + 4 * 4); stq(r, col + 5 * 4); r 246 libavcodec/alpha/simple_idct_alpha.c stq(l, col + 6 * 4); stq(r, col + 7 * 4); r 247 libavcodec/alpha/simple_idct_alpha.c stq(l, col + 8 * 4); stq(r, col + 9 * 4); r 248 libavcodec/alpha/simple_idct_alpha.c stq(l, col + 10 * 4); stq(r, col + 11 * 4); r 249 libavcodec/alpha/simple_idct_alpha.c stq(l, col + 12 * 4); stq(r, col + 13 * 4); r 250 libavcodec/alpha/simple_idct_alpha.c stq(l, col + 14 * 4); stq(r, col + 15 * 4); r 497 libavcodec/alsdec.c int r = k ? get_bits1(gb) : !(q & 1); r 505 libavcodec/alsdec.c return r ? q : ~q; r 774 libavcodec/alsdec.c int r, c; r 779 libavcodec/alsdec.c r = get_unary(gb, 0, 4); r 781 libavcodec/alsdec.c if (r >= 4) { r 786 libavcodec/alsdec.c bd->ltp_gain[2] = ltp_gain_values[r][c]; r 108 libavcodec/ansi.c int r, g, b; r 112 libavcodec/ansi.c for (r = 0; r < 6; r++) r 115 libavcodec/ansi.c *pal++ = 0xFF000000 | (COLOR(r) << 16) | (COLOR(g) << 8) | COLOR(b); r 42 libavcodec/arm/aacpsdsp_init_arm.c void ff_ps_stereo_interpolate_neon(float (*l)[2], float (*r)[2], r 35 libavcodec/arm/mathops.h int r; r 36 libavcodec/arm/mathops.h __asm__ ("smmul %0, %1, %2" : "=r"(r) : "r"(a), "r"(b)); r 37 libavcodec/arm/mathops.h return r; r 43 libavcodec/arm/mathops.h int r; r 49 libavcodec/arm/mathops.h : "=&r"(r) : "r"(a), "r"(b), "r"(ff_inverse) : "cc"); r 50 libavcodec/arm/mathops.h return r; r 58 libavcodec/arm/mathops.h int r, t; r 60 libavcodec/arm/mathops.h : "=&r"(r), "=&r"(t) : "r"(a), "r"(ff_inverse[b])); r 61 libavcodec/arm/mathops.h return r; r 547 libavcodec/cavsdec.c const struct dec_2dvlc *r, int esc_golomb_order, r 557 libavcodec/cavsdec.c level_code = get_ue_code(gb, r->golomb_order); r 570 libavcodec/cavsdec.c level = esc_code + (run > r->max_run ? 1 : r->level_add[run]); r 571 libavcodec/cavsdec.c while (level > r->inc_limit) r 572 libavcodec/cavsdec.c r++; r 576 libavcodec/cavsdec.c level = r->rltab[level_code][0]; r 579 libavcodec/cavsdec.c run = r->rltab[level_code][1]; r 580 libavcodec/cavsdec.c r += r->rltab[level_code][2]; r 112 libavcodec/cdgraphics.c uint8_t r, g, b; r 120 libavcodec/cdgraphics.c r = ((color >> 8) & 0x000F) * 17; r 123 libavcodec/cdgraphics.c palette[i + array_offset] = 0xFFU << 24 | r << 16 | g << 8 | b; r 377 libavcodec/cdtoons.c unsigned r, g, b; r 378 libavcodec/cdtoons.c r = *palette_data; r 381 libavcodec/cdtoons.c c->pal[i] = (0xFFU << 24) | (r << 16) | (g << 8) | b; r 72 libavcodec/cdxl.c unsigned r = ((rgb >> 8) & 0xF) * 0x11; r 75 libavcodec/cdxl.c AV_WN32(&new_palette[i], (0xFFU << 24) | (r << 16) | (g << 8) | b); r 156 libavcodec/cdxl.c uint32_t new_palette[16], r, g, b; r 167 libavcodec/cdxl.c r = new_palette[0] & 0xFF0000; r 176 libavcodec/cdxl.c r = new_palette[index] & 0xFF0000; r 184 libavcodec/cdxl.c r = index * 0x11 << 16; r 190 libavcodec/cdxl.c AV_WL24(out + x * 3, r | g | b); r 199 libavcodec/cdxl.c uint32_t new_palette[64], r, g, b; r 210 libavcodec/cdxl.c r = new_palette[0] & 0xFF0000; r 219 libavcodec/cdxl.c r = new_palette[index] & 0xFF0000; r 227 libavcodec/cdxl.c r = (index << 18) | (r & (3 << 16)); r 233 libavcodec/cdxl.c AV_WL24(out + x * 3, r | g | b); r 156 libavcodec/cfhd.c uint16_t *r = (uint16_t *)frame->data[0]; r 167 libavcodec/cfhd.c g = r[x]; r 183 libavcodec/cfhd.c r[x] = R; r 189 libavcodec/cfhd.c r += linesize; r 107 libavcodec/cinepak.c int r = *data++; r 109 libavcodec/cinepak.c *p++ = r; r 112 libavcodec/cinepak.c int r, g, b, u, v; r 117 libavcodec/cinepak.c r = *p++ + v*2; r 121 libavcodec/cinepak.c *p++ = av_clip_uint8(r); r 1018 libavcodec/cinepakenc.c int32_t r, g, b, rr, gg, bb; r 1024 libavcodec/cinepakenc.c r = g = b = 0; r 1032 libavcodec/cinepakenc.c r += rr; r 1049 libavcodec/cinepakenc.c rr = (-299683 * r - 599156 * g + 898839 * b) >> 23; r 1057 libavcodec/cinepakenc.c rr = (748893 * r - 599156 * g - 149737 * b) >> 23; r 144 libavcodec/cngdec.c int r = (av_lfg_get(&p->lfg) & 0xffff) - 0x8000; r 145 libavcodec/cngdec.c p->excitation[i] = scaling * r; r 122 libavcodec/dds.c int size, bpp, r, g, b, a; r 152 libavcodec/dds.c r = bytestream2_get_le32(gbc); // rbitmask r 164 libavcodec/dds.c "r 0x%x g 0x%x b 0x%x a 0x%x\n", av_fourcc2str(fourcc), bpp, r, g, b, a); r 355 libavcodec/dds.c if (bpp == 4 && r == 0 && g == 0 && b == 0 && a == 0) r 358 libavcodec/dds.c else if (bpp == 8 && r == 0xff && g == 0 && b == 0 && a == 0) r 360 libavcodec/dds.c else if (bpp == 8 && r == 0 && g == 0 && b == 0 && a == 0xff) r 363 libavcodec/dds.c else if (bpp == 16 && r == 0xff && g == 0 && b == 0 && a == 0xff00) r 365 libavcodec/dds.c else if (bpp == 16 && r == 0xff00 && g == 0 && b == 0 && a == 0xff) { r 369 libavcodec/dds.c else if (bpp == 16 && r == 0xffff && g == 0 && b == 0 && a == 0) r 371 libavcodec/dds.c else if (bpp == 16 && r == 0x7c00 && g == 0x3e0 && b == 0x1f && a == 0) r 373 libavcodec/dds.c else if (bpp == 16 && r == 0x7c00 && g == 0x3e0 && b == 0x1f && a == 0x8000) r 375 libavcodec/dds.c else if (bpp == 16 && r == 0xf800 && g == 0x7e0 && b == 0x1f && a == 0) r 378 libavcodec/dds.c else if (bpp == 24 && r == 0xff0000 && g == 0xff00 && b == 0xff && a == 0) r 381 libavcodec/dds.c else if (bpp == 32 && r == 0xff0000 && g == 0xff00 && b == 0xff && a == 0) r 383 libavcodec/dds.c else if (bpp == 32 && r == 0xff && g == 0xff00 && b == 0xff0000 && a == 0) r 385 libavcodec/dds.c else if (bpp == 32 && r == 0xff0000 && g == 0xff00 && b == 0xff && a == 0xff000000) r 387 libavcodec/dds.c else if (bpp == 32 && r == 0xff && g == 0xff00 && b == 0xff0000 && a == 0xff000000) r 392 libavcodec/dds.c "[bpp %d r 0x%x g 0x%x b 0x%x a 0x%x].\n", bpp, r, g, b, a); r 496 libavcodec/dds.c int r = src[0]; r 501 libavcodec/dds.c src[0] = r * a / 255; r 361 libavcodec/dvbsub.c int a, r, g, b; r 364 libavcodec/dvbsub.c r = (x >> 16) & 0xff; r 368 libavcodec/dvbsub.c *q++ = RGB_TO_Y_CCIR(r, g, b); r 369 libavcodec/dvbsub.c *q++ = RGB_TO_V_CCIR(r, g, b, 0); r 370 libavcodec/dvbsub.c *q++ = RGB_TO_U_CCIR(r, g, b, 0); r 39 libavcodec/dvbsubdec.c #define RGBA(r,g,b,a) (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)) r 259 libavcodec/dvbsubdec.c int i, r, g, b, a = 0; r 294 libavcodec/dvbsubdec.c r = (i & 1) ? 255 : 0; r 298 libavcodec/dvbsubdec.c r = (i & 1) ? 127 : 0; r 302 libavcodec/dvbsubdec.c default_clut.clut16[i] = RGBA(r, g, b, 255); r 308 libavcodec/dvbsubdec.c r = (i & 1) ? 255 : 0; r 315 libavcodec/dvbsubdec.c r = ((i & 1) ? 85 : 0) + ((i & 0x10) ? 170 : 0); r 321 libavcodec/dvbsubdec.c r = ((i & 1) ? 85 : 0) + ((i & 0x10) ? 170 : 0); r 327 libavcodec/dvbsubdec.c r = 127 + ((i & 1) ? 43 : 0) + ((i & 0x10) ? 85 : 0); r 333 libavcodec/dvbsubdec.c r = ((i & 1) ? 43 : 0) + ((i & 0x10) ? 85 : 0); r 340 libavcodec/dvbsubdec.c default_clut.clut256[i] = RGBA(r, g, b, a); r 1056 libavcodec/dvbsubdec.c int r, g, b, r_add, g_add, b_add; r 1122 libavcodec/dvbsubdec.c YUV_TO_RGB2_CCIR(r, g, b, y); r 1124 libavcodec/dvbsubdec.c ff_dlog(avctx, "clut %d := (%d,%d,%d,%d)\n", entry_id, r, g, b, alpha); r 1132 libavcodec/dvbsubdec.c clut->clut4[entry_id] = RGBA(r,g,b,255 - alpha); r 1134 libavcodec/dvbsubdec.c clut->clut16[entry_id] = RGBA(r,g,b,255 - alpha); r 1136 libavcodec/dvbsubdec.c clut->clut256[entry_id] = RGBA(r,g,b,255 - alpha); r 53 libavcodec/dvdsubdec.c uint8_t r, g, b; r 62 libavcodec/dvdsubdec.c YUV_TO_RGB2_CCIR(r, g, b, y); r 63 libavcodec/dvdsubdec.c *rgba++ = ((unsigned)*alpha++ << 24) | (r << 16) | (g << 8) | b; r 159 libavcodec/dvdsubdec.c int nb_opaque_colors, i, level, j, r, g, b; r 189 libavcodec/dvdsubdec.c r = (((subtitle_color >> 16) & 0xff) * level) >> 8; r 192 libavcodec/dvdsubdec.c rgba_palette[i] = b | (g << 8) | (r << 16) | ((alpha[i] * 17U) << 24); r 633 libavcodec/dvdsubdec.c uint8_t r, g, b, yuv[65], *buf; r 671 libavcodec/dvdsubdec.c YUV_TO_RGB2_CCIR(r, g, b, y); r 672 libavcodec/dvdsubdec.c ctx->palette[i] = (r << 16) + (g << 8) + b; r 100 libavcodec/dvdsubenc.c int r = 0, d, i; r 106 libavcodec/dvdsubenc.c r += d * d; r 110 libavcodec/dvdsubenc.c return r; r 118 libavcodec/dvdsubenc.c const AVSubtitleRect *r) r 122 libavcodec/dvdsubenc.c uint32_t *palette = (uint32_t *)r->data[1]; r 125 libavcodec/dvdsubenc.c uint8_t *p = r->data[0]; r 127 libavcodec/dvdsubenc.c for (y = 0; y < r->h; y++) { r 128 libavcodec/dvdsubenc.c for (x = 0; x < r->w; x++) r 130 libavcodec/dvdsubenc.c p += r->linesize[0] - r->w; r 334 libavcodec/dxtory.c int r, g, b; r 343 libavcodec/dxtory.c r = decode_sym_565(gb, lru[2], 5); r 344 libavcodec/dxtory.c dst[x * 3 + 0] = (r << 3) | (r >> 2); r 65 libavcodec/dxva2_h264.c const H264Picture *r; r 67 libavcodec/dxva2_h264.c r = h->short_ref[j++]; r 69 libavcodec/dxva2_h264.c r = NULL; r 70 libavcodec/dxva2_h264.c while (!r && j < h->short_ref_count + 16) r 71 libavcodec/dxva2_h264.c r = h->long_ref[j++ - h->short_ref_count]; r 73 libavcodec/dxva2_h264.c if (r) { r 75 libavcodec/dxva2_h264.c ff_dxva2_get_surface_index(avctx, ctx, r->f), r 76 libavcodec/dxva2_h264.c r->long_ref != 0); r 78 libavcodec/dxva2_h264.c if ((r->reference & PICT_TOP_FIELD) && r->field_poc[0] != INT_MAX) r 79 libavcodec/dxva2_h264.c pp->FieldOrderCntList[i][0] = r->field_poc[0]; r 80 libavcodec/dxva2_h264.c if ((r->reference & PICT_BOTTOM_FIELD) && r->field_poc[1] != INT_MAX) r 81 libavcodec/dxva2_h264.c pp->FieldOrderCntList[i][1] = r->field_poc[1]; r 83 libavcodec/dxva2_h264.c pp->FrameNumList[i] = r->long_ref ? r->pic_id : r->frame_num; r 84 libavcodec/dxva2_h264.c if (r->reference & PICT_TOP_FIELD) r 86 libavcodec/dxva2_h264.c if (r->reference & PICT_BOTTOM_FIELD) r 249 libavcodec/dxva2_h264.c const H264Picture *r = sl->ref_list[list][i].parent; r 253 libavcodec/dxva2_h264.c index = ff_dxva2_get_surface_index(avctx, ctx, r->f); r 255 libavcodec/dxva2_h264.c index = get_refpic_index(pp, ff_dxva2_get_surface_index(avctx, ctx, r->f)); r 111 libavcodec/elbg.c uint64_t r; r 114 libavcodec/elbg.c r = av_lfg_get(elbg->rand_state) % (unsigned int)elbg->utility_inc[elbg->numCB-1] + 1; r 116 libavcodec/elbg.c r = av_lfg_get(elbg->rand_state); r 117 libavcodec/elbg.c r = (av_lfg_get(elbg->rand_state) + (r<<32)) % elbg->utility_inc[elbg->numCB-1] + 1; r 120 libavcodec/elbg.c while (elbg->utility_inc[i] < r) { r 352 libavcodec/elsdec.c int i, n, r, bit; r 386 libavcodec/elsdec.c for (i = 0, r = 0, bit = 0; i < n; i++) { r 416 libavcodec/elsdec.c r = (r << 1) + bit; r 419 libavcodec/elsdec.c return (1 << n) - 1 + r; /* make value from exp golomb code */ r 166 libavcodec/ffv1dec_template.c int r = sample[2][1][x]; r 171 libavcodec/ffv1dec_template.c r -= offset; r 172 libavcodec/ffv1dec_template.c g -= (b * s->slice_rct_by_coef + r * s->slice_rct_ry_coef) >> 2; r 174 libavcodec/ffv1dec_template.c r += g; r 178 libavcodec/ffv1dec_template.c *((uint32_t*)(src[0] + x*4 + stride[0]*y)) = b + ((unsigned)g<<8) + ((unsigned)r<<16) + ((unsigned)a<<24); r 182 libavcodec/ffv1dec_template.c *((uint16_t*)(src[2] + x*2 + stride[2]*y)) = r; r 188 libavcodec/ffv1dec_template.c *((uint16_t*)(src[2] + x*2 + stride[2]*y)) = r; r 993 libavcodec/ffv1enc.c int b, g, r; r 999 libavcodec/ffv1enc.c r = (v >> 16) & 0xFF; r 1003 libavcodec/ffv1enc.c r = *((const uint16_t*)(src[2] + x*2 + stride[2]*y)); r 1006 libavcodec/ffv1enc.c ar = r - lastr; r 1026 libavcodec/ffv1enc.c lastr = r; r 149 libavcodec/ffv1enc_template.c int b, g, r, av_uninit(a); r 154 libavcodec/ffv1enc_template.c r = (v >> 16) & 0xFF; r 158 libavcodec/ffv1enc_template.c r = p[0]; r 166 libavcodec/ffv1enc_template.c r = *((const uint16_t *)(src[2] + x*2 + stride[2]*y)); r 172 libavcodec/ffv1enc_template.c r = *((const uint16_t *)(src[2] + x*2 + stride[2]*y)); r 177 libavcodec/ffv1enc_template.c r -= g; r 178 libavcodec/ffv1enc_template.c g += (b * s->slice_rct_by_coef + r * s->slice_rct_ry_coef) >> 2; r 180 libavcodec/ffv1enc_template.c r += offset; r 185 libavcodec/ffv1enc_template.c sample[2][0][x] = r; r 163 libavcodec/ffwavesynth.c uint64_t r = 0; r 173 libavcodec/ffwavesynth.c r = (r << 16) | (a / b); r 176 libavcodec/ffwavesynth.c return r; r 180 libavcodec/ffwavesynth.c r |= (uint64_t)1 << i; r 186 libavcodec/ffwavesynth.c return r; r 315 libavcodec/ffwavesynth.c int i, r; r 323 libavcodec/ffwavesynth.c r = wavesynth_parse_extradata(avc); r 324 libavcodec/ffwavesynth.c if (r < 0) { r 330 libavcodec/ffwavesynth.c r = AVERROR(ENOMEM); r 347 libavcodec/ffwavesynth.c return r; r 429 libavcodec/ffwavesynth.c int s, c, r; r 443 libavcodec/ffwavesynth.c r = ff_get_buffer(avc, frame, 0); r 444 libavcodec/ffwavesynth.c if (r < 0) r 445 libavcodec/ffwavesynth.c return r; r 88 libavcodec/flashsv.c unsigned r = c >> 10; r 92 libavcodec/flashsv.c *dst++ = (r << 3) | (r >> 2); r 470 libavcodec/flashsv2enc.c int r, g, b; r 472 libavcodec/flashsv2enc.c for (r = 4; r < 256; r += 8) { r 475 libavcodec/flashsv2enc.c bgr = b | (g << 8) | (r << 16); r 476 libavcodec/flashsv2enc.c c15 = (b >> 3) | ((g & 0xf8) << 2) | ((r & 0xf8) << 7); r 173 libavcodec/flicvideo.c unsigned char r, g, b; r 256 libavcodec/flicvideo.c r = bytestream2_get_byte(&g2) << color_shift; r 259 libavcodec/flicvideo.c entry = 0xFFU << 24 | r << 16 | g << 8 | b; r 494 libavcodec/gdv.c unsigned r = bytestream2_get_byte(gb); r 497 libavcodec/gdv.c gdv->pal[i] = 0xFFU << 24 | r << 18 | g << 10 | b << 2; r 595 libavcodec/golomb.h static inline int get_te(GetBitContext *s, int r, char *file, const char *func, r 600 libavcodec/golomb.h int i = get_te0_golomb(s, r); r 612 libavcodec/golomb.h #define get_te_golomb(a, r) get_te(a, r, __FILE__, __func__, __LINE__) r 613 libavcodec/golomb.h #define get_te0_golomb(a, r) get_te(a, r, __FILE__, __func__, __LINE__) r 108 libavcodec/hcadec.c int8_t r[16] = { 0 }; r 198 libavcodec/hcadec.c int8_t *x = r; r 242 libavcodec/hcadec.c c->ch[i].chan_type = r[i]; r 243 libavcodec/hcadec.c c->ch[i].count = c->base_band_count + ((r[i] != 2) ? c->stereo_band_count : 0); r 28 libavcodec/hcom.c int16_t l, r; r 66 libavcodec/hcom.c s->dict[i].r = AV_RB16(avctx->extradata + 6 + 4 * i + 2); r 69 libavcodec/hcom.c s->dict[i].r >= s->dict_entries || r 70 libavcodec/hcom.c s->dict[i].r < 0 )) { r 106 libavcodec/hcom.c s->dict_entry = s->dict[s->dict_entry].r; r 113 libavcodec/hcom.c datum = s->dict[s->dict_entry].r; r 160 libavcodec/huffyuvdec.c int i, b, g, r, code; r 177 libavcodec/huffyuvdec.c for (r = -16; r < 16; r++) { r 178 libavcodec/huffyuvdec.c int len2 = s->len[2][r & 255]; r 183 libavcodec/huffyuvdec.c bits[i] = (code << len2) + s->bits[2][r & 255]; r 187 libavcodec/huffyuvdec.c map[i][R] = g + r; r 191 libavcodec/huffyuvdec.c map[i][R] = r; r 63 libavcodec/huffyuvdsp.c uint8_t r = left[R], g = left[G], b = left[B], a = left[A]; r 68 libavcodec/huffyuvdsp.c r += src[4 * i + R]; r 73 libavcodec/huffyuvdsp.c dst[4 * i + R] = r; r 79 libavcodec/huffyuvdsp.c left[R] = r; r 88 libavcodec/huffyuvenc.c int r, g, b, a; r 90 libavcodec/huffyuvenc.c r = *red; r 100 libavcodec/huffyuvenc.c dst[i * 4 + R] = rt - r; r 104 libavcodec/huffyuvenc.c r = rt; r 123 libavcodec/huffyuvenc.c int r, g, b; r 124 libavcodec/huffyuvenc.c r = *red; r 131 libavcodec/huffyuvenc.c dst[i * 3 + 0] = rt - r; r 134 libavcodec/huffyuvenc.c r = rt; r 714 libavcodec/huffyuvenc.c int r =(s->temp[0][planes == 3 ? 3 * i + 0 : 4 * i + R] - g) & 0xFF;\ r 720 libavcodec/huffyuvenc.c s->stats[2][r]++; \ r 727 libavcodec/huffyuvenc.c put_bits(&s->pb, s->len[2][r], s->bits[2][r]); \ r 602 libavcodec/iff.c int l, r; r 626 libavcodec/iff.c r = bytestream2_get_be16(gb); r 628 libavcodec/iff.c dst[x_pos + y_pos * line_size ] = r >> 8; r 629 libavcodec/iff.c dst[x_pos + y_pos++ * line_size + 1] = r & 0xFF; r 637 libavcodec/iff.c r = bytestream2_get_be16(gb); r 639 libavcodec/iff.c dst[x_pos + y_pos * line_size ] = r >> 8; r 640 libavcodec/iff.c dst[x_pos + y_pos++ * line_size + 1] = r & 0xFF; r 938 libavcodec/iff.c int kludge_j, b, g, r, d; r 1004 libavcodec/iff.c for (r = 0; r < rows; r++) { r 1006 libavcodec/iff.c unsigned noffset = offset + (r * pitch) + d * planepitch; r 102 libavcodec/interplayacm.c #define set_pos(s, r, c, idx) do { \ r 103 libavcodec/interplayacm.c unsigned pos = ((r) << s->level) + (c); \ r 162 libavcodec/intrax8.c #define run_offset(r) ((r) << 16) // 6 bits r 1579 libavcodec/jpeg2000dec.c int r = ff_mqc_decode(&t1->mqc, r 1582 libavcodec/jpeg2000dec.c t1->data[(y) * t1->stride + x] += t1->data[(y) * t1->stride + x] < 0 ? -r : r; r 2262 libavcodec/jpeg2000dec.c uint32_t r, g, b; r 2264 libavcodec/jpeg2000dec.c r = bytestream2_get_byteu(&s->g) << 8 - colour_depth[0]; r 2265 libavcodec/jpeg2000dec.c r |= r >> colour_depth[0]; r 2267 libavcodec/jpeg2000dec.c r = bytestream2_get_be16u(&s->g) >> colour_depth[0] - 8; r 2281 libavcodec/jpeg2000dec.c s->palette[i] = 0xffu << 24 | r << 16 | g << 8 | b; r 251 libavcodec/jpeglsdec.c int r; r 256 libavcodec/jpeglsdec.c int r; r 257 libavcodec/jpeglsdec.c r = 1 << ff_log2_run[state->run_index[comp]]; r 258 libavcodec/jpeglsdec.c if (x + r * stride > w) r 259 libavcodec/jpeglsdec.c r = (w - x) / stride; r 260 libavcodec/jpeglsdec.c for (i = 0; i < r; i++) { r 265 libavcodec/jpeglsdec.c if (r != 1 << ff_log2_run[state->run_index[comp]]) r 273 libavcodec/jpeglsdec.c r = ff_log2_run[state->run_index[comp]]; r 274 libavcodec/jpeglsdec.c if (r) r 275 libavcodec/jpeglsdec.c r = get_bits_long(&s->gb, r); r 276 libavcodec/jpeglsdec.c if (x + r * stride > w) { r 277 libavcodec/jpeglsdec.c r = (w - x) / stride; r 279 libavcodec/jpeglsdec.c for (i = 0; i < r; i++) { r 500 libavcodec/jpeglsdec.c int r = src[x+0] - (( 359 * (src[x+2]-128) + 490) >> 8); r 503 libavcodec/jpeglsdec.c src[x+0] = av_clip_uint8(r); r 52 libavcodec/lagarithrac.c unsigned r = i << l->hash_shift; r 53 libavcodec/lagarithrac.c while (l->prob[j + 1] <= r) r 36 libavcodec/libzvbi-teletextdec.c #define RGBA(r,g,b,a) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) r 235 libavcodec/libzvbi-teletextdec.c int r = VBI_R(page->color_map[ci]); r 238 libavcodec/libzvbi-teletextdec.c av_bprintf(buf, "{\\%s&H%02X%02X%02X&}", type, b, g, r); r 491 libavcodec/libzvbi-teletextdec.c int r, g, b, a; r 493 libavcodec/libzvbi-teletextdec.c r = VBI_R(page->color_map[ci]); r 497 libavcodec/libzvbi-teletextdec.c ((uint32_t *)sub_rect->data[1])[ci] = RGBA(r, g, b, a); r 498 libavcodec/libzvbi-teletextdec.c ((uint32_t *)sub_rect->data[1])[ci + VBI_NB_COLORS] = RGBA(r, g, b, ctx->opacity); r 59 libavcodec/loco.c static int loco_get_rice_param(RICEContext *r) r 62 libavcodec/loco.c int val = r->count; r 64 libavcodec/loco.c while (r->sum > val && cnt < 9) { r 72 libavcodec/loco.c static inline void loco_update_rice_param(RICEContext *r, int val) r 74 libavcodec/loco.c r->sum += val; r 75 libavcodec/loco.c r->count++; r 77 libavcodec/loco.c if (r->count == 16) { r 78 libavcodec/loco.c r->sum >>= 1; r 79 libavcodec/loco.c r->count >>= 1; r 83 libavcodec/loco.c static inline int loco_get_rice(RICEContext *r) r 86 libavcodec/loco.c if (r->run > 0) { /* we have zero run */ r 87 libavcodec/loco.c r->run--; r 88 libavcodec/loco.c loco_update_rice_param(r, 0); r 91 libavcodec/loco.c if (get_bits_left(&r->gb) < 1) r 93 libavcodec/loco.c v = get_ur_golomb_jpegls(&r->gb, loco_get_rice_param(r), INT_MAX, 0); r 94 libavcodec/loco.c loco_update_rice_param(r, (v + 1) >> 1); r 96 libavcodec/loco.c if (r->save >= 0) { r 97 libavcodec/loco.c r->run = get_ur_golomb_jpegls(&r->gb, 2, INT_MAX, 0); r 98 libavcodec/loco.c if (r->run > 1) r 99 libavcodec/loco.c r->save += r->run + 1; r 101 libavcodec/loco.c r->save -= 3; r 103 libavcodec/loco.c r->run2++; r 105 libavcodec/loco.c v = ((v >> 1) + r->lossy) ^ -(v & 1); r 106 libavcodec/loco.c if (r->run2 > 0) { r 107 libavcodec/loco.c if (r->run2 > 2) r 108 libavcodec/loco.c r->save += r->run2; r 110 libavcodec/loco.c r->save -= 3; r 111 libavcodec/loco.c r->run2 = 0; r 183 libavcodec/lpc.h LPC_TYPE r = AAC_SRA_R(-autoc[i], 5); r 187 libavcodec/lpc.h r -= lpc_last[j] * autoc[i-j-1]; r 189 libavcodec/lpc.h r /= err; r 190 libavcodec/lpc.h err *= FIXR(1.0) - (r * r); r 193 libavcodec/lpc.h lpc[i] = r; r 198 libavcodec/lpc.h lpc[ j] = f + (LPC_TYPE_U)AAC_MUL26(r, b); r 199 libavcodec/lpc.h lpc[i-1-j] = b + (LPC_TYPE_U)AAC_MUL26(r, f); r 326 libavcodec/magicyuv.c uint16_t *r = (uint16_t *)p->data[0] + j * s->slice_height * p->linesize[0] / 2; r 333 libavcodec/magicyuv.c r[k] = (r[k] + g[k]) & max; r 337 libavcodec/magicyuv.c r += p->linesize[2] / 2; r 462 libavcodec/magicyuv.c uint8_t *r = p->data[2] + j * s->slice_height * p->linesize[2]; r 466 libavcodec/magicyuv.c s->llviddsp.add_bytes(r, g, width); r 469 libavcodec/magicyuv.c r += p->linesize[2]; r 471 libavcodec/magicyuvenc.c uint8_t *r, *g, *b; r 476 libavcodec/magicyuvenc.c r = p->data[2]; r 480 libavcodec/magicyuvenc.c s->llvidencdsp.diff_bytes(r, r, g, width); r 483 libavcodec/magicyuvenc.c r += p->linesize[2]; r 389 libavcodec/mips/aacpsdsp_mips.c static void ps_stereo_interpolate_mips(float (*l)[2], float (*r)[2], r 438 libavcodec/mips/aacpsdsp_mips.c [h3]"+f"(h3), [l]"+r"(l), [r]"+r"(r), r 2107 libavcodec/mips/vc1dsp_mmi.c int r; \ r 2110 libavcodec/mips/vc1dsp_mmi.c r = (1<<(shift-1)) + rnd-1; \ r 2111 libavcodec/mips/vc1dsp_mmi.c vc1_put_shift_ver_16bits[vmode](tmp, src-1, stride, r, shift); \ r 326 libavcodec/mips/vc1dsp_msa.c int r = (1 << (shift - 1)) + rnd - 1; r 327 libavcodec/mips/vc1dsp_msa.c cnst_r = __msa_fill_h(r); r 411 libavcodec/mips/vc1dsp_msa.c r = 64 - rnd; r 412 libavcodec/mips/vc1dsp_msa.c cnst_r = __msa_fill_h(r); r 2730 libavcodec/mjpegdec.c int r = dst[0][j] * k; r 2735 libavcodec/mjpegdec.c dst[2][j] = r*257 >> 16; r 2753 libavcodec/mjpegdec.c int r = (255 - dst[0][j]) * k; r 2756 libavcodec/mjpegdec.c dst[0][j] = r*257 >> 16; r 427 libavcodec/motion_est.c const int r= score_map[(index+ 1 )&(ME_MAP_SIZE-1)]; r 439 libavcodec/motion_est.c if(l<=r){ r 441 libavcodec/motion_est.c if(t+r<=b+l){ r 451 libavcodec/motion_est.c if(t+l<=b+r){ r 461 libavcodec/motion_est.c if(l<=r){ r 462 libavcodec/motion_est.c if(t+l<=b+r){ r 472 libavcodec/motion_est.c if(t+r<=b+l){ r 90 libavcodec/motion_est_template.c const int r= score_map[(index+ 1 )&(ME_MAP_SIZE-1)] r 109 libavcodec/motion_est_template.c if(l<=r){ r 111 libavcodec/motion_est_template.c if(t+r<=b+l){ r 119 libavcodec/motion_est_template.c if(t+l<=b+r){ r 127 libavcodec/motion_est_template.c if(l<=r){ r 128 libavcodec/motion_est_template.c if(t+l<=b+r){ r 136 libavcodec/motion_est_template.c if(t+r<=b+l){ r 252 libavcodec/motion_est_template.c const int r= score_map[(index+ 1 )&(ME_MAP_SIZE-1)]; r 269 libavcodec/motion_est_template.c const int64_t c2= nx*nx*( r + l - 2*c) + 4*nx*( r- l) + 32*c; r 296 libavcodec/motion_est_template.c const int cx = 4*(r - l); r 297 libavcodec/motion_est_template.c const int cx2= r + l - 2*c; r 310 libavcodec/motion_est_template.c av_assert2(16*cx2 + 4*cx + 32*c == 32*r); r 35 libavcodec/motionpixels_tablegen.h int r, g, b; r 37 libavcodec/motionpixels_tablegen.h r = (1000 * y + 701 * v) / 1000; r 41 libavcodec/motionpixels_tablegen.h return ((cm[r * 8] & 0xF8) << 7) | ((cm[g * 8] & 0xF8) << 2) | (cm[b * 8] >> 3); r 42 libavcodec/motionpixels_tablegen.h if ((unsigned)r < 32 && (unsigned)g < 32 && (unsigned)b < 32) r 43 libavcodec/motionpixels_tablegen.h return (r << 10) | (g << 5) | b; r 179 libavcodec/mpeg4videodec.c int r = 16 / a; r 257 libavcodec/mpeg4videodec.c (r * sprite_ref[0][0] - 16LL * vop_ref[0][0]) + r 258 libavcodec/mpeg4videodec.c w2 * (r * sprite_ref[1][0] - 16LL * vop_ref[1][0])), w); r 261 libavcodec/mpeg4videodec.c (r * sprite_ref[0][1] - 16LL * vop_ref[0][1]) + r 262 libavcodec/mpeg4videodec.c w2 * (r * sprite_ref[1][1] - 16LL * vop_ref[1][1])), w); r 264 libavcodec/mpeg4videodec.c ROUNDED_DIV(((h - h2) * (r * sprite_ref[0][0] - 16LL * vop_ref[0][0]) + r 265 libavcodec/mpeg4videodec.c h2 * (r * sprite_ref[2][0] - 16LL * vop_ref[2][0])), h); r 267 libavcodec/mpeg4videodec.c ROUNDED_DIV(((h - h2) * (r * sprite_ref[0][1] - 16LL * vop_ref[0][1]) + r 268 libavcodec/mpeg4videodec.c h2 * (r * sprite_ref[2][1] - 16LL * vop_ref[2][1])), h); r 299 libavcodec/mpeg4videodec.c ((int64_t) -r * sprite_ref[0][0] + virtual_ref[0][0]) * r 301 libavcodec/mpeg4videodec.c ((int64_t) r * sprite_ref[0][1] - virtual_ref[0][1]) * r 304 libavcodec/mpeg4videodec.c ((int64_t) -r * sprite_ref[0][1] + virtual_ref[0][1]) * r 306 libavcodec/mpeg4videodec.c ((int64_t) -r * sprite_ref[0][0] + virtual_ref[0][0]) * r 308 libavcodec/mpeg4videodec.c sprite_offset[1][0] = (((int64_t)-r * sprite_ref[0][0] + virtual_ref[0][0]) * r 310 libavcodec/mpeg4videodec.c ((int64_t) r * sprite_ref[0][1] - virtual_ref[0][1]) * r 311 libavcodec/mpeg4videodec.c ((int64_t)-2 * vop_ref[0][1] + 1) + 2 * w2 * r * r 313 libavcodec/mpeg4videodec.c sprite_offset[1][1] = (((int64_t)-r * sprite_ref[0][1] + virtual_ref[0][1]) * r 315 libavcodec/mpeg4videodec.c ((int64_t)-r * sprite_ref[0][0] + virtual_ref[0][0]) * r 316 libavcodec/mpeg4videodec.c ((int64_t)-2 * vop_ref[0][1] + 1) + 2 * w2 * r * r 318 libavcodec/mpeg4videodec.c sprite_delta[0][0] = (-r * sprite_ref[0][0] + virtual_ref[0][0]); r 319 libavcodec/mpeg4videodec.c sprite_delta[0][1] = (+r * sprite_ref[0][1] - virtual_ref[0][1]); r 320 libavcodec/mpeg4videodec.c sprite_delta[1][0] = (-r * sprite_ref[0][1] + virtual_ref[0][1]); r 321 libavcodec/mpeg4videodec.c sprite_delta[1][1] = (-r * sprite_ref[0][0] + virtual_ref[0][0]); r 331 libavcodec/mpeg4videodec.c ((int64_t)-r * sprite_ref[0][0] + virtual_ref[0][0]) * h3 * (-vop_ref[0][0]) + r 332 libavcodec/mpeg4videodec.c ((int64_t)-r * sprite_ref[0][0] + virtual_ref[1][0]) * w3 * (-vop_ref[0][1]) + r 335 libavcodec/mpeg4videodec.c ((int64_t)-r * sprite_ref[0][1] + virtual_ref[0][1]) * h3 * (-vop_ref[0][0]) + r 336 libavcodec/mpeg4videodec.c ((int64_t)-r * sprite_ref[0][1] + virtual_ref[1][1]) * w3 * (-vop_ref[0][1]) + r 338 libavcodec/mpeg4videodec.c sprite_offset[1][0] = ((int64_t)-r * sprite_ref[0][0] + virtual_ref[0][0]) * h3 * (-2 * vop_ref[0][0] + 1) + r 339 libavcodec/mpeg4videodec.c ((int64_t)-r * sprite_ref[0][0] + virtual_ref[1][0]) * w3 * (-2 * vop_ref[0][1] + 1) + r 340 libavcodec/mpeg4videodec.c (int64_t)2 * w2 * h3 * r * sprite_ref[0][0] - 16 * w2 * h3 + r 342 libavcodec/mpeg4videodec.c sprite_offset[1][1] = ((int64_t)-r * sprite_ref[0][1] + virtual_ref[0][1]) * h3 * (-2 * vop_ref[0][0] + 1) + r 343 libavcodec/mpeg4videodec.c ((int64_t)-r * sprite_ref[0][1] + virtual_ref[1][1]) * w3 * (-2 * vop_ref[0][1] + 1) + r 344 libavcodec/mpeg4videodec.c (int64_t)2 * w2 * h3 * r * sprite_ref[0][1] - 16 * w2 * h3 + r 346 libavcodec/mpeg4videodec.c sprite_delta[0][0] = (-r * (int64_t)sprite_ref[0][0] + virtual_ref[0][0]) * h3; r 347 libavcodec/mpeg4videodec.c sprite_delta[0][1] = (-r * (int64_t)sprite_ref[0][0] + virtual_ref[1][0]) * w3; r 348 libavcodec/mpeg4videodec.c sprite_delta[1][0] = (-r * (int64_t)sprite_ref[0][1] + virtual_ref[0][1]) * h3; r 349 libavcodec/mpeg4videodec.c sprite_delta[1][1] = (-r * (int64_t)sprite_ref[0][1] + virtual_ref[1][1]) * w3; r 106 libavcodec/mpegpicture.c int r, ret; r 117 libavcodec/mpegpicture.c r = ff_thread_get_buffer(avctx, &pic->tf, r 123 libavcodec/mpegpicture.c r = avcodec_default_get_buffer2(avctx, pic->f, 0); r 126 libavcodec/mpegpicture.c if (r < 0 || !pic->f->buf[0]) { r 128 libavcodec/mpegpicture.c r, pic->f->data[0]); r 310 libavcodec/mpegutils.c #define COLOR(theta, r) \ r 311 libavcodec/mpegutils.c u = (int)(128 + r * cos(theta * M_PI / 180)); \ r 312 libavcodec/mpegutils.c v = (int)(128 + r * sin(theta * M_PI / 180)); r 3054 libavcodec/mpegvideo_enc.c int r= put_bits_count(&s->pb)/8 + s->picture_number + 16 + s->mb_x + s->mb_y; r 3056 libavcodec/mpegvideo_enc.c if(r % d == 0){ r 417 libavcodec/mpegvideo_motion.c #define OBMC_FILTER(x, t, l, m, r, b)\ r 418 libavcodec/mpegvideo_motion.c dst[x]= (t*top[x] + l*left[x] + m*mid[x] + r*right[x] + b*bottom[x] + 4)>>3 r 419 libavcodec/mpegvideo_motion.c #define OBMC_FILTER4(x, t, l, m, r, b)\ r 420 libavcodec/mpegvideo_motion.c OBMC_FILTER(x , t, l, m, r, b);\ r 421 libavcodec/mpegvideo_motion.c OBMC_FILTER(x+1 , t, l, m, r, b);\ r 422 libavcodec/mpegvideo_motion.c OBMC_FILTER(x +stride, t, l, m, r, b);\ r 423 libavcodec/mpegvideo_motion.c OBMC_FILTER(x+1+stride, t, l, m, r, b); r 48 libavcodec/mpegvideodsp.c int dxx, int dxy, int dyx, int dyy, int shift, int r, r 80 libavcodec/mpegvideodsp.c r) >> (shift * 2); r 86 libavcodec/mpegvideodsp.c r) >> (shift * 2); r 94 libavcodec/mpegvideodsp.c r) >> (shift * 2); r 25 libavcodec/mpegvideodsp.h int dxx, int dxy, int dyx, int dyy, int shift, int r, r 40 libavcodec/mpegvideodsp.h int shift, int r, int width, int height); r 125 libavcodec/mss1.c int i, ncol, r, g, b; r 133 libavcodec/mss1.c r = arith_get_bits(acoder, 8); r 136 libavcodec/mss1.c *pal++ = (0xFFU << 24) | (r << 16) | (g << 8) | b; r 487 libavcodec/mss2.c struct Rectangle wmv9rects[MAX_WMV9_RECTANGLES], *r; r 544 libavcodec/mss2.c r = &wmv9rects[used_rects]; r 546 libavcodec/mss2.c r->x = arith2_get_number(&acoder, avctx->width); r 548 libavcodec/mss2.c r->x = arith2_get_number(&acoder, avctx->width - r 551 libavcodec/mss2.c r->y = arith2_get_number(&acoder, avctx->height); r 552 libavcodec/mss2.c r->w = arith2_get_number(&acoder, avctx->width - r->x) + 1; r 553 libavcodec/mss2.c r->h = arith2_get_number(&acoder, avctx->height - r->y) + 1; r 43 libavcodec/mss2dsp.c int i, j, k, r = -1; r 44 libavcodec/mss2dsp.c while (++r < h) { r 62 libavcodec/mss2dsp.c srcu += srcuv_stride * (r & 1); r 63 libavcodec/mss2dsp.c srcv += srcuv_stride * (r & 1); r 176 libavcodec/mvcdec.c int g, r; r 182 libavcodec/mvcdec.c r = bytestream2_get_byteu(gb); r 184 libavcodec/mvcdec.c 0xFF000000 | (r << 16) | (g << 8) | p0); r 53 libavcodec/mvha.c int16_t l, r; r 75 libavcodec/mvha.c get_tree_codes(bits, lens, xlat, nodes, nodes[node].r, pfx, pl, r 96 libavcodec/mvha.c nodes[i].r = i; r 138 libavcodec/mvha.c nodes[cur_node].r = second_node; r 301 libavcodec/on2avc.c float l = *ch0, r = *ch1; r 302 libavcodec/on2avc.c *ch0++ = l + r; r 303 libavcodec/on2avc.c *ch1++ = l - r; r 276 libavcodec/opus_celt.c float Ediff, r; r 300 libavcodec/opus_celt.c r = exp2f(1 - Ediff); r 302 libavcodec/opus_celt.c r *= M_SQRT2; r 303 libavcodec/opus_celt.c r = FFMIN(thresh, r) * sqrt_1; r 309 libavcodec/opus_celt.c xptr[(j << f->size) + k] = (celt_rng(f) & 0x8000) ? r : -r; r 735 libavcodec/opus_silk.c static void silk_unmix_ms(SilkContext *s, float *l, float *r) r 752 libavcodec/opus_silk.c r[i] = av_clipf((1 - interp1) * mid[i - 1] - side[i - 1] - interp0 * p0, -1.0, 1.0); r 759 libavcodec/opus_silk.c r[i] = av_clipf((1 - w1) * mid[i - 1] - side[i - 1] - w0 * p0, -1.0, 1.0); r 321 libavcodec/pafvideo.c unsigned r, g, b; r 323 libavcodec/pafvideo.c r = bytestream2_get_byteu(&c->gb); r 324 libavcodec/pafvideo.c r = r << 2 | r >> 4; r 329 libavcodec/pafvideo.c *out++ = (0xFFU << 24) | (r << 16) | (g << 8) | b; r 36 libavcodec/pgssubdec.c #define RGBA(r,g,b,a) (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)) r 336 libavcodec/pgssubdec.c int r, g, b, r_add, g_add, b_add; r 367 libavcodec/pgssubdec.c YUV_TO_RGB2_CCIR(r, g, b, y); r 369 libavcodec/pgssubdec.c ff_dlog(avctx, "Color %d := (%d,%d,%d,%d)\n", color_id, r, g, b, alpha); r 372 libavcodec/pgssubdec.c palette->clut[color_id] = RGBA(r,g,b,alpha); r 217 libavcodec/pngdec.c r = dst[0]; \ r 225 libavcodec/pngdec.c dst[i + 0] = r = op(r, src[i + 0], last[i + 0]); \ r 256 libavcodec/pngdec.c int i, p, r, g, b, a; r 787 libavcodec/pngdec.c int n, i, r, g, b; r 794 libavcodec/pngdec.c r = bytestream2_get_byte(&s->gb); r 797 libavcodec/pngdec.c s->palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | b; r 263 libavcodec/pnmdec.c float *r, *g, *b; r 265 libavcodec/pnmdec.c r = (float *)p->data[2]; r 270 libavcodec/pnmdec.c r[j] = av_int2float(AV_RL32(s->bytestream+0)) * scale; r 276 libavcodec/pnmdec.c r += p->linesize[2] / 4; r 281 libavcodec/pnmdec.c float *r, *g, *b; r 283 libavcodec/pnmdec.c r = (float *)p->data[2]; r 288 libavcodec/pnmdec.c r[j] = av_int2float(AV_RB32(s->bytestream+0)) * scale; r 294 libavcodec/pnmdec.c r += p->linesize[2] / 4; r 71 libavcodec/ppc/fft_init.c r##p = im*cos - re*sin;\ r 78 libavcodec/ppc/fft_init.c a = vec_perm(r##p, i##p, vcprm(0,s0,0,s0));\ r 79 libavcodec/ppc/fft_init.c b = vec_perm(r##p, i##p, vcprm(1,s1,1,s1));\ r 80 libavcodec/ppc/fft_init.c c = vec_perm(r##p, i##p, vcprm(2,s2,2,s2));\ r 81 libavcodec/ppc/fft_init.c d = vec_perm(r##p, i##p, vcprm(3,s3,3,s3));\ r 44 libavcodec/ppc/mathops.h int r; r 45 libavcodec/ppc/mathops.h __asm__ ("mulhw %0, %1, %2" : "=r"(r) : "r"(a), "r"(b)); r 46 libavcodec/ppc/mathops.h return r; r 471 libavcodec/psd.c int r = src[0][x] * k; r 476 libavcodec/psd.c dst[2][x] = r * 257 >> 16; r 497 libavcodec/psd.c int64_t r = AV_RB16(&src[0][x * 2]) * k; r 502 libavcodec/psd.c AV_WB16(&dst[2][x * 2], r * 65537 >> 32); r 686 libavcodec/qdmc.c float *r; r 707 libavcodec/qdmc.c r = &s->buffer_ptr[s->nb_channels * n * s->subframe_size]; r 710 libavcodec/qdmc.c *r++ += s->cmplx[ch][i].re; r 714 libavcodec/qdmc.c r = &s->buffer_ptr[n * s->subframe_size * s->nb_channels]; r 716 libavcodec/qdmc.c out[i] = av_clipf(r[i], INT16_MIN, INT16_MAX); r 53 libavcodec/qdrw.c uint8_t r, g, b; r 63 libavcodec/qdrw.c r = bytestream2_get_byte(gbc); r 69 libavcodec/qdrw.c pal[pixmap ? i : idx] = (0xFFU << 24) | (r << 16) | (g << 8) | b; r 42 libavcodec/qpeldsp.c #define QPEL_MC(r, OPNAME, RND, OP) \ r 70 libavcodec/r210dec.c uint16_t r, g, b; r 79 libavcodec/r210dec.c r = (pixel >> 20) & 0x3ff; r 81 libavcodec/r210dec.c r = pixel & 0x3ff; r 87 libavcodec/r210dec.c r = (pixel >> 22) & 0x3ff; r 89 libavcodec/r210dec.c *dstr++ = r; r 63 libavcodec/r210enc.c unsigned r = *srcr++; r 67 libavcodec/r210enc.c pixel = (r << 20) | (g << 10) | b; r 69 libavcodec/r210enc.c pixel = (r << 22) | (g << 12) | (b << 2); r 36 libavcodec/rv30.c static int rv30_parse_slice_header(RV34DecContext *r, GetBitContext *gb, SliceInfo *si) r 38 libavcodec/rv30.c AVCodecContext *avctx = r->s.avctx; r 40 libavcodec/rv30.c int w = r->s.width, h = r->s.height; r 54 libavcodec/rv30.c rpr = get_bits(gb, av_log2(r->max_rpr) + 1); r 56 libavcodec/rv30.c if (rpr > r->max_rpr) { r 68 libavcodec/rv30.c w = r->s.avctx->extradata[6 + rpr*2] << 2; r 69 libavcodec/rv30.c h = r->s.avctx->extradata[7 + rpr*2] << 2; r 71 libavcodec/rv30.c w = r->orig_width; r 72 libavcodec/rv30.c h = r->orig_height; r 86 libavcodec/rv30.c static int rv30_decode_intra_types(RV34DecContext *r, GetBitContext *gb, int8_t *dst) r 90 libavcodec/rv30.c for(i = 0; i < 4; i++, dst += r->intra_types_stride - 4){ r 94 libavcodec/rv30.c av_log(r->s.avctx, AV_LOG_ERROR, "Incorrect intra prediction code\n"); r 98 libavcodec/rv30.c int A = dst[-r->intra_types_stride] + 1; r 102 libavcodec/rv30.c av_log(r->s.avctx, AV_LOG_ERROR, "Incorrect intra prediction mode\n"); r 114 libavcodec/rv30.c static int rv30_decode_mb_info(RV34DecContext *r) r 118 libavcodec/rv30.c MpegEncContext *s = &r->s; r 151 libavcodec/rv30.c static void rv30_loop_filter(RV34DecContext *r, int row) r 153 libavcodec/rv30.c MpegEncContext *s = &r->s; r 163 libavcodec/rv30.c r->deblock_coefs[mb_pos] = 0xFFFF; r 165 libavcodec/rv30.c r->cbp_chroma[mb_pos] = 0xFF; r 181 libavcodec/rv30.c if(r->deblock_coefs[mb_pos] & (1 << ij)) r 183 libavcodec/rv30.c else if(!i && r->deblock_coefs[mb_pos - 1] & (1 << (ij + 3))) r 185 libavcodec/rv30.c else if( i && r->deblock_coefs[mb_pos] & (1 << (ij - 1))) r 193 libavcodec/rv30.c cur_cbp = (r->cbp_chroma[mb_pos] >> (k*4)) & 0xF; r 195 libavcodec/rv30.c left_cbp = (r->cbp_chroma[mb_pos - 1] >> (k*4)) & 0xF; r 223 libavcodec/rv30.c if(r->deblock_coefs[mb_pos] & (1 << ij)) r 225 libavcodec/rv30.c else if(!j && r->deblock_coefs[mb_pos - s->mb_stride] & (1 << (ij + 12))) r 227 libavcodec/rv30.c else if( j && r->deblock_coefs[mb_pos] & (1 << (ij - 4))) r 235 libavcodec/rv30.c cur_cbp = (r->cbp_chroma[mb_pos] >> (k*4)) & 0xF; r 237 libavcodec/rv30.c top_cbp = (r->cbp_chroma[mb_pos - s->mb_stride] >> (k*4)) & 0xF; r 243 libavcodec/rv30.c if (r->cbp_chroma[mb_pos] & (1 << ij)) r 262 libavcodec/rv30.c RV34DecContext *r = avctx->priv_data; r 265 libavcodec/rv30.c r->orig_width = avctx->coded_width; r 266 libavcodec/rv30.c r->orig_height = avctx->coded_height; r 272 libavcodec/rv30.c r->rv30 = 1; r 276 libavcodec/rv30.c r->max_rpr = avctx->extradata[1] & 7; r 277 libavcodec/rv30.c if(avctx->extradata_size < 2*r->max_rpr + 8){ r 279 libavcodec/rv30.c 2*r->max_rpr + 8, avctx->extradata_size); r 282 libavcodec/rv30.c r->parse_slice_header = rv30_parse_slice_header; r 283 libavcodec/rv30.c r->decode_intra_types = rv30_decode_intra_types; r 284 libavcodec/rv30.c r->decode_mb_info = rv30_decode_mb_info; r 285 libavcodec/rv30.c r->loop_filter = rv30_loop_filter; r 286 libavcodec/rv30.c r->luma_dc_quant_i = rv30_luma_dc_quant; r 287 libavcodec/rv30.c r->luma_dc_quant_p = rv30_luma_dc_quant; r 71 libavcodec/rv34.c static int rv34_decode_mv(RV34DecContext *r, int block_type); r 353 libavcodec/rv34.c static int rv34_decode_intra_mb_header(RV34DecContext *r, int8_t *intra_types) r 355 libavcodec/rv34.c MpegEncContext *s = &r->s; r 360 libavcodec/rv34.c r->is16 = get_bits1(gb); r 361 libavcodec/rv34.c if(r->is16){ r 363 libavcodec/rv34.c r->block_type = RV34_MB_TYPE_INTRA16x16; r 365 libavcodec/rv34.c fill_rectangle(intra_types, 4, 4, r->intra_types_stride, t, sizeof(intra_types[0])); r 366 libavcodec/rv34.c r->luma_vlc = 2; r 368 libavcodec/rv34.c if(!r->rv30){ r 373 libavcodec/rv34.c r->block_type = RV34_MB_TYPE_INTRA; r 374 libavcodec/rv34.c if(r->decode_intra_types(r, gb, intra_types) < 0) r 376 libavcodec/rv34.c r->luma_vlc = 1; r 379 libavcodec/rv34.c r->chroma_vlc = 0; r 380 libavcodec/rv34.c r->cur_vlcs = choose_vlc_set(r->si.quant, r->si.vlc_set, 0); r 382 libavcodec/rv34.c return rv34_decode_cbp(gb, r->cur_vlcs, r->is16); r 388 libavcodec/rv34.c static int rv34_decode_inter_mb_header(RV34DecContext *r, int8_t *intra_types) r 390 libavcodec/rv34.c MpegEncContext *s = &r->s; r 395 libavcodec/rv34.c r->block_type = r->decode_mb_info(r); r 396 libavcodec/rv34.c if(r->block_type == -1) r 398 libavcodec/rv34.c s->current_picture_ptr->mb_type[mb_pos] = rv34_mb_type_to_lavc[r->block_type]; r 399 libavcodec/rv34.c r->mb_type[mb_pos] = r->block_type; r 400 libavcodec/rv34.c if(r->block_type == RV34_MB_SKIP){ r 402 libavcodec/rv34.c r->mb_type[mb_pos] = RV34_MB_P_16x16; r 404 libavcodec/rv34.c r->mb_type[mb_pos] = RV34_MB_B_DIRECT; r 406 libavcodec/rv34.c r->is16 = !!IS_INTRA16x16(s->current_picture_ptr->mb_type[mb_pos]); r 407 libavcodec/rv34.c if (rv34_decode_mv(r, r->block_type) < 0) r 409 libavcodec/rv34.c if(r->block_type == RV34_MB_SKIP){ r 410 libavcodec/rv34.c fill_rectangle(intra_types, 4, 4, r->intra_types_stride, 0, sizeof(intra_types[0])); r 413 libavcodec/rv34.c r->chroma_vlc = 1; r 414 libavcodec/rv34.c r->luma_vlc = 0; r 417 libavcodec/rv34.c if(r->is16){ r 419 libavcodec/rv34.c fill_rectangle(intra_types, 4, 4, r->intra_types_stride, t, sizeof(intra_types[0])); r 420 libavcodec/rv34.c r->luma_vlc = 2; r 422 libavcodec/rv34.c if(r->decode_intra_types(r, gb, intra_types) < 0) r 424 libavcodec/rv34.c r->luma_vlc = 1; r 426 libavcodec/rv34.c r->chroma_vlc = 0; r 427 libavcodec/rv34.c r->cur_vlcs = choose_vlc_set(r->si.quant, r->si.vlc_set, 0); r 430 libavcodec/rv34.c intra_types[(i & 3) + (i>>2) * r->intra_types_stride] = 0; r 431 libavcodec/rv34.c r->cur_vlcs = choose_vlc_set(r->si.quant, r->si.vlc_set, 1); r 432 libavcodec/rv34.c if(r->mb_type[mb_pos] == RV34_MB_P_MIX16x16){ r 433 libavcodec/rv34.c r->is16 = 1; r 434 libavcodec/rv34.c r->chroma_vlc = 1; r 435 libavcodec/rv34.c r->luma_vlc = 2; r 436 libavcodec/rv34.c r->cur_vlcs = choose_vlc_set(r->si.quant, r->si.vlc_set, 0); r 440 libavcodec/rv34.c return rv34_decode_cbp(gb, r->cur_vlcs, r->is16); r 466 libavcodec/rv34.c static void rv34_pred_mv(RV34DecContext *r, int block_type, int subblock_no, int dmv_no) r 468 libavcodec/rv34.c MpegEncContext *s = &r->s; r 473 libavcodec/rv34.c int* avail = r->avail_cache + avail_indexes[subblock_no]; r 492 libavcodec/rv34.c if(avail[-4] && (avail[-1] || r->rv30)){ r 505 libavcodec/rv34.c mx += r->dmv[dmv_no][0]; r 506 libavcodec/rv34.c my += r->dmv[dmv_no][1]; r 520 libavcodec/rv34.c static int calc_add_mv(RV34DecContext *r, int dir, int val) r 522 libavcodec/rv34.c int mul = dir ? -r->mv_weight2 : r->mv_weight1; r 550 libavcodec/rv34.c static void rv34_pred_mv_b(RV34DecContext *r, int block_type, int dir) r 552 libavcodec/rv34.c MpegEncContext *s = &r->s; r 563 libavcodec/rv34.c if((r->avail_cache[6-1] & type) & mask){ r 568 libavcodec/rv34.c if((r->avail_cache[6-4] & type) & mask){ r 573 libavcodec/rv34.c if(r->avail_cache[6-4] && (r->avail_cache[6-2] & type) & mask){ r 577 libavcodec/rv34.c }else if((s->mb_x+1) == s->mb_width && (r->avail_cache[6-5] & type) & mask){ r 585 libavcodec/rv34.c mx += r->dmv[dir][0]; r 586 libavcodec/rv34.c my += r->dmv[dir][1]; r 602 libavcodec/rv34.c static void rv34_pred_mv_rv3(RV34DecContext *r, int block_type, int dir) r 604 libavcodec/rv34.c MpegEncContext *s = &r->s; r 609 libavcodec/rv34.c int* avail = r->avail_cache + avail_indexes[0]; r 636 libavcodec/rv34.c mx += r->dmv[0][0]; r 637 libavcodec/rv34.c my += r->dmv[0][1]; r 665 libavcodec/rv34.c static inline void rv34_mc(RV34DecContext *r, const int block_type, r 672 libavcodec/rv34.c MpegEncContext *s = &r->s; r 743 libavcodec/rv34.c Y = r->tmp_b_block_y [dir] + xoff + yoff *s->linesize; r 744 libavcodec/rv34.c U = r->tmp_b_block_uv[dir*2] + (xoff>>1) + (yoff>>1)*s->uvlinesize; r 745 libavcodec/rv34.c V = r->tmp_b_block_uv[dir*2+1] + (xoff>>1) + (yoff>>1)*s->uvlinesize; r 781 libavcodec/rv34.c static void rv34_mc_1mv(RV34DecContext *r, const int block_type, r 785 libavcodec/rv34.c rv34_mc(r, block_type, xoff, yoff, mv_off, width, height, dir, r->rv30, 0, r 786 libavcodec/rv34.c r->rdsp.put_pixels_tab, r 787 libavcodec/rv34.c r->rdsp.put_chroma_pixels_tab); r 790 libavcodec/rv34.c static void rv4_weight(RV34DecContext *r) r 792 libavcodec/rv34.c r->rdsp.rv40_weight_pixels_tab[r->scaled_weight][0](r->s.dest[0], r 793 libavcodec/rv34.c r->tmp_b_block_y[0], r 794 libavcodec/rv34.c r->tmp_b_block_y[1], r 795 libavcodec/rv34.c r->weight1, r 796 libavcodec/rv34.c r->weight2, r 797 libavcodec/rv34.c r->s.linesize); r 798 libavcodec/rv34.c r->rdsp.rv40_weight_pixels_tab[r->scaled_weight][1](r->s.dest[1], r 799 libavcodec/rv34.c r->tmp_b_block_uv[0], r 800 libavcodec/rv34.c r->tmp_b_block_uv[2], r 801 libavcodec/rv34.c r->weight1, r 802 libavcodec/rv34.c r->weight2, r 803 libavcodec/rv34.c r->s.uvlinesize); r 804 libavcodec/rv34.c r->rdsp.rv40_weight_pixels_tab[r->scaled_weight][1](r->s.dest[2], r 805 libavcodec/rv34.c r->tmp_b_block_uv[1], r 806 libavcodec/rv34.c r->tmp_b_block_uv[3], r 807 libavcodec/rv34.c r->weight1, r 808 libavcodec/rv34.c r->weight2, r 809 libavcodec/rv34.c r->s.uvlinesize); r 812 libavcodec/rv34.c static void rv34_mc_2mv(RV34DecContext *r, const int block_type) r 814 libavcodec/rv34.c int weighted = !r->rv30 && block_type != RV34_MB_B_BIDIR && r->weight1 != 8192; r 816 libavcodec/rv34.c rv34_mc(r, block_type, 0, 0, 0, 2, 2, 0, r->rv30, weighted, r 817 libavcodec/rv34.c r->rdsp.put_pixels_tab, r 818 libavcodec/rv34.c r->rdsp.put_chroma_pixels_tab); r 820 libavcodec/rv34.c rv34_mc(r, block_type, 0, 0, 0, 2, 2, 1, r->rv30, 0, r 821 libavcodec/rv34.c r->rdsp.avg_pixels_tab, r 822 libavcodec/rv34.c r->rdsp.avg_chroma_pixels_tab); r 824 libavcodec/rv34.c rv34_mc(r, block_type, 0, 0, 0, 2, 2, 1, r->rv30, 1, r 825 libavcodec/rv34.c r->rdsp.put_pixels_tab, r 826 libavcodec/rv34.c r->rdsp.put_chroma_pixels_tab); r 827 libavcodec/rv34.c rv4_weight(r); r 831 libavcodec/rv34.c static void rv34_mc_2mv_skip(RV34DecContext *r) r 834 libavcodec/rv34.c int weighted = !r->rv30 && r->weight1 != 8192; r 838 libavcodec/rv34.c rv34_mc(r, RV34_MB_P_8x8, i*8, j*8, i+j*r->s.b8_stride, 1, 1, 0, r->rv30, r 840 libavcodec/rv34.c r->rdsp.put_pixels_tab, r 841 libavcodec/rv34.c r->rdsp.put_chroma_pixels_tab); r 842 libavcodec/rv34.c rv34_mc(r, RV34_MB_P_8x8, i*8, j*8, i+j*r->s.b8_stride, 1, 1, 1, r->rv30, r 844 libavcodec/rv34.c weighted ? r->rdsp.put_pixels_tab : r->rdsp.avg_pixels_tab, r 845 libavcodec/rv34.c weighted ? r->rdsp.put_chroma_pixels_tab : r->rdsp.avg_chroma_pixels_tab); r 848 libavcodec/rv34.c rv4_weight(r); r 858 libavcodec/rv34.c static int rv34_decode_mv(RV34DecContext *r, int block_type) r 860 libavcodec/rv34.c MpegEncContext *s = &r->s; r 866 libavcodec/rv34.c memset(r->dmv, 0, sizeof(r->dmv)); r 868 libavcodec/rv34.c r->dmv[i][0] = get_interleaved_se_golomb(gb); r 869 libavcodec/rv34.c r->dmv[i][1] = get_interleaved_se_golomb(gb); r 870 libavcodec/rv34.c if (r->dmv[i][0] == INVALID_VLC || r 871 libavcodec/rv34.c r->dmv[i][1] == INVALID_VLC) { r 872 libavcodec/rv34.c r->dmv[i][0] = r->dmv[i][1] = 0; r 884 libavcodec/rv34.c rv34_mc_1mv (r, block_type, 0, 0, 0, 2, 2, 0); r 902 libavcodec/rv34.c s->current_picture_ptr->motion_val[l][mv_pos + i + j*s->b8_stride][k] = calc_add_mv(r, l, s->next_picture_ptr->motion_val[0][mv_pos + i + j*s->b8_stride][k]); r 904 libavcodec/rv34.c rv34_mc_2mv(r, block_type); r 906 libavcodec/rv34.c rv34_mc_2mv_skip(r); r 911 libavcodec/rv34.c rv34_pred_mv(r, block_type, 0, 0); r 912 libavcodec/rv34.c rv34_mc_1mv (r, block_type, 0, 0, 0, 2, 2, 0); r 916 libavcodec/rv34.c r->dmv[1][0] = r->dmv[0][0]; r 917 libavcodec/rv34.c r->dmv[1][1] = r->dmv[0][1]; r 918 libavcodec/rv34.c if(r->rv30) r 919 libavcodec/rv34.c rv34_pred_mv_rv3(r, block_type, block_type == RV34_MB_B_BACKWARD); r 921 libavcodec/rv34.c rv34_pred_mv_b (r, block_type, block_type == RV34_MB_B_BACKWARD); r 922 libavcodec/rv34.c rv34_mc_1mv (r, block_type, 0, 0, 0, 2, 2, block_type == RV34_MB_B_BACKWARD); r 926 libavcodec/rv34.c rv34_pred_mv(r, block_type, 0, 0); r 927 libavcodec/rv34.c rv34_pred_mv(r, block_type, 1 + (block_type == RV34_MB_P_16x8), 1); r 929 libavcodec/rv34.c rv34_mc_1mv(r, block_type, 0, 0, 0, 2, 1, 0); r 930 libavcodec/rv34.c rv34_mc_1mv(r, block_type, 0, 8, s->b8_stride, 2, 1, 0); r 933 libavcodec/rv34.c rv34_mc_1mv(r, block_type, 0, 0, 0, 1, 2, 0); r 934 libavcodec/rv34.c rv34_mc_1mv(r, block_type, 8, 0, 1, 1, 2, 0); r 938 libavcodec/rv34.c rv34_pred_mv_b (r, block_type, 0); r 939 libavcodec/rv34.c rv34_pred_mv_b (r, block_type, 1); r 940 libavcodec/rv34.c rv34_mc_2mv (r, block_type); r 944 libavcodec/rv34.c rv34_pred_mv(r, block_type, i, i); r 945 libavcodec/rv34.c rv34_mc_1mv (r, block_type, (i&1)<<3, (i&2)<<2, (i&1)+(i>>1)*s->b8_stride, 1, 1, 0); r 972 libavcodec/rv34.c static void rv34_pred_4x4_block(RV34DecContext *r, uint8_t *dst, int stride, int itype, int up, int left, int down, int right) r 996 libavcodec/rv34.c r->h.pred4x4[itype](dst, prev, stride); r 1015 libavcodec/rv34.c static inline void rv34_process_block(RV34DecContext *r, r 1019 libavcodec/rv34.c MpegEncContext *s = &r->s; r 1021 libavcodec/rv34.c int has_ac = rv34_decode_block(ptr, &s->gb, r->cur_vlcs, r 1024 libavcodec/rv34.c r->rdsp.rv34_idct_add(pdst, stride, ptr); r 1026 libavcodec/rv34.c r->rdsp.rv34_idct_dc_add(pdst, stride, ptr[0]); r 1031 libavcodec/rv34.c static void rv34_output_i16x16(RV34DecContext *r, int8_t *intra_types, int cbp) r 1034 libavcodec/rv34.c MpegEncContext *s = &r->s; r 1036 libavcodec/rv34.c int q_dc = rv34_qscale_tab[ r->luma_dc_quant_i[s->qscale] ], r 1044 libavcodec/rv34.c has_ac = rv34_decode_block(block16, gb, r->cur_vlcs, 3, 0, q_dc, q_dc, q_ac); r 1046 libavcodec/rv34.c r->rdsp.rv34_inv_transform(block16); r 1048 libavcodec/rv34.c r->rdsp.rv34_inv_transform_dc(block16); r 1051 libavcodec/rv34.c itype = adjust_pred16(itype, r->avail_cache[6-4], r->avail_cache[6-1]); r 1052 libavcodec/rv34.c r->h.pred16x16[itype](dst, s->linesize); r 1059 libavcodec/rv34.c has_ac = rv34_decode_block(ptr, gb, r->cur_vlcs, r->luma_vlc, 0, q_ac, q_ac, q_ac); r 1065 libavcodec/rv34.c r->rdsp.rv34_idct_add(dst+4*i, s->linesize, ptr); r 1067 libavcodec/rv34.c r->rdsp.rv34_idct_dc_add(dst+4*i, s->linesize, dc); r 1075 libavcodec/rv34.c itype = adjust_pred16(itype, r->avail_cache[6-4], r->avail_cache[6-1]); r 1082 libavcodec/rv34.c r->h.pred8x8[itype](dst, s->uvlinesize); r 1088 libavcodec/rv34.c rv34_process_block(r, pdst, s->uvlinesize, r 1089 libavcodec/rv34.c r->chroma_vlc, 1, q_dc, q_ac); r 1094 libavcodec/rv34.c static void rv34_output_intra(RV34DecContext *r, int8_t *intra_types, int cbp) r 1096 libavcodec/rv34.c MpegEncContext *s = &r->s; r 1103 libavcodec/rv34.c if(r->avail_cache[1]) r 1105 libavcodec/rv34.c if(r->avail_cache[2]) r 1107 libavcodec/rv34.c if(r->avail_cache[3]) r 1109 libavcodec/rv34.c if(r->avail_cache[4]) r 1111 libavcodec/rv34.c if(r->avail_cache[5]) r 1113 libavcodec/rv34.c if(r->avail_cache[9]) r 1120 libavcodec/rv34.c rv34_pred_4x4_block(r, dst, s->linesize, ittrans[intra_types[i]], avail[idx-8], avail[idx-1], avail[idx+7], avail[idx-7]); r 1124 libavcodec/rv34.c rv34_process_block(r, dst, s->linesize, r 1125 libavcodec/rv34.c r->luma_vlc, 0, q_ac, q_ac); r 1128 libavcodec/rv34.c intra_types += r->intra_types_stride; r 1131 libavcodec/rv34.c intra_types -= r->intra_types_stride * 4; r 1138 libavcodec/rv34.c fill_rectangle(r->avail_cache + 6, 2, 2, 4, 0, 4); r 1141 libavcodec/rv34.c int* acache = r->avail_cache + 6 + j*4; r 1143 libavcodec/rv34.c int itype = ittrans[intra_types[i*2+j*2*r->intra_types_stride]]; r 1144 libavcodec/rv34.c rv34_pred_4x4_block(r, dst+4*i, s->uvlinesize, itype, acache[-4], acache[-1], !i && !j, acache[-3]); r 1149 libavcodec/rv34.c rv34_process_block(r, dst + 4*i, s->uvlinesize, r 1150 libavcodec/rv34.c r->chroma_vlc, 1, q_dc, q_ac); r 1170 libavcodec/rv34.c static int rv34_set_deblock_coef(RV34DecContext *r) r 1172 libavcodec/rv34.c MpegEncContext *s = &r->s; r 1189 libavcodec/rv34.c if(r->rv30){ //RV30 marks both subblocks on the edge for filtering r 1193 libavcodec/rv34.c r->deblock_coefs[s->mb_x - 1 + s->mb_y*s->mb_stride] |= (vmvmask & 0x1111) << 3; r 1195 libavcodec/rv34.c r->deblock_coefs[s->mb_x + (s->mb_y - 1)*s->mb_stride] |= (hmvmask & 0xF) << 12; r 1200 libavcodec/rv34.c static int rv34_decode_inter_macroblock(RV34DecContext *r, int8_t *intra_types) r 1202 libavcodec/rv34.c MpegEncContext *s = &r->s; r 1213 libavcodec/rv34.c memset(r->avail_cache, 0, sizeof(r->avail_cache)); r 1214 libavcodec/rv34.c fill_rectangle(r->avail_cache + 6, 2, 2, 4, 1, 4); r 1217 libavcodec/rv34.c r->avail_cache[5] = r 1218 libavcodec/rv34.c r->avail_cache[9] = s->current_picture_ptr->mb_type[mb_pos - 1]; r 1220 libavcodec/rv34.c r->avail_cache[2] = r 1221 libavcodec/rv34.c r->avail_cache[3] = s->current_picture_ptr->mb_type[mb_pos - s->mb_stride]; r 1223 libavcodec/rv34.c r->avail_cache[4] = s->current_picture_ptr->mb_type[mb_pos - s->mb_stride + 1]; r 1225 libavcodec/rv34.c r->avail_cache[1] = s->current_picture_ptr->mb_type[mb_pos - s->mb_stride - 1]; r 1227 libavcodec/rv34.c s->qscale = r->si.quant; r 1228 libavcodec/rv34.c cbp = cbp2 = rv34_decode_inter_mb_header(r, intra_types); r 1229 libavcodec/rv34.c r->cbp_luma [mb_pos] = cbp; r 1230 libavcodec/rv34.c r->cbp_chroma[mb_pos] = cbp >> 16; r 1231 libavcodec/rv34.c r->deblock_coefs[mb_pos] = rv34_set_deblock_coef(r) | r->cbp_luma[mb_pos]; r 1238 libavcodec/rv34.c if(r->is16) rv34_output_i16x16(r, intra_types, cbp); r 1239 libavcodec/rv34.c else rv34_output_intra(r, intra_types, cbp); r 1243 libavcodec/rv34.c if(r->is16){ r 1247 libavcodec/rv34.c q_dc = rv34_qscale_tab[ r->luma_dc_quant_p[s->qscale] ]; r 1249 libavcodec/rv34.c if (rv34_decode_block(block16, gb, r->cur_vlcs, 3, 0, q_dc, q_dc, q_ac)) r 1250 libavcodec/rv34.c r->rdsp.rv34_inv_transform(block16); r 1252 libavcodec/rv34.c r->rdsp.rv34_inv_transform_dc(block16); r 1261 libavcodec/rv34.c has_ac = rv34_decode_block(ptr, gb, r->cur_vlcs, r->luma_vlc, 0, q_ac, q_ac, q_ac); r 1267 libavcodec/rv34.c r->rdsp.rv34_idct_add(dst+4*i, s->linesize, ptr); r 1269 libavcodec/rv34.c r->rdsp.rv34_idct_dc_add(dst+4*i, s->linesize, dc); r 1275 libavcodec/rv34.c r->cur_vlcs = choose_vlc_set(r->si.quant, r->si.vlc_set, 1); r 1283 libavcodec/rv34.c rv34_process_block(r, dst + 4*i, s->linesize, r 1284 libavcodec/rv34.c r->luma_vlc, 0, q_ac, q_ac); r 1300 libavcodec/rv34.c rv34_process_block(r, pdst, s->uvlinesize, r 1301 libavcodec/rv34.c r->chroma_vlc, 1, q_dc, q_ac); r 1308 libavcodec/rv34.c static int rv34_decode_intra_macroblock(RV34DecContext *r, int8_t *intra_types) r 1310 libavcodec/rv34.c MpegEncContext *s = &r->s; r 1315 libavcodec/rv34.c memset(r->avail_cache, 0, sizeof(r->avail_cache)); r 1316 libavcodec/rv34.c fill_rectangle(r->avail_cache + 6, 2, 2, 4, 1, 4); r 1319 libavcodec/rv34.c r->avail_cache[5] = r 1320 libavcodec/rv34.c r->avail_cache[9] = s->current_picture_ptr->mb_type[mb_pos - 1]; r 1322 libavcodec/rv34.c r->avail_cache[2] = r 1323 libavcodec/rv34.c r->avail_cache[3] = s->current_picture_ptr->mb_type[mb_pos - s->mb_stride]; r 1325 libavcodec/rv34.c r->avail_cache[4] = s->current_picture_ptr->mb_type[mb_pos - s->mb_stride + 1]; r 1327 libavcodec/rv34.c r->avail_cache[1] = s->current_picture_ptr->mb_type[mb_pos - s->mb_stride - 1]; r 1329 libavcodec/rv34.c s->qscale = r->si.quant; r 1330 libavcodec/rv34.c cbp = rv34_decode_intra_mb_header(r, intra_types); r 1331 libavcodec/rv34.c r->cbp_luma [mb_pos] = cbp; r 1332 libavcodec/rv34.c r->cbp_chroma[mb_pos] = cbp >> 16; r 1333 libavcodec/rv34.c r->deblock_coefs[mb_pos] = 0xFFFF; r 1339 libavcodec/rv34.c if(r->is16){ r 1340 libavcodec/rv34.c rv34_output_i16x16(r, intra_types, cbp); r 1344 libavcodec/rv34.c rv34_output_intra(r, intra_types, cbp); r 1348 libavcodec/rv34.c static int check_slice_end(RV34DecContext *r, MpegEncContext *s) r 1355 libavcodec/rv34.c if(r->s.mb_skip_run > 1) r 1364 libavcodec/rv34.c static void rv34_decoder_free(RV34DecContext *r) r 1366 libavcodec/rv34.c av_freep(&r->intra_types_hist); r 1367 libavcodec/rv34.c r->intra_types = NULL; r 1368 libavcodec/rv34.c av_freep(&r->tmp_b_block_base); r 1369 libavcodec/rv34.c av_freep(&r->mb_type); r 1370 libavcodec/rv34.c av_freep(&r->cbp_luma); r 1371 libavcodec/rv34.c av_freep(&r->cbp_chroma); r 1372 libavcodec/rv34.c av_freep(&r->deblock_coefs); r 1376 libavcodec/rv34.c static int rv34_decoder_alloc(RV34DecContext *r) r 1378 libavcodec/rv34.c r->intra_types_stride = r->s.mb_width * 4 + 4; r 1380 libavcodec/rv34.c r->cbp_chroma = av_mallocz(r->s.mb_stride * r->s.mb_height * r 1381 libavcodec/rv34.c sizeof(*r->cbp_chroma)); r 1382 libavcodec/rv34.c r->cbp_luma = av_mallocz(r->s.mb_stride * r->s.mb_height * r 1383 libavcodec/rv34.c sizeof(*r->cbp_luma)); r 1384 libavcodec/rv34.c r->deblock_coefs = av_mallocz(r->s.mb_stride * r->s.mb_height * r 1385 libavcodec/rv34.c sizeof(*r->deblock_coefs)); r 1386 libavcodec/rv34.c r->intra_types_hist = av_malloc(r->intra_types_stride * 4 * 2 * r 1387 libavcodec/rv34.c sizeof(*r->intra_types_hist)); r 1388 libavcodec/rv34.c r->mb_type = av_mallocz(r->s.mb_stride * r->s.mb_height * r 1389 libavcodec/rv34.c sizeof(*r->mb_type)); r 1391 libavcodec/rv34.c if (!(r->cbp_chroma && r->cbp_luma && r->deblock_coefs && r 1392 libavcodec/rv34.c r->intra_types_hist && r->mb_type)) { r 1393 libavcodec/rv34.c rv34_decoder_free(r); r 1397 libavcodec/rv34.c r->intra_types = r->intra_types_hist + r->intra_types_stride * 4; r 1403 libavcodec/rv34.c static int rv34_decoder_realloc(RV34DecContext *r) r 1405 libavcodec/rv34.c rv34_decoder_free(r); r 1406 libavcodec/rv34.c return rv34_decoder_alloc(r); r 1410 libavcodec/rv34.c static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int buf_size) r 1412 libavcodec/rv34.c MpegEncContext *s = &r->s; r 1417 libavcodec/rv34.c init_get_bits(&r->s.gb, buf, buf_size*8); r 1418 libavcodec/rv34.c res = r->parse_slice_header(r, gb, &r->si); r 1424 libavcodec/rv34.c slice_type = r->si.type ? r->si.type : AV_PICTURE_TYPE_I; r 1429 libavcodec/rv34.c if (s->width != r->si.width || s->height != r->si.height) { r 1434 libavcodec/rv34.c r->si.end = end; r 1435 libavcodec/rv34.c s->qscale = r->si.quant; r 1436 libavcodec/rv34.c s->mb_num_left = r->si.end - r->si.start; r 1437 libavcodec/rv34.c r->s.mb_skip_run = 0; r 1440 libavcodec/rv34.c if(r->si.start != mb_pos){ r 1441 libavcodec/rv34.c av_log(s->avctx, AV_LOG_ERROR, "Slice indicates MB offset %d, got %d\n", r->si.start, mb_pos); r 1442 libavcodec/rv34.c s->mb_x = r->si.start % s->mb_width; r 1443 libavcodec/rv34.c s->mb_y = r->si.start / s->mb_width; r 1445 libavcodec/rv34.c memset(r->intra_types_hist, -1, r->intra_types_stride * 4 * 2 * sizeof(*r->intra_types_hist)); r 1451 libavcodec/rv34.c while(!check_slice_end(r, s)) { r 1454 libavcodec/rv34.c if(r->si.type) r 1455 libavcodec/rv34.c res = rv34_decode_inter_macroblock(r, r->intra_types + s->mb_x * 4 + 4); r 1457 libavcodec/rv34.c res = rv34_decode_intra_macroblock(r, r->intra_types + s->mb_x * 4 + 4); r 1467 libavcodec/rv34.c memmove(r->intra_types_hist, r->intra_types, r->intra_types_stride * 4 * sizeof(*r->intra_types_hist)); r 1468 libavcodec/rv34.c memset(r->intra_types, -1, r->intra_types_stride * 4 * sizeof(*r->intra_types_hist)); r 1470 libavcodec/rv34.c if(r->loop_filter && s->mb_y >= 2) r 1471 libavcodec/rv34.c r->loop_filter(r, s->mb_y - 2); r 1494 libavcodec/rv34.c RV34DecContext *r = avctx->priv_data; r 1495 libavcodec/rv34.c MpegEncContext *s = &r->s; r 1510 libavcodec/rv34.c ff_h264_pred_init(&r->h, AV_CODEC_ID_RV40, 8, 1); r 1514 libavcodec/rv34.c ff_rv30dsp_init(&r->rdsp); r 1518 libavcodec/rv34.c ff_rv40dsp_init(&r->rdsp); r 1521 libavcodec/rv34.c if ((ret = rv34_decoder_alloc(r)) < 0) { r 1522 libavcodec/rv34.c ff_mpv_common_end(&r->s); r 1534 libavcodec/rv34.c RV34DecContext *r = dst->priv_data, *r1 = src->priv_data; r 1535 libavcodec/rv34.c MpegEncContext * const s = &r->s, * const s1 = &r1->s; r 1546 libavcodec/rv34.c if ((err = rv34_decoder_realloc(r)) < 0) r 1550 libavcodec/rv34.c r->cur_pts = r1->cur_pts; r 1551 libavcodec/rv34.c r->last_pts = r1->last_pts; r 1552 libavcodec/rv34.c r->next_pts = r1->next_pts; r 1554 libavcodec/rv34.c memset(&r->si, 0, sizeof(r->si)); r 1575 libavcodec/rv34.c RV34DecContext *r = avctx->priv_data; r 1576 libavcodec/rv34.c MpegEncContext *s = &r->s; r 1619 libavcodec/rv34.c RV34DecContext *r = avctx->priv_data; r 1620 libavcodec/rv34.c MpegEncContext *s = &r->s; r 1658 libavcodec/rv34.c if(r->parse_slice_header(r, &r->s.gb, &si) < 0 || si.start){ r 1703 libavcodec/rv34.c if ((err = rv34_decoder_realloc(r)) < 0) r 1712 libavcodec/rv34.c if (!r->tmp_b_block_base) { r 1715 libavcodec/rv34.c r->tmp_b_block_base = av_malloc(s->linesize * 48); r 1717 libavcodec/rv34.c r->tmp_b_block_y[i] = r->tmp_b_block_base r 1720 libavcodec/rv34.c r->tmp_b_block_uv[i] = r->tmp_b_block_base + 32 * s->linesize r 1724 libavcodec/rv34.c r->cur_pts = si.pts; r 1726 libavcodec/rv34.c r->last_pts = r->next_pts; r 1727 libavcodec/rv34.c r->next_pts = r->cur_pts; r 1729 libavcodec/rv34.c int refdist = GET_PTS_DIFF(r->next_pts, r->last_pts); r 1730 libavcodec/rv34.c int dist0 = GET_PTS_DIFF(r->cur_pts, r->last_pts); r 1731 libavcodec/rv34.c int dist1 = GET_PTS_DIFF(r->next_pts, r->cur_pts); r 1734 libavcodec/rv34.c r->mv_weight1 = r->mv_weight2 = r->weight1 = r->weight2 = 8192; r 1735 libavcodec/rv34.c r->scaled_weight = 0; r 1740 libavcodec/rv34.c r->mv_weight1 = (dist0 << 14) / refdist; r 1741 libavcodec/rv34.c r->mv_weight2 = (dist1 << 14) / refdist; r 1742 libavcodec/rv34.c if((r->mv_weight1|r->mv_weight2) & 511){ r 1743 libavcodec/rv34.c r->weight1 = r->mv_weight1; r 1744 libavcodec/rv34.c r->weight2 = r->mv_weight2; r 1745 libavcodec/rv34.c r->scaled_weight = 0; r 1747 libavcodec/rv34.c r->weight1 = r->mv_weight1 >> 9; r 1748 libavcodec/rv34.c r->weight2 = r->mv_weight2 >> 9; r 1749 libavcodec/rv34.c r->scaled_weight = 1; r 1773 libavcodec/rv34.c r->si.end = s->mb_width * s->mb_height; r 1774 libavcodec/rv34.c s->mb_num_left = r->s.mb_x + r->s.mb_y*r->s.mb_width - r->si.start; r 1783 libavcodec/rv34.c if(r->parse_slice_header(r, &r->s.gb, &si) < 0){ r 1786 libavcodec/rv34.c r->si.end = si.start; r 1789 libavcodec/rv34.c last = rv34_decode_slice(r, r->si.end, buf + offset, size); r 1796 libavcodec/rv34.c if(r->loop_filter) r 1797 libavcodec/rv34.c r->loop_filter(r, s->mb_height - 1); r 1821 libavcodec/rv34.c RV34DecContext *r = avctx->priv_data; r 1823 libavcodec/rv34.c ff_mpv_common_end(&r->s); r 1824 libavcodec/rv34.c rv34_decoder_free(r); r 126 libavcodec/rv34.h int (*parse_slice_header)(struct RV34DecContext *r, GetBitContext *gb, SliceInfo *si); r 127 libavcodec/rv34.h int (*decode_mb_info)(struct RV34DecContext *r); r 128 libavcodec/rv34.h int (*decode_intra_types)(struct RV34DecContext *r, GetBitContext *gb, int8_t *dst); r 129 libavcodec/rv34.h void (*loop_filter)(struct RV34DecContext *r, int row); r 130 libavcodec/rv40.c static int rv40_parse_slice_header(RV34DecContext *r, GetBitContext *gb, SliceInfo *si) r 133 libavcodec/rv40.c int w = r->s.width, h = r->s.height; r 150 libavcodec/rv40.c if ((ret = av_image_check_size(w, h, 0, r->s.avctx)) < 0) r 164 libavcodec/rv40.c static int rv40_decode_intra_types(RV34DecContext *r, GetBitContext *gb, int8_t *dst) r 166 libavcodec/rv40.c MpegEncContext *s = &r->s; r 172 libavcodec/rv40.c for(i = 0; i < 4; i++, dst += r->intra_types_stride){ r 189 libavcodec/rv40.c A = ptr[-r->intra_types_stride + 1]; // it won't be used for the last coefficient in a row r 190 libavcodec/rv40.c B = ptr[-r->intra_types_stride]; r 227 libavcodec/rv40.c static int rv40_decode_mb_info(RV34DecContext *r) r 229 libavcodec/rv40.c MpegEncContext *s = &r->s; r 235 libavcodec/rv40.c if(!r->s.mb_skip_run) { r 236 libavcodec/rv40.c r->s.mb_skip_run = get_interleaved_ue_golomb(gb) + 1; r 237 libavcodec/rv40.c if(r->s.mb_skip_run > (unsigned)s->mb_num) r 241 libavcodec/rv40.c if(--r->s.mb_skip_run) r 244 libavcodec/rv40.c if(r->avail_cache[6-4]){ r 247 libavcodec/rv40.c if(r->avail_cache[6-1]) r 248 libavcodec/rv40.c blocks[r->mb_type[mb_pos - 1]]++; r 249 libavcodec/rv40.c blocks[r->mb_type[mb_pos - s->mb_stride]]++; r 250 libavcodec/rv40.c if(r->avail_cache[6-2]) r 251 libavcodec/rv40.c blocks[r->mb_type[mb_pos - s->mb_stride + 1]]++; r 252 libavcodec/rv40.c if(r->avail_cache[6-5]) r 253 libavcodec/rv40.c blocks[r->mb_type[mb_pos - s->mb_stride - 1]]++; r 262 libavcodec/rv40.c } else if (r->avail_cache[6-1]) r 263 libavcodec/rv40.c prev_type = r->mb_type[mb_pos - 1]; r 337 libavcodec/rv40.c static void rv40_loop_filter(RV34DecContext *r, int row) r 339 libavcodec/rv40.c MpegEncContext *s = &r->s; r 375 libavcodec/rv40.c r->cbp_luma [mb_pos] = r->deblock_coefs[mb_pos] = 0xFFFF; r 377 libavcodec/rv40.c r->cbp_chroma[mb_pos] = 0xFF; r 402 libavcodec/rv40.c mvmasks[i] = r->deblock_coefs[pos]; r 404 libavcodec/rv40.c cbp [i] = r->cbp_luma[pos]; r 405 libavcodec/rv40.c uvcbp[i][0] = r->cbp_chroma[pos] & 0xF; r 406 libavcodec/rv40.c uvcbp[i][1] = r->cbp_chroma[pos] >> 4; r 471 libavcodec/rv40.c rv40_adaptive_loop_filter(&r->rdsp, Y+4*s->linesize, r 483 libavcodec/rv40.c rv40_adaptive_loop_filter(&r->rdsp, Y, s->linesize, dither, r 490 libavcodec/rv40.c rv40_adaptive_loop_filter(&r->rdsp, Y, s->linesize, dither, r 498 libavcodec/rv40.c rv40_adaptive_loop_filter(&r->rdsp, Y, s->linesize, dither, r 513 libavcodec/rv40.c rv40_adaptive_loop_filter(&r->rdsp, C+4*s->uvlinesize, s->uvlinesize, i*8, r 523 libavcodec/rv40.c rv40_adaptive_loop_filter(&r->rdsp, C, s->uvlinesize, j*8, r 530 libavcodec/rv40.c rv40_adaptive_loop_filter(&r->rdsp, C, s->uvlinesize, i*8, r 537 libavcodec/rv40.c rv40_adaptive_loop_filter(&r->rdsp, C, s->uvlinesize, j*8, r 553 libavcodec/rv40.c RV34DecContext *r = avctx->priv_data; r 556 libavcodec/rv40.c r->rv30 = 0; r 561 libavcodec/rv40.c r->parse_slice_header = rv40_parse_slice_header; r 562 libavcodec/rv40.c r->decode_intra_types = rv40_decode_intra_types; r 563 libavcodec/rv40.c r->decode_mb_info = rv40_decode_mb_info; r 564 libavcodec/rv40.c r->loop_filter = rv40_loop_filter; r 565 libavcodec/rv40.c r->luma_dc_quant_i = rv40_luma_dc_quant[0]; r 566 libavcodec/rv40.c r->luma_dc_quant_p = rv40_luma_dc_quant[1]; r 252 libavcodec/sbrdsp_fixed.c int64_t r = 1LL << (22-g_filt[m].exp); r 254 libavcodec/sbrdsp_fixed.c Y[m][0] = (int)((accu + r) >> (23-g_filt[m].exp)); r 257 libavcodec/sbrdsp_fixed.c Y[m][1] = (int)((accu + r) >> (23-g_filt[m].exp)); r 269 libavcodec/scpr.c static int decode_units(SCPRContext *s, uint32_t *r, uint32_t *g, uint32_t *b, r 275 libavcodec/scpr.c ret = decode_unit(s, &s->pixel_model[0][*cx + *cx1], 400, r); r 280 libavcodec/scpr.c *cx = *r >> cxshift; r 303 libavcodec/scpr.c uint32_t clr = 0, r, g, b, backstep = linesize - avctx->width; r 311 libavcodec/scpr.c ret = decode_units(s, &r, &g, &b, &cx, &cx1); r 321 libavcodec/scpr.c clr = (b << 16) + (g << 8) + r; r 345 libavcodec/scpr.c ret = decode_units(s, &r, &g, &b, &cx, &cx1); r 349 libavcodec/scpr.c clr = (b << 16) + (g << 8) + r; r 460 libavcodec/scpr.c uint32_t r, g, b, clr, ptype = 0; r 467 libavcodec/scpr.c ret = decode_units(s, &r, &g, &b, &cx, &cx1); r 471 libavcodec/scpr.c clr = (b << 16) + (g << 8) + r; r 544 libavcodec/scpr.c int r, g, b; r 546 libavcodec/scpr.c r = (value ) & 31; r 549 libavcodec/scpr.c clr = (r << 16) + (g << 8) + b; r 85 libavcodec/scpr.h uint32_t r, g, b; r 158 libavcodec/scpr.h r = odst[off1] + r 167 libavcodec/scpr.h clr = ((b & 0xFF) << 16) + ((g & 0xFF) << 8) + (r & 0xFF); r 230 libavcodec/scpr.h uint32_t r, g, b; r 312 libavcodec/scpr.h r = odst[((*by - 1) * linesize + *bx) * 4] + r 321 libavcodec/scpr.h clr = ((b & 0xFF) << 16) + ((g & 0xFF) << 8) + (r & 0xFF); r 755 libavcodec/scpr3.c uint32_t r, y, a, b, e, g, q; r 757 libavcodec/scpr3.c r = dectable[(rc->code & 0xFFFu) >> 7]; r 758 libavcodec/scpr3.c if (r < max) { r 759 libavcodec/scpr3.c while (freqs2[r + 1] <= (rc->code & 0xFFF)) { r 760 libavcodec/scpr3.c if (++r >= max) r 765 libavcodec/scpr3.c if (r > max) r 768 libavcodec/scpr3.c cnts[r] += 16; r 769 libavcodec/scpr3.c a = freqs1[r]; r 770 libavcodec/scpr3.c b = freqs2[r]; r 794 libavcodec/scpr3.c *value = r; r 953 libavcodec/scpr3.c uint32_t clr = 0, lx, ly, ptype, r, g, b; r 960 libavcodec/scpr3.c ret = decode_units3(s, &r, &g, &b, &cx, &cx1); r 973 libavcodec/scpr3.c clr = (b << 16) + (g << 8) + r; r 1001 libavcodec/scpr3.c ret = decode_units3(s, &r, &g, &b, &cx, &cx1); r 1004 libavcodec/scpr3.c clr = (b << 16) + (g << 8) + r; r 1185 libavcodec/scpr3.c uint32_t clr, ptype = 0, r, g, b; r 1196 libavcodec/scpr3.c ret = decode_units3(s, &r, &g, &b, &cx, &cx1); r 1200 libavcodec/scpr3.c clr = (b << 16) + (g << 8) + r; r 1289 libavcodec/sheervideo.c int r, g, b, a; r 1292 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1297 libavcodec/sheervideo.c dst_r[x] = pred[0] = (r + pred[0]) & 0x3ff; r 1298 libavcodec/sheervideo.c dst_g[x] = pred[1] = (r + g + pred[1]) & 0x3ff; r 1299 libavcodec/sheervideo.c dst_b[x] = pred[2] = (r + g + b + pred[2]) & 0x3ff; r 1332 libavcodec/sheervideo.c int r, g, b, a; r 1335 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1340 libavcodec/sheervideo.c dst_r[x] = pred[0] = (r + pred[0]) & 0x3ff; r 1341 libavcodec/sheervideo.c dst_g[x] = pred[1] = (r + g + pred[1]) & 0x3ff; r 1342 libavcodec/sheervideo.c dst_b[x] = pred[2] = (r + g + b + pred[2]) & 0x3ff; r 1361 libavcodec/sheervideo.c int r, g, b, a; r 1375 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1380 libavcodec/sheervideo.c dst_r[x] = pred_L[0] = (r + ((3 * (pred_T[0] + pred_L[0]) - 2 * pred_TL[0]) >> 2)) & 0x3ff; r 1381 libavcodec/sheervideo.c dst_g[x] = pred_L[1] = (r + g + ((3 * (pred_T[1] + pred_L[1]) - 2 * pred_TL[1]) >> 2)) & 0x3ff; r 1382 libavcodec/sheervideo.c dst_b[x] = pred_L[2] = (r + g + b + ((3 * (pred_T[2] + pred_L[2]) - 2 * pred_TL[2]) >> 2)) & 0x3ff; r 1419 libavcodec/sheervideo.c int r, g, b; r 1421 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1425 libavcodec/sheervideo.c dst_r[x] = pred[0] = (r + pred[0]) & 0x3ff; r 1426 libavcodec/sheervideo.c dst_g[x] = pred[1] = (r + g + pred[1]) & 0x3ff; r 1427 libavcodec/sheervideo.c dst_b[x] = pred[2] = (r + g + b + pred[2]) & 0x3ff; r 1457 libavcodec/sheervideo.c int r, g, b; r 1459 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1463 libavcodec/sheervideo.c dst_r[x] = pred[0] = (r + pred[0]) & 0x3ff; r 1464 libavcodec/sheervideo.c dst_g[x] = pred[1] = (r + g + pred[1]) & 0x3ff; r 1465 libavcodec/sheervideo.c dst_b[x] = pred[2] = (r + g + b + pred[2]) & 0x3ff; r 1482 libavcodec/sheervideo.c int r, g, b; r 1493 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1497 libavcodec/sheervideo.c dst_r[x] = pred_L[0] = (r + ((3 * (pred_T[0] + pred_L[0]) - 2 * pred_TL[0]) >> 2)) & 0x3ff; r 1498 libavcodec/sheervideo.c dst_g[x] = pred_L[1] = (r + g + ((3 * (pred_T[1] + pred_L[1]) - 2 * pred_TL[1]) >> 2)) & 0x3ff; r 1499 libavcodec/sheervideo.c dst_b[x] = pred_L[2] = (r + g + b + ((3 * (pred_T[2] + pred_L[2]) - 2 * pred_TL[2]) >> 2)) & 0x3ff; r 1531 libavcodec/sheervideo.c int a, r, g, b; r 1534 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1539 libavcodec/sheervideo.c dst[4 * x + 1] = pred[1] = (r + pred[1]) & 0xff; r 1540 libavcodec/sheervideo.c dst[4 * x + 2] = pred[2] = (r + g + pred[2]) & 0xff; r 1541 libavcodec/sheervideo.c dst[4 * x + 3] = pred[3] = (r + g + b + pred[3]) & 0xff; r 1556 libavcodec/sheervideo.c int a, r, g, b; r 1565 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1570 libavcodec/sheervideo.c dst[4 * x + 1] = pred_L[1] = (r + pred_L[1]) & 0xff; r 1571 libavcodec/sheervideo.c dst[4 * x + 2] = pred_L[2] = (r + g + pred_L[2]) & 0xff; r 1572 libavcodec/sheervideo.c dst[4 * x + 3] = pred_L[3] = (r + g + b + pred_L[3]) & 0xff; r 1597 libavcodec/sheervideo.c int a, r, g, b; r 1600 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1605 libavcodec/sheervideo.c dst[4 * x + 1] = pred[1] = (r + pred[1]) & 0xff; r 1606 libavcodec/sheervideo.c dst[4 * x + 2] = pred[2] = (r + g + pred[2]) & 0xff; r 1607 libavcodec/sheervideo.c dst[4 * x + 3] = pred[3] = (r + g + b + pred[3]) & 0xff; r 1622 libavcodec/sheervideo.c int a, r, g, b; r 1636 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1641 libavcodec/sheervideo.c dst[4 * x + 1] = pred_L[1] = (r + ((3 * (pred_T[1] + pred_L[1]) - 2 * pred_TL[1]) >> 2)) & 0xff; r 1642 libavcodec/sheervideo.c dst[4 * x + 2] = pred_L[2] = (r + g + ((3 * (pred_T[2] + pred_L[2]) - 2 * pred_TL[2]) >> 2)) & 0xff; r 1643 libavcodec/sheervideo.c dst[4 * x + 3] = pred_L[3] = (r + g + b + ((3 * (pred_T[3] + pred_L[3]) - 2 * pred_TL[3]) >> 2)) & 0xff; r 1672 libavcodec/sheervideo.c int r, g, b; r 1674 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1678 libavcodec/sheervideo.c dst[4 * x + 0] = pred[0] = (r + pred[0]) & 0xff; r 1679 libavcodec/sheervideo.c dst[4 * x + 1] = pred[1] = (r + g + pred[1]) & 0xff; r 1680 libavcodec/sheervideo.c dst[4 * x + 2] = pred[2] = (r + g + b + pred[2]) & 0xff; r 1694 libavcodec/sheervideo.c int r, g, b; r 1701 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1705 libavcodec/sheervideo.c dst[4 * x + 0] = pred_L[0] = (r + pred_L[0]) & 0xff; r 1706 libavcodec/sheervideo.c dst[4 * x + 1] = pred_L[1] = (r + g + pred_L[1]) & 0xff; r 1707 libavcodec/sheervideo.c dst[4 * x + 2] = pred_L[2] = (r + g + b + pred_L[2]) & 0xff; r 1731 libavcodec/sheervideo.c int r, g, b; r 1733 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1737 libavcodec/sheervideo.c dst[4 * x + 0] = pred[0] = (r + pred[0]) & 0xff; r 1738 libavcodec/sheervideo.c dst[4 * x + 1] = pred[1] = (r + g + pred[1]) & 0xff; r 1739 libavcodec/sheervideo.c dst[4 * x + 2] = pred[2] = (r + g + b + pred[2]) & 0xff; r 1753 libavcodec/sheervideo.c int r, g, b; r 1764 libavcodec/sheervideo.c r = get_vlc2(gb, s->vlc[0].table, s->vlc[0].bits, 2); r 1768 libavcodec/sheervideo.c dst[4 * x + 0] = pred_L[0] = (r + ((3 * (pred_T[0] + pred_L[0]) - 2 * pred_TL[0]) >> 2)) & 0xff; r 1769 libavcodec/sheervideo.c dst[4 * x + 1] = pred_L[1] = (r + g + ((3 * (pred_T[1] + pred_L[1]) - 2 * pred_TL[1]) >> 2)) & 0xff; r 1770 libavcodec/sheervideo.c dst[4 * x + 2] = pred_L[2] = (r + g + b + ((3 * (pred_T[2] + pred_L[2]) - 2 * pred_TL[2]) >> 2)) & 0xff; r 123 libavcodec/smacker.c int r; r 125 libavcodec/smacker.c r = smacker_decode_tree(gb, hc, prefix, length); r 126 libavcodec/smacker.c if(r) r 127 libavcodec/smacker.c return r; r 169 libavcodec/smacker.c int r = 0, r_new, t; r 172 libavcodec/smacker.c r = smacker_decode_bigtree(gb, hc, ctx, length + 1); r 173 libavcodec/smacker.c if(r < 0) r 174 libavcodec/smacker.c return r; r 175 libavcodec/smacker.c hc->values[t] = SMK_NODE | r; r 176 libavcodec/smacker.c r++; r 180 libavcodec/smacker.c return r + r_new; r 97 libavcodec/smvjpegdec.c int ret = 0, r; r 134 libavcodec/smvjpegdec.c if ((r = ff_codec_open2_recursive(s->avctx, codec, &thread_opt)) < 0) { r 136 libavcodec/smvjpegdec.c ret = r; r 172 libavcodec/snow.c int x, y, b, r, l; r 179 libavcodec/snow.c r= brane[dx + 16*dy]&15; r 182 libavcodec/snow.c b= needs[l] | needs[r]; r 311 libavcodec/snow.c const uint8_t *src2= hpel[r]; r 313 libavcodec/snow.c int stride2 = MC_STRIDE(r); r 565 libavcodec/snow.h int r= log2>=0 ? 1<<log2 : 1; r 570 libavcodec/snow.h while(v >= r){ r 572 libavcodec/snow.h v -= r; r 574 libavcodec/snow.h if(log2>0) r+=r; r 585 libavcodec/snow.h int r= log2>=0 ? 1<<log2 : 1; r 591 libavcodec/snow.h v+= r; r 593 libavcodec/snow.h if(log2>0) r+=r; r 1006 libavcodec/snowenc.c RangeCoder r = s->c; r 1012 libavcodec/snowenc.c s->c = r; r 117 libavcodec/tests/cabac.c uint8_t r[9*SIZE]; r 126 libavcodec/tests/cabac.c if(2*i<SIZE) r[i] = av_lfg_get(&prng) % 7; r 127 libavcodec/tests/cabac.c else r[i] = (i>>8)&1; r 131 libavcodec/tests/cabac.c put_cabac_bypass(&c, r[i]&1); r 135 libavcodec/tests/cabac.c put_cabac(&c, state, r[i]&1); r 147 libavcodec/tests/cabac.c if( (r[i]&1) != get_cabac_bypass(&c) ) { r 154 libavcodec/tests/cabac.c if( (r[i]&1) != get_cabac_noinline(&c, state) ) { r 39 libavcodec/tests/celp_math.c float r = ff_dot_productf(f1, f2, FF_ARRAY_ELEMS(f1)); r 42 libavcodec/tests/celp_math.c IsAlmostEqual(16.94f, r, 0.000001f); r 296 libavcodec/tests/fft.c static inline void rdft_init(RDFTContext **r, int nbits, enum RDFTransformType trans) r 299 libavcodec/tests/fft.c *r = av_rdft_init(nbits, trans); r 301 libavcodec/tests/fft.c ff_rdft_init(*r, nbits, trans); r 314 libavcodec/tests/fft.c static inline void rdft_calc(RDFTContext *r, FFTSample *tab) r 317 libavcodec/tests/fft.c av_rdft_calc(r, tab); r 319 libavcodec/tests/fft.c r->rdft_calc(r, tab); r 332 libavcodec/tests/fft.c static inline void rdft_end(RDFTContext *r) r 335 libavcodec/tests/fft.c av_rdft_end(r); r 337 libavcodec/tests/fft.c ff_rdft_end(r); r 383 libavcodec/tests/fft.c RDFTContext *r; r 398 libavcodec/tests/fft.c r = av_mallocz(sizeof(*r)); r 482 libavcodec/tests/fft.c rdft_init(&r, fft_nbits, do_inverse ? IDFT_C2R : DFT_R2C); r 551 libavcodec/tests/fft.c rdft_calc(r, tab2); r 563 libavcodec/tests/fft.c rdft_calc(r, tab2); r 611 libavcodec/tests/fft.c rdft_calc(r, tab2); r 644 libavcodec/tests/fft.c rdft_end(r); r 668 libavcodec/tests/fft.c av_free(r); r 33 libavcodec/tests/rangecoder.c uint8_t r[9 * SIZE]; r 47 libavcodec/tests/rangecoder.c r[i] = av_lfg_get(&prng) % 7; r 50 libavcodec/tests/rangecoder.c put_rac(&c, state, r[i] & 1); r 59 libavcodec/tests/rangecoder.c if ((r[i] & 1) != get_rac(&c, state)) { r 35 libavcodec/texturedsp.c #define RGBA(r, g, b, a) (((uint8_t)(r) << 0) | \ r 173 libavcodec/texturedsp.c int r = src[0]; r 178 libavcodec/texturedsp.c src[0] = (uint8_t) r * a / 255; r 350 libavcodec/texturedsp.c int r = src[0]; r 357 libavcodec/texturedsp.c int co = (r - 128) / s; r 564 libavcodec/texturedsp.c int r = c0[x * 4 + y * 16]; r 568 libavcodec/texturedsp.c int d = (255 * 255 - r * r - g * g) / 2; r 572 libavcodec/texturedsp.c p[0] = r; r 146 libavcodec/texturedspenc.c #define rgb2rgb565(r, g, b) \ r 147 libavcodec/texturedspenc.c ((mul8(r, 31) << 11) | (mul8(g, 63) << 5) | (mul8(b, 31) << 0)) r 275 libavcodec/texturedspenc.c int r = block[x * 4 + stride * y + 0] - mu[0]; r 279 libavcodec/texturedspenc.c cov[0] += r * r; r 280 libavcodec/texturedspenc.c cov[1] += r * g; r 281 libavcodec/texturedspenc.c cov[2] += r * b; r 297 libavcodec/texturedspenc.c float r = vfr * covf[0] + vfg * covf[1] + vfb * covf[2]; r 301 libavcodec/texturedspenc.c vfr = r; r 369 libavcodec/texturedspenc.c int r = 8, g = 8, b = 8; r 372 libavcodec/texturedspenc.c r += block[0 + x * 4 + y * stride]; r 378 libavcodec/texturedspenc.c r >>= 4; r 382 libavcodec/texturedspenc.c max16 = (match5[r][0] << 11) | (match6[g][0] << 5) | match5[b][0]; r 383 libavcodec/texturedspenc.c min16 = (match5[r][1] << 11) | (match6[g][1] << 5) | match5[b][1]; r 395 libavcodec/texturedspenc.c int r = block[0 + x * 4 + y * stride]; r 400 libavcodec/texturedspenc.c at1_r += w1 * r; r 403 libavcodec/texturedspenc.c at2_r += r; r 461 libavcodec/texturedspenc.c int r = block[0]; r 465 libavcodec/texturedspenc.c max16 = (match5[r][0] << 11) | (match6[g][0] << 5) | match5[b][0]; r 466 libavcodec/texturedspenc.c min16 = (match5[r][1] << 11) | (match6[g][1] << 5) | match5[b][1]; r 581 libavcodec/texturedspenc.c int r = pixel[0]; r 584 libavcodec/texturedspenc.c int t = (2 + r + b) >> 2; r 586 libavcodec/texturedspenc.c dst[0] = av_clip_uint8(128 + ((r - b + 1) >> 1)); /* Co */ r 164 libavcodec/tiff.c TiffGeoTagKeyName *r = bsearch(&id, keys, n, sizeof(keys[0]), cmp_id_key); r 165 libavcodec/tiff.c if(r) r 166 libavcodec/tiff.c return r->name; r 2075 libavcodec/tiff.c int r = (255 - src[x * j ]) * k; r 2078 libavcodec/tiff.c dst[4 * j ] = r * 257 >> 16; r 2093 libavcodec/tiff.c uint64_t r = (65535 - AV_RB16(dst + 8 * j )) * k; r 2096 libavcodec/tiff.c AV_WB16(dst + 8 * j , r * 65537 >> 32); r 188 libavcodec/truemotion1.c int r, b, lo; r 191 libavcodec/truemotion1.c r = cdt[p1] * 1024; r 192 libavcodec/truemotion1.c lo = b + r; r 213 libavcodec/truemotion1.c int r, b, lo; r 216 libavcodec/truemotion1.c r = cdt[p1] << 11; r 217 libavcodec/truemotion1.c lo = b + r; r 232 libavcodec/truemotion1.c int r, b; r 235 libavcodec/truemotion1.c r = cdt[p1] * (1 << 16); r 236 libavcodec/truemotion1.c return (b+r) * 2; r 336 libavcodec/tta.c int32_t *r = p - 1; r 337 libavcodec/tta.c for (*p += *r / 2; r > (int32_t*)p - s->channels; r--) r 338 libavcodec/tta.c *r = *(r + 1) - *r; r 446 libavcodec/utils.c int r = func(c, (char *)arg + i * size); r 448 libavcodec/utils.c ret[i] = r; r 459 libavcodec/utils.c int r = func(c, arg, i, 0); r 461 libavcodec/utils.c ret[i] = r; r 33 libavcodec/utvideodsp.c uint8_t r, g, b; r 38 libavcodec/utvideodsp.c r = src_r[i]; r 41 libavcodec/utvideodsp.c src_r[i] = r + g - 0x80; r 58 libavcodec/utvideodsp.c int r, g, b; r 63 libavcodec/utvideodsp.c r = src_r[i]; r 66 libavcodec/utvideodsp.c src_r[i] = (r + g - 0x200) & 0x3FF; r 71 libavcodec/v4l2_m2m_dec.c selection.r.height = avctx->coded_height; r 72 libavcodec/v4l2_m2m_dec.c selection.r.width = avctx->coded_width; r 79 libavcodec/v4l2_m2m_dec.c av_log(avctx, AV_LOG_DEBUG, "crop output %dx%d\n", selection.r.width, selection.r.height); r 81 libavcodec/v4l2_m2m_dec.c capture->height = selection.r.height; r 82 libavcodec/v4l2_m2m_dec.c capture->width = selection.r.width; r 571 libavcodec/vc1dsp.c int mode, int r) r 578 libavcodec/vc1dsp.c 18 * src[stride] - 3 * src[stride * 2] + 32 - r) >> 6; r 581 libavcodec/vc1dsp.c 9 * src[stride] - 1 * src[stride * 2] + 8 - r) >> 4; r 584 libavcodec/vc1dsp.c 53 * src[stride] - 4 * src[stride * 2] + 32 - r) >> 6; r 601 libavcodec/vc1dsp.c int r; \ r 608 libavcodec/vc1dsp.c r = (1 << (shift - 1)) + rnd - 1; \ r 613 libavcodec/vc1dsp.c tptr[i] = (vc1_mspel_ver_filter_16bits(src + i, stride, vmode) + r) >> shift; \ r 618 libavcodec/vc1dsp.c r = 64 - rnd; \ r 622 libavcodec/vc1dsp.c OP(dst[i], (vc1_mspel_hor_filter_16bits(tptr + i, 1, hmode) + r) >> 7); \ r 629 libavcodec/vc1dsp.c r = 1 - rnd; \ r 633 libavcodec/vc1dsp.c OP(dst[i], vc1_mspel_filter(src + i, stride, vmode, r)); \ r 659 libavcodec/vc1dsp.c int r; \ r 666 libavcodec/vc1dsp.c r = (1 << (shift - 1)) + rnd - 1; \ r 671 libavcodec/vc1dsp.c tptr[i] = (vc1_mspel_ver_filter_16bits(src + i, stride, vmode) + r) >> shift; \ r 676 libavcodec/vc1dsp.c r = 64 - rnd; \ r 680 libavcodec/vc1dsp.c OP(dst[i], (vc1_mspel_hor_filter_16bits(tptr + i, 1, hmode) + r) >> 7); \ r 687 libavcodec/vc1dsp.c r = 1 - rnd; \ r 691 libavcodec/vc1dsp.c OP(dst[i], vc1_mspel_filter(src + i, stride, vmode, r)); \ r 1171 libavcodec/vc2enc.c const uint32_t r = (t*qf + qf) & UINT32_MAX; r 1175 libavcodec/vc2enc.c } else if (r <= 1 << m) { r 187 libavcodec/vmdvideo.c unsigned char r, g, b; r 250 libavcodec/vmdvideo.c r = bytestream2_get_byteu(&gb) * 4; r 253 libavcodec/vmdvideo.c palette32[i] = 0xFFU << 24 | (r << 16) | (g << 8) | (b); r 387 libavcodec/vmdvideo.c unsigned char r, g, b; r 413 libavcodec/vmdvideo.c r = raw_palette[palette_index++] * 4; r 416 libavcodec/vmdvideo.c palette32[i] = 0xFFU << 24 | (r << 16) | (g << 8) | (b); r 1332 libavcodec/vp8.c int decode_block_coeffs_internal(VP56RangeCoder *r, int16_t block[16], r 1337 libavcodec/vp8.c VP56RangeCoder c = *r; r 1387 libavcodec/vp8.c *r = c; r 1414 libavcodec/vp8.c static int vp7_decode_block_coeffs_internal(VP56RangeCoder *r, r 1421 libavcodec/vp8.c return decode_block_coeffs_internal(r, block, probs, i, r 1426 libavcodec/vp8.c static int vp8_decode_block_coeffs_internal(VP56RangeCoder *r, r 1432 libavcodec/vp8.c return decode_block_coeffs_internal(r, block, probs, i, r 939 libavcodec/vp9.c uint8_t *r = ref[j][k][l][m]; r 944 libavcodec/vp9.c p[n] = update_prob(&s->c, r[n]); r 946 libavcodec/vp9.c p[n] = r[n]; r 956 libavcodec/vp9.c uint8_t *r = ref[j][k][l][m]; r 959 libavcodec/vp9.c memcpy(p, r, 3); r 160 libavcodec/vp9mvs.c int c = p[i][0] + col, r = p[i][1] + row; r 163 libavcodec/vp9mvs.c r >= 0 && r < s->rows) { r 164 libavcodec/vp9mvs.c VP9mvrefPair *mv = &s->s.frames[CUR_FRAME].mv[r * s->sb_cols * 8 + c]; r 197 libavcodec/vp9mvs.c int c = p[i][0] + col, r = p[i][1] + row; r 199 libavcodec/vp9mvs.c if (c >= td->tile_col_start && c < s->cols && r >= 0 && r < s->rows) { r 200 libavcodec/vp9mvs.c VP9mvrefPair *mv = &s->s.frames[CUR_FRAME].mv[r * s->sb_cols * 8 + c]; r 328 libavcodec/vqavideo.c unsigned char r, g, b; r 424 libavcodec/vqavideo.c r = bytestream2_get_byteu(&s->gb) * 4; r 427 libavcodec/vqavideo.c s->palette[i] = 0xFFU << 24 | r << 16 | g << 8 | b; r 273 libavcodec/webp.c static int huff_reader_get_symbol(HuffReader *r, GetBitContext *gb) r 275 libavcodec/webp.c if (r->simple) { r 276 libavcodec/webp.c if (r->nb_symbols == 1) r 277 libavcodec/webp.c return r->simple_symbols[0]; r 279 libavcodec/webp.c return r->simple_symbols[get_bits1(gb)]; r 281 libavcodec/webp.c return webp_get_vlc(gb, r->vlc.table); r 284 libavcodec/webp.c static int huff_reader_build_canonical(HuffReader *r, int *code_lengths, r 301 libavcodec/webp.c r->nb_symbols = 1; r 302 libavcodec/webp.c r->simple_symbols[0] = code; r 303 libavcodec/webp.c r->simple = 1; r 318 libavcodec/webp.c r->nb_symbols = 0; r 324 libavcodec/webp.c r->nb_symbols++; r 328 libavcodec/webp.c if (!r->nb_symbols) { r 333 libavcodec/webp.c ret = init_vlc(&r->vlc, 8, alphabet_size, r 340 libavcodec/webp.c r->simple = 0; r 39 libavcodec/x86/aacpsdsp_init.c void ff_ps_stereo_interpolate_sse3(float (*l)[2], float (*r)[2], r 42 libavcodec/x86/aacpsdsp_init.c void ff_ps_stereo_interpolate_ipdopd_sse3(float (*l)[2], float (*r)[2], r 31 libavcodec/x86/mpegvideodsp.c int shift, int r, int width, int height) r 42 libavcodec/x86/mpegvideodsp.c const uint16_t r4[4] = { r, r, r, r }; r 67 libavcodec/x86/mpegvideodsp.c shift, r, width, height); r 392 libavcodec/x86/snowdsp.c #define snow_vertical_compose_sse2_load_add(op,r,t0,t1,t2,t3)\ r 393 libavcodec/x86/snowdsp.c ""op" ("r",%%"FF_REG_d"), %%"t0" \n\t"\ r 394 libavcodec/x86/snowdsp.c ""op" 16("r",%%"FF_REG_d"), %%"t1" \n\t"\ r 395 libavcodec/x86/snowdsp.c ""op" 32("r",%%"FF_REG_d"), %%"t2" \n\t"\ r 396 libavcodec/x86/snowdsp.c ""op" 48("r",%%"FF_REG_d"), %%"t3" \n\t" r 398 libavcodec/x86/snowdsp.c #define snow_vertical_compose_sse2_load(r,t0,t1,t2,t3)\ r 399 libavcodec/x86/snowdsp.c snow_vertical_compose_sse2_load_add("movdqa",r,t0,t1,t2,t3) r 401 libavcodec/x86/snowdsp.c #define snow_vertical_compose_sse2_add(r,t0,t1,t2,t3)\ r 402 libavcodec/x86/snowdsp.c snow_vertical_compose_sse2_load_add("paddw",r,t0,t1,t2,t3) r 513 libavcodec/x86/snowdsp.c #define snow_vertical_compose_mmx_load_add(op,r,t0,t1,t2,t3)\ r 514 libavcodec/x86/snowdsp.c ""op" ("r",%%"FF_REG_d"), %%"t0" \n\t"\ r 515 libavcodec/x86/snowdsp.c ""op" 8("r",%%"FF_REG_d"), %%"t1" \n\t"\ r 516 libavcodec/x86/snowdsp.c ""op" 16("r",%%"FF_REG_d"), %%"t2" \n\t"\ r 517 libavcodec/x86/snowdsp.c ""op" 24("r",%%"FF_REG_d"), %%"t3" \n\t" r 519 libavcodec/x86/snowdsp.c #define snow_vertical_compose_mmx_load(r,t0,t1,t2,t3)\ r 520 libavcodec/x86/snowdsp.c snow_vertical_compose_mmx_load_add("movq",r,t0,t1,t2,t3) r 522 libavcodec/x86/snowdsp.c #define snow_vertical_compose_mmx_add(r,t0,t1,t2,t3)\ r 523 libavcodec/x86/snowdsp.c snow_vertical_compose_mmx_load_add("paddw",r,t0,t1,t2,t3) r 358 libavcodec/x86/vc1dsp_mmx.c int r;\ r 361 libavcodec/x86/vc1dsp_mmx.c r = (1<<(shift-1)) + rnd-1;\ r 362 libavcodec/x86/vc1dsp_mmx.c vc1_put_shift_ver_16bits[vmode](tmp, src-1, stride, r, shift);\ r 582 libavcodec/xan.c int r = gamma_corr(bytestream2_get_byteu(&ctx)); r 586 libavcodec/xan.c int r = gamma_lookup[bytestream2_get_byteu(&ctx)]; r 590 libavcodec/xan.c *tmpptr++ = (0xFFU << 24) | (r << 16) | (g << 8) | b; r 54 libavcodec/xface.c void ff_big_div(BigInt *b, uint8_t a, uint8_t *r) r 62 libavcodec/xface.c *r = 0; r 70 libavcodec/xface.c *r = *w; r 88 libavcodec/xface.c *r = c; r 75 libavcodec/xface.h void ff_big_div(BigInt *b, uint8_t a, uint8_t *r); r 35 libavcodec/xfacedec.c uint8_t r; r 39 libavcodec/xfacedec.c ff_big_div(b, 0, &r); r 42 libavcodec/xfacedec.c while (r < pranges->offset || r >= pranges->range + pranges->offset) { r 47 libavcodec/xfacedec.c ff_big_add(b, r - pranges->offset); r 129 libavcodec/xfaceenc.c uint8_t r; r 131 libavcodec/xfaceenc.c ff_big_div(b, prange->range, &r); r 133 libavcodec/xfaceenc.c ff_big_add(b, r + prange->offset); r 192 libavcodec/xfaceenc.c uint8_t r; r 193 libavcodec/xfaceenc.c ff_big_div(&b, XFACE_PRINTS, &r); r 195 libavcodec/xfaceenc.c intbuf[i++] = r + XFACE_FIRST_PRINT; r 61 libavcodec/ylc.c int16_t l, r; r 82 libavcodec/ylc.c get_tree_codes(bits, lens, xlat, nodes, nodes[node].r, pfx, pl, r 102 libavcodec/ylc.c nodes[i].r = i; r 144 libavcodec/ylc.c nodes[cur_node].r = second_node; r 338 libavdevice/alsa.c void *r; r 343 libavdevice/alsa.c r = av_realloc_array(s->reorder_buf, size, s->frame_size); r 344 libavdevice/alsa.c if (!r) r 346 libavdevice/alsa.c s->reorder_buf = r; r 73 libavdevice/dshow.c int r; r 74 libavdevice/dshow.c r = IGraphBuilder_EnumFilters(ctx->graph, &fenum); r 75 libavdevice/dshow.c if (r == S_OK) { r 218 libavdevice/dshow.c int r; r 225 libavdevice/dshow.c r = ICreateDevEnum_CreateClassEnumerator(devenum, device_guid[sourcetype], r 227 libavdevice/dshow.c if (r != S_OK) { r 243 libavdevice/dshow.c r = CoGetMalloc(1, &co_malloc); r 244 libavdevice/dshow.c if (r != S_OK) r 246 libavdevice/dshow.c r = CreateBindCtx(0, &bind_ctx); r 247 libavdevice/dshow.c if (r != S_OK) r 250 libavdevice/dshow.c r = IMoniker_GetDisplayName(m, bind_ctx, NULL, &olestr); r 251 libavdevice/dshow.c if (r != S_OK) r 260 libavdevice/dshow.c r = IMoniker_BindToStorage(m, 0, 0, &IID_IPropertyBag, (void *) &bag); r 261 libavdevice/dshow.c if (r != S_OK) r 265 libavdevice/dshow.c r = IPropertyBag_Read(bag, L"FriendlyName", &var, NULL); r 266 libavdevice/dshow.c if (r != S_OK) r 275 libavdevice/dshow.c r = IMoniker_BindToObject(m, 0, 0, &IID_IBaseFilter, (void *) &device_filter); r 276 libavdevice/dshow.c if (r != S_OK) { r 330 libavdevice/dshow.c int i, n, size, r; r 342 libavdevice/dshow.c r = IAMStreamConfig_GetStreamCaps(config, i, &type, (void *) caps); r 343 libavdevice/dshow.c if (r != S_OK) r 570 libavdevice/dshow.c int r; r 587 libavdevice/dshow.c r = IBaseFilter_EnumPins(device_filter, &pins); r 588 libavdevice/dshow.c if (r != S_OK) { r 624 libavdevice/dshow.c r = IPin_QueryId(pin, &pin_id); r 625 libavdevice/dshow.c if (r != S_OK) { r 714 libavdevice/dshow.c int r; r 716 libavdevice/dshow.c if ((r = dshow_cycle_devices(avctx, devenum, devtype, sourcetype, &device_filter, &device_unique_name)) < 0) r 717 libavdevice/dshow.c return r; r 719 libavdevice/dshow.c if ((r = dshow_cycle_pins(avctx, devtype, sourcetype, device_filter, NULL)) < 0) r 720 libavdevice/dshow.c return r; r 738 libavdevice/dshow.c int r; r 776 libavdevice/dshow.c if ((r = dshow_cycle_devices(avctx, devenum, devtype, sourcetype, &device_filter, &device_filter_unique_name)) < 0) { r 777 libavdevice/dshow.c ret = r; r 797 libavdevice/dshow.c r = IGraphBuilder_AddFilter(graph, device_filter, NULL); r 798 libavdevice/dshow.c if (r != S_OK) { r 803 libavdevice/dshow.c if ((r = dshow_cycle_pins(avctx, devtype, sourcetype, device_filter, &device_pin)) < 0) { r 804 libavdevice/dshow.c ret = r; r 859 libavdevice/dshow.c r = IGraphBuilder_AddFilter(graph, (IBaseFilter *) capture_filter, r 861 libavdevice/dshow.c if (r != S_OK) { r 870 libavdevice/dshow.c r = CoCreateInstance(&CLSID_CaptureGraphBuilder2, NULL, CLSCTX_INPROC_SERVER, r 872 libavdevice/dshow.c if (r != S_OK) { r 877 libavdevice/dshow.c if (r != S_OK) { r 882 libavdevice/dshow.c r = ICaptureGraphBuilder2_RenderStream(graph_builder2, NULL, NULL, (IUnknown *) device_pin, NULL /* no intermediate filter */, r 885 libavdevice/dshow.c if (r != S_OK) { r 890 libavdevice/dshow.c r = dshow_try_setup_crossbar_options(graph_builder2, device_filter, devtype, avctx); r 892 libavdevice/dshow.c if (r != S_OK) { r 1089 libavdevice/dshow.c int r; r 1109 libavdevice/dshow.c r = av_parse_video_rate(&ctx->requested_framerate, ctx->framerate); r 1110 libavdevice/dshow.c if (r < 0) { r 1116 libavdevice/dshow.c r = CoCreateInstance(&CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, r 1118 libavdevice/dshow.c if (r != S_OK) { r 1124 libavdevice/dshow.c r = CoCreateInstance(&CLSID_SystemDeviceEnum, NULL, CLSCTX_INPROC_SERVER, r 1126 libavdevice/dshow.c if (r != S_OK) { r 1141 libavdevice/dshow.c if ((r = dshow_list_device_options(avctx, devenum, VideoDevice, VideoSourceDevice))) { r 1142 libavdevice/dshow.c ret = r; r 1148 libavdevice/dshow.c if ((r = dshow_list_device_options(avctx, devenum, AudioDevice, VideoSourceDevice))) { r 1149 libavdevice/dshow.c ret = r; r 1156 libavdevice/dshow.c if ((r = dshow_open_device(avctx, devenum, VideoDevice, VideoSourceDevice)) < 0 || r 1157 libavdevice/dshow.c (r = dshow_add_device(avctx, VideoDevice)) < 0) { r 1158 libavdevice/dshow.c ret = r; r 1163 libavdevice/dshow.c if ((r = dshow_open_device(avctx, devenum, AudioDevice, AudioSourceDevice)) < 0 || r 1164 libavdevice/dshow.c (r = dshow_add_device(avctx, AudioDevice)) < 0) { r 1167 libavdevice/dshow.c if ((r = dshow_open_device(avctx, devenum, AudioDevice, VideoSourceDevice)) < 0 || r 1168 libavdevice/dshow.c (r = dshow_add_device(avctx, AudioDevice)) < 0) { r 1169 libavdevice/dshow.c ret = r; r 1192 libavdevice/dshow.c r = IGraphBuilder_QueryInterface(graph, &IID_IMediaControl, (void **) &control); r 1193 libavdevice/dshow.c if (r != S_OK) { r 1199 libavdevice/dshow.c r = IGraphBuilder_QueryInterface(graph, &IID_IMediaEvent, (void **) &media_event); r 1200 libavdevice/dshow.c if (r != S_OK) { r 1206 libavdevice/dshow.c r = IMediaEvent_GetEventHandle(media_event, (void *) &media_event_handle); r 1207 libavdevice/dshow.c if (r != S_OK) { r 1212 libavdevice/dshow.c r = DuplicateHandle(proc, media_event_handle, proc, &ctx->event[0], r 1214 libavdevice/dshow.c if (!r) { r 1219 libavdevice/dshow.c r = IMediaControl_Run(control); r 1220 libavdevice/dshow.c if (r == S_FALSE) { r 1222 libavdevice/dshow.c r = IMediaControl_GetState(control, 0, &pfs); r 1224 libavdevice/dshow.c if (r != S_OK) { r 286 libavdevice/pulse_audio_dec.c int r; r 288 libavdevice/pulse_audio_dec.c r = pa_stream_peek(pd->stream, &read_data, &read_length); r 289 libavdevice/pulse_audio_dec.c CHECK_SUCCESS_GOTO(ret, r == 0, unlock_and_fail); r 297 libavdevice/pulse_audio_dec.c r = pa_stream_drop(pd->stream); r 298 libavdevice/pulse_audio_dec.c CHECK_SUCCESS_GOTO(ret, r == 0, unlock_and_fail); r 640 libavdevice/pulse_audio_enc.c AVRational r = { 1, st->codecpar->sample_rate }; r 642 libavdevice/pulse_audio_enc.c s->timestamp += av_rescale_q(samples, r, st->time_base); r 476 libavdevice/v4l2.c int r = init_convert_timestamp(ctx, *ts); r 477 libavdevice/v4l2.c if (r < 0) r 478 libavdevice/v4l2.c return r; r 371 libavdevice/xcbgrab.c int r, g, b, a; r 373 libavdevice/xcbgrab.c r = *cursor & 0xff; r 382 libavdevice/xcbgrab.c image[0] = r; r 386 libavdevice/xcbgrab.c image[0] = BLEND(r, image[0], a); r 626 libavdevice/xcbgrab.c xcb_rectangle_t r = { 1, 1, r 632 libavdevice/xcbgrab.c xcb_poly_rectangle(c->conn, c->window, gc, 1, &r); r 224 libavfilter/af_adeclick.c int nb_samples, double *k, double *r, double *a) r 231 libavfilter/af_adeclick.c autocorrelation(samples, ar_order, nb_samples, r, 1. / nb_samples); r 234 libavfilter/af_adeclick.c k[0] = a[0] = -r[1] / r[0]; r 235 libavfilter/af_adeclick.c alpha = r[0] * (1. - k[0] * k[0]); r 240 libavfilter/af_adeclick.c epsilon += a[j] * r[i - j]; r 241 libavfilter/af_adeclick.c epsilon += r[i + 1]; r 669 libavfilter/af_aiir.c double r = iir->ab[0][2*n]; r 672 libavfilter/af_aiir.c iir->ab[0][2*n] = r * cos(angle); r 673 libavfilter/af_aiir.c iir->ab[0][2*n+1] = r * sin(angle); r 677 libavfilter/af_aiir.c double r = iir->ab[1][2*n]; r 680 libavfilter/af_aiir.c iir->ab[1][2*n] = r * cos(angle); r 681 libavfilter/af_aiir.c iir->ab[1][2*n+1] = r * sin(angle); r 729 libavfilter/af_aiir.c double r = iir->ab[0][2*n]; r 732 libavfilter/af_aiir.c iir->ab[0][2*n] = r * cos(angle); r 733 libavfilter/af_aiir.c iir->ab[0][2*n+1] = r * sin(angle); r 737 libavfilter/af_aiir.c double r = iir->ab[1][2*n]; r 740 libavfilter/af_aiir.c iir->ab[1][2*n] = r * cos(angle); r 741 libavfilter/af_aiir.c iir->ab[1][2*n+1] = r * sin(angle); r 319 libavfilter/af_anequalizer.c int r = N % 2; r 320 libavfilter/af_anequalizer.c int L = (N - r) / 2; r 388 libavfilter/af_anequalizer.c int r = N % 2; r 389 libavfilter/af_anequalizer.c int L = (N - r) / 2; r 461 libavfilter/af_anequalizer.c int r = N % 2; r 462 libavfilter/af_anequalizer.c int L = (N - r) / 2; r 651 libavfilter/af_arnndn.c float r, error = ac[0]; r 661 libavfilter/af_arnndn.c r = -rr/error; r 663 libavfilter/af_arnndn.c lpc[i] = r; r 668 libavfilter/af_arnndn.c lpc[j] = tmp1 + (r*tmp2); r 669 libavfilter/af_arnndn.c lpc[i-1-j] = tmp2 + (r*tmp1); r 672 libavfilter/af_arnndn.c error = error - (r * r *error); r 1131 libavfilter/af_arnndn.c float r[NB_BANDS]; r 1137 libavfilter/af_arnndn.c if (Exp[i]>g[i]) r[i] = 1; r 1138 libavfilter/af_arnndn.c else r[i] = SQUARE(Exp[i])*(1-SQUARE(g[i]))/(.001 + SQUARE(g[i])*(1-SQUARE(Exp[i]))); r 1139 libavfilter/af_arnndn.c r[i] = sqrtf(av_clipf(r[i], 0, 1)); r 1140 libavfilter/af_arnndn.c r[i] *= sqrtf(Ex[i]/(1e-8+Ep[i])); r 1142 libavfilter/af_arnndn.c interp_band_gain(rf, r); r 1266 libavfilter/af_arnndn.c LOCAL_ALIGNED_32(float, r, [MAX_NEURONS]); r 1289 libavfilter/af_arnndn.c r[i] = sigmoid_approx(WEIGHTS_SCALE * sum); r 1298 libavfilter/af_arnndn.c sum += gru->recurrent_weights[2 * AN + i * stride + j] * state[j] * r[j]; r 469 libavfilter/af_compand.c double x, y, cx, cy, in1, in2, out1, out2, theta, len, r; r 479 libavfilter/af_compand.c r = FFMIN(radius, len); r 480 libavfilter/af_compand.c L(3).x = L(2).x - r * cos(theta); r 481 libavfilter/af_compand.c L(3).y = L(2).y - r * sin(theta); r 485 libavfilter/af_compand.c r = FFMIN(radius, len / 2); r 486 libavfilter/af_compand.c x = L(2).x + r * cos(theta); r 487 libavfilter/af_compand.c y = L(2).y + r * sin(theta); r 1198 libavfilter/af_hdcd.c static const int r = 18, m = 1024; r 1200 libavfilter/af_hdcd.c v = m + (v * r * m / maxv); r 258 libavfilter/af_mcompand.c double x, y, cx, cy, in1, in2, out1, out2, theta, len, r; r 268 libavfilter/af_mcompand.c r = FFMIN(radius, len); r 269 libavfilter/af_mcompand.c L(3).x = L(2).x - r * cos(theta); r 270 libavfilter/af_mcompand.c L(3).y = L(2).y - r * sin(theta); r 274 libavfilter/af_mcompand.c r = FFMIN(radius, len / 2); r 275 libavfilter/af_mcompand.c x = L(2).x + r * cos(theta); r 276 libavfilter/af_mcompand.c y = L(2).y + r * sin(theta); r 286 libavfilter/af_pan.c int i, j, k, r; r 367 libavfilter/af_pan.c r = swr_init(pan->swr); r 368 libavfilter/af_pan.c if (r < 0) r 369 libavfilter/af_pan.c return r; r 375 libavfilter/af_pan.c r = snprintf(cur, buf + sizeof(buf) - cur, "%s%.3g i%d", r 377 libavfilter/af_pan.c cur += FFMIN(buf + sizeof(buf) - cur, r); r 179 libavfilter/af_stereotools.c double L = src[0], R = src[1], l, r, m, S, gl, gr, gd; r 215 libavfilter/af_stereotools.c r = m * mlev * FFMIN(1., mpan) - S * slev * FFMIN(1., sbal); r 217 libavfilter/af_stereotools.c R = r; r 221 libavfilter/af_stereotools.c r = R * FFMIN(1., sbal); r 222 libavfilter/af_stereotools.c L = 0.5 * (l + r) * mlev; r 223 libavfilter/af_stereotools.c R = 0.5 * (l - r) * slev; r 227 libavfilter/af_stereotools.c r = L * mlev * FFMIN(1., mpan) - R * slev * FFMIN(1., sbal); r 229 libavfilter/af_stereotools.c R = r; r 248 libavfilter/af_stereotools.c r = m * mlev * FFMIN(1., mpan) - S * slev * FFMIN(1., sbal); r 250 libavfilter/af_stereotools.c R = r; r 258 libavfilter/af_stereotools.c r = L * mlev * FFMIN(1., mpan) - R * slev * FFMIN(1., sbal); r 259 libavfilter/af_stereotools.c L = r; r 260 libavfilter/af_stereotools.c R = r; r 280 libavfilter/af_stereotools.c r = R + sb * R - sb * L; r 283 libavfilter/af_stereotools.c R = r; r 286 libavfilter/af_stereotools.c r = L * s->phase_sin_coef + R * s->phase_cos_coef; r 289 libavfilter/af_stereotools.c R = r; r 319 libavfilter/af_surround.c float reference, r, a; r 325 libavfilter/af_surround.c r = hypotf(*x, *y); r 333 libavfilter/af_surround.c *x = av_clipf(sinf(a) * r, -1, 1); r 334 libavfilter/af_surround.c *y = av_clipf(cosf(a) * r, -1, 1); r 275 libavfilter/avf_showcqt.c FFTComplex l, r, a = {0,0}, b = {0,0}; r 290 libavfilter/avf_showcqt.c r.re = b.im + a.im; r 291 libavfilter/avf_showcqt.c r.im = b.re - a.re; r 293 libavfilter/avf_showcqt.c dst[k].im = r.re * r.re + r.im * r.im; r 489 libavfilter/avf_showcqt.c uint8_t r = (color >> 16) & 0xFF, g = (color >> 8) & 0xFF, b = color & 0xFF; r 493 libavfilter/avf_showcqt.c data[linesize * y + 4 * x] = r; r 737 libavfilter/avf_showcqt.c c[x].rgb.r = 255.0f * calculate_gamma(FFMIN(1.0f, cscheme[0] * v[x].re + cscheme[3] * v[x].im), g); r 747 libavfilter/avf_showcqt.c float r, g, b; r 748 libavfilter/avf_showcqt.c r = calculate_gamma(FFMIN(1.0f, cscheme[0] * v[x].re + cscheme[3] * v[x].im), gamma); r 751 libavfilter/avf_showcqt.c c[x].yuv.y = cm[0][0] * r + cm[0][1] * g + cm[0][2] * b; r 752 libavfilter/avf_showcqt.c c[x].yuv.u = cm[1][0] * r + cm[1][1] * g + cm[1][2] * b; r 753 libavfilter/avf_showcqt.c c[x].yuv.v = cm[2][0] * r + cm[2][1] * g + cm[2][2] * b; r 776 libavfilter/avf_showcqt.c *lp++ = lrintf(mul * c[x].rgb.r); r 872 libavfilter/avf_showcqt.c *lp++ = lrintf(c[x].rgb.r); r 881 libavfilter/avf_showcqt.c *lp++ = lrintf(a * lpa[0] + (1.0f - a) * c[x].rgb.r); r 1058 libavfilter/avf_showcqt.c *lp++ = lrintf(c[x].rgb.r); r 34 libavfilter/avf_showcqt.h float r, g, b; r 256 libavfilter/avf_showspatial.c float r = hypotf(RE(idx, 1), IM(idx, 1)); r 257 libavfilter/avf_showspatial.c float sum = l + r; r 261 libavfilter/avf_showspatial.c float diff = (sum < 0.000001f ? 0.f : (r - l) / sum) * 0.5f + 0.5f; r 263 libavfilter/avf_showspatial.c float cb = av_clipf(cbrtf(r / sum), 0, 1) * 255.f; r 435 libavfilter/avfilter.c int64_t r = INT64_MAX; r 439 libavfilter/avfilter.c r = FFMIN(r, av_rescale_q(ctx->inputs[i]->current_pts, ctx->inputs[i]->time_base, link_time_base)); r 440 libavfilter/avfilter.c if (r < INT64_MAX) r 441 libavfilter/avfilter.c return r; r 444 libavfilter/avfilter.c r = FFMIN(r, av_rescale_q(ctx->inputs[i]->status_in_pts, ctx->inputs[i]->time_base, link_time_base)); r 445 libavfilter/avfilter.c if (r < INT64_MAX) r 446 libavfilter/avfilter.c return r; r 638 libavfilter/avfilter.c int r = func(ctx, arg, i, nb_jobs); r 640 libavfilter/avfilter.c ret[i] = r; r 1291 libavfilter/avfiltergraph.c int i, r = AVERROR(ENOSYS); r 1294 libavfilter/avfiltergraph.c return r; r 1297 libavfilter/avfiltergraph.c r = avfilter_graph_send_command(graph, target, cmd, arg, res, res_len, flags | AVFILTER_CMD_FLAG_FAST); r 1298 libavfilter/avfiltergraph.c if (r != AVERROR(ENOSYS)) r 1299 libavfilter/avfiltergraph.c return r; r 1308 libavfilter/avfiltergraph.c r = avfilter_process_command(filter, cmd, arg, res, res_len, flags); r 1309 libavfilter/avfiltergraph.c if (r != AVERROR(ENOSYS)) { r 1310 libavfilter/avfiltergraph.c if ((flags & AVFILTER_CMD_FLAG_ONE) || r < 0) r 1311 libavfilter/avfiltergraph.c return r; r 1316 libavfilter/avfiltergraph.c return r; r 1403 libavfilter/avfiltergraph.c int r; r 1409 libavfilter/avfiltergraph.c r = av_buffersink_get_frame_flags(oldest->dst, NULL, r 1411 libavfilter/avfiltergraph.c if (r != AVERROR_EOF) r 1412 libavfilter/avfiltergraph.c return r; r 1414 libavfilter/avfiltergraph.c r = ff_request_frame(oldest); r 1416 libavfilter/avfiltergraph.c if (r != AVERROR_EOF) r 1433 libavfilter/avfiltergraph.c r = ff_filter_graph_run_once(graph); r 1434 libavfilter/avfiltergraph.c if (r == AVERROR(EAGAIN) && r 1438 libavfilter/avfiltergraph.c else if (r < 0) r 1439 libavfilter/avfiltergraph.c return r; r 374 libavfilter/f_ebur128.c #define DRAW_RECT(r) do { \ r 375 libavfilter/f_ebur128.c drawline(outpicref, r.x, r.y - 1, r.w, 3); \ r 376 libavfilter/f_ebur128.c drawline(outpicref, r.x, r.y + r.h, r.w, 3); \ r 377 libavfilter/f_ebur128.c drawline(outpicref, r.x - 1, r.y, r.h, outpicref->linesize[0]); \ r 378 libavfilter/f_ebur128.c drawline(outpicref, r.x + r.w, r.y, r.h, outpicref->linesize[0]); \ r 673 libavfilter/formats.c AVRational r; r 674 libavfilter/formats.c if(av_parse_ratio(&r, arg, INT_MAX, 0, log_ctx) < 0 ||r.num<=0 ||r.den<=0) { r 678 libavfilter/formats.c *ret = r; r 119 libavfilter/opencl/colorspace_common.cl float r = y * rgb_matrix[0] + u * rgb_matrix[1] + v * rgb_matrix[2]; r 122 libavfilter/opencl/colorspace_common.cl return (float3)(r, g, b); r 128 libavfilter/opencl/colorspace_common.cl float r = linearize(rgb.x); r 131 libavfilter/opencl/colorspace_common.cl return (float3)(r, g, b); r 137 libavfilter/opencl/colorspace_common.cl float3 rgb2yuv(float r, float g, float b) { r 138 libavfilter/opencl/colorspace_common.cl float y = r*yuv_matrix[0] + g*yuv_matrix[1] + b*yuv_matrix[2]; r 139 libavfilter/opencl/colorspace_common.cl float u = r*yuv_matrix[3] + g*yuv_matrix[4] + b*yuv_matrix[5]; r 140 libavfilter/opencl/colorspace_common.cl float v = r*yuv_matrix[6] + g*yuv_matrix[7] + b*yuv_matrix[8]; r 151 libavfilter/opencl/colorspace_common.cl float rgb2y(float r, float g, float b) { r 152 libavfilter/opencl/colorspace_common.cl float y = r*yuv_matrix[0] + g*yuv_matrix[1] + b*yuv_matrix[2]; r 159 libavfilter/opencl/colorspace_common.cl float r = delinearize(c.x); r 162 libavfilter/opencl/colorspace_common.cl return rgb2yuv(r, g, b); r 170 libavfilter/opencl/colorspace_common.cl float r = delinearize(c.x); r 173 libavfilter/opencl/colorspace_common.cl return rgb2y(r, g, b); r 183 libavfilter/opencl/colorspace_common.cl float r = c.x, g = c.y, b = c.z; r 184 libavfilter/opencl/colorspace_common.cl float rr = rgb2rgb[0] * r + rgb2rgb[1] * g + rgb2rgb[2] * b; r 185 libavfilter/opencl/colorspace_common.cl float gg = rgb2rgb[3] * r + rgb2rgb[4] * g + rgb2rgb[5] * b; r 186 libavfilter/opencl/colorspace_common.cl float bb = rgb2rgb[6] * r + rgb2rgb[7] * g + rgb2rgb[8] * b; r 256 libavfilter/opencl/deshake.cl float r = (sumdx2 * sumdy2 - sumdxdy * sumdxdy) - 0.04f * (trace * trace) * pown(scale, 4); r 259 libavfilter/opencl/deshake.cl harris_buf[loc.x + loc.y * get_image_width(grayscale)] = r * step(HARRIS_THRESHOLD, r); r 112 libavfilter/opencl/nlmeans.cl float r = (s + src_pix * 255) / (1.0f + w) / 255.0f; r 114 libavfilter/opencl/nlmeans.cl write_imagef(dst, (int2)(x, y), (float4)(r, 0.0f, 0.0f, 1.0f)); r 112 libavfilter/opencl/tonemap.cl struct detection_result r = {peak, sdr_avg}; r 131 libavfilter/opencl/tonemap.cl r.peak = max(1.0f, peak); r 132 libavfilter/opencl/tonemap.cl r.average = max(0.25f, avg); r 165 libavfilter/opencl/tonemap.cl return r; r 244 libavfilter/opencl/tonemap.cl struct detection_result r = detect_peak_avg(util_buf, &sum_wg, sig, peak); r 247 libavfilter/opencl/tonemap.cl c0 = map_one_pixel_rgb(c0, r.peak, r.average); r 248 libavfilter/opencl/tonemap.cl c1 = map_one_pixel_rgb(c1, r.peak, r.average); r 249 libavfilter/opencl/tonemap.cl c2 = map_one_pixel_rgb(c2, r.peak, r.average); r 250 libavfilter/opencl/tonemap.cl c3 = map_one_pixel_rgb(c3, r.peak, r.average); r 30 libavfilter/tests/drawutils.c int r, i; r 38 libavfilter/tests/drawutils.c r = ff_draw_init(&draw, f, 0); r 39 libavfilter/tests/drawutils.c if (r < 0) { r 41 libavfilter/tests/drawutils.c av_strerror(r, buf, sizeof(buf)); r 156 libavfilter/vf_atadenoise.c int l = 0, r = 0; \ r 177 libavfilter/vf_atadenoise.c r++; \ r 181 libavfilter/vf_atadenoise.c dst[x] = (sum + ((r + l + 1) >> 1)) / (r + l + 1); \ r 203 libavfilter/vf_atadenoise.c int l = 0, r = 0; \ r 226 libavfilter/vf_atadenoise.c r++; \ r 230 libavfilter/vf_atadenoise.c dst[x] = (sum + ((r + l + 1) >> 1)) / (r + l + 1); \ r 325 libavfilter/vf_bm3d.c int r = search_boundary(width - block_size, range, step, 0, y, x); r 331 libavfilter/vf_bm3d.c for (i = l; i <= r; i += step) { r 50 libavfilter/vf_chromaber_vulkan.c C(1, res.r = texture(input_img[0], ((p - o)/2.0f) + 0.5f).r; ) r 769 libavfilter/vf_ciescope.c double * const r, double * const g, double * const b) r 771 libavfilter/vf_ciescope.c *r = m[0][0]*xc + m[0][1]*yc + m[0][2]*zc; r 858 libavfilter/vf_ciescope.c constrain_rgb(double * const r, r 871 libavfilter/vf_ciescope.c w = (0 < *r) ? 0 : *r; r 878 libavfilter/vf_ciescope.c *r += w; *g += w; *b += w; r 924 libavfilter/vf_ciescope.c double * const r, r 928 libavfilter/vf_ciescope.c gamma_correct(cs, r); r 1125 libavfilter/vf_ciescope.c int r, g, b, mx = maxval; r 1166 libavfilter/vf_ciescope.c r = mx * jr; r 1169 libavfilter/vf_ciescope.c pixels[y * linesize + x * 4 + 0] = r; r 1246 libavfilter/vf_ciescope.c double r = src[0] / 65535.; r 1251 libavfilter/vf_ciescope.c rgb_to_xy(r, g, b, cx, cy, &cz, (const double (*)[3])s->m); r 1258 libavfilter/vf_ciescope.c double r = src[0] / 65535.; r 1263 libavfilter/vf_ciescope.c rgb_to_xy(r, g, b, cx, cy, &cz, (const double (*)[3])s->m); r 1270 libavfilter/vf_ciescope.c double r = src[0] / 255.; r 1275 libavfilter/vf_ciescope.c rgb_to_xy(r, g, b, cx, cy, &cz, (const double (*)[3])s->m); r 1282 libavfilter/vf_ciescope.c double r = src[0] / 255.; r 1287 libavfilter/vf_ciescope.c rgb_to_xy(r, g, b, cx, cy, &cz, (const double (*)[3])s->m); r 125 libavfilter/vf_colorbalance.c static void preservel(float *r, float *g, float *b, float l) r 127 libavfilter/vf_colorbalance.c float max = FFMAX3(*r, *g, *b); r 128 libavfilter/vf_colorbalance.c float min = FFMIN3(*r, *g, *b); r 133 libavfilter/vf_colorbalance.c if (*r == *g && *g == *b) { r 135 libavfilter/vf_colorbalance.c } else if (max == *r) { r 138 libavfilter/vf_colorbalance.c h = 60. * (2. + (*b - *r) / (max - min)); r 140 libavfilter/vf_colorbalance.c h = 60. * (4. + (*r - *g) / (max - min)); r 153 libavfilter/vf_colorbalance.c *r = hfun(0, h, s, l); r 179 libavfilter/vf_colorbalance.c float r = srcr[j] / max; r 182 libavfilter/vf_colorbalance.c const float l = FFMAX3(r, g, b) + FFMIN3(r, g, b); r 184 libavfilter/vf_colorbalance.c r = get_component(r, l, s->cyan_red.shadows, s->cyan_red.midtones, s->cyan_red.highlights); r 189 libavfilter/vf_colorbalance.c preservel(&r, &g, &b, l); r 191 libavfilter/vf_colorbalance.c dstr[j] = av_clip_uint8(r * max); r 233 libavfilter/vf_colorbalance.c float r = srcr[j] / max; r 236 libavfilter/vf_colorbalance.c const float l = (FFMAX3(r, g, b) + FFMIN3(r, g, b)); r 238 libavfilter/vf_colorbalance.c r = get_component(r, l, s->cyan_red.shadows, s->cyan_red.midtones, s->cyan_red.highlights); r 243 libavfilter/vf_colorbalance.c preservel(&r, &g, &b, l); r 245 libavfilter/vf_colorbalance.c dstr[j] = av_clip_uintp2_c(r * max, depth); r 290 libavfilter/vf_colorbalance.c float r = src[j + roffset] / max; r 293 libavfilter/vf_colorbalance.c const float l = (FFMAX3(r, g, b) + FFMIN3(r, g, b)); r 295 libavfilter/vf_colorbalance.c r = get_component(r, l, s->cyan_red.shadows, s->cyan_red.midtones, s->cyan_red.highlights); r 300 libavfilter/vf_colorbalance.c preservel(&r, &g, &b, l); r 302 libavfilter/vf_colorbalance.c dst[j + roffset] = av_clip_uint8(r * max); r 342 libavfilter/vf_colorbalance.c float r = src[j + roffset] / max; r 345 libavfilter/vf_colorbalance.c const float l = (FFMAX3(r, g, b) + FFMIN3(r, g, b)); r 347 libavfilter/vf_colorbalance.c r = get_component(r, l, s->cyan_red.shadows, s->cyan_red.midtones, s->cyan_red.highlights); r 352 libavfilter/vf_colorbalance.c preservel(&r, &g, &b, l); r 354 libavfilter/vf_colorbalance.c dst[j + roffset] = av_clip_uintp2_c(r * max, depth); r 233 libavfilter/vf_colorconstancy.c #define INDX2D(r, c, w) ( (r) * (w) + (c) ) r 268 libavfilter/vf_colorconstancy.c int r, c, g; r 276 libavfilter/vf_colorconstancy.c for (r = slice_start; r < slice_end; ++r) { r 278 libavfilter/vf_colorconstancy.c dst[INDX2D(r, c, width)] = 0; r 280 libavfilter/vf_colorconstancy.c dst[INDX2D(r, c, width)] += GAUSS(src, r, c + GINDX(filtersize, g), r 292 libavfilter/vf_colorconstancy.c for (r = 0; r < height; ++r) { r 293 libavfilter/vf_colorconstancy.c dst[INDX2D(r, c, width)] = 0; r 295 libavfilter/vf_colorconstancy.c dst[INDX2D(r, c, width)] += GAUSS(src, r + GINDX(filtersize, g), c, r 455 libavfilter/vf_colorconstancy.c int r, c; r 459 libavfilter/vf_colorconstancy.c for (r = slice_start; r < slice_end; ++r) { r 461 libavfilter/vf_colorconstancy.c dst[jobnr] = FFMAX( dst[jobnr], fabs(src[INDX2D(r, c, width)]) r 462 libavfilter/vf_colorconstancy.c * (img_data[INDX2D(r, c, in_linesize)] < thresh) ); r 466 libavfilter/vf_colorconstancy.c for (r = slice_start; r < slice_end; ++r) { r 468 libavfilter/vf_colorconstancy.c dst[jobnr] += ( pow( fabs(src[INDX2D(r, c, width)] / 255.), minknorm) r 469 libavfilter/vf_colorconstancy.c * (img_data[INDX2D(r, c, in_linesize)] < thresh) ); r 42 libavfilter/vf_colorkey.c static uint8_t do_colorkey_pixel(ColorkeyContext *ctx, uint8_t r, uint8_t g, uint8_t b) r 44 libavfilter/vf_colorkey.c int dr = (int)r - ctx->colorkey_rgba[0]; r 96 libavfilter/vf_colorkey.c int o, t, r, g, b; r 99 libavfilter/vf_colorkey.c r = frame->data[0][o + ctx->co[0]]; r 103 libavfilter/vf_colorkey.c t = do_colorkey_pixel(ctx, r, g, b); r 106 libavfilter/vf_colorkey.c int a = (r + g + b) / 3; r 109 libavfilter/vf_colorkey.c frame->data[0][o + ctx->co[0]] = (a * t + r * rt + 127) >> 8; r 193 libavfilter/vf_colorlevels.c Range *r = &s->range[i]; r 197 libavfilter/vf_colorlevels.c int imin = lrint(r->in_min * UINT8_MAX); r 198 libavfilter/vf_colorlevels.c int imax = lrint(r->in_max * UINT8_MAX); r 199 libavfilter/vf_colorlevels.c int omin = lrint(r->out_min * UINT8_MAX); r 200 libavfilter/vf_colorlevels.c int omax = lrint(r->out_max * UINT8_MAX); r 245 libavfilter/vf_colorlevels.c Range *r = &s->range[i]; r 249 libavfilter/vf_colorlevels.c int imin = lrint(r->in_min * UINT16_MAX); r 250 libavfilter/vf_colorlevels.c int imax = lrint(r->in_max * UINT16_MAX); r 251 libavfilter/vf_colorlevels.c int omin = lrint(r->out_min * UINT16_MAX); r 252 libavfilter/vf_colorlevels.c int omax = lrint(r->out_max * UINT16_MAX); r 114 libavfilter/vf_curves.c const char *r; r 227 libavfilter/vf_curves.c double *h, *r; r 244 libavfilter/vf_curves.c r = av_calloc(n, sizeof(*r)); r 246 libavfilter/vf_curves.c if (!matrix || !h || !r) { r 266 libavfilter/vf_curves.c r[i] = 6 * ((yn-yc)/h[i] - (yc-yp)/h[i-1]); r 287 libavfilter/vf_curves.c r[i] = (r[i] - matrix[i][BD] * r[i - 1]) * k; r 290 libavfilter/vf_curves.c r[i] = r[i] - matrix[i][AD] * r[i + 1]; r 306 libavfilter/vf_curves.c const double b = (yn-yc)/h[i] - h[i]*r[i]/2. - h[i]*(r[i+1]-r[i])/6.; r 307 libavfilter/vf_curves.c const double c = r[i] / 2.; r 308 libavfilter/vf_curves.c const double d = (r[i+1] - r[i]) / (6.*h[i]); r 335 libavfilter/vf_curves.c av_free(r); r 503 libavfilter/vf_curves.c SET_COMP_IF_NOT_SET(0, r); r 545 libavfilter/vf_curves.c const uint8_t r = curves->rgba_map[R]; r 558 libavfilter/vf_curves.c dstp[x + r] = curves->graph[R][srcp[x + r]]; r 571 libavfilter/vf_curves.c dst[x + r] = curves->graph[R][src[x + r]]; r 593 libavfilter/vf_curves.c const uint8_t r = curves->rgba_map[R]; r 602 libavfilter/vf_curves.c uint16_t *dstrp = ( uint16_t *)(out->data[r] + y * out->linesize[r]); r 606 libavfilter/vf_curves.c const uint16_t *srcrp = (const uint16_t *)(in ->data[r] + y * in->linesize[r]); r 620 libavfilter/vf_curves.c uint8_t *dstr = out->data[r] + slice_start * out->linesize[r]; r 624 libavfilter/vf_curves.c const uint8_t *srcr = in->data[r] + slice_start * in->linesize[r]; r 637 libavfilter/vf_curves.c dstr += out->linesize[r]; r 641 libavfilter/vf_curves.c srcr += in ->linesize[r]; r 163 libavfilter/vf_dblur.c static void set_params(DBlurContext *s, float angle, float r) r 172 libavfilter/vf_dblur.c R1 = (mu * r) * (mu * r); r 173 libavfilter/vf_dblur.c R2 = (nu * r) * (nu * r); r 174 libavfilter/vf_dblur.c s->R3 = mu * nu * r * r; r 413 libavfilter/vf_dctdnoiz.c int r, int g, int b) r 423 libavfilter/vf_dctdnoiz.c dstp_r[x] = srcp[r] * DCT3X3_0_0 + srcp[g] * DCT3X3_0_1 + srcp[b] * DCT3X3_0_2; r 424 libavfilter/vf_dctdnoiz.c dstp_g[x] = srcp[r] * DCT3X3_1_0 + srcp[b] * DCT3X3_1_2; r 425 libavfilter/vf_dctdnoiz.c dstp_b[x] = srcp[r] * DCT3X3_2_0 + srcp[g] * DCT3X3_2_1 + srcp[b] * DCT3X3_2_2; r 438 libavfilter/vf_dctdnoiz.c int r, int g, int b) r 448 libavfilter/vf_dctdnoiz.c dstp[r] = av_clip_uint8(src_r[x] * DCT3X3_0_0 + src_g[x] * DCT3X3_1_0 + src_b[x] * DCT3X3_2_0); r 460 libavfilter/vf_dctdnoiz.c #define DECLARE_COLOR_FUNCS(name, r, g, b) \ r 465 libavfilter/vf_dctdnoiz.c color_decorrelation(dst, dst_linesize, src, src_linesize, w, h, r, g, b); \ r 472 libavfilter/vf_dctdnoiz.c color_correlation(dst, dst_linesize, src, src_linesize, w, h, r, g, b); \ r 120 libavfilter/vf_deband.c const float r = sinf(x * 12.9898 + y * 78.233) * 43758.545; r 122 libavfilter/vf_deband.c return r - floorf(r); r 399 libavfilter/vf_deband.c const float r = frand(x, y); r 400 libavfilter/vf_deband.c const float dir = direction < 0 ? -direction : r * direction; r 401 libavfilter/vf_deband.c const int dist = range < 0 ? -range : r * range; r 766 libavfilter/vf_deshake_opencl.c double r = hypot(a, b); r 768 libavfilter/vf_deshake_opencl.c ret.rotation = FFSIGN(b) * acos(a / r); r 769 libavfilter/vf_deshake_opencl.c ret.scale.s[0] = r; r 770 libavfilter/vf_deshake_opencl.c ret.scale.s[1] = delta / r; r 771 libavfilter/vf_deshake_opencl.c ret.skew.s[0] = atan((a * c + b * d) / (r * r)); r 115 libavfilter/vf_frei0r.c if (sscanf(param, "%f/%f/%f", &val.col.r, &val.col.g, &val.col.b) != 3) { r 118 libavfilter/vf_frei0r.c val.col.r = rgba[0] / 255.0; r 37 libavfilter/vf_fspp.h #define THRESHOLD(r,x,t) \ r 38 libavfilter/vf_fspp.h if(((unsigned)((x) + t)) > t * 2) r = (x); \ r 39 libavfilter/vf_fspp.h else r = 0; r 82 libavfilter/vf_gradfun.c static void filter(GradFunContext *ctx, uint8_t *dst, const uint8_t *src, int width, int height, int dst_linesize, int src_linesize, int r) r 86 libavfilter/vf_gradfun.c uint32_t dc_factor = (1 << 21) / (r * r); r 92 libavfilter/vf_gradfun.c for (y = 0; y < r; y++) r 95 libavfilter/vf_gradfun.c if (y < height - r) { r 96 libavfilter/vf_gradfun.c int mod = ((y + r) / 2) % r; r 98 libavfilter/vf_gradfun.c uint16_t *buf1 = buf + (mod ? mod - 1 : r - 1) * bstride; r 100 libavfilter/vf_gradfun.c ctx->blur_line(dc, buf0, buf1, src + (y + r) * src_linesize, src_linesize, width / 2); r 101 libavfilter/vf_gradfun.c for (x = v = 0; x < r; x++) r 104 libavfilter/vf_gradfun.c v += dc[x] - dc[x-r]; r 105 libavfilter/vf_gradfun.c dc[x-r] = v * dc_factor >> 16; r 107 libavfilter/vf_gradfun.c for (; x < (width + r + 1) / 2; x++) r 108 libavfilter/vf_gradfun.c dc[x-r] = v * dc_factor >> 16; r 109 libavfilter/vf_gradfun.c for (x = -r / 2; x < 0; x++) r 112 libavfilter/vf_gradfun.c if (y == r) { r 113 libavfilter/vf_gradfun.c for (y = 0; y < r; y++) r 114 libavfilter/vf_gradfun.c ctx->filter_line(dst + y * dst_linesize, src + y * src_linesize, dc - r / 2, width, thresh, dither[y & 7]); r 116 libavfilter/vf_gradfun.c ctx->filter_line(dst + y * dst_linesize, src + y * src_linesize, dc - r / 2, width, thresh, dither[y & 7]); r 118 libavfilter/vf_gradfun.c ctx->filter_line(dst + y * dst_linesize, src + y * src_linesize, dc - r / 2, width, thresh, dither[y & 7]); r 206 libavfilter/vf_gradfun.c int r = s->radius; r 210 libavfilter/vf_gradfun.c r = s->chroma_r; r 213 libavfilter/vf_gradfun.c if (FFMIN(w, h) > 2 * r) r 214 libavfilter/vf_gradfun.c filter(s, out->data[p], in->data[p], w, h, out->linesize[p], in->linesize[p], r); r 126 libavfilter/vf_histeq.c #define GET_RGB_VALUES(r, g, b, src, map) do { \ r 127 libavfilter/vf_histeq.c r = src[x + map[R]]; \ r 141 libavfilter/vf_histeq.c unsigned int r, g, b, jran; r 161 libavfilter/vf_histeq.c GET_RGB_VALUES(r, g, b, src, histeq->rgba_map); r 162 libavfilter/vf_histeq.c luma = (55 * r + 182 * g + 19 * b) >> 8; r 226 libavfilter/vf_histeq.c GET_RGB_VALUES(r, g, b, src, histeq->rgba_map); r 227 libavfilter/vf_histeq.c if (((m = FFMAX3(r, g, b)) * lut) / luma > 255) { r 228 libavfilter/vf_histeq.c r = (r * 255) / m; r 232 libavfilter/vf_histeq.c r = (r * lut) / luma; r 236 libavfilter/vf_histeq.c dst[x + histeq->rgba_map[R]] = r; r 239 libavfilter/vf_histeq.c oluma = av_clip_uint8((55 * r + 182 * g + 19 * b) >> 8); r 92 libavfilter/vf_hqx.c #define P(m, r) ((k_shuffled & (m)) == (r)) r 58 libavfilter/vf_idet.c uint64_t r=1; r 59 libavfilter/vf_idet.c while(e--) r*=b; r 60 libavfilter/vf_idet.c return r; r 56 libavfilter/vf_lut3d.c float r, g, b; r 140 libavfilter/vf_lut3d.c lerpf(v0->r, v1->r, f), lerpf(v0->g, v1->g, f), lerpf(v0->b, v1->b, f) r 155 libavfilter/vf_lut3d.c return lut3d->lut[NEAR(s->r) * lut3d->lutsize2 + NEAR(s->g) * lut3d->lutsize + NEAR(s->b)]; r 167 libavfilter/vf_lut3d.c const int prev[] = {PREV(s->r), PREV(s->g), PREV(s->b)}; r 168 libavfilter/vf_lut3d.c const int next[] = {NEXT(s->r), NEXT(s->g), NEXT(s->b)}; r 169 libavfilter/vf_lut3d.c const struct rgbvec d = {s->r - prev[0], s->g - prev[1], s->b - prev[2]}; r 178 libavfilter/vf_lut3d.c const struct rgbvec c00 = lerp(&c000, &c100, d.r); r 179 libavfilter/vf_lut3d.c const struct rgbvec c10 = lerp(&c010, &c110, d.r); r 180 libavfilter/vf_lut3d.c const struct rgbvec c01 = lerp(&c001, &c101, d.r); r 181 libavfilter/vf_lut3d.c const struct rgbvec c11 = lerp(&c011, &c111, d.r); r 197 libavfilter/vf_lut3d.c const int prev[] = {PREV(s->r), PREV(s->g), PREV(s->b)}; r 198 libavfilter/vf_lut3d.c const int next[] = {NEXT(s->r), NEXT(s->g), NEXT(s->b)}; r 199 libavfilter/vf_lut3d.c const struct rgbvec d = {s->r - prev[0], s->g - prev[1], s->b - prev[2]}; r 203 libavfilter/vf_lut3d.c if (d.r > d.g) { r 207 libavfilter/vf_lut3d.c c.r = (1-d.r) * c000.r + (d.r-d.g) * c100.r + (d.g-d.b) * c110.r + (d.b) * c111.r; r 208 libavfilter/vf_lut3d.c c.g = (1-d.r) * c000.g + (d.r-d.g) * c100.g + (d.g-d.b) * c110.g + (d.b) * c111.g; r 209 libavfilter/vf_lut3d.c c.b = (1-d.r) * c000.b + (d.r-d.g) * c100.b + (d.g-d.b) * c110.b + (d.b) * c111.b; r 210 libavfilter/vf_lut3d.c } else if (d.r > d.b) { r 213 libavfilter/vf_lut3d.c c.r = (1-d.r) * c000.r + (d.r-d.b) * c100.r + (d.b-d.g) * c101.r + (d.g) * c111.r; r 214 libavfilter/vf_lut3d.c c.g = (1-d.r) * c000.g + (d.r-d.b) * c100.g + (d.b-d.g) * c101.g + (d.g) * c111.g; r 215 libavfilter/vf_lut3d.c c.b = (1-d.r) * c000.b + (d.r-d.b) * c100.b + (d.b-d.g) * c101.b + (d.g) * c111.b; r 219 libavfilter/vf_lut3d.c c.r = (1-d.b) * c000.r + (d.b-d.r) * c001.r + (d.r-d.g) * c101.r + (d.g) * c111.r; r 220 libavfilter/vf_lut3d.c c.g = (1-d.b) * c000.g + (d.b-d.r) * c001.g + (d.r-d.g) * c101.g + (d.g) * c111.g; r 221 libavfilter/vf_lut3d.c c.b = (1-d.b) * c000.b + (d.b-d.r) * c001.b + (d.r-d.g) * c101.b + (d.g) * c111.b; r 227 libavfilter/vf_lut3d.c c.r = (1-d.b) * c000.r + (d.b-d.g) * c001.r + (d.g-d.r) * c011.r + (d.r) * c111.r; r 228 libavfilter/vf_lut3d.c c.g = (1-d.b) * c000.g + (d.b-d.g) * c001.g + (d.g-d.r) * c011.g + (d.r) * c111.g; r 229 libavfilter/vf_lut3d.c c.b = (1-d.b) * c000.b + (d.b-d.g) * c001.b + (d.g-d.r) * c011.b + (d.r) * c111.b; r 230 libavfilter/vf_lut3d.c } else if (d.b > d.r) { r 233 libavfilter/vf_lut3d.c c.r = (1-d.g) * c000.r + (d.g-d.b) * c010.r + (d.b-d.r) * c011.r + (d.r) * c111.r; r 234 libavfilter/vf_lut3d.c c.g = (1-d.g) * c000.g + (d.g-d.b) * c010.g + (d.b-d.r) * c011.g + (d.r) * c111.g; r 235 libavfilter/vf_lut3d.c c.b = (1-d.g) * c000.b + (d.g-d.b) * c010.b + (d.b-d.r) * c011.b + (d.r) * c111.b; r 239 libavfilter/vf_lut3d.c c.r = (1-d.g) * c000.r + (d.g-d.r) * c010.r + (d.r-d.b) * c110.r + (d.b) * c111.r; r 240 libavfilter/vf_lut3d.c c.g = (1-d.g) * c000.g + (d.g-d.r) * c010.g + (d.r-d.b) * c110.g + (d.b) * c111.g; r 241 libavfilter/vf_lut3d.c c.b = (1-d.g) * c000.b + (d.g-d.r) * c010.b + (d.r-d.b) * c110.b + (d.b) * c111.b; r 269 libavfilter/vf_lut3d.c c.r = prelut_interp_1d_linear(prelut, 0, s->r); r 297 libavfilter/vf_lut3d.c const float scale_r = lut3d->scale.r * lut_max; \ r 315 libavfilter/vf_lut3d.c const struct rgbvec scaled_rgb = {av_clipf(prelut_rgb.r * scale_r, 0, lut_max), \ r 319 libavfilter/vf_lut3d.c dstr[x] = av_clip_uintp2(vec.r * (float)((1<<depth) - 1), depth); \ r 382 libavfilter/vf_lut3d.c const float scale_r = lut3d->scale.r * lut_max; \ r 400 libavfilter/vf_lut3d.c const struct rgbvec scaled_rgb = {av_clipf(prelut_rgb.r * scale_r, 0, lut_max), \ r 404 libavfilter/vf_lut3d.c dstr[x] = vec.r; \ r 437 libavfilter/vf_lut3d.c const uint8_t r = lut3d->rgba_map[R]; \ r 447 libavfilter/vf_lut3d.c const float scale_r = lut3d->scale.r * lut_max; \ r 455 libavfilter/vf_lut3d.c const struct rgbvec rgb = {src[x + r] * scale_f, \ r 459 libavfilter/vf_lut3d.c const struct rgbvec scaled_rgb = {av_clipf(prelut_rgb.r * scale_r, 0, lut_max), \ r 463 libavfilter/vf_lut3d.c dst[x + r] = av_clip_uint##nbits(vec.r * (float)((1<<nbits) - 1)); \ r 602 libavfilter/vf_lut3d.c if (av_sscanf(line, "%f %f %f", &vec->r, &vec->g, &vec->b) != 3) r 650 libavfilter/vf_lut3d.c if (av_sscanf(line, "%f %f %f", &vec->r, &vec->g, &vec->b) != 3) r 659 libavfilter/vf_lut3d.c lut3d->scale.r = av_clipf(1. / (max[0] - min[0]), 0.f, 1.f); r 687 libavfilter/vf_lut3d.c int r, g, b; r 691 libavfilter/vf_lut3d.c if (av_sscanf(line, "%d %d %d", &r, &g, &b) != 3) r 693 libavfilter/vf_lut3d.c vec->r = r / scale; r 763 libavfilter/vf_lut3d.c vec->r = val[rgb_map[0]] * scale; r 954 libavfilter/vf_lut3d.c if (av_sscanf(line, "%f %f %f", &vec->r, &vec->g, &vec->b) != 3) { r 959 libavfilter/vf_lut3d.c vec->r *= out_max[0] - out_min[0]; r 991 libavfilter/vf_lut3d.c lut3d->scale.r = 1.00f; r 996 libavfilter/vf_lut3d.c lut3d->scale.r = av_clipf(1. / (in_max[0] - in_min[0]), 0.f, 1.f); r 1024 libavfilter/vf_lut3d.c vec->r = k * c; r 1151 libavfilter/vf_lut3d.c lut3d->scale.r = lut3d->scale.g = lut3d->scale.b = 1.f; r 1261 libavfilter/vf_lut3d.c vec->r = src[rgba_map[0]] / (float)((1<<(nbits)) - 1); \ r 1304 libavfilter/vf_lut3d.c vec->r = gsrc[x] / (float)((1<<(depth)) - 1); \ r 1347 libavfilter/vf_lut3d.c vec->r = rsrc[x]; r 1452 libavfilter/vf_lut3d.c lut3d->scale.r = lut3d->scale.g = lut3d->scale.b = 1.f; r 1622 libavfilter/vf_lut3d.c lut1d->scale.r = av_clipf(1. / (in_max[0] - in_min[0]), 0.f, 1.f); r 1676 libavfilter/vf_lut3d.c lut1d->scale.r = av_clipf(1. / (max[0] - min[0]), 0.f, 1.f); r 1795 libavfilter/vf_lut3d.c const float scale_r = (lut1d->scale.r / factor) * (lut1d->lutsize - 1); \ r 1809 libavfilter/vf_lut3d.c float r = srcr[x] * scale_r; \ r 1812 libavfilter/vf_lut3d.c r = interp_1d_##name(lut1d, 0, r); \ r 1815 libavfilter/vf_lut3d.c dstr[x] = av_clip_uintp2(r * factor, depth); \ r 1891 libavfilter/vf_lut3d.c const float scale_r = lut1d->scale.r * lutsize; \ r 1905 libavfilter/vf_lut3d.c float r = av_clipf(sanitizef(srcr[x]) * scale_r, 0.0f, lutsize); \ r 1908 libavfilter/vf_lut3d.c r = interp_1d_##name(lut1d, 0, r); \ r 1911 libavfilter/vf_lut3d.c dstr[x] = r; \ r 1946 libavfilter/vf_lut3d.c const uint8_t r = lut1d->rgba_map[R]; \ r 1955 libavfilter/vf_lut3d.c const float scale_r = (lut1d->scale.r / factor) * (lut1d->lutsize - 1); \ r 1963 libavfilter/vf_lut3d.c float rr = src[x + r] * scale_r; \ r 1969 libavfilter/vf_lut3d.c dst[x + r] = av_clip_uint##nbits(rr * factor); \ r 2041 libavfilter/vf_lut3d.c lut1d->scale.r = lut1d->scale.g = lut1d->scale.b = 1.f; r 169 libavfilter/vf_nlmeans.c int offx, int offy, int r, int sw, int sh, r 176 libavfilter/vf_nlmeans.c const int s1y = av_clip(y - r, 0, sh - 1); r 177 libavfilter/vf_nlmeans.c const int s2y = av_clip(y - (r + offy), 0, sh - 1); r 180 libavfilter/vf_nlmeans.c const int s1x = av_clip(x - r, 0, sw - 1); r 181 libavfilter/vf_nlmeans.c const int s2x = av_clip(x - (r + offx), 0, sw - 1); r 430 libavfilter/vf_nlmeans.c static int nlmeans_plane(AVFilterContext *ctx, int w, int h, int p, int r, r 438 libavfilter/vf_nlmeans.c const int e = r + p; r 444 libavfilter/vf_nlmeans.c for (offy = -r; offy <= r; offy++) { r 445 libavfilter/vf_nlmeans.c for (offx = -r; offx <= r; offx++) { r 491 libavfilter/vf_nlmeans.c const int r = i ? s->research_hsize_uv : s->research_hsize; r 492 libavfilter/vf_nlmeans.c nlmeans_plane(ctx, w, h, p, r, r 171 libavfilter/vf_nlmeans_opencl.c cl_int width, cl_int height, cl_int p, cl_int r) r 195 libavfilter/vf_nlmeans_opencl.c nb_pixel = (2 * r + 1) * (2 * r + 1) - 1; r 202 libavfilter/vf_nlmeans_opencl.c for (dx = -r; dx <= r; dx++) { r 203 libavfilter/vf_nlmeans_opencl.c for (dy = -r; dy <= r; dy++) { r 120 libavfilter/vf_palettegen.c DECLARE_CMP_FUNC(r, 0) r 191 libavfilter/vf_palettegen.c uint64_t r = 0, g = 0, b = 0, div = 0; r 195 libavfilter/vf_palettegen.c r += (ref->color >> 16 & 0xff) * ref->count; r 201 libavfilter/vf_palettegen.c r = r / div; r 205 libavfilter/vf_palettegen.c return 0xffU<<24 | r<<16 | g<<8 | b; r 337 libavfilter/vf_palettegen.c const uint8_t r = rgb >> 16 & 0xff, g = rgb >> 8 & 0xff, b = rgb & 0xff; r 338 libavfilter/vf_palettegen.c min[0] = FFMIN(r, min[0]), max[0] = FFMAX(r, max[0]); r 399 libavfilter/vf_palettegen.c const uint8_t r = color >> 16 & ((1<<NBITS)-1); r 402 libavfilter/vf_palettegen.c return r<<(NBITS*2) | g<<NBITS | b; r 522 libavfilter/vf_palettegen.c int r; r 524 libavfilter/vf_palettegen.c r = ff_request_frame(inlink); r 525 libavfilter/vf_palettegen.c if (r == AVERROR_EOF && !s->palette_pushed && s->nb_refs && s->stats_mode != STATS_MODE_SINGLE_FRAMES) { r 526 libavfilter/vf_palettegen.c r = ff_filter_frame(outlink, get_palette_frame(ctx)); r 528 libavfilter/vf_palettegen.c return r; r 530 libavfilter/vf_palettegen.c return r; r 342 libavfilter/vf_paletteuse.c uint8_t a, uint8_t r, uint8_t g, uint8_t b, r 346 libavfilter/vf_paletteuse.c const uint8_t argb_elts[] = {a, r, g, b}; r 347 libavfilter/vf_paletteuse.c const uint8_t rhash = r & ((1<<NBITS)-1); r 380 libavfilter/vf_paletteuse.c const uint8_t r = c >> 16 & 0xff; r 384 libavfilter/vf_paletteuse.c const int dstx = color_get(s, c, a, r, g, b, search_method); r 388 libavfilter/vf_paletteuse.c *er = r - (dstc >> 16 & 0xff); r 418 libavfilter/vf_paletteuse.c const uint8_t r = av_clip_uint8(r8 + d); r 421 libavfilter/vf_paletteuse.c const int color = color_get(s, src[x], a8, r, g, b, search_method); r 486 libavfilter/vf_paletteuse.c const uint8_t r = src[x] >> 16 & 0xff; r 489 libavfilter/vf_paletteuse.c const int color = color_get(s, src[x], a, r, g, b, search_method); r 560 libavfilter/vf_paletteuse.c int r, g, b, ret = 0; r 562 libavfilter/vf_paletteuse.c for (r = 0; r < 256; r++) { r 565 libavfilter/vf_paletteuse.c const uint8_t argb[] = {0xff, r, g, b}; r 578 libavfilter/vf_paletteuse.c r, g, b, r1, r2, c1 & 0xffffff, c2 & 0xffffff, d1, d2); r 610 libavfilter/vf_paletteuse.c DECLARE_CMP_FUNC(r, 1) r 633 libavfilter/vf_paletteuse.c const uint8_t r = c >> 16 & 0xff; r 642 libavfilter/vf_paletteuse.c r < box->min[0] || g < box->min[1] || b < box->min[2] || r 643 libavfilter/vf_paletteuse.c r > box->max[0] || g > box->max[1] || b > box->max[2]) r 646 libavfilter/vf_paletteuse.c if (r < ranges.min[0]) ranges.min[0] = r; r 650 libavfilter/vf_paletteuse.c if (r > ranges.max[0]) ranges.max[0] = r; r 82 libavfilter/vf_scale_vulkan.c C(1, imageStore(output_img[0], pos, vec4(src.r, 0.0, 0.0, 0.0)); ) r 91 libavfilter/vf_scale_vulkan.c C(1, imageStore(output_img[0], pos, vec4(src.r, 0.0, 0.0, 0.0)); ) r 101 libavfilter/vf_scale_vulkan.c C(1, imageStore(output_img[0], pos, vec4(src.r, 0.0, 0.0, 0.0)); ) r 68 libavfilter/vf_selectivecolor.c typedef int (*get_range_scale_func)(int r, int g, int b, int min_val, int max_val); r 117 libavfilter/vf_selectivecolor.c static int get_rgb_scale(int r, int g, int b, int min_val, int max_val) r 119 libavfilter/vf_selectivecolor.c return max_val - mid_pred(r, g, b); r 122 libavfilter/vf_selectivecolor.c static int get_cmy_scale(int r, int g, int b, int min_val, int max_val) r 124 libavfilter/vf_selectivecolor.c return mid_pred(r, g, b) - min_val; r 128 libavfilter/vf_selectivecolor.c static int get_neutrals_scale##nbits(int r, int g, int b, int min_val, int max_val) \ r 135 libavfilter/vf_selectivecolor.c static int get_whites_scale##nbits(int r, int g, int b, int min_val, int max_val) \ r 141 libavfilter/vf_selectivecolor.c static int get_blacks_scale##nbits(int r, int g, int b, int min_val, int max_val) \ r 340 libavfilter/vf_selectivecolor.c const int r = src[x + roffset]; \ r 343 libavfilter/vf_selectivecolor.c const int min_color = FFMIN3(r, g, b); \ r 344 libavfilter/vf_selectivecolor.c const int max_color = FFMAX3(r, g, b); \ r 345 libavfilter/vf_selectivecolor.c const int is_white = (r > 1<<(nbits-1) && g > 1<<(nbits-1) && b > 1<<(nbits-1)); \ r 346 libavfilter/vf_selectivecolor.c const int is_neutral = (r || g || b) && \ r 347 libavfilter/vf_selectivecolor.c (r != (1<<nbits)-1 || g != (1<<nbits)-1 || b != (1<<nbits)-1); \ r 348 libavfilter/vf_selectivecolor.c const int is_black = (r < 1<<(nbits-1) && g < 1<<(nbits-1) && b < 1<<(nbits-1)); \ r 349 libavfilter/vf_selectivecolor.c const uint32_t range_flag = (r == max_color) << RANGE_REDS \ r 350 libavfilter/vf_selectivecolor.c | (r == min_color) << RANGE_CYANS \ r 359 libavfilter/vf_selectivecolor.c const float rnorm = r * (1.f / ((1<<nbits)-1)); \ r 368 libavfilter/vf_selectivecolor.c const int scale = pr->get_scale(r, g, b, min_color, max_color); \ r 385 libavfilter/vf_selectivecolor.c dst[x + roffset] = av_clip_uint##nbits(r + adjust_r); \ r 88 libavfilter/vf_showinfo.c size_t l, t, r, b; r 90 libavfilter/vf_showinfo.c &l, &t, &r, &b); r 93 libavfilter/vf_showinfo.c l, t, r, b); r 91 libavfilter/vf_signalstats.c uint8_t r, g, b; r 97 libavfilter/vf_signalstats.c r = s->rgba_color[0]; r 100 libavfilter/vf_signalstats.c s->yuv_color[0] = (( 66*r + 129*g + 25*b + (1<<7)) >> 8) + 16; r 101 libavfilter/vf_signalstats.c s->yuv_color[1] = ((-38*r + -74*g + 112*b + (1<<7)) >> 8) + 128; r 102 libavfilter/vf_signalstats.c s->yuv_color[2] = ((112*r + -94*g + -18*b + (1<<7)) >> 8) + 128; r 122 libavfilter/vf_super2xsai.c int r = 0; r 124 libavfilter/vf_super2xsai.c r += GET_RESULT(color[1][2], color[1][1], color[1][0], color[3][1]); r 125 libavfilter/vf_super2xsai.c r += GET_RESULT(color[1][2], color[1][1], color[2][0], color[0][1]); r 126 libavfilter/vf_super2xsai.c r += GET_RESULT(color[1][2], color[1][1], color[3][2], color[2][3]); r 127 libavfilter/vf_super2xsai.c r += GET_RESULT(color[1][2], color[1][1], color[0][2], color[1][3]); r 129 libavfilter/vf_super2xsai.c if (r > 0) r 131 libavfilter/vf_super2xsai.c else if (r < 0) r 253 libavfilter/vf_tile.c int r; r 255 libavfilter/vf_tile.c r = ff_request_frame(inlink); r 256 libavfilter/vf_tile.c if (r == AVERROR_EOF && tile->current && tile->out_ref) r 257 libavfilter/vf_tile.c r = end_last_frame(ctx); r 258 libavfilter/vf_tile.c return r; r 1749 libavfilter/vf_v360.c const float r = hypotf(x, y); r 1750 libavfilter/vf_v360.c const float theta = atanf(r) * 2.f; r 1753 libavfilter/vf_v360.c vec[0] = x / r * sin_theta; r 1754 libavfilter/vf_v360.c vec[1] = y / r * sin_theta; r 1796 libavfilter/vf_v360.c const float r = tanf(theta * 0.5f); r 1797 libavfilter/vf_v360.c const float c = r / hypotf(vec[0], vec[1]); r 1934 libavfilter/vf_v360.c const float r = tanf(theta); r 1935 libavfilter/vf_v360.c const float rr = fabsf(r) < 1e+6f ? r : hypotf(width, height); r 2049 libavfilter/vf_v360.c const float r = sqrtf(1.f - vec[2]) / M_SQRT2; r 2051 libavfilter/vf_v360.c const float uf = (1.f + r * vec[0] * s->input_mirror_modifier[0] / (l > 0.f ? l : 1.f)) * width * 0.5f; r 2052 libavfilter/vf_v360.c const float vf = (1.f + r * vec[1] * s->input_mirror_modifier[1] / (l > 0.f ? l : 1.f)) * height * 0.5f; r 78 libavfilter/vf_vibrance.c float r = rptr[x] * scale; r 79 libavfilter/vf_vibrance.c float max_color = FFMAX3(r, g, b); r 80 libavfilter/vf_vibrance.c float min_color = FFMIN3(r, g, b); r 82 libavfilter/vf_vibrance.c float luma = g * gc + r * rc + b * bc; r 89 libavfilter/vf_vibrance.c r = lerpf(luma, r, cr); r 93 libavfilter/vf_vibrance.c rptr[x] = av_clip_uint8(r * 255.f); r 137 libavfilter/vf_vibrance.c float r = rptr[x] * scale; r 138 libavfilter/vf_vibrance.c float max_color = FFMAX3(r, g, b); r 139 libavfilter/vf_vibrance.c float min_color = FFMIN3(r, g, b); r 141 libavfilter/vf_vibrance.c float luma = g * gc + r * rc + b * bc; r 148 libavfilter/vf_vibrance.c r = lerpf(luma, r, cr); r 152 libavfilter/vf_vibrance.c rptr[x] = av_clip_uintp2_c(r * max, depth); r 1004 libavfilter/vf_xfade.c const float r = sinf(x * 12.9898f + y * 78.233f) * 43758.545f; r 1006 libavfilter/vf_xfade.c return r - floorf(r); r 195 libavfilter/vsrc_cellauto.c double r = (double)av_lfg_get(&s->lfg) / UINT32_MAX; r 196 libavfilter/vsrc_cellauto.c if (r <= s->random_fill_ratio) r 252 libavfilter/vsrc_life.c double r = (double)av_lfg_get(&life->lfg) / UINT32_MAX; r 253 libavfilter/vsrc_life.c if (r <= life->random_fill_ratio) r 249 libavfilter/vsrc_mptestsrc.c double r = d/20 - (int)(d/20); r 250 libavfilter/vsrc_mptestsrc.c if (r < off/30.0) { r 850 libavfilter/vsrc_testsrc.c unsigned x, y, i, r; r 853 libavfilter/vsrc_testsrc.c r = s->pts; r 859 libavfilter/vsrc_testsrc.c r = r * 1664525 + 1013904223; r 860 libavfilter/vsrc_testsrc.c alpha[i] = r >> 24; r 965 libavfilter/vsrc_testsrc.c int x, int y, unsigned r, unsigned g, unsigned b, enum AVPixelFormat fmt, r 972 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_BGR444: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r >> 4) << 8) | ((g >> 4) << 4) | (b >> 4); break; r 973 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_RGB444: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b >> 4) << 8) | ((g >> 4) << 4) | (r >> 4); break; r 974 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_BGR555: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r>>3)<<10) | ((g>>3)<<5) | (b>>3); break; r 975 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_RGB555: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b>>3)<<10) | ((g>>3)<<5) | (r>>3); break; r 976 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_BGR565: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r>>3)<<11) | ((g>>2)<<5) | (b>>3); break; r 977 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_RGB565: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b>>3)<<11) | ((g>>2)<<5) | (r>>3); break; r 980 libavfilter/vsrc_testsrc.c v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)); r 988 libavfilter/vsrc_testsrc.c v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)) + (255U << (rgba_map[A]*8)); r 1003 libavfilter/vsrc_testsrc.c int r = 0, g = 0, b = 0; r 1005 libavfilter/vsrc_testsrc.c if (3*y < h ) r = c; r 1009 libavfilter/vsrc_testsrc.c rgbtest_put_pixel(frame->data[0], frame->linesize[0], x, y, r, g, b, r 45 libavfilter/vulkan.c .r = VK_COMPONENT_SWIZZLE_IDENTITY, r 1233 libavformat/avformat.h void av_stream_set_r_frame_rate(AVStream *s, AVRational r); r 166 libavformat/cache.c int64_t r; r 180 libavformat/cache.c r = lseek(c->fd, physical_target, SEEK_SET); r 182 libavformat/cache.c r = c->cache_pos; r 184 libavformat/cache.c if (r >= 0) { r 185 libavformat/cache.c c->cache_pos = r; r 186 libavformat/cache.c r = read(c->fd, buf, FFMIN(size, entry->size - in_block_pos)); r 189 libavformat/cache.c if (r > 0) { r 190 libavformat/cache.c c->cache_pos += r; r 191 libavformat/cache.c c->logical_pos += r; r 193 libavformat/cache.c return r; r 201 libavformat/cache.c r = ffurl_seek(c->inner, c->logical_pos, SEEK_SET); r 202 libavformat/cache.c if (r<0) { r 204 libavformat/cache.c return r; r 206 libavformat/cache.c c->inner_pos = r; r 209 libavformat/cache.c r = ffurl_read(c->inner, buf, size); r 210 libavformat/cache.c if (r == AVERROR_EOF && size>0) { r 214 libavformat/cache.c if (r<=0) r 215 libavformat/cache.c return r; r 216 libavformat/cache.c c->inner_pos += r; r 220 libavformat/cache.c add_entry(h, buf, r); r 221 libavformat/cache.c c->logical_pos += r; r 224 libavformat/cache.c return r; r 380 libavformat/dump.c size_t l, t, r, b; r 382 libavformat/dump.c &l, &t, &r, &b); r 385 libavformat/dump.c l, t, r, b); r 582 libavformat/dv.c RawDVContext *r = s->priv_data; r 583 libavformat/dv.c DVDemuxContext *c = r->dv_demux; r 143 libavformat/gdv.c unsigned r = avio_r8(pb); r 146 libavformat/gdv.c gdv->pal[i] = 0xFFU << 24 | r << 18 | g << 10 | b << 2; r 1525 libavformat/hls.c int r = av_opt_get(v->input, "http_version", AV_OPT_SEARCH_CHILDREN, &http_version_opt); r 1526 libavformat/hls.c if (r >= 0) { r 261 libavformat/idcin.c unsigned char r, g, b; r 290 libavformat/idcin.c r = palette_buffer[i * 3 ] << palette_scale; r 293 libavformat/idcin.c palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); r 289 libavformat/ipmovie.c unsigned char r, g, b; r 532 libavformat/ipmovie.c r = scratch[j++] * 4; r 535 libavformat/ipmovie.c s->palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); r 156 libavformat/libamqp.c amqp_queue_declare_ok_t *r; r 158 libavformat/libamqp.c r = amqp_queue_declare(s->conn, DEFAULT_CHANNEL, amqp_empty_bytes, r 161 libavformat/libamqp.c if (!r || broker_reply.reply_type != AMQP_RESPONSE_NORMAL) { r 169 libavformat/libamqp.c queuename.len = FFMIN(r->queue.len, STR_LEN); r 170 libavformat/libamqp.c memcpy(queuename.bytes, r->queue.bytes, queuename.len); r 183 libavformat/libmodplug.c int r = av_expr_parse(&modplug->expr, modplug->color_eval, var_names, r 185 libavformat/libmodplug.c if (r < 0) r 186 libavformat/libmodplug.c return r; r 76 libavformat/librtmp.c RTMP *r = &ctx->rtmp; r 78 libavformat/librtmp.c RTMP_Close(r); r 98 libavformat/librtmp.c RTMP *r = &ctx->rtmp; r 225 libavformat/librtmp.c RTMP_Init(r); r 226 libavformat/librtmp.c if (!RTMP_SetupURL(r, filename)) { r 232 libavformat/librtmp.c RTMP_EnableWrite(r); r 234 libavformat/librtmp.c if (!RTMP_Connect(r, NULL) || !RTMP_ConnectStream(r, 0)) { r 242 libavformat/librtmp.c if (setsockopt(r->m_sb.sb_socket, SOL_SOCKET, SO_SNDBUF, &tmp, sizeof(tmp))) { r 254 libavformat/librtmp.c RTMP_Close(r); r 262 libavformat/librtmp.c RTMP *r = &ctx->rtmp; r 264 libavformat/librtmp.c int ret = RTMP_Write(r, buf, size); r 273 libavformat/librtmp.c RTMP *r = &ctx->rtmp; r 275 libavformat/librtmp.c int ret = RTMP_Read(r, buf, size); r 284 libavformat/librtmp.c RTMP *r = &ctx->rtmp; r 286 libavformat/librtmp.c if (!RTMP_Pause(r, pause)) r 295 libavformat/librtmp.c RTMP *r = &ctx->rtmp; r 305 libavformat/librtmp.c if (!RTMP_SendSeek(r, timestamp)) r 313 libavformat/librtmp.c RTMP *r = &ctx->rtmp; r 315 libavformat/librtmp.c return RTMP_Socket(r); r 2167 libavformat/matroskadec.c uint32_t l = 0, t = 0, r = 0, b = 0; r 2188 libavformat/matroskadec.c r = bytestream2_get_be32(&gb); r 2190 libavformat/matroskadec.c if (b >= UINT_MAX - t || r >= UINT_MAX - l) { r 2194 libavformat/matroskadec.c l, t, r, b); r 2202 libavformat/matroskadec.c if (l || t || r || b) r 2249 libavformat/matroskadec.c spherical->bound_right = r; r 3093 libavformat/matroskadec.c int r; r 3094 libavformat/matroskadec.c r = matroska_ebmlnum_sint(matroska, pb, &snum); r 3095 libavformat/matroskadec.c if (r < 0) r 3096 libavformat/matroskadec.c return r; r 3102 libavformat/matroskadec.c offset += r; r 2256 libavformat/mov.c uint8_t r, g, b; r 2265 libavformat/mov.c r = av_clip_uint8((1164 * (y - 16) + 1596 * (cr - 128) ) / 1000); r 2267 libavformat/mov.c return (r << 16) | (g << 8) | b; r 3373 libavformat/mov.c int j, r, num_swaps; r 3398 libavformat/mov.c r = j - 1; r 3399 libavformat/mov.c if (r < 0) r = MAX_REORDER_DELAY; r 3400 libavformat/mov.c if (pts_buf[j] < pts_buf[r]) { r 3401 libavformat/mov.c FFSWAP(int64_t, pts_buf[j], pts_buf[r]); r 3406 libavformat/mov.c j = r; r 5555 libavformat/mov.c uint32_t l = 0, t = 0, r = 0, b = 0; r 5647 libavformat/mov.c r = avio_rb32(pb); r 5649 libavformat/mov.c if (b >= UINT_MAX - t || r >= UINT_MAX - l) { r 5652 libavformat/mov.c "%"PRIu32",%"PRIu32",%"PRIu32",%"PRIu32"\n", l, t, r, b); r 5656 libavformat/mov.c if (l || t || r || b) r 5680 libavformat/mov.c sc->spherical->bound_right = r; r 2101 libavformat/movenc.c uint16_t r = (rgb >> 16) & 0xff; r 2105 libavformat/movenc.c avio_wb16(pb, (r << 8) | r); r 6184 libavformat/movenc.c uint8_t r, g, b; r 6187 libavformat/movenc.c r = (rgb >> 16) & 0xFF; r 6191 libavformat/movenc.c y = av_clip_uint8(( 16000 + 257 * r + 504 * g + 98 * b)/1000); r 6192 libavformat/movenc.c cb = av_clip_uint8((128000 - 148 * r - 291 * g + 439 * b)/1000); r 6193 libavformat/movenc.c cr = av_clip_uint8((128000 + 439 * r - 368 * g - 71 * b)/1000); r 1014 libavformat/mpeg.c int r = ff_subtitles_queue_seek(&vobsub->q[i], s, stream_index, r 1016 libavformat/mpeg.c if (r < 0) r 1017 libavformat/mpeg.c ret = r; r 1248 libavformat/mpegts.c const uint8_t *r; r 1252 libavformat/mpegts.c r = pes->header + 9; r 1256 libavformat/mpegts.c pes->dts = pes->pts = ff_parse_pes_pts(r); r 1257 libavformat/mpegts.c r += 5; r 1259 libavformat/mpegts.c pes->pts = ff_parse_pes_pts(r); r 1260 libavformat/mpegts.c r += 5; r 1261 libavformat/mpegts.c pes->dts = ff_parse_pes_pts(r); r 1262 libavformat/mpegts.c r += 5; r 1266 libavformat/mpegts.c pes_ext = *r++; r 1270 libavformat/mpegts.c r += skip; r 1272 libavformat/mpegts.c (r + 2) <= (pes->header + pes->pes_header_size)) { r 1274 libavformat/mpegts.c if ((r[0] & 0x7f) > 0 && (r[1] & 0x80) == 0) r 1275 libavformat/mpegts.c pes->extended_stream_id = r[1]; r 52 libavformat/qtpalette.c uint32_t r, g, b; r 63 libavformat/qtpalette.c r = g = b = color_index; r 64 libavformat/qtpalette.c palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); r 84 libavformat/qtpalette.c r = color_table[i * 3 + 0]; r 87 libavformat/qtpalette.c palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); r 101 libavformat/qtpalette.c r = avio_r8(pb); r 107 libavformat/qtpalette.c palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); r 138 libavformat/rtpdec.c const RTPDynamicProtocolHandler *r = rtp_dynamic_protocol_handler_list[i]; r 140 libavformat/rtpdec.c if (r) r 143 libavformat/rtpdec.c return r; r 54 libavformat/rtpdec_h263_rfc2190.c int f, p, i, sbit, ebit, src, r; r 78 libavformat/rtpdec_h263_rfc2190.c r = ((buf[1] & 0x01) << 3) | ((buf[2] & 0xe0) >> 5); r 88 libavformat/rtpdec_h263_rfc2190.c r = buf[3] & 0x03; r 99 libavformat/rtpdec_h263_rfc2190.c r = buf[3] & 0x03; r 106 libavformat/rtpdec_h263_rfc2190.c if ((src == 0 || src >= 6) && r) { r 262 libavformat/rtpdec_vp9.c av_unused int t, u, r, j; r 269 libavformat/rtpdec_vp9.c r = (buf[0] >> 2) & 0x03; r 272 libavformat/rtpdec_vp9.c if (len < r) { r 276 libavformat/rtpdec_vp9.c for (j = 0; j < r; j++) { r 182 libavformat/rtpenc_h264_hevc.c const uint8_t *r, *end = buf1 + size; r 188 libavformat/rtpenc_h264_hevc.c r = ff_avc_mp4_find_startcode(buf1, end, s->nal_length_size) ? buf1 : end; r 190 libavformat/rtpenc_h264_hevc.c r = ff_avc_find_startcode(buf1, end); r 191 libavformat/rtpenc_h264_hevc.c while (r < end) { r 195 libavformat/rtpenc_h264_hevc.c r1 = ff_avc_mp4_find_startcode(r, end, s->nal_length_size); r 198 libavformat/rtpenc_h264_hevc.c r += s->nal_length_size; r 200 libavformat/rtpenc_h264_hevc.c while (!*(r++)); r 201 libavformat/rtpenc_h264_hevc.c r1 = ff_avc_find_startcode(r, end); r 203 libavformat/rtpenc_h264_hevc.c nal_send(s1, r, r1 - r, r1 == end); r 204 libavformat/rtpenc_h264_hevc.c r = r1; r 53 libavformat/rtpenc_mpv.c const uint8_t *r, *r1; r 59 libavformat/rtpenc_mpv.c r = avpriv_find_start_code(r1, end, &start_code); r 63 libavformat/rtpenc_mpv.c frame_type = (r[1] & 0x38) >> 3; r 64 libavformat/rtpenc_mpv.c temporal_reference = (int)r[0] << 2 | r[1] >> 6; r 70 libavformat/rtpenc_mpv.c if (r - buf1 - 4 <= len) { r 75 libavformat/rtpenc_mpv.c len = r - buf1 - 4; r 78 libavformat/rtpenc_mpv.c r1 = r; r 80 libavformat/rtpenc_mpv.c if ((r1 - buf1 > 4) && (r - r1 < max_packet_size)) { r 840 libavformat/rtspdec.c int r, rule_nr, first = 1; r 850 libavformat/rtspdec.c for (r = 0; r < s->nb_streams; r++) { r 851 libavformat/rtspdec.c if (s->streams[r]->id == i) { r 852 libavformat/rtspdec.c if (s->streams[r]->discard != AVDISCARD_ALL) { r 87 libavformat/sbgdec.c int l, r; r 209 libavformat/sbgdec.c static inline int scale_double(void *log, double d, double m, int *r) r 217 libavformat/sbgdec.c *r = m; r 232 libavformat/sbgdec.c int r = p->cursor < p->end && *p->cursor == c; r 234 libavformat/sbgdec.c p->cursor += r; r 235 libavformat/sbgdec.c return r; r 238 libavformat/sbgdec.c static int lex_double(struct sbg_parser *p, double *r) r 247 libavformat/sbgdec.c *r = d; r 310 libavformat/sbgdec.c int r = str_to_time(p->cursor, rt); r 311 libavformat/sbgdec.c p->cursor += r; r 312 libavformat/sbgdec.c return r > 0; r 336 libavformat/sbgdec.c static int parse_optarg(struct sbg_parser *p, char o, struct sbg_string *r) r 338 libavformat/sbgdec.c if (!lex_wsword(p, r)) { r 350 libavformat/sbgdec.c int r; r 384 libavformat/sbgdec.c r = str_to_time(oarg.s, &p->scs.opt_duration); r 385 libavformat/sbgdec.c if (oarg.e != oarg.s + r) { r 393 libavformat/sbgdec.c r = str_to_time(oarg.s, &p->scs.start_ts); r 394 libavformat/sbgdec.c if (oarg.e != oarg.s + r) { r 426 libavformat/sbgdec.c r = strtol(oarg.s, &tptr, 10); r 432 libavformat/sbgdec.c if (r < 40) { r 437 libavformat/sbgdec.c p->scs.sample_rate = r; r 464 libavformat/sbgdec.c int r; r 468 libavformat/sbgdec.c r = 1; r 470 libavformat/sbgdec.c r = lex_time(p, &abs); r 471 libavformat/sbgdec.c if (r) r 478 libavformat/sbgdec.c r = 1; r 480 libavformat/sbgdec.c if (r) { r 487 libavformat/sbgdec.c return r; r 518 libavformat/sbgdec.c int r; r 523 libavformat/sbgdec.c r = parse_timestamp(p, &ts, &rel_ts); r 524 libavformat/sbgdec.c if (!r) r 526 libavformat/sbgdec.c if (r < 0) r 527 libavformat/sbgdec.c return r; r 540 libavformat/sbgdec.c r = parse_fade(p, &fade); r 541 libavformat/sbgdec.c if (r < 0) r 542 libavformat/sbgdec.c return r; r 577 libavformat/sbgdec.c int r, tseq; r 584 libavformat/sbgdec.c r = parse_time_sequence(p, 1); r 585 libavformat/sbgdec.c if (r < 0) r 586 libavformat/sbgdec.c return r; r 587 libavformat/sbgdec.c if (!r) r 707 libavformat/sbgdec.c int r; r 714 libavformat/sbgdec.c r = lex_char(p, '-'); r 715 libavformat/sbgdec.c if (!r) r 716 libavformat/sbgdec.c r = parse_synth_channel_pink(p, synth); r 717 libavformat/sbgdec.c if (!r) r 718 libavformat/sbgdec.c r = parse_synth_channel_bell(p, synth); r 719 libavformat/sbgdec.c if (!r) r 720 libavformat/sbgdec.c r = parse_synth_channel_mix(p, synth); r 721 libavformat/sbgdec.c if (!r) r 722 libavformat/sbgdec.c r = parse_synth_channel_spin(p, synth); r 724 libavformat/sbgdec.c if (!r) r 725 libavformat/sbgdec.c r = parse_synth_channel_sine(p, synth); r 726 libavformat/sbgdec.c if (r <= 0) r 728 libavformat/sbgdec.c return r; r 734 libavformat/sbgdec.c int r, synth; r 738 libavformat/sbgdec.c r = parse_synth_channel(p); r 739 libavformat/sbgdec.c if (r < 0) r 740 libavformat/sbgdec.c return r; r 741 libavformat/sbgdec.c if (!r || !lex_space(p)) r 809 libavformat/sbgdec.c int r; r 813 libavformat/sbgdec.c r = parse_options(&sp); r 814 libavformat/sbgdec.c if (r < 0) r 816 libavformat/sbgdec.c if (!r && !lex_line_end(&sp)) r 820 libavformat/sbgdec.c r = parse_named_def(&sp); r 821 libavformat/sbgdec.c if (!r) r 822 libavformat/sbgdec.c r = parse_time_sequence(&sp, 0); r 823 libavformat/sbgdec.c if (!r) r 824 libavformat/sbgdec.c r = lex_line_end(&sp) ? 1 : AVERROR_INVALIDDATA; r 825 libavformat/sbgdec.c if (r < 0) r 833 libavformat/sbgdec.c if (r == AVERROR_INVALIDDATA) r 851 libavformat/sbgdec.c return r; r 857 libavformat/sbgdec.c int size = 0, bufsize = 0, r; r 872 libavformat/sbgdec.c r = avio_read(io, buf, bufsize - size - 1); r 873 libavformat/sbgdec.c if (r == AVERROR_EOF) r 875 libavformat/sbgdec.c if (r < 0) r 877 libavformat/sbgdec.c size += r; r 944 libavformat/sbgdec.c int i, r; r 969 libavformat/sbgdec.c r = expand_tseq(log, s, nb_ev_max, t0, &be[i]); r 970 libavformat/sbgdec.c if (r < 0) r 971 libavformat/sbgdec.c return r; r 989 libavformat/sbgdec.c int i, r, nb_events_max = 0; r 993 libavformat/sbgdec.c r = expand_tseq(log, s, &nb_events_max, 0, &s->tseq[i]); r 994 libavformat/sbgdec.c if (r < 0) r 995 libavformat/sbgdec.c return r; r 1054 libavformat/sbgdec.c int i, r; r 1058 libavformat/sbgdec.c r = add_interval(inter, WS_SINE, 3, -1, r 1060 libavformat/sbgdec.c if (r < 0) r 1061 libavformat/sbgdec.c return r; r 1075 libavformat/sbgdec.c int r; r 1084 libavformat/sbgdec.c r = add_interval(inter, WS_SINE, 3, s1->ref.l, r 1087 libavformat/sbgdec.c if (r < 0) r 1088 libavformat/sbgdec.c return r; r 1089 libavformat/sbgdec.c s2->ref.l = s2->ref.r = r; r 1091 libavformat/sbgdec.c r = add_interval(inter, WS_SINE, 1, s1->ref.l, r 1094 libavformat/sbgdec.c if (r < 0) r 1095 libavformat/sbgdec.c return r; r 1096 libavformat/sbgdec.c s2->ref.l = r; r 1097 libavformat/sbgdec.c r = add_interval(inter, WS_SINE, 2, s1->ref.r, r 1100 libavformat/sbgdec.c if (r < 0) r 1101 libavformat/sbgdec.c return r; r 1102 libavformat/sbgdec.c s2->ref.r = r; r 1108 libavformat/sbgdec.c r = add_bell(inter, s, ts1, ts2, s1->carrier, s2->vol); r 1109 libavformat/sbgdec.c if (r < 0) r 1110 libavformat/sbgdec.c return r; r 1129 libavformat/sbgdec.c r = add_interval(inter, WS_NOISE, 3, s1->ref.l, r 1132 libavformat/sbgdec.c if (r < 0) r 1133 libavformat/sbgdec.c return r; r 1134 libavformat/sbgdec.c s2->ref.l = s2->ref.r = r; r 1152 libavformat/sbgdec.c int i, r; r 1157 libavformat/sbgdec.c r = generate_interval(log, s, inter, ts1, ts2, s1, s1, 0); r 1158 libavformat/sbgdec.c if (r < 0) r 1159 libavformat/sbgdec.c return r; r 1187 libavformat/sbgdec.c int pass, i, r; r 1220 libavformat/sbgdec.c r = generate_interval(log, s, inter, r 1222 libavformat/sbgdec.c if (r < 0) r 1223 libavformat/sbgdec.c return r; r 1231 libavformat/sbgdec.c r = generate_interval(log, s, inter, r 1233 libavformat/sbgdec.c if (r < 0) r 1234 libavformat/sbgdec.c return r; r 1238 libavformat/sbgdec.c r = generate_interval(log, s, inter, r 1240 libavformat/sbgdec.c if (r < 0) r 1241 libavformat/sbgdec.c return r; r 1268 libavformat/sbgdec.c int i, r; r 1311 libavformat/sbgdec.c s->synth[i].ref.l = s->synth[i].ref.r = -1; r 1315 libavformat/sbgdec.c r = generate_plateau(log, s, inter, ev1); r 1316 libavformat/sbgdec.c if (r < 0) r 1317 libavformat/sbgdec.c return r; r 1318 libavformat/sbgdec.c r = generate_transition(log, s, inter, ev1, ev2); r 1319 libavformat/sbgdec.c if (r < 0) r 1320 libavformat/sbgdec.c return r; r 1372 libavformat/sbgdec.c int r, score; r 1375 libavformat/sbgdec.c r = parse_script(NULL, p->buf, p->buf_size, &script); r 1376 libavformat/sbgdec.c score = r < 0 || !script.nb_def || !script.nb_tseq ? 0 : r 1385 libavformat/sbgdec.c int r; r 1391 libavformat/sbgdec.c r = read_whole_file(avf->pb, sbg->max_file_size, &buf); r 1392 libavformat/sbgdec.c if (r < 0) r 1394 libavformat/sbgdec.c r = parse_script(avf, buf, r, &script); r 1395 libavformat/sbgdec.c if (r < 0) r 1406 libavformat/sbgdec.c r = expand_script(avf, &script); r 1407 libavformat/sbgdec.c if (r < 0) r 1410 libavformat/sbgdec.c r = generate_intervals(avf, &script, sbg->sample_rate, &inter); r 1411 libavformat/sbgdec.c if (r < 0) r 1431 libavformat/sbgdec.c r = encode_intervals(&script, st->codecpar, &inter); r 1432 libavformat/sbgdec.c if (r < 0) r 1443 libavformat/sbgdec.c return r; r 157 libavformat/sdp.c const uint8_t *r; r 185 libavformat/sdp.c r = ff_avc_find_startcode(extradata, extradata + extradata_size); r 186 libavformat/sdp.c while (r < extradata + extradata_size) { r 190 libavformat/sdp.c while (!*(r++)); r 191 libavformat/sdp.c nal_type = *r & 0x1f; r 192 libavformat/sdp.c r1 = ff_avc_find_startcode(r, extradata + extradata_size); r 194 libavformat/sdp.c r = r1; r 202 libavformat/sdp.c sps = r; r 205 libavformat/sdp.c if (!av_base64_encode(p, MAX_PSET_SIZE - (p - psets), r, r1 - r)) { r 206 libavformat/sdp.c av_log(s, AV_LOG_ERROR, "Cannot Base64-encode %"PTRDIFF_SPECIFIER" %"PTRDIFF_SPECIFIER"!\n", MAX_PSET_SIZE - (p - psets), r1 - r); r 213 libavformat/sdp.c r = r1; r 27 libavformat/subtitles.c void ff_text_init_avio(void *s, FFTextReader *r, AVIOContext *pb) r 30 libavformat/subtitles.c r->pb = pb; r 31 libavformat/subtitles.c r->buf_pos = r->buf_len = 0; r 32 libavformat/subtitles.c r->type = FF_UTF_8; r 34 libavformat/subtitles.c r->buf[r->buf_len++] = avio_r8(r->pb); r 35 libavformat/subtitles.c if (strncmp("\xFF\xFE", r->buf, 2) == 0) { r 36 libavformat/subtitles.c r->type = FF_UTF16LE; r 37 libavformat/subtitles.c r->buf_pos += 2; r 38 libavformat/subtitles.c } else if (strncmp("\xFE\xFF", r->buf, 2) == 0) { r 39 libavformat/subtitles.c r->type = FF_UTF16BE; r 40 libavformat/subtitles.c r->buf_pos += 2; r 42 libavformat/subtitles.c r->buf[r->buf_len++] = avio_r8(r->pb); r 43 libavformat/subtitles.c if (strncmp("\xEF\xBB\xBF", r->buf, 3) == 0) { r 45 libavformat/subtitles.c r->buf_pos += 3; r 48 libavformat/subtitles.c if (s && (r->type == FF_UTF16LE || r->type == FF_UTF16BE)) r 53 libavformat/subtitles.c void ff_text_init_buf(FFTextReader *r, void *buf, size_t size) r 55 libavformat/subtitles.c memset(&r->buf_pb, 0, sizeof(r->buf_pb)); r 56 libavformat/subtitles.c ffio_init_context(&r->buf_pb, buf, size, 0, NULL, NULL, NULL, NULL); r 57 libavformat/subtitles.c ff_text_init_avio(NULL, r, &r->buf_pb); r 60 libavformat/subtitles.c int64_t ff_text_pos(FFTextReader *r) r 62 libavformat/subtitles.c return avio_tell(r->pb) - r->buf_len + r->buf_pos; r 65 libavformat/subtitles.c int ff_text_r8(FFTextReader *r) r 69 libavformat/subtitles.c if (r->buf_pos < r->buf_len) r 70 libavformat/subtitles.c return r->buf[r->buf_pos++]; r 71 libavformat/subtitles.c if (r->type == FF_UTF16LE) { r 72 libavformat/subtitles.c GET_UTF16(val, avio_rl16(r->pb), return 0;) r 73 libavformat/subtitles.c } else if (r->type == FF_UTF16BE) { r 74 libavformat/subtitles.c GET_UTF16(val, avio_rb16(r->pb), return 0;) r 76 libavformat/subtitles.c return avio_r8(r->pb); r 80 libavformat/subtitles.c r->buf_pos = 0; r 81 libavformat/subtitles.c r->buf_len = 0; r 82 libavformat/subtitles.c PUT_UTF8(val, tmp, r->buf[r->buf_len++] = tmp;) r 83 libavformat/subtitles.c return r->buf[r->buf_pos++]; // buf_len is at least 1 r 86 libavformat/subtitles.c void ff_text_read(FFTextReader *r, char *buf, size_t size) r 89 libavformat/subtitles.c *buf++ = ff_text_r8(r); r 92 libavformat/subtitles.c int ff_text_eof(FFTextReader *r) r 94 libavformat/subtitles.c return r->buf_pos >= r->buf_len && avio_feof(r->pb); r 97 libavformat/subtitles.c int ff_text_peek_r8(FFTextReader *r) r 100 libavformat/subtitles.c if (r->buf_pos < r->buf_len) r 101 libavformat/subtitles.c return r->buf[r->buf_pos]; r 102 libavformat/subtitles.c c = ff_text_r8(r); r 103 libavformat/subtitles.c if (!avio_feof(r->pb)) { r 104 libavformat/subtitles.c r->buf_pos = 0; r 105 libavformat/subtitles.c r->buf_len = 1; r 106 libavformat/subtitles.c r->buf[0] = c; r 61 libavformat/subtitles.h void ff_text_init_avio(void *s, FFTextReader *r, AVIOContext *pb); r 70 libavformat/subtitles.h void ff_text_init_buf(FFTextReader *r, void *buf, size_t size); r 77 libavformat/subtitles.h int64_t ff_text_pos(FFTextReader *r); r 84 libavformat/subtitles.h int ff_text_r8(FFTextReader *r); r 89 libavformat/subtitles.h int ff_text_eof(FFTextReader *r); r 94 libavformat/subtitles.h int ff_text_peek_r8(FFTextReader *r); r 100 libavformat/subtitles.h void ff_text_read(FFTextReader *r, char *buf, size_t size); r 121 libavformat/tta.c int r; r 122 libavformat/tta.c if ((r = av_add_index_entry(st, framepos, i * c->frame_size, size, 0, r 124 libavformat/tta.c return r; r 118 libavresample/dither.c float r = src0[i] * LFG_SCALE; r 119 libavresample/dither.c r += src1[i] * LFG_SCALE; r 120 libavresample/dither.c dst[i] = r; r 121 libavutil/aes.c int r; r 123 libavutil/aes.c for (r = a->rounds - 1; r > 0; r--) { r 125 libavutil/aes.c addkey(&a->state[1], &a->state[0], &a->round_key[r]); r 84 libavutil/arm/intmath.h int r; r 85 libavutil/arm/intmath.h __asm__ ("qadd %0, %1, %2" : "=r"(r) : "r"(a), "r"(b)); r 86 libavutil/arm/intmath.h return r; r 92 libavutil/arm/intmath.h int r; r 93 libavutil/arm/intmath.h __asm__ ("qdadd %0, %1, %2" : "=r"(r) : "r"(a), "r"(b)); r 94 libavutil/arm/intmath.h return r; r 100 libavutil/arm/intmath.h int r; r 101 libavutil/arm/intmath.h __asm__ ("qsub %0, %1, %2" : "=r"(r) : "r"(a), "r"(b)); r 102 libavutil/arm/intmath.h return r; r 108 libavutil/arm/intmath.h int r; r 109 libavutil/arm/intmath.h __asm__ ("qdsub %0, %1, %2" : "=r"(r) : "r"(a), "r"(b)); r 110 libavutil/arm/intmath.h return r; r 33 libavutil/cast5.c #define F3(l, r, i) \ r 35 libavutil/cast5.c I = LR(cs->Km[i] - r, cs->Kr[i]); \ r 40 libavutil/cast5.c #define F2(l, r, i) \ r 42 libavutil/cast5.c I = LR(cs->Km[i] ^ r, cs->Kr[i]); \ r 47 libavutil/cast5.c #define F1(l, r, i) \ r 49 libavutil/cast5.c I = LR(cs->Km[i] + r, cs->Kr[i]); \ r 394 libavutil/cast5.c uint32_t r, l, f, I; r 396 libavutil/cast5.c r = AV_RB32(src + 4); r 397 libavutil/cast5.c F1(l, r, 1); r 398 libavutil/cast5.c F2(r, l, 2); r 399 libavutil/cast5.c F3(l, r, 3); r 400 libavutil/cast5.c F1(r, l, 4); r 401 libavutil/cast5.c F2(l, r, 5); r 402 libavutil/cast5.c F3(r, l, 6); r 403 libavutil/cast5.c F1(l, r, 7); r 404 libavutil/cast5.c F2(r, l, 8); r 405 libavutil/cast5.c F3(l, r, 9); r 406 libavutil/cast5.c F1(r, l, 10); r 407 libavutil/cast5.c F2(l, r, 11); r 408 libavutil/cast5.c F3(r, l, 12); r 410 libavutil/cast5.c F1(l, r, 13); r 411 libavutil/cast5.c F2(r, l, 14); r 412 libavutil/cast5.c F3(l, r, 15); r 413 libavutil/cast5.c F1(r, l, 16); r 415 libavutil/cast5.c AV_WB32(dst, r); r 421 libavutil/cast5.c uint32_t f, I, r, l; r 423 libavutil/cast5.c r = AV_RB32(src + 4); r 425 libavutil/cast5.c F1(l, r, 16); r 426 libavutil/cast5.c F3(r, l, 15); r 427 libavutil/cast5.c F2(l, r, 14); r 428 libavutil/cast5.c F1(r, l, 13); r 430 libavutil/cast5.c F3(l, r, 12); r 431 libavutil/cast5.c F2(r, l, 11); r 432 libavutil/cast5.c F1(l, r, 10); r 433 libavutil/cast5.c F3(r, l, 9); r 434 libavutil/cast5.c F2(l, r, 8); r 435 libavutil/cast5.c F1(r, l, 7); r 436 libavutil/cast5.c F3(l, r, 6); r 437 libavutil/cast5.c F2(r, l, 5); r 438 libavutil/cast5.c F1(l, r, 4); r 439 libavutil/cast5.c F3(r, l, 3); r 440 libavutil/cast5.c F2(l, r, 2); r 441 libavutil/cast5.c F1(r, l, 1); r 443 libavutil/cast5.c r ^= AV_RB32(iv); r 447 libavutil/cast5.c AV_WB32(dst, r); r 55 libavutil/colorspace.h #define YUV_TO_RGB2_CCIR(r, g, b, y1)\ r 58 libavutil/colorspace.h r = cm[(y + r_add) >> SCALEBITS];\ r 72 libavutil/colorspace.h #define YUV_TO_RGB2(r, g, b, y1)\ r 75 libavutil/colorspace.h r = cm[(y + r_add) >> SCALEBITS];\ r 98 libavutil/colorspace.h #define RGB_TO_Y_CCIR(r, g, b) \ r 99 libavutil/colorspace.h ((FIX(0.29900*219.0/255.0) * (r) + FIX(0.58700*219.0/255.0) * (g) + \ r 110 libavutil/colorspace.h #define RGB_TO_Y_JPEG(r, g, b) \ r 111 libavutil/colorspace.h (FFMIN((FIX(0.29900) * (r) + FIX(0.58700) * (g) + \ r 126 libavutil/colorspace.h #define RGB_TO_Y_BT709(r, g, b) \ r 127 libavutil/colorspace.h ((FIX(0.21260*219.0/255.0) * (r) + FIX(0.71520*219.0/255.0) * (g) + \ r 138 libavutil/colorspace.h #define RGB_TO_Y_BT709_FULL(r, g, b) \ r 139 libavutil/colorspace.h (FFMIN((FIX(0.21260) * (r) + FIX(0.71520) * (g) + \ r 198 libavutil/des.c static uint32_t f_func(uint32_t r, uint64_t k) r 203 libavutil/des.c r = (r << 1) | (r >> 31); r 206 libavutil/des.c uint8_t tmp = (r ^ k) & 0x3f; r 216 libavutil/des.c r = (r >> 4) | (r << 28); r 234 libavutil/eval.c uint64_t r= isnan(p->var[idx]) ? 0 : p->var[idx]; r 235 libavutil/eval.c r= r*1664525+1013904223; r 236 libavutil/eval.c p->var[idx]= r; r 237 libavutil/eval.c return e->value * (r * (1.0/UINT64_MAX)); r 157 libavutil/imgutils.c int r, g, b; r 161 libavutil/imgutils.c r = (i>>5 )*36; r 168 libavutil/imgutils.c r = (i&7 )*36; r 171 libavutil/imgutils.c r = (i>>3 )*255; r 178 libavutil/imgutils.c r = (i&1 )*255; r 181 libavutil/imgutils.c r = b = g = i; r 186 libavutil/imgutils.c pal[i] = b + (g << 8) + (r << 16) + (0xFFU << 24); r 60 libavutil/mathematics.c int64_t r = 0; r 78 libavutil/mathematics.c r = c / 2; r 80 libavutil/mathematics.c r = c - 1; r 84 libavutil/mathematics.c return (a * b + r) / c; r 87 libavutil/mathematics.c int64_t a2 = (a % c * b + r) / c; r 104 libavutil/mathematics.c a0 += r; r 105 libavutil/mathematics.c a1 += a0 < r; r 122 libavutil/mathematics.c ai = av_add_i(ai, av_int2i(r)); r 149 libavutil/mem.c void *r; r 155 libavutil/mem.c r = av_realloc(ptr, size); r 156 libavutil/mem.c if (!r) r 158 libavutil/mem.c return r; r 669 libavutil/mem.h static inline int av_size_mult(size_t a, size_t b, size_t *r) r 676 libavutil/mem.h *r = t; r 1149 libavutil/opt.c AVOptionRanges *r; r 1252 libavutil/opt.c if (av_opt_query_ranges(&r, obj, opt->name, AV_OPT_SEARCH_FAKE_OBJ) >= 0) { r 1260 libavutil/opt.c for (i = 0; i < r->nb_ranges; i++) { r 1262 libavutil/opt.c log_value(av_log_obj, AV_LOG_INFO, r->range[i]->value_min); r 1264 libavutil/opt.c log_value(av_log_obj, AV_LOG_INFO, r->range[i]->value_max); r 1269 libavutil/opt.c av_opt_freep_ranges(&r); r 73 libavutil/rational.h AVRational r = { num, den }; r 74 libavutil/rational.h return r; r 161 libavutil/rational.h AVRational r = { q.den, q.num }; r 162 libavutil/rational.h return r; r 33 libavutil/rc4.c int av_rc4_init(AVRC4 *r, const uint8_t *key, int key_bits, int decrypt) { r 36 libavutil/rc4.c uint8_t *state = r->state; r 49 libavutil/rc4.c r->x = 1; r 50 libavutil/rc4.c r->y = state[1]; r 54 libavutil/rc4.c void av_rc4_crypt(AVRC4 *r, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt) { r 55 libavutil/rc4.c uint8_t x = r->x, y = r->y; r 56 libavutil/rc4.c uint8_t *state = r->state; r 64 libavutil/rc4.c r->x = x; r->y = y; r 32 libavutil/tests/des.c uint64_t r = rand(); r 33 libavutil/tests/des.c r = (r << 32) | rand(); r 34 libavutil/tests/des.c return r; r 79 libavutil/tests/lfg.c double r; r 86 libavutil/tests/lfg.c r = x * (((a[3]*y+a[2])*y+a[1])*y+a[0]) / r 90 libavutil/tests/lfg.c r = u; r 92 libavutil/tests/lfg.c r = 1.0 - u; r 93 libavutil/tests/lfg.c r = log(-log(r)); r 94 libavutil/tests/lfg.c r = c[0] + r*(c[1]+r*(c[2]+r*(c[3]+r*(c[4]+r*(c[5]+r*(c[6]+ r 95 libavutil/tests/lfg.c r*(c[7]+r*c[8]))))))); r 97 libavutil/tests/lfg.c r = -r; r 100 libavutil/tests/lfg.c return r; r 65 libavutil/tests/pixelutils.c int r = run_single_test(test, b1, W1, b2, W2, a, i); r 66 libavutil/tests/pixelutils.c if (r) r 67 libavutil/tests/pixelutils.c ret = r; r 27 libavutil/tests/rational.c AVRational a,b,r; r 47 libavutil/tests/rational.c r = av_sub_q(av_add_q(b,a), b); r 48 libavutil/tests/rational.c if(b.den && (r.num*a.den != a.num*r.den || !r.num != !a.num || !r.den != !a.den)) r 49 libavutil/tests/rational.c av_log(NULL, AV_LOG_ERROR, "%d/%d ", r.num, r.den); r 50 libavutil/tests/utf8.c int l, r; r 53 libavutil/tests/utf8.c r = av_utf8_decode(&code, &p, endp, 0); r 58 libavutil/tests/utf8.c if (r >= 0) { r 124 libavutil/twofish.c uint8_t r = 0, t; r 127 libavutil/twofish.c r = r ^ b; r 134 libavutil/twofish.c return r; r 393 libswresample/rematrix.c int r = auto_matrix(s); r 394 libswresample/rematrix.c if (r) r 395 libswresample/rematrix.c return r; r 120 libswresample/resample.c double y, r, factor; r 130 libswresample/resample.c r = eval_poly(p2, FF_ARRAY_ELEMS(p2), y) / eval_poly(q2, FF_ARRAY_ELEMS(q2), y); r 132 libswresample/resample.c return factor * r; r 270 libswresample/tests/swresample.c unsigned r; r 272 libswresample/tests/swresample.c r = (seed * (uint64_t)(max_tests - test)) >>32; r 273 libswresample/tests/swresample.c FFSWAP(int, remaining_tests[r], remaining_tests[max_tests - test - 1]); r 44 libswscale/gamma.c uint16_t r = AV_RL16(src1 + j*4 + 0); r 48 libswscale/gamma.c AV_WL16(src1 + j*4 + 0, table[r]); r 54 libswscale/input.c dst[i] = (ry*r + gy*g + by*b + (0x2001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; r 72 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; r 73 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; r 91 libswscale/input.c dstU[i]= (ru*r + gu*g + bu*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; r 92 libswscale/input.c dstV[i]= (rv*r + gv*g + bv*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; r 142 libswscale/input.c dst[i] = (ry*r + gy*g + by*b + (0x2001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; r 163 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; r 164 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; r 188 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; r 189 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; r 271 libswscale/input.c int r = (px & maskr) >> shr; r 273 libswscale/input.c dst[i] = (ry * r + gy * g + by * b + rnd) >> ((S)-6); r 298 libswscale/input.c int r = (px & maskr) >> shr; r 300 libswscale/input.c dstU[i] = (ru * r + gu * g + bu * b + rnd) >> ((S)-6); r 301 libswscale/input.c dstV[i] = (rv * r + gv * g + bv * b + rnd) >> ((S)-6); r 329 libswscale/input.c int b, r, g = (px0 & maskgx) + (px1 & maskgx); r 340 libswscale/input.c r = (rb & maskr) >> shr; r 342 libswscale/input.c dstU[i] = (ru * r + gu * g + bu * b + (unsigned)rnd) >> ((S)-6+1); r 343 libswscale/input.c dstV[i] = (rv * r + gv * g + bv * b + (unsigned)rnd) >> ((S)-6+1); r 408 libswscale/input.c unsigned int r = rsrc[2*i] + rsrc[2*i+1]; r 410 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (0x4001<<(RGB2YUV_SHIFT-6))) >> (RGB2YUV_SHIFT-6+1); r 411 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (0x4001<<(RGB2YUV_SHIFT-6))) >> (RGB2YUV_SHIFT-6+1); r 773 libswscale/input.c int r = src[i * 3 + 2]; r 775 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (32<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6)); r 790 libswscale/input.c int r = src1[3 * i + 2]; r 792 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); r 793 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); r 809 libswscale/input.c int r = src1[6 * i + 2] + src1[6 * i + 5]; r 811 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); r 812 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); r 824 libswscale/input.c int r = src[i * 3 + 0]; r 828 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (32<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6)); r 842 libswscale/input.c int r = src1[3 * i + 0]; r 846 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); r 847 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); r 861 libswscale/input.c int r = src1[6 * i + 0] + src1[6 * i + 3]; r 865 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); r 866 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); r 878 libswscale/input.c int r = src[2][i]; r 880 libswscale/input.c dst[i] = (ry*r + gy*g + by*b + (0x801<<(RGB2YUV_SHIFT-7))) >> (RGB2YUV_SHIFT-6); r 902 libswscale/input.c int r = src[2][i]; r 904 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (0x4001<<(RGB2YUV_SHIFT-7))) >> (RGB2YUV_SHIFT-6); r 905 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (0x4001<<(RGB2YUV_SHIFT-7))) >> (RGB2YUV_SHIFT-6); r 922 libswscale/input.c int r = rdpx(src[2] + i); r 924 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (33 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14)); r 955 libswscale/input.c int r = rdpx(src[2] + i); r 957 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); r 958 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); r 989 libswscale/input.c int r = av_clip_uint16(lrintf(65535.0f * rdpx(src[2] + i))); r 991 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); r 992 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); r 1008 libswscale/input.c int r = av_clip_uint16(lrintf(65535.0f * rdpx(src[2] + i))); r 1010 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (33 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14)); r 1528 libswscale/output.c const uint32_t *r = (const uint32_t *) _r; r 1535 libswscale/output.c dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (hasAlpha ? A1 << sh : 0); r 1536 libswscale/output.c dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2] + (hasAlpha ? A2 << sh : 0); r 1541 libswscale/output.c av_assert2((((r[Y1] + g[Y1] + b[Y1]) >> sh) & 0xFF) == 0); r 1542 libswscale/output.c dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (A1 << sh); r 1543 libswscale/output.c dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2] + (A2 << sh); r 1548 libswscale/output.c av_assert2((((r[Y1] + g[Y1] + b[Y1]) >> sh) & 0xFF) == 0xFF); r 1550 libswscale/output.c dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1]; r 1551 libswscale/output.c dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2]; r 1556 libswscale/output.c const uint8_t *r = (const uint8_t *) _r; r 1560 libswscale/output.c #define r_b ((target == AV_PIX_FMT_RGB24) ? r : b) r 1561 libswscale/output.c #define b_r ((target == AV_PIX_FMT_RGB24) ? b : r) r 1575 libswscale/output.c const uint16_t *r = (const uint16_t *) _r; r 1603 libswscale/output.c dest[i * 2 + 0] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1]; r 1604 libswscale/output.c dest[i * 2 + 1] = r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2]; r 1607 libswscale/output.c const uint8_t *r = (const uint8_t *) _r; r 1629 libswscale/output.c dest[i] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1] + r 1630 libswscale/output.c ((r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2]) << 4); r 1632 libswscale/output.c dest[i * 2 + 0] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1]; r 1633 libswscale/output.c dest[i * 2 + 1] = r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2]; r 1654 libswscale/output.c const void *r, *g, *b; r 1683 libswscale/output.c r = c->table_rV[V + YUVRGB_TABLE_HEADROOM]; r 1688 libswscale/output.c r, g, b, y, target, hasAlpha); r 1716 libswscale/output.c const void *r = c->table_rV[V + YUVRGB_TABLE_HEADROOM], r 1728 libswscale/output.c r, g, b, y, target, hasAlpha); r 1749 libswscale/output.c const void *r = c->table_rV[V + YUVRGB_TABLE_HEADROOM], r 1761 libswscale/output.c r, g, b, y, target, hasAlpha); r 1771 libswscale/output.c const void *r = c->table_rV[V + YUVRGB_TABLE_HEADROOM], r 1783 libswscale/output.c r, g, b, y, target, hasAlpha); r 1902 libswscale/output.c int r,g,b; r 1917 libswscale/output.c r = R >> (isrgb8 ? 5 : 7); r 1920 libswscale/output.c r = av_clip(r, 0, isrgb8 ? 7 : 1); r 1923 libswscale/output.c err[0] = R - r*(isrgb8 ? 36 : 255); r 1931 libswscale/output.c r = (((R >> 19) + A_DITHER(i,y) -96)>>8); r 1934 libswscale/output.c r = av_clip_uintp2(r, 3); r 1938 libswscale/output.c r = (((R >> 21) + A_DITHER(i,y)-256)>>8); r 1941 libswscale/output.c r = av_clip_uintp2(r, 1); r 1950 libswscale/output.c r = (((R >> 19) + X_DITHER(i,y) - 96)>>8); r 1953 libswscale/output.c r = av_clip_uintp2(r, 3); r 1957 libswscale/output.c r = (((R >> 21) + X_DITHER(i,y)-256)>>8); r 1960 libswscale/output.c r = av_clip_uintp2(r, 1); r 1969 libswscale/output.c dest[0] = r + 2*g + 8*b; r 1971 libswscale/output.c dest[0] = b + 2*g + 8*r; r 1973 libswscale/output.c dest[0] = r + 8*g + 64*b; r 1975 libswscale/output.c dest[0] = b + 4*g + 32*r; r 208 libswscale/rgb2rgb.c uint16_t rgb, r, g, b; r 215 libswscale/rgb2rgb.c r = rgb & 0xF00; r 218 libswscale/rgb2rgb.c r = (r << 3) | ((r & 0x800) >> 1); r 221 libswscale/rgb2rgb.c *d++ = r | g | b; r 195 libswscale/rgb2rgb_template.c const int r = *s++; r 196 libswscale/rgb2rgb_template.c *d++ = (b >> 3) | ((g & 0xFC) << 3) | ((r & 0xF8) << 8); r 207 libswscale/rgb2rgb_template.c const int r = *s++; r 210 libswscale/rgb2rgb_template.c *d++ = (b >> 3) | ((g & 0xFC) << 3) | ((r & 0xF8) << 8); r 224 libswscale/rgb2rgb_template.c const int r = *s++; r 225 libswscale/rgb2rgb_template.c *d++ = (b >> 3) | ((g & 0xF8) << 2) | ((r & 0xF8) << 7); r 236 libswscale/rgb2rgb_template.c const int r = *s++; r 239 libswscale/rgb2rgb_template.c *d++ = (b >> 3) | ((g & 0xF8) << 2) | ((r & 0xF8) << 7); r 666 libswscale/rgb2rgb_template.c unsigned int r = src[6 * i + 2]; r 668 libswscale/rgb2rgb_template.c unsigned int Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; r 669 libswscale/rgb2rgb_template.c unsigned int V = ((rv * r + gv * g + bv * b) >> RGB2YUV_SHIFT) + 128; r 670 libswscale/rgb2rgb_template.c unsigned int U = ((ru * r + gu * g + bu * b) >> RGB2YUV_SHIFT) + 128; r 678 libswscale/rgb2rgb_template.c r = src[6 * i + 5]; r 680 libswscale/rgb2rgb_template.c Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; r 692 libswscale/rgb2rgb_template.c unsigned int r = src[6 * i + 2]; r 694 libswscale/rgb2rgb_template.c unsigned int Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; r 700 libswscale/rgb2rgb_template.c r = src[6 * i + 5]; r 702 libswscale/rgb2rgb_template.c Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; r 636 libswscale/swscale.c int x, y, z, r, g, b; r 653 libswscale/swscale.c r = c->xyz2rgb_matrix[0][0] * x + r 664 libswscale/swscale.c r = av_clip_uintp2(r, 12); r 670 libswscale/swscale.c AV_WB16(dst + xp + 0, c->rgbgamma[r] << 4); r 674 libswscale/swscale.c AV_WL16(dst + xp + 0, c->rgbgamma[r] << 4); r 692 libswscale/swscale.c int x, y, z, r, g, b; r 695 libswscale/swscale.c r = AV_RB16(src + xp + 0); r 699 libswscale/swscale.c r = AV_RL16(src + xp + 0); r 704 libswscale/swscale.c r = c->rgbgammainv[r>>4]; r 709 libswscale/swscale.c x = c->rgb2xyz_matrix[0][0] * r + r 712 libswscale/swscale.c y = c->rgb2xyz_matrix[1][0] * r + r 715 libswscale/swscale.c z = c->rgb2xyz_matrix[2][0] * r + r 839 libswscale/swscale.c int r, g, b, y, u, v, a = 0xff; r 843 libswscale/swscale.c r = (p >> 16) & 0xFF; r 847 libswscale/swscale.c r = ( i >> 5 ) * 36; r 853 libswscale/swscale.c r = ( i & 7) * 36; r 855 libswscale/swscale.c r = ( i >> 3 ) * 255; r 859 libswscale/swscale.c r = g = b = i; r 864 libswscale/swscale.c r = ( i & 1) * 255; r 877 libswscale/swscale.c y = av_clip_uint8((RY * r + GY * g + BY * b + ( 33 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); r 878 libswscale/swscale.c u = av_clip_uint8((RU * r + GU * g + BU * b + (257 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); r 879 libswscale/swscale.c v = av_clip_uint8((RV * r + GV * g + BV * b + (257 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); r 887 libswscale/swscale.c c->pal_rgb[i]= r + (g<<8) + (b<<16) + ((unsigned)a<<24); r 893 libswscale/swscale.c c->pal_rgb[i]= a + (r<<8) + (g<<16) + ((unsigned)b<<24); r 899 libswscale/swscale.c c->pal_rgb[i]= a + (b<<8) + (g<<16) + ((unsigned)r<<24); r 906 libswscale/swscale.c c->pal_rgb[i]= b + (g<<8) + (r<<16) + ((unsigned)a<<24); r 1840 libswscale/swscale_unscaled.c #define COPY_UP(r,w) \ r 1843 libswscale/swscale_unscaled.c unsigned int v= r(&srcPtr2[j]);\ r 1848 libswscale/swscale_unscaled.c unsigned int v= r(&srcPtr2[j]);\ r 86 libswscale/tests/swscale.c struct Results *r) r 189 libswscale/tests/swscale.c if (r && crc == r->crc) { r 190 libswscale/tests/swscale.c ssdY = r->ssdY; r 191 libswscale/tests/swscale.c ssdU = r->ssdU; r 192 libswscale/tests/swscale.c ssdV = r->ssdV; r 193 libswscale/tests/swscale.c ssdA = r->ssdA; r 313 libswscale/tests/swscale.c struct Results r; r 327 libswscale/tests/swscale.c &flags, &r.crc, &r.ssdY, &r.ssdU, &r.ssdV, &r.ssdA); r 352 libswscale/tests/swscale.c &r); r 542 libswscale/x86/rgb2rgb_template.c const int r = *s++; r 543 libswscale/x86/rgb2rgb_template.c *d++ = (b>>3) | ((g&0xFC)<<3) | ((r&0xF8)<<8); r 597 libswscale/x86/rgb2rgb_template.c const int r = *s++; r 600 libswscale/x86/rgb2rgb_template.c *d++ = (b>>3) | ((g&0xFC)<<3) | ((r&0xF8)<<8); r 656 libswscale/x86/rgb2rgb_template.c const int r = *s++; r 657 libswscale/x86/rgb2rgb_template.c *d++ = (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); r 711 libswscale/x86/rgb2rgb_template.c const int r = *s++; r 714 libswscale/x86/rgb2rgb_template.c *d++ = (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); r 316 libswscale/x86/swscale_template.c #define REAL_WRITEBGR32(dst, dstw, index, b, g, r, a, q0, q2, q3, t) \ r 318 libswscale/x86/swscale_template.c "movq "#r", "#t" \n\t" /* R */\ r 320 libswscale/x86/swscale_template.c "punpcklbw "#a", "#r" \n\t" /* ARARARAR 0 */\ r 325 libswscale/x86/swscale_template.c "punpcklwd "#r", "#q0" \n\t" /* ARGBARGB 0 */\ r 326 libswscale/x86/swscale_template.c "punpckhwd "#r", "#b" \n\t" /* ARGBARGB 1 */\ r 338 libswscale/x86/swscale_template.c #define WRITEBGR32(dst, dstw, index, b, g, r, a, q0, q2, q3, t) REAL_WRITEBGR32(dst, dstw, index, b, g, r, a, q0, q2, q3, t) r 73 libswscale/yuv2rgb.c r = (void *)c->table_rV[V+YUVRGB_TABLE_HEADROOM]; \ r 79 libswscale/yuv2rgb.c dst[2 * i] = r[Y] + g[Y] + b[Y]; \ r 81 libswscale/yuv2rgb.c dst[2 * i + 1] = r[Y] + g[Y] + b[Y]; r 85 libswscale/yuv2rgb.c dst[6 * i + 0] = r[Y]; \ r 89 libswscale/yuv2rgb.c dst[6 * i + 3] = r[Y]; \ r 97 libswscale/yuv2rgb.c dst[6 * i + 2] = r[Y]; \ r 101 libswscale/yuv2rgb.c dst[6 * i + 5] = r[Y]; r 105 libswscale/yuv2rgb.c dst[2 * i] = r[Y] + g[Y] + b[Y] + (asrc[2 * i] << s); \ r 107 libswscale/yuv2rgb.c dst[2 * i + 1] = r[Y] + g[Y] + b[Y] + (asrc[2 * i + 1] << s); r 111 libswscale/yuv2rgb.c dst[12 * i + 0] = dst[12 * i + 1] = r[Y]; \ r 115 libswscale/yuv2rgb.c dst[12 * i + 6] = dst[12 * i + 7] = r[Y]; \ r 123 libswscale/yuv2rgb.c dst[12 * i + 4] = dst[12 * i + 5] = r[Y]; \ r 127 libswscale/yuv2rgb.c dst[12 * i + 10] = dst[12 * i + 11] = r[Y]; r 146 libswscale/yuv2rgb.c dst_type av_unused *r, *g, *b; \ r 415 libswscale/yuv2rgb.c dst[2 * i] = r[Y + d16[0 + o]] + \ r 419 libswscale/yuv2rgb.c dst[2 * i + 1] = r[Y + d16[1 + o]] + \ r 445 libswscale/yuv2rgb.c dst[2 * i] = r[Y + d16[0 + o]] + \ r 449 libswscale/yuv2rgb.c dst[2 * i + 1] = r[Y + d16[1 + o]] + \ r 475 libswscale/yuv2rgb.c dst[2 * i] = r[Y + d16[0 + o]] + \ r 479 libswscale/yuv2rgb.c dst[2 * i + 1] = r[Y + d16[1 + o]] + \ r 507 libswscale/yuv2rgb.c dst[2 * i] = r[Y + d32[0 + o]] + \ r 511 libswscale/yuv2rgb.c dst[2 * i + 1] = r[Y + d32[1 + o]] + \ r 559 libswscale/yuv2rgb.c acc = r[Y + d128[0 + o]] + \ r 563 libswscale/yuv2rgb.c acc |= (r[Y + d128[1 + o]] + \ r 611 libswscale/yuv2rgb.c dst[2 * i] = r[Y + d128[0 + o]] + \ r 615 libswscale/yuv2rgb.c dst[2 * i + 1] = r[Y + d128[1 + o]] + \ r 764 libswscale/yuv2rgb.c int r = (f + (1 << 15)) >> 16; r 766 libswscale/yuv2rgb.c if (r < -0x7FFF) r 768 libswscale/yuv2rgb.c else if (r > 0x7FFF) r 771 libswscale/yuv2rgb.c return r; r 189 tests/checkasm/aacpsdsp.c LOCAL_ALIGNED_16(INTFLOAT, r, [BUF_SIZE], [2]); r 197 tests/checkasm/aacpsdsp.c declare_func(void, INTFLOAT (*l)[2], INTFLOAT (*r)[2], r 201 tests/checkasm/aacpsdsp.c randomize((INTFLOAT *)r, BUF_SIZE * 2); r 207 tests/checkasm/aacpsdsp.c memcpy(r0, r, BUF_SIZE * 2 * sizeof(INTFLOAT)); r 208 tests/checkasm/aacpsdsp.c memcpy(r1, r, BUF_SIZE * 2 * sizeof(INTFLOAT)); r 227 tests/checkasm/aacpsdsp.c memcpy(r1, r, BUF_SIZE * 2 * sizeof(INTFLOAT)); r 35 tests/checkasm/alacdsp.c int32_t r = sign_extend(rnd(), 24); \ r 36 tests/checkasm/alacdsp.c ref_buf[i] = r; \ r 37 tests/checkasm/alacdsp.c new_buf[i] = r; \ r 74 tests/checkasm/alacdsp.c int32_t r = sign_extend(rnd(), 24); \ r 75 tests/checkasm/alacdsp.c ref[j][i] = r; \ r 76 tests/checkasm/alacdsp.c new[j][i] = r; \ r 77 tests/checkasm/alacdsp.c r = rnd() & 0xFF; \ r 78 tests/checkasm/alacdsp.c ref_ebb[j][i] = r; \ r 79 tests/checkasm/alacdsp.c new_ebb[j][i] = r; \ r 46 tests/checkasm/audiodsp.c uint ## size ## _t r = rnd() & ((1LL << bits) - 1); \ r 47 tests/checkasm/audiodsp.c AV_WN ## size ## A(buf + i, -(1LL << (bits - 1)) + r); \ r 35 tests/checkasm/blockdsp.c uint16_t r = rnd(); \ r 36 tests/checkasm/blockdsp.c AV_WN16A(buf0 + i, r); \ r 37 tests/checkasm/blockdsp.c AV_WN16A(buf1 + i, r); \ r 34 tests/checkasm/bswapdsp.c uint32_t r = rnd(); \ r 35 tests/checkasm/bswapdsp.c AV_WN32A(src0 + i, r); \ r 36 tests/checkasm/bswapdsp.c AV_WN32A(src1 + i, r); \ r 37 tests/checkasm/bswapdsp.c r = rnd(); \ r 38 tests/checkasm/bswapdsp.c AV_WN32A(dst0 + i, r); \ r 39 tests/checkasm/bswapdsp.c AV_WN32A(dst1 + i, r); \ r 523 tests/checkasm/checkasm.c CheckasmFunc *r = f->child[dir^1]; r 524 tests/checkasm/checkasm.c f->child[dir^1] = r->child[dir]; r 525 tests/checkasm/checkasm.c r->child[dir] = f; r 526 tests/checkasm/checkasm.c r->color = f->color; r 528 tests/checkasm/checkasm.c return r; r 35 tests/checkasm/exrdsp.c uint32_t r = rnd(); \ r 36 tests/checkasm/exrdsp.c AV_WN32A(src + i, r); \ r 36 tests/checkasm/flacdsp.c uint32_t r = rnd() & (1 << (bits - 2)) - 1; \ r 37 tests/checkasm/flacdsp.c AV_WN32A(ref_src[j] + i, r); \ r 38 tests/checkasm/flacdsp.c AV_WN32A(new_src[j] + i, r); \ r 132 tests/checkasm/h264pred.c uint32_t r = rnd() & mask; \ r 133 tests/checkasm/h264pred.c AV_WN32A(buf0 + i, r); \ r 134 tests/checkasm/h264pred.c AV_WN32A(buf1 + i, r); \ r 38 tests/checkasm/h264qpel.c uint32_t r = rnd() & mask; \ r 39 tests/checkasm/h264qpel.c AV_WN32A(buf0 + k, r); \ r 40 tests/checkasm/h264qpel.c AV_WN32A(buf1 + k, r); \ r 41 tests/checkasm/h264qpel.c r = rnd(); \ r 42 tests/checkasm/h264qpel.c AV_WN32A(dst0 + k, r); \ r 43 tests/checkasm/h264qpel.c AV_WN32A(dst1 + k, r); \ r 33 tests/checkasm/hevc_add_res.c int16_t r = rnd(); \ r 34 tests/checkasm/hevc_add_res.c AV_WN16A(buf + j, r >> 3); \ r 33 tests/checkasm/hevc_idct.c int16_t r = rnd(); \ r 34 tests/checkasm/hevc_idct.c AV_WN16A(buf + j, r); \ r 45 tests/checkasm/hevc_sao.c uint32_t r = rnd() & mask; \ r 46 tests/checkasm/hevc_sao.c AV_WN32A(buf0 + k, r); \ r 47 tests/checkasm/hevc_sao.c AV_WN32A(buf1 + k, r); \ r 57 tests/checkasm/hevc_sao.c uint8_t r = rnd() % max_offset; \ r 58 tests/checkasm/hevc_sao.c buf[k] = r; \ r 62 tests/checkasm/hevc_sao.c uint16_t r = rnd() % max_offset; \ r 63 tests/checkasm/hevc_sao.c buf[k] = r; \ r 35 tests/checkasm/pixblockdsp.c uint32_t r = rnd(); \ r 36 tests/checkasm/pixblockdsp.c AV_WN32A(src10 + i, r); \ r 37 tests/checkasm/pixblockdsp.c AV_WN32A(src11 + i, r); \ r 38 tests/checkasm/pixblockdsp.c r = rnd(); \ r 39 tests/checkasm/pixblockdsp.c AV_WN32A(src20 + i, r); \ r 40 tests/checkasm/pixblockdsp.c AV_WN32A(src21 + i, r); \ r 41 tests/checkasm/pixblockdsp.c r = rnd(); \ r 42 tests/checkasm/pixblockdsp.c AV_WN32A(dst0_ + i, r); \ r 43 tests/checkasm/pixblockdsp.c AV_WN32A(dst1_ + i, r); \ r 34 tests/checkasm/v210enc.c uint32_t r = rnd() & mask; \ r 35 tests/checkasm/v210enc.c AV_WN32A(y0 + i, r); \ r 36 tests/checkasm/v210enc.c AV_WN32A(y1 + i, r); \ r 39 tests/checkasm/v210enc.c uint32_t r = rnd() & mask; \ r 40 tests/checkasm/v210enc.c AV_WN32A(u0 + i, r); \ r 41 tests/checkasm/v210enc.c AV_WN32A(u1 + i, r); \ r 42 tests/checkasm/v210enc.c r = rnd() & mask; \ r 43 tests/checkasm/v210enc.c AV_WN32A(v0 + i, r); \ r 44 tests/checkasm/v210enc.c AV_WN32A(v1 + i, r); \ r 47 tests/checkasm/v210enc.c uint32_t r = rnd(); \ r 48 tests/checkasm/v210enc.c AV_WN32A(dst0 + i, r); \ r 49 tests/checkasm/v210enc.c AV_WN32A(dst1 + i, r); \ r 46 tests/checkasm/vf_blend.c uint32_t r = rnd(); \ r 47 tests/checkasm/vf_blend.c AV_WN32A(dst1 + i, r); \ r 48 tests/checkasm/vf_blend.c AV_WN32A(dst2 + i, r); \ r 51 tests/checkasm/vf_blend.c uint32_t r = rnd(); \ r 52 tests/checkasm/vf_blend.c AV_WN32A(top1 + i, r); \ r 53 tests/checkasm/vf_blend.c AV_WN32A(top2 + i, r); \ r 54 tests/checkasm/vf_blend.c r = rnd(); \ r 55 tests/checkasm/vf_blend.c AV_WN32A(bot1 + i, r); \ r 56 tests/checkasm/vf_blend.c AV_WN32A(bot2 + i, r); \ r 57 tests/checkasm/vf_blend.c r = rnd(); \ r 58 tests/checkasm/vf_blend.c AV_WN32A(dst1 + i, r); \ r 59 tests/checkasm/vf_blend.c AV_WN32A(dst2 + i, r); \ r 41 tests/checkasm/vf_colorspace.c unsigned r = rnd() & mask; \ r 42 tests/checkasm/vf_colorspace.c AV_WN32A(&src[m][n], r); \ r 190 tests/checkasm/vf_colorspace.c int r = rnd() & 0x7fff; \ r 191 tests/checkasm/vf_colorspace.c r -= (32768 - 28672) >> 1; \ r 192 tests/checkasm/vf_colorspace.c src[p][y * W + x] = r; \ r 38 tests/checkasm/vf_nlmeans.c const int r = 2; // research window half size r 45 tests/checkasm/vf_nlmeans.c const int e = p + r; r 63 tests/checkasm/vf_nlmeans.c for (offy = -r; offy <= r; offy++) { r 64 tests/checkasm/vf_nlmeans.c for (offx = -r; offx <= r; offx++) { r 39 tests/checkasm/vp9dsp.c uint32_t r = rnd() & mask; \ r 40 tests/checkasm/vp9dsp.c AV_WN32A(a + k, r); \ r 43 tests/checkasm/vp9dsp.c uint32_t r = rnd() & mask; \ r 44 tests/checkasm/vp9dsp.c AV_WN32A(l + k, r); \ r 105 tests/checkasm/vp9dsp.c uint32_t r = rnd() & mask; \ r 106 tests/checkasm/vp9dsp.c AV_WN32A(dst + y * sz * SIZEOF_PIXEL + x, r); \ r 545 tests/checkasm/vp9dsp.c uint32_t r = rnd() & mask; \ r 546 tests/checkasm/vp9dsp.c AV_WN32A(buf + k, r); \ r 550 tests/checkasm/vp9dsp.c uint32_t r = rnd() & mask; \ r 551 tests/checkasm/vp9dsp.c AV_WN32A(dst0 + k, r); \ r 552 tests/checkasm/vp9dsp.c AV_WN32A(dst1 + k, r); \ r 42 tests/utils.c int r, g, b, r1, g1, b1; r 50 tests/utils.c r = p[0]; r 53 tests/utils.c r1 = r; r 56 tests/utils.c lum[0] = (FIX(0.29900) * r + FIX(0.58700) * g + r 58 tests/utils.c r = p[3]; r 61 tests/utils.c r1 += r; r 64 tests/utils.c lum[1] = (FIX(0.29900) * r + FIX(0.58700) * g + r 69 tests/utils.c r = p[0]; r 72 tests/utils.c r1 += r; r 75 tests/utils.c lum[0] = (FIX(0.29900) * r + FIX(0.58700) * g + r 77 tests/utils.c r = p[3]; r 80 tests/utils.c r1 += r; r 83 tests/utils.c lum[1] = (FIX(0.29900) * r + FIX(0.58700) * g + r 160 tests/utils.c static void put_pixel(int x, int y, int r, int g, int b) r 169 tests/utils.c p[0] = r; r 73 tests/videogen.c int r, g, b; r 82 tests/videogen.c int r, g, b, x, y, i, dx, dy, x1, y1; r 91 tests/videogen.c objs[i].r = myrnd(&seed, 256); r 105 tests/videogen.c r = ((y1 * 7) >> FRAC_BITS) & 0xff; r 108 tests/videogen.c put_pixel(x, y, r, g, b); r 116 tests/videogen.c r = myrnd(&seed1, 256); r 119 tests/videogen.c put_pixel(x + NOISE_X, y + NOISE_Y, r, g, b); r 129 tests/videogen.c r = p->r; r 133 tests/videogen.c r += myrnd(&seed1, 50); r 136 tests/videogen.c put_pixel(x + p->x, y + p->y, r, g, b); r 85 tools/sofa2wavs.c float l, r; r 88 tools/sofa2wavs.c r = hrtf->DataIR.values[offset + j + hrtf->N]; r 90 tools/sofa2wavs.c fwrite(&r, 4, 1, file);