R 909 libavcodec/aacps.c int ff_ps_apply(AVCodecContext *avctx, PSContext *ps, float L[2][38][64], float R[2][38][64], int top) R 925 libavcodec/aacps.c hybrid_synthesis(&ps->dsp, R, Rbuf, is34, len); R 84 libavcodec/aacps.h int ff_ps_apply(AVCodecContext *avctx, PSContext *ps, float L[2][38][64], float R[2][38][64], int top); R 1684 libavcodec/aacsbr.c float* L, float* R) R 1703 libavcodec/aacsbr.c sbr_qmf_analysis(ac->fdsp, &sbr->mdct_ana, &sbr->dsp, ch ? R : L, sbr->data[ch].analysis_filterbank_samples, R 1756 libavcodec/aacsbr.c R, sbr->X[1], sbr->qmf_filter_scratch, R 47 libavcodec/aacsbr.h float* L, float *R); R 185 libavcodec/huffyuvdec.c map[i][R] = g + r; R 189 libavcodec/huffyuvdec.c map[i][R] = r; R 801 libavcodec/huffyuvdec.c s->temp[0][4 * i + R] = code + s->temp[0][4 * i + G]; R 813 libavcodec/huffyuvdec.c VLC_INTERN(s->temp[0][4 * i + R], s->vlc[2].table, R 1178 libavcodec/huffyuvdec.c left[R] = p->data[0][last_line + R] = get_bits(&s->gb, 8); R 1182 libavcodec/huffyuvdec.c left[R] = p->data[0][last_line + R] = get_bits(&s->gb, 8); R 88 libavcodec/huffyuvdsp.c uint8_t r = left[R], g = left[G], b = left[B], a = left[A]; R 93 libavcodec/huffyuvdsp.c r += src[4 * i + R]; R 98 libavcodec/huffyuvdsp.c dst[4 * i + R] = r; R 104 libavcodec/huffyuvdsp.c left[R] = r; R 106 libavcodec/huffyuvenc.c const int rt = src[i * 4 + R]; R 110 libavcodec/huffyuvenc.c dst[i * 4 + R] = rt - r; R 122 libavcodec/huffyuvenc.c *red = src[(w - 1) * 4 + R]; R 711 libavcodec/huffyuvenc.c int r =(s->temp[0][planes == 3 ? 3 * i + 0 : 4 * i + R] - g) & 0xFF;\ R 890 libavcodec/huffyuvenc.c put_bits(&s->pb, 8, leftr = data[R]); R 228 libavcodec/jpeglsdec.c Ra = x ? R(dst, x - stride) : R(last, x); R 229 libavcodec/jpeglsdec.c Rb = R(last, x); R 230 libavcodec/jpeglsdec.c Rc = x ? R(last, x - stride) : last2; R 231 libavcodec/jpeglsdec.c Rd = (x >= w - stride) ? R(last, x) : R(last, x + stride); R 278 libavcodec/jpeglsdec.c Rb = R(last, x); R 135 libavcodec/jpeglsenc.c Ra = x ? R(cur, x - stride) : R(last, x); R 136 libavcodec/jpeglsenc.c Rb = R(last, x); R 137 libavcodec/jpeglsenc.c Rc = x ? R(last, x - stride) : last2; R 138 libavcodec/jpeglsenc.c Rd = (x >= w - stride) ? R(last, x) : R(last, x + stride); R 151 libavcodec/jpeglsenc.c while (x < w && (FFABS(R(cur, x) - RUNval) <= state->near)) { R 159 libavcodec/jpeglsenc.c Rb = R(last, x); R 162 libavcodec/jpeglsenc.c err = R(cur, x) - pred; R 201 libavcodec/jpeglsenc.c err = pred - R(cur, x); R 205 libavcodec/jpeglsenc.c err = R(cur, x) - pred; R 388 libavcodec/wavpack.c int A, B, L, L2, R, R2; R 404 libavcodec/wavpack.c R = wv_get_value(s, gb, 1, &last); R 428 libavcodec/wavpack.c R2 = R + ((s->decorr[i].weightB * (int64_t)B + 512) >> 10); R 431 libavcodec/wavpack.c R2 = R + ((s->decorr[i].weightB * B + 512) >> 10); R 435 libavcodec/wavpack.c if (B && R) R 436 libavcodec/wavpack.c s->decorr[i].weightB -= ((((R ^ B) >> 30) & 2) - 1) * s->decorr[i].delta; R 438 libavcodec/wavpack.c s->decorr[i].samplesB[j] = R = R2; R 447 libavcodec/wavpack.c R2 = R + ((s->decorr[i].weightB * (int64_t)L2 + 512) >> 10); R 449 libavcodec/wavpack.c R2 = R + ((s->decorr[i].weightB * L2 + 512) >> 10); R 450 libavcodec/wavpack.c UPDATE_WEIGHT_CLIP(s->decorr[i].weightB, s->decorr[i].delta, L2, R); R 451 libavcodec/wavpack.c R = R2; R 452 libavcodec/wavpack.c s->decorr[i].samplesA[0] = R; R 455 libavcodec/wavpack.c R2 = R + ((s->decorr[i].weightB * (int64_t)s->decorr[i].samplesB[0] + 512) >> 10); R 457 libavcodec/wavpack.c R2 = R + ((s->decorr[i].weightB * s->decorr[i].samplesB[0] + 512) >> 10); R 458 libavcodec/wavpack.c UPDATE_WEIGHT_CLIP(s->decorr[i].weightB, s->decorr[i].delta, s->decorr[i].samplesB[0], R); R 459 libavcodec/wavpack.c R = R2; R 463 libavcodec/wavpack.c s->decorr[i].samplesA[0] = R; R 477 libavcodec/wavpack.c L += (R -= (L >> 1)); R 478 libavcodec/wavpack.c crc = (crc * 3 + L) * 3 + R; R 482 libavcodec/wavpack.c *dstfl_r++ = wv_get_value_float(s, &crc_extra_bits, R); R 485 libavcodec/wavpack.c *dst32_r++ = wv_get_value_integer(s, &crc_extra_bits, R); R 488 libavcodec/wavpack.c *dst16_r++ = wv_get_value_integer(s, &crc_extra_bits, R); R 369 libavcodec/wavpackenc.c int32_t R = samples_r[i]; R 372 libavcodec/wavpackenc.c magdata |= (R < 0) ? ~R : R; R 374 libavcodec/wavpackenc.c xordata |= R ^ -(R & 1); R 375 libavcodec/wavpackenc.c anddata &= L & R; R 376 libavcodec/wavpackenc.c ordata |= L | R; R 449 libavcodec/wavpackenc.c int32_t R = samples_r[i]; R 452 libavcodec/wavpackenc.c crc = crc * 9 + (R & 0xffff) * 3 + ((R >> 16) & 0xffff); R 454 libavcodec/wavpackenc.c magdata |= (R < 0) ? ~R : R; R 456 libavcodec/wavpackenc.c xordata |= R ^ -(R & 1); R 457 libavcodec/wavpackenc.c anddata &= L & R; R 458 libavcodec/wavpackenc.c ordata |= L | R; R 125 libavfilter/vf_colorbalance.c s->lut[R][i] = r; R 143 libavfilter/vf_colorbalance.c const uint8_t roffset = s->rgba_map[R]; R 170 libavfilter/vf_colorbalance.c dst[j + roffset] = s->lut[R][src[j + roffset]]; R 116 libavfilter/vf_colorchannelmixer.c s->lut[R][R][i] = round(i * s->rr); R 117 libavfilter/vf_colorchannelmixer.c s->lut[R][G][i] = round(i * s->rg); R 118 libavfilter/vf_colorchannelmixer.c s->lut[R][B][i] = round(i * s->rb); R 119 libavfilter/vf_colorchannelmixer.c s->lut[R][A][i] = round(i * s->ra); R 121 libavfilter/vf_colorchannelmixer.c s->lut[G][R][i] = round(i * s->gr); R 126 libavfilter/vf_colorchannelmixer.c s->lut[B][R][i] = round(i * s->br); R 131 libavfilter/vf_colorchannelmixer.c s->lut[A][R][i] = round(i * s->ar); R 145 libavfilter/vf_colorchannelmixer.c const uint8_t roffset = s->rgba_map[R]; R 178 libavfilter/vf_colorchannelmixer.c dst[j + roffset] = av_clip_uint8(s->lut[R][R][rin] + R 179 libavfilter/vf_colorchannelmixer.c s->lut[R][G][gin] + R 180 libavfilter/vf_colorchannelmixer.c s->lut[R][B][bin]); R 181 libavfilter/vf_colorchannelmixer.c dst[j + goffset] = av_clip_uint8(s->lut[G][R][rin] + R 184 libavfilter/vf_colorchannelmixer.c dst[j + boffset] = av_clip_uint8(s->lut[B][R][rin] + R 206 libavfilter/vf_colorchannelmixer.c dst[j + roffset] = av_clip_uint8(s->lut[R][R][rin] + R 207 libavfilter/vf_colorchannelmixer.c s->lut[R][G][gin] + R 208 libavfilter/vf_colorchannelmixer.c s->lut[R][B][bin]); R 209 libavfilter/vf_colorchannelmixer.c dst[j + goffset] = av_clip_uint8(s->lut[G][R][rin] + R 212 libavfilter/vf_colorchannelmixer.c dst[j + boffset] = av_clip_uint8(s->lut[B][R][rin] + R 237 libavfilter/vf_colorchannelmixer.c dst[j + roffset] = av_clip_uint8(s->lut[R][R][rin] + R 238 libavfilter/vf_colorchannelmixer.c s->lut[R][G][gin] + R 239 libavfilter/vf_colorchannelmixer.c s->lut[R][B][bin] + R 240 libavfilter/vf_colorchannelmixer.c s->lut[R][A][ain]); R 241 libavfilter/vf_colorchannelmixer.c dst[j + goffset] = av_clip_uint8(s->lut[G][R][rin] + R 245 libavfilter/vf_colorchannelmixer.c dst[j + boffset] = av_clip_uint8(s->lut[B][R][rin] + R 249 libavfilter/vf_colorchannelmixer.c dst[j + aoffset] = av_clip_uint8(s->lut[A][R][rin] + R 270 libavfilter/vf_colorchannelmixer.c dst[j + roffset] = av_clip_uint16(s->lut[R][R][rin] + R 271 libavfilter/vf_colorchannelmixer.c s->lut[R][G][gin] + R 272 libavfilter/vf_colorchannelmixer.c s->lut[R][B][bin]); R 273 libavfilter/vf_colorchannelmixer.c dst[j + goffset] = av_clip_uint16(s->lut[G][R][rin] + R 276 libavfilter/vf_colorchannelmixer.c dst[j + boffset] = av_clip_uint16(s->lut[B][R][rin] + R 297 libavfilter/vf_colorchannelmixer.c dst[j + roffset] = av_clip_uint16(s->lut[R][R][rin] + R 298 libavfilter/vf_colorchannelmixer.c s->lut[R][G][gin] + R 299 libavfilter/vf_colorchannelmixer.c s->lut[R][B][bin] + R 300 libavfilter/vf_colorchannelmixer.c s->lut[R][A][ain]); R 301 libavfilter/vf_colorchannelmixer.c dst[j + goffset] = av_clip_uint16(s->lut[G][R][rin] + R 305 libavfilter/vf_colorchannelmixer.c dst[j + boffset] = av_clip_uint16(s->lut[B][R][rin] + R 309 libavfilter/vf_colorchannelmixer.c dst[j + aoffset] = av_clip_uint16(s->lut[A][R][rin] + R 53 libavfilter/vf_colorlevels.c { "rimin", "set input red black point", OFFSET(range[R].in_min), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -1, 1, FLAGS }, R 57 libavfilter/vf_colorlevels.c { "rimax", "set input red white point", OFFSET(range[R].in_max), AV_OPT_TYPE_DOUBLE, {.dbl=1}, -1, 1, FLAGS }, R 61 libavfilter/vf_colorlevels.c { "romin", "set output red black point", OFFSET(range[R].out_min), AV_OPT_TYPE_DOUBLE, {.dbl=0}, 0, 1, FLAGS }, R 65 libavfilter/vf_colorlevels.c { "romax", "set output red white point", OFFSET(range[R].out_max), AV_OPT_TYPE_DOUBLE, {.dbl=1}, 0, 1, FLAGS }, R 491 libavfilter/vf_curves.c const uint8_t r = curves->rgba_map[R]; R 502 libavfilter/vf_curves.c dst[x + r] = curves->graph[R][src[x + r]]; R 129 libavfilter/vf_elbg.c const uint8_t r_idx = elbg->rgba_map[R]; R 161 libavfilter/vf_fade.c const uint8_t r_idx = s->rgba_map[R]; R 59 libavfilter/vf_geq.c { "red_expr", "set red expression", OFFSET(expr_str[R]), AV_OPT_TYPE_STRING, {.str=NULL}, CHAR_MIN, CHAR_MAX, FLAGS }, R 60 libavfilter/vf_geq.c { "r", "set red expression", OFFSET(expr_str[R]), AV_OPT_TYPE_STRING, {.str=NULL}, CHAR_MIN, CHAR_MAX, FLAGS }, R 108 libavfilter/vf_geq.c if (!geq->expr_str[Y] && !geq->expr_str[G] && !geq->expr_str[B] && !geq->expr_str[R]) { R 115 libavfilter/vf_geq.c if ((geq->expr_str[Y] || geq->expr_str[U] || geq->expr_str[V]) && (geq->expr_str[G] || geq->expr_str[B] || geq->expr_str[R])) { R 137 libavfilter/vf_geq.c if (!geq->expr_str[R]) R 138 libavfilter/vf_geq.c geq->expr_str[R] = av_strdup("r(X,Y)"); R 141 libavfilter/vf_geq.c (!geq->expr_str[G] || !geq->expr_str[B] || !geq->expr_str[R]) R 125 libavfilter/vf_histeq.c r = src[x + map[R]]; \ R 234 libavfilter/vf_histeq.c dst[x + histeq->rgba_map[R]] = r; R 91 libavfilter/vf_lut.c { "r", "set R expression", OFFSET(comp_expr_str[R]), AV_OPT_TYPE_STRING, { .str = "val" }, .flags = FLAGS }, R 211 libavfilter/vf_lut3d.c const uint8_t r = lut3d->rgba_map[R]; \ R 381 libavfilter/vf_overlay.c const int dr = s->main_rgba_map[R]; R 386 libavfilter/vf_overlay.c const int sr = s->overlay_rgba_map[R]; R 703 libavfilter/vsrc_testsrc.c v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)); R 711 libavfilter/vsrc_testsrc.c v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)) + (255 << (rgba_map[A]*8)); R 55 libswresample/rematrix_template.c out[i] = R(coeff1*in1[i] + coeff2*in2[i]); R 62 libswresample/rematrix_template.c out[i] = R(coeff*in[i]); R 70 libswresample/rematrix_template.c out[0][i] = R(t + in[0][i]*(INTER)coeffp[0*6+0] + in[4][i]*(INTER)coeffp[0*6+4]); R 71 libswresample/rematrix_template.c out[1][i] = R(t + in[1][i]*(INTER)coeffp[1*6+1] + in[5][i]*(INTER)coeffp[1*6+5]); R 80 libswresample/rematrix_template.c out[0][i] = R(t + in[0][i]*(INTER)coeffp[0*8+0] + in[4][i]*(INTER)coeffp[0*8+4] + in[6][i]*(INTER)coeffp[0*8+6]); R 81 libswresample/rematrix_template.c out[1][i] = R(t + in[1][i]*(INTER)coeffp[1*8+1] + in[5][i]*(INTER)coeffp[1*8+5] + in[7][i]*(INTER)coeffp[1*8+7]); R 57 libswscale/bayer_template.c R(0, 0) = \ R 58 libswscale/bayer_template.c R(0, 1) = \ R 59 libswscale/bayer_template.c R(1, 1) = \ R 60 libswscale/bayer_template.c R(1, 0) = S(1, 1) >> BAYER_SHIFT; \ R 72 libswscale/bayer_template.c R(0, 0) = (T(-1, -1) + T(-1, 1) + T(1, -1) + T(1, 1)) >> (2 + BAYER_SHIFT); \ R 76 libswscale/bayer_template.c R(0, 1) = (T(-1, 1) + T(1, 1)) >> (1 + BAYER_SHIFT); \ R 80 libswscale/bayer_template.c R(1, 0) = (T(1, -1) + T(1, 1)) >> (1 + BAYER_SHIFT); \ R 84 libswscale/bayer_template.c R(1, 1) = S(1, 1) >> BAYER_SHIFT; \ R 89 libswscale/bayer_template.c R(0, 0) = \ R 90 libswscale/bayer_template.c R(0, 1) = \ R 91 libswscale/bayer_template.c R(1, 1) = \ R 92 libswscale/bayer_template.c R(1, 0) = S(1, 0) >> BAYER_SHIFT; \ R 104 libswscale/bayer_template.c R(0, 0) = (T(-1, 0) + T(1, 0)) >> (1 + BAYER_SHIFT); \ R 108 libswscale/bayer_template.c R(0, 1) = (T(-1, 0) + T(-1, 2) + T(1, 0) + T(1, 2)) >> (2 + BAYER_SHIFT); \ R 112 libswscale/bayer_template.c R(1, 0) = S(1, 0) >> BAYER_SHIFT; \ R 116 libswscale/bayer_template.c R(1, 1) = (T(1, 0) + T(1, 2)) >> (1 + BAYER_SHIFT); \ R 672 libswscale/output.c #define R_B ((target == AV_PIX_FMT_RGB48LE || target == AV_PIX_FMT_RGB48BE || target == AV_PIX_FMT_RGBA64LE || target == AV_PIX_FMT_RGBA64BE) ? R : B) R 673 libswscale/output.c #define B_R ((target == AV_PIX_FMT_RGB48LE || target == AV_PIX_FMT_RGB48BE || target == AV_PIX_FMT_RGBA64LE || target == AV_PIX_FMT_RGBA64BE) ? B : R) R 698 libswscale/output.c int R, G, B; R 739 libswscale/output.c R = V * c->yuv2rgb_v2r_coeff; R 778 libswscale/output.c int R, G, B; R 787 libswscale/output.c R = V * c->yuv2rgb_v2r_coeff; R 827 libswscale/output.c int R, G, B; R 844 libswscale/output.c R = V * c->yuv2rgb_v2r_coeff; R 866 libswscale/output.c int R, G, B; R 883 libswscale/output.c R = V * c->yuv2rgb_v2r_coeff; R 916 libswscale/output.c int R, G, B; R 944 libswscale/output.c R = V * c->yuv2rgb_v2r_coeff; R 978 libswscale/output.c int R, G, B; R 987 libswscale/output.c R = V * c->yuv2rgb_v2r_coeff; R 1016 libswscale/output.c int R, G, B; R 1025 libswscale/output.c R = V * c->yuv2rgb_v2r_coeff; R 1044 libswscale/output.c int R, G, B; R 1053 libswscale/output.c R = V * c->yuv2rgb_v2r_coeff; R 1465 libswscale/output.c int R, G, B; R 1471 libswscale/output.c R = Y + V*c->yuv2rgb_v2r_coeff; R 1474 libswscale/output.c if ((R | G | B) & 0xC0000000) { R 1475 libswscale/output.c R = av_clip_uintp2(R, 30); R 1483 libswscale/output.c dest[1] = R >> 22; R 1488 libswscale/output.c dest[0] = R >> 22; R 1493 libswscale/output.c dest[0] = R >> 22; R 1502 libswscale/output.c dest[3] = R >> 22; R 1507 libswscale/output.c dest[2] = R >> 22; R 1512 libswscale/output.c dest[2] = R >> 22; R 1526 libswscale/output.c R >>= 22; R 1529 libswscale/output.c R += (7*err[0] + 1*c->dither_error[0][i] + 5*c->dither_error[0][i+1] + 3*c->dither_error[0][i+2])>>4; R 1535 libswscale/output.c r = R >> (isrgb8 ? 5 : 7); R 1541 libswscale/output.c err[0] = R - r*(isrgb8 ? 36 : 255); R 1549 libswscale/output.c r = (((R >> 19) + A_DITHER(i,y) -96)>>8); R 1556 libswscale/output.c r = (((R >> 21) + A_DITHER(i,y)-256)>>8); R 1568 libswscale/output.c r = (((R >> 19) + X_DITHER(i,y) - 96)>>8); R 1575 libswscale/output.c r = (((R >> 21) + X_DITHER(i,y)-256)>>8); R 1793 libswscale/output.c int R, G, B; R 1822 libswscale/output.c R = Y + V * c->yuv2rgb_v2r_coeff; R 1826 libswscale/output.c if ((R | G | B) & 0xC0000000) { R 1827 libswscale/output.c R = av_clip_uintp2(R, 30); R 1835 libswscale/output.c dest16[2][i] = R >> SH; R 1841 libswscale/output.c dest[2][i] = R >> 22; R 253 libswscale/ppc/yuv2rgb_altivec.c vector signed short *R, vector signed short *G, R 270 libswscale/ppc/yuv2rgb_altivec.c *R = vec_mradds(vx, c->CRV, Y); R 303 libswscale/ppc/yuv2rgb_altivec.c vector unsigned char R, G, B; \ R 406 libswscale/ppc/yuv2rgb_altivec.c R = vec_packclp(R0, R1); \ R 410 libswscale/ppc/yuv2rgb_altivec.c out_pixels(R, G, B, oute); \ R 418 libswscale/ppc/yuv2rgb_altivec.c R = vec_packclp(R0, R1); \ R 423 libswscale/ppc/yuv2rgb_altivec.c out_pixels(R, G, B, outo); \ R 486 libswscale/ppc/yuv2rgb_altivec.c vector unsigned char R, G, B; R 517 libswscale/ppc/yuv2rgb_altivec.c R = vec_packclp(R0, R1); R 522 libswscale/ppc/yuv2rgb_altivec.c out_rgba(R, G, B, out); R 652 libswscale/ppc/yuv2rgb_altivec.c vector unsigned char R, G, B; R 716 libswscale/ppc/yuv2rgb_altivec.c R = vec_packclp(R0, R1); R 722 libswscale/ppc/yuv2rgb_altivec.c out_abgr(R, G, B, out); R 725 libswscale/ppc/yuv2rgb_altivec.c out_bgra(R, G, B, out); R 728 libswscale/ppc/yuv2rgb_altivec.c out_rgba(R, G, B, out); R 731 libswscale/ppc/yuv2rgb_altivec.c out_argb(R, G, B, out); R 734 libswscale/ppc/yuv2rgb_altivec.c out_rgb24(R, G, B, out); R 737 libswscale/ppc/yuv2rgb_altivec.c out_bgr24(R, G, B, out); R 807 libswscale/ppc/yuv2rgb_altivec.c R = vec_packclp(R0, R1); R 814 libswscale/ppc/yuv2rgb_altivec.c out_abgr(R, G, B, nout); R 817 libswscale/ppc/yuv2rgb_altivec.c out_bgra(R, G, B, nout); R 820 libswscale/ppc/yuv2rgb_altivec.c out_rgba(R, G, B, nout); R 823 libswscale/ppc/yuv2rgb_altivec.c out_argb(R, G, B, nout); R 826 libswscale/ppc/yuv2rgb_altivec.c out_rgb24(R, G, B, nout); R 829 libswscale/ppc/yuv2rgb_altivec.c out_bgr24(R, G, B, nout);