b 1372 cmdutils.c static int compare_codec_desc(const void *a, const void *b) b 1375 cmdutils.c const AVCodecDescriptor * const *db = b; b 206 cmdutils_opencl.c static int compare_ocl_device_desc(const void *a, const void *b) b 208 cmdutils_opencl.c return ((OpenCLDeviceBenchmark*)a)->runtime - ((OpenCLDeviceBenchmark*)b)->runtime; b 55 compat/avisynth/windowsPorts/windows2linux.h #define MAKEDWORD(a,b,c,d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d)) b 56 compat/avisynth/windowsPorts/windows2linux.h #define MAKEWORD(a,b) (((a) << 8) | (b)) b 67 compat/avisynth/windowsPorts/windows2linux.h #define UInt32x32To64(a, b) ( (uint64_t) ( ((uint64_t)((uint32_t)(a))) * ((uint32_t)(b)) ) ) b 68 compat/avisynth/windowsPorts/windows2linux.h #define Int64ShrlMod32(a, b) ( (uint64_t) ( (uint64_t)(a) >> (b) ) ) b 69 compat/avisynth/windowsPorts/windows2linux.h #define Int32x32To64(a, b) ((__int64)(((__int64)((long)(a))) * ((long)(b)))) b 70 compat/w32pthreads.h #define WaitForSingleObject(a, b) WaitForSingleObjectEx(a, b, FALSE) b 538 ffmpeg.c void remove_avoptions(AVDictionary **a, AVDictionary *b) b 542 ffmpeg.c while ((t = av_dict_get(b, "", t, AV_DICT_IGNORE_SUFFIX))) { b 2439 ffmpeg.c static int compare_int64(const void *a, const void *b) b 2441 ffmpeg.c int64_t va = *(int64_t *)a, vb = *(int64_t *)b; b 520 ffmpeg.h void remove_avoptions(AVDictionary **a, AVDictionary *b); b 831 ffplay.c #define RGBA_IN(r, g, b, a, s)\ b 837 ffplay.c b = v & 0xff;\ b 1142 ffplay.c static inline int compute_mod(int a, int b) b 1144 ffplay.c return a < 0 ? a%b + b : a%b; b 1184 ffplay.c int b = s->sample_array[(idx + 4 * channels) % SAMPLE_ARRAY_SIZE]; b 1188 ffplay.c if (h < score && (b ^ c) < 0) { b 1272 ffplay.c int b = (nb_display_channels == 2 ) ? sqrt(w * sqrt(data[1][2 * y + 0] * data[1][2 * y + 0] b 1275 ffplay.c b = FFMIN(b, 255); b 1276 ffplay.c fgcolor = SDL_MapRGB(screen->format, a, b, (a + b) / 2); b 2323 ffplay.c int r, g, b, y, u, v, a; b 2344 ffplay.c RGBA_IN(r, g, b, a, (uint32_t*)sp->sub.rects[i]->pict.data[1] + j); b 2345 ffplay.c y = RGB_TO_Y_CCIR(r, g, b); b 2346 ffplay.c u = RGB_TO_U_CCIR(r, g, b, 0); b 2347 ffplay.c v = RGB_TO_V_CCIR(r, g, b, 0); b 105 libavcodec/a64multienc.c int a, b; b 120 libavcodec/a64multienc.c for(b = 0; b <= distance; b++) { b 121 libavcodec/a64multienc.c dither[c->mc_luma_vals[i] + b] = b * (DITHERSTEPS - 1) / distance; b 795 libavcodec/aaccoder.c int b; b 803 libavcodec/aaccoder.c &b); b 804 libavcodec/aaccoder.c bits += b; b 960 libavcodec/aaccoder.c int b; b 968 libavcodec/aaccoder.c &b); b 969 libavcodec/aaccoder.c dist -= b; b 1774 libavcodec/aacdec.c uint32_t b; b 1779 libavcodec/aacdec.c b = GET_CACHE(re, gb); b 1780 libavcodec/aacdec.c b = 31 - av_log2(~b); b 1782 libavcodec/aacdec.c if (b > 8) { b 1787 libavcodec/aacdec.c SKIP_BITS(re, gb, b + 1); b 1788 libavcodec/aacdec.c b += 4; b 1789 libavcodec/aacdec.c n = (1 << b) + SHOW_UBITS(re, gb, b); b 1790 libavcodec/aacdec.c LAST_SKIP_BITS(re, gb, b); b 3204 libavcodec/aacdec.c static inline uint32_t latm_get_value(GetBitContext *b) b 3206 libavcodec/aacdec.c int length = get_bits(b, 2); b 3208 libavcodec/aacdec.c return get_bits_long(b, (length+1)*8); b 89 libavcodec/aacps.c int b, num = ps->nr_ ## PAR ## _par; \ b 94 libavcodec/aacps.c for (b = 0; b < num; b++) { \ b 95 libavcodec/aacps.c int val = PAR[e_prev][b] + get_vlc2(gb, vlc_table, 9, 3) - OFFSET; \ b 97 libavcodec/aacps.c PAR[e][b] = val; \ b 103 libavcodec/aacps.c for (b = 0; b < num; b++) { \ b 106 libavcodec/aacps.c PAR[e][b] = val; \ b 117 libavcodec/aacps.c READ_PAR_DATA(iid, huff_offset[table_idx], 0, FFABS(ps->iid_par[e][b]) > 7 + 8 * ps->iid_quant) b 118 libavcodec/aacps.c READ_PAR_DATA(icc, huff_offset[table_idx], 0, ps->icc_par[e][b] > 7U) b 239 libavcodec/aacps.c int b; b 253 libavcodec/aacps.c for (b = 0; b < ps->nr_iid_par; b++) { b 254 libavcodec/aacps.c if (FFABS(ps->iid_par[ps->num_env][b]) > 7 + 8 * ps->iid_quant) { b 261 libavcodec/aacps.c for (b = 0; b < ps->nr_iid_par; b++) { b 262 libavcodec/aacps.c if (ps->icc_par[ps->num_env][b] > 7U) { b 448 libavcodec/aacps.c int b; b 450 libavcodec/aacps.c b = 9; b 452 libavcodec/aacps.c b = 4; b 455 libavcodec/aacps.c for (; b >= 0; b--) { b 456 libavcodec/aacps.c par_mapped[2*b+1] = par_mapped[2*b] = par[b]; b 683 libavcodec/aacps.c int b = k_to_i[k]; b 694 libavcodec/aacps.c transient_gain[b], g_decay_slope, nL - n0); b 754 libavcodec/aacps.c int e, b, k; b 825 libavcodec/aacps.c for (b = 0; b < NR_PAR_BANDS[is34]; b++) { b 827 libavcodec/aacps.c h11 = H_LUT[iid_mapped[e][b] + 7 + 23 * ps->iid_quant][icc_mapped[e][b]][0]; b 828 libavcodec/aacps.c h12 = H_LUT[iid_mapped[e][b] + 7 + 23 * ps->iid_quant][icc_mapped[e][b]][1]; b 829 libavcodec/aacps.c h21 = H_LUT[iid_mapped[e][b] + 7 + 23 * ps->iid_quant][icc_mapped[e][b]][2]; b 830 libavcodec/aacps.c h22 = H_LUT[iid_mapped[e][b] + 7 + 23 * ps->iid_quant][icc_mapped[e][b]][3]; b 832 libavcodec/aacps.c if (!PS_BASELINE && ps->enable_ipdopd && b < NR_IPDOPD_BANDS[is34]) { b 837 libavcodec/aacps.c int opd_idx = opd_hist[b] * 8 + opd_mapped[e][b]; b 838 libavcodec/aacps.c int ipd_idx = ipd_hist[b] * 8 + ipd_mapped[e][b]; b 843 libavcodec/aacps.c opd_hist[b] = opd_idx & 0x3F; b 844 libavcodec/aacps.c ipd_hist[b] = ipd_idx & 0x3F; b 856 libavcodec/aacps.c H11[1][e+1][b] = h11i; b 857 libavcodec/aacps.c H12[1][e+1][b] = h12i; b 858 libavcodec/aacps.c H21[1][e+1][b] = h21i; b 859 libavcodec/aacps.c H22[1][e+1][b] = h22i; b 861 libavcodec/aacps.c H11[0][e+1][b] = h11; b 862 libavcodec/aacps.c H12[0][e+1][b] = h12; b 863 libavcodec/aacps.c H21[0][e+1][b] = h21; b 864 libavcodec/aacps.c H22[0][e+1][b] = h22; b 872 libavcodec/aacps.c b = k_to_i[k]; b 873 libavcodec/aacps.c h[0][0] = H11[0][e][b]; b 874 libavcodec/aacps.c h[0][1] = H12[0][e][b]; b 875 libavcodec/aacps.c h[0][2] = H21[0][e][b]; b 876 libavcodec/aacps.c h[0][3] = H22[0][e][b]; b 880 libavcodec/aacps.c h[1][0] = -H11[1][e][b]; b 881 libavcodec/aacps.c h[1][1] = -H12[1][e][b]; b 882 libavcodec/aacps.c h[1][2] = -H21[1][e][b]; b 883 libavcodec/aacps.c h[1][3] = -H22[1][e][b]; b 885 libavcodec/aacps.c h[1][0] = H11[1][e][b]; b 886 libavcodec/aacps.c h[1][1] = H12[1][e][b]; b 887 libavcodec/aacps.c h[1][2] = H21[1][e][b]; b 888 libavcodec/aacps.c h[1][3] = H22[1][e][b]; b 892 libavcodec/aacps.c h_step[0][0] = (H11[0][e+1][b] - h[0][0]) * width; b 893 libavcodec/aacps.c h_step[0][1] = (H12[0][e+1][b] - h[0][1]) * width; b 894 libavcodec/aacps.c h_step[0][2] = (H21[0][e+1][b] - h[0][2]) * width; b 895 libavcodec/aacps.c h_step[0][3] = (H22[0][e+1][b] - h[0][3]) * width; b 897 libavcodec/aacps.c h_step[1][0] = (H11[1][e+1][b] - h[1][0]) * width; b 898 libavcodec/aacps.c h_step[1][1] = (H12[1][e+1][b] - h[1][1]) * width; b 899 libavcodec/aacps.c h_step[1][2] = (H21[1][e+1][b] - h[1][2]) * width; b 900 libavcodec/aacps.c h_step[1][3] = (H22[1][e+1][b] - h[1][3]) * width; b 28 libavcodec/aacps_tablegen.c void write_float_3d_array (const void *p, int b, int c, int d) b 32 libavcodec/aacps_tablegen.c for (i = 0; i < b; i++) { b 40 libavcodec/aacps_tablegen.c void write_float_4d_array (const void *p, int a, int b, int c, int d) b 46 libavcodec/aacps_tablegen.c write_float_3d_array(f, b, c, d); b 48 libavcodec/aacps_tablegen.c f += b * c * d; b 167 libavcodec/aacsbr.c static int qsort_comparison_function_int16(const void *a, const void *b) b 169 libavcodec/aacsbr.c return *(const int16_t *)a - *(const int16_t *)b; b 69 libavcodec/ac3.h #define AC3_MUL(a,b) ((((int64_t) (a)) * (b))>>12) b 88 libavcodec/ac3.h #define AC3_MUL(a,b) ((a) * (b)) b 1546 libavcodec/ac3enc.c int b, q; b 1555 libavcodec/ac3enc.c b = s->ref_bap[ch][blk][i]; b 1556 libavcodec/ac3enc.c switch (b) { b 1564 libavcodec/ac3enc.c default: put_sbits(&s->pb, b-1, q); break; b 1577 libavcodec/ac3enc.c static unsigned int mul_poly(unsigned int a, unsigned int b, unsigned int poly) b 1584 libavcodec/ac3enc.c c ^= b; b 1586 libavcodec/ac3enc.c b = b << 1; b 1587 libavcodec/ac3enc.c if (b & (1 << 16)) b 1588 libavcodec/ac3enc.c b ^= poly; b 57 libavcodec/ac3enc.h #define MAC_COEF(d,a,b) ((d)+=(a)*(b)) b 66 libavcodec/ac3enc.h #define MAC_COEF(d,a,b) MAC64(d,a,b) b 28 libavcodec/adx.c double a, b, c; b 31 libavcodec/adx.c b = M_SQRT2 - 1.0; b 32 libavcodec/adx.c c = (a - sqrt((a + b) * (a - b))) / b; b 239 libavcodec/alac.c int32_t a, b; b 242 libavcodec/alac.c b = buffer[1][i]; b 244 libavcodec/alac.c a -= (b * decorr_left_weight) >> decorr_shift; b 245 libavcodec/alac.c b += a; b 247 libavcodec/alac.c buffer[0][i] = b; b 94 libavcodec/alpha/asm.h #define extql(a, b) __builtin_alpha_extql(a, (uint64_t) (b)) b 95 libavcodec/alpha/asm.h #define extwl(a, b) __builtin_alpha_extwl(a, (uint64_t) (b)) b 96 libavcodec/alpha/asm.h #define extqh(a, b) __builtin_alpha_extqh(a, (uint64_t) (b)) b 107 libavcodec/alpha/asm.h #define cmpbge(a, b) ({ uint64_t __r; __asm__ ("cmpbge %r1,%2,%0" : "=r" (__r) : "rJ" (a), "rI" (b)); __r; }) b 108 libavcodec/alpha/asm.h #define extql(a, b) ({ uint64_t __r; __asm__ ("extql %r1,%2,%0" : "=r" (__r) : "rJ" (a), "rI" (b)); __r; }) b 109 libavcodec/alpha/asm.h #define extwl(a, b) ({ uint64_t __r; __asm__ ("extwl %r1,%2,%0" : "=r" (__r) : "rJ" (a), "rI" (b)); __r; }) b 110 libavcodec/alpha/asm.h #define extqh(a, b) ({ uint64_t __r; __asm__ ("extqh %r1,%2,%0" : "=r" (__r) : "rJ" (a), "rI" (b)); __r; }) b 111 libavcodec/alpha/asm.h #define zap(a, b) ({ uint64_t __r; __asm__ ("zap %r1,%2,%0" : "=r" (__r) : "rJ" (a), "rI" (b)); __r; }) b 112 libavcodec/alpha/asm.h #define zapnot(a, b) ({ uint64_t __r; __asm__ ("zapnot %r1,%2,%0" : "=r" (__r) : "rJ" (a), "rI" (b)); __r; }) b 134 libavcodec/alpha/asm.h #define minub8(a, b) ({ uint64_t __r; __asm__ (".arch ev6; minub8 %r1,%2,%0" : "=r" (__r) : "%rJ" (a), "rI" (b)); __r; }) b 135 libavcodec/alpha/asm.h #define minsb8(a, b) ({ uint64_t __r; __asm__ (".arch ev6; minsb8 %r1,%2,%0" : "=r" (__r) : "%rJ" (a), "rI" (b)); __r; }) b 136 libavcodec/alpha/asm.h #define minuw4(a, b) ({ uint64_t __r; __asm__ (".arch ev6; minuw4 %r1,%2,%0" : "=r" (__r) : "%rJ" (a), "rI" (b)); __r; }) b 137 libavcodec/alpha/asm.h #define minsw4(a, b) ({ uint64_t __r; __asm__ (".arch ev6; minsw4 %r1,%2,%0" : "=r" (__r) : "%rJ" (a), "rI" (b)); __r; }) b 138 libavcodec/alpha/asm.h #define maxub8(a, b) ({ uint64_t __r; __asm__ (".arch ev6; maxub8 %r1,%2,%0" : "=r" (__r) : "%rJ" (a), "rI" (b)); __r; }) b 139 libavcodec/alpha/asm.h #define maxsb8(a, b) ({ uint64_t __r; __asm__ (".arch ev6; maxsb8 %r1,%2,%0" : "=r" (__r) : "%rJ" (a), "rI" (b)); __r; }) b 140 libavcodec/alpha/asm.h #define maxuw4(a, b) ({ uint64_t __r; __asm__ (".arch ev6; maxuw4 %r1,%2,%0" : "=r" (__r) : "%rJ" (a), "rI" (b)); __r; }) b 141 libavcodec/alpha/asm.h #define maxsw4(a, b) ({ uint64_t __r; __asm__ (".arch ev6; maxsw4 %r1,%2,%0" : "=r" (__r) : "%rJ" (a), "rI" (b)); __r; }) b 142 libavcodec/alpha/asm.h #define perr(a, b) ({ uint64_t __r; __asm__ (".arch ev6; perr %r1,%r2,%0" : "=r" (__r) : "%rJ" (a), "rJ" (b)); __r; }) b 158 libavcodec/alpha/asm.h #define cmpbge(a, b) asm ("cmpbge %a0,%a1,%v0", a, b) b 159 libavcodec/alpha/asm.h #define extql(a, b) asm ("extql %a0,%a1,%v0", a, b) b 160 libavcodec/alpha/asm.h #define extwl(a, b) asm ("extwl %a0,%a1,%v0", a, b) b 161 libavcodec/alpha/asm.h #define extqh(a, b) asm ("extqh %a0,%a1,%v0", a, b) b 162 libavcodec/alpha/asm.h #define zap(a, b) asm ("zap %a0,%a1,%v0", a, b) b 163 libavcodec/alpha/asm.h #define zapnot(a, b) asm ("zapnot %a0,%a1,%v0", a, b) b 167 libavcodec/alpha/asm.h #define minub8(a, b) asm ("minub8 %a0,%a1,%v0", a, b) b 168 libavcodec/alpha/asm.h #define minsb8(a, b) asm ("minsb8 %a0,%a1,%v0", a, b) b 169 libavcodec/alpha/asm.h #define minuw4(a, b) asm ("minuw4 %a0,%a1,%v0", a, b) b 170 libavcodec/alpha/asm.h #define minsw4(a, b) asm ("minsw4 %a0,%a1,%v0", a, b) b 171 libavcodec/alpha/asm.h #define maxub8(a, b) asm ("maxub8 %a0,%a1,%v0", a, b) b 172 libavcodec/alpha/asm.h #define maxsb8(a, b) asm ("maxsb8 %a0,%a1,%v0", a, b) b 173 libavcodec/alpha/asm.h #define maxuw4(a, b) asm ("maxuw4 %a0,%a1,%v0", a, b) b 174 libavcodec/alpha/asm.h #define maxsw4(a, b) asm ("maxsw4 %a0,%a1,%v0", a, b) b 175 libavcodec/alpha/asm.h #define perr(a, b) asm ("perr %a0,%a1,%v0", a, b) b 27 libavcodec/alpha/hpeldsp_alpha.c static inline uint64_t avg2_no_rnd(uint64_t a, uint64_t b) b 29 libavcodec/alpha/hpeldsp_alpha.c return (a & b) + (((a ^ b) & BYTE_VEC(0xfe)) >> 1); b 32 libavcodec/alpha/hpeldsp_alpha.c static inline uint64_t avg2(uint64_t a, uint64_t b) b 34 libavcodec/alpha/hpeldsp_alpha.c return (a | b) - (((a ^ b) & BYTE_VEC(0xfe)) >> 1); b 148 libavcodec/alpha/hpeldsp_alpha.c #define STORE(l, b) stq(l, b) b 152 libavcodec/alpha/hpeldsp_alpha.c #define STORE(l, b) stq(AVG2(l, ldq(b)), b); b 163 libavcodec/alpha/hpeldsp_alpha.c #define STORE(l, b) stq(l, b) b 167 libavcodec/alpha/hpeldsp_alpha.c #define STORE(l, b) stq(AVG2(l, ldq(b)), b); b 28 libavcodec/alpha/me_cmp_alpha.c static inline uint64_t avg2(uint64_t a, uint64_t b) b 30 libavcodec/alpha/me_cmp_alpha.c return (a | b) - (((a ^ b) & BYTE_VEC(0xfe)) >> 1); b 517 libavcodec/alsdec.c unsigned int b; b 543 libavcodec/alsdec.c for (b = 0; b < ctx->num_blocks; b++) b 544 libavcodec/alsdec.c div_blocks[b] = ctx->sconf.frame_length >> div_blocks[b]; b 549 libavcodec/alsdec.c for (b = 0; b < ctx->num_blocks; b++) { b 550 libavcodec/alsdec.c if (remaining <= div_blocks[b]) { b 551 libavcodec/alsdec.c div_blocks[b] = remaining; b 552 libavcodec/alsdec.c ctx->num_blocks = b + 1; b 556 libavcodec/alsdec.c remaining -= div_blocks[b]; b 792 libavcodec/alsdec.c unsigned int b = av_clip((av_ceil_log2(bd->block_length) - 3) >> 1, 0, 5); b 806 libavcodec/alsdec.c k [sb] = s[sb] > b ? s[sb] - b : 0; b 1043 libavcodec/alsdec.c static void zero_remaining(unsigned int b, unsigned int b_max, b 1048 libavcodec/alsdec.c while (b < b_max) b 1049 libavcodec/alsdec.c count += div_blocks[b++]; b 1063 libavcodec/alsdec.c unsigned int b; b 1080 libavcodec/alsdec.c for (b = 0; b < ctx->num_blocks; b++) { b 1081 libavcodec/alsdec.c bd.block_length = div_blocks[b]; b 1085 libavcodec/alsdec.c zero_remaining(b, ctx->num_blocks, div_blocks, bd.raw_samples); b 1088 libavcodec/alsdec.c bd.raw_samples += div_blocks[b]; b 1104 libavcodec/alsdec.c unsigned int b; b 1135 libavcodec/alsdec.c for (b = 0; b < ctx->num_blocks; b++) { b 1138 libavcodec/alsdec.c bd[0].block_length = div_blocks[b]; b 1139 libavcodec/alsdec.c bd[1].block_length = div_blocks[b]; b 1156 libavcodec/alsdec.c for (s = 0; s < div_blocks[b]; s++) b 1159 libavcodec/alsdec.c for (s = 0; s < div_blocks[b]; s++) b 1163 libavcodec/alsdec.c offset += div_blocks[b]; b 1177 libavcodec/alsdec.c zero_remaining(b, ctx->num_blocks, div_blocks, bd[0].raw_samples); b 1178 libavcodec/alsdec.c zero_remaining(b, ctx->num_blocks, div_blocks, bd[1].raw_samples); b 1383 libavcodec/alsdec.c int b, ret; b 1400 libavcodec/alsdec.c for (b = 0; b < ctx->num_blocks; b++) { b 1401 libavcodec/alsdec.c bd.block_length = div_blocks[b]; b 1451 libavcodec/alsdec.c offset += div_blocks[b]; b 103 libavcodec/ansi.c int r, g, b; b 109 libavcodec/ansi.c for (b = 0; b < 6; b++) b 110 libavcodec/ansi.c *pal++ = 0xFF000000 | (COLOR(r) << 16) | (COLOR(g) << 8) | COLOR(b); b 33 libavcodec/arm/mathops.h static inline av_const int MULH(int a, int b) b 36 libavcodec/arm/mathops.h __asm__ ("smmul %0, %1, %2" : "=r"(r) : "r"(a), "r"(b)); b 41 libavcodec/arm/mathops.h static av_always_inline av_const int FASTDIV(int a, int b) b 49 libavcodec/arm/mathops.h : "=&r"(r) : "r"(a), "r"(b), "r"(ff_inverse) : "cc"); b 56 libavcodec/arm/mathops.h static av_always_inline av_const int FASTDIV(int a, int b) b 60 libavcodec/arm/mathops.h : "=&r"(r), "=&r"(t) : "r"(a), "r"(ff_inverse[b])); b 65 libavcodec/arm/mathops.h #define MLS64(d, a, b) MAC64(d, -(a), b) b 85 libavcodec/arm/mathops.h static inline av_const int mid_pred(int a, int b, int c) b 101 libavcodec/arm/mathops.h : "r"(b), "r"(c) b 328 libavcodec/atrac3.c int i, b, c, m; b 348 libavcodec/atrac3.c for (b = 0; b <= num_bands; b++) b 349 libavcodec/atrac3.c band_flags[b] = get_bits1(gb); b 360 libavcodec/atrac3.c for (b = 0; b < (num_bands + 1) * 4; b++) { b 363 libavcodec/atrac3.c if (band_flags[b >> 2] == 0) b 377 libavcodec/atrac3.c cmp->pos = b * 64 + get_bits(gb, 6); b 412 libavcodec/atrac3.c int b, j; b 417 libavcodec/atrac3.c for (b = 0; b <= num_bands; b++) { b 418 libavcodec/atrac3.c gain[b].num_points = get_bits(gb, 3); b 419 libavcodec/atrac3.c level = gain[b].lev_code; b 420 libavcodec/atrac3.c loc = gain[b].loc_code; b 422 libavcodec/atrac3.c for (j = 0; j < gain[b].num_points; j++) { b 431 libavcodec/atrac3.c for (; b < 4 ; b++) b 432 libavcodec/atrac3.c gain[b].num_points = 0; b 56 libavcodec/atrac3plus.c int i, b; b 64 libavcodec/atrac3plus.c for (b = min_len; b <= max_len; b++) { b 67 libavcodec/atrac3plus.c bits[index] = b; b 32 libavcodec/avr32/mathops.h static inline av_const int MULL(int a, int b, unsigned shift) b 38 libavcodec/avr32/mathops.h : "=r"(x) : "r"(b), "r"(a), "i"(shift), "i"(32-shift)); b 43 libavcodec/avr32/mathops.h static inline av_const int MULH(int a, int b) b 46 libavcodec/avr32/mathops.h __asm__ ("muls.d %0, %1, %2" : "=r"(x.x) : "r"(a), "r"(b)); b 51 libavcodec/avr32/mathops.h static inline av_const int64_t MUL64(int a, int b) b 54 libavcodec/avr32/mathops.h __asm__ ("muls.d %0, %1, %2" : "=r"(x) : "r"(a), "r"(b)); b 58 libavcodec/avr32/mathops.h static inline av_const int64_t MAC64(int64_t d, int a, int b) b 60 libavcodec/avr32/mathops.h __asm__ ("macs.d %0, %1, %2" : "+r"(d) : "r"(a), "r"(b)); b 63 libavcodec/avr32/mathops.h #define MAC64(d, a, b) ((d) = MAC64(d, a, b)) b 64 libavcodec/avr32/mathops.h #define MLS64(d, a, b) MAC64(d, -(a), b) b 66 libavcodec/avr32/mathops.h static inline av_const int MAC16(int d, int a, int b) b 68 libavcodec/avr32/mathops.h __asm__ ("machh.w %0, %1:b, %2:b" : "+r"(d) : "r"(a), "r"(b)); b 71 libavcodec/avr32/mathops.h #define MAC16(d, a, b) ((d) = MAC16(d, a, b)) b 72 libavcodec/avr32/mathops.h #define MLS16(d, a, b) MAC16(d, -(a), b) b 75 libavcodec/avr32/mathops.h static inline av_const int MUL16(int a, int b) b 78 libavcodec/avr32/mathops.h __asm__ ("mulhh.w %0, %1:b, %2:b" : "=r"(d) : "r"(a), "r"(b)); b 83 libavcodec/avr32/mathops.h static inline av_const int mid_pred(int a, int b, int c) b 95 libavcodec/avr32/mathops.h : "r"(b), "r"(c)); b 307 libavcodec/bink.c #define CHECK_READ_VAL(gb, b, t) \ b 308 libavcodec/bink.c if (!b->cur_dec || (b->cur_dec > b->cur_ptr)) \ b 310 libavcodec/bink.c t = get_bits(gb, b->len); \ b 312 libavcodec/bink.c b->cur_dec = NULL; \ b 316 libavcodec/bink.c static int read_runs(AVCodecContext *avctx, GetBitContext *gb, Bundle *b) b 321 libavcodec/bink.c CHECK_READ_VAL(gb, b, t); b 322 libavcodec/bink.c dec_end = b->cur_dec + t; b 323 libavcodec/bink.c if (dec_end > b->data_end) { b 329 libavcodec/bink.c memset(b->cur_dec, v, t); b 330 libavcodec/bink.c b->cur_dec += t; b 332 libavcodec/bink.c while (b->cur_dec < dec_end) b 333 libavcodec/bink.c *b->cur_dec++ = GET_HUFF(gb, b->tree); b 338 libavcodec/bink.c static int read_motion_values(AVCodecContext *avctx, GetBitContext *gb, Bundle *b) b 343 libavcodec/bink.c CHECK_READ_VAL(gb, b, t); b 344 libavcodec/bink.c dec_end = b->cur_dec + t; b 345 libavcodec/bink.c if (dec_end > b->data_end) { b 355 libavcodec/bink.c memset(b->cur_dec, v, t); b 356 libavcodec/bink.c b->cur_dec += t; b 358 libavcodec/bink.c while (b->cur_dec < dec_end) { b 359 libavcodec/bink.c v = GET_HUFF(gb, b->tree); b 364 libavcodec/bink.c *b->cur_dec++ = v; b 372 libavcodec/bink.c static int read_block_types(AVCodecContext *avctx, GetBitContext *gb, Bundle *b) b 378 libavcodec/bink.c CHECK_READ_VAL(gb, b, t); b 379 libavcodec/bink.c dec_end = b->cur_dec + t; b 380 libavcodec/bink.c if (dec_end > b->data_end) { b 386 libavcodec/bink.c memset(b->cur_dec, v, t); b 387 libavcodec/bink.c b->cur_dec += t; b 389 libavcodec/bink.c while (b->cur_dec < dec_end) { b 390 libavcodec/bink.c v = GET_HUFF(gb, b->tree); b 393 libavcodec/bink.c *b->cur_dec++ = v; b 397 libavcodec/bink.c if (dec_end - b->cur_dec < run) b 399 libavcodec/bink.c memset(b->cur_dec, last, run); b 400 libavcodec/bink.c b->cur_dec += run; b 407 libavcodec/bink.c static int read_patterns(AVCodecContext *avctx, GetBitContext *gb, Bundle *b) b 412 libavcodec/bink.c CHECK_READ_VAL(gb, b, t); b 413 libavcodec/bink.c dec_end = b->cur_dec + t; b 414 libavcodec/bink.c if (dec_end > b->data_end) { b 418 libavcodec/bink.c while (b->cur_dec < dec_end) { b 419 libavcodec/bink.c v = GET_HUFF(gb, b->tree); b 420 libavcodec/bink.c v |= GET_HUFF(gb, b->tree) << 4; b 421 libavcodec/bink.c *b->cur_dec++ = v; b 427 libavcodec/bink.c static int read_colors(GetBitContext *gb, Bundle *b, BinkContext *c) b 432 libavcodec/bink.c CHECK_READ_VAL(gb, b, t); b 433 libavcodec/bink.c dec_end = b->cur_dec + t; b 434 libavcodec/bink.c if (dec_end > b->data_end) { b 440 libavcodec/bink.c v = GET_HUFF(gb, b->tree); b 447 libavcodec/bink.c memset(b->cur_dec, v, t); b 448 libavcodec/bink.c b->cur_dec += t; b 450 libavcodec/bink.c while (b->cur_dec < dec_end) { b 452 libavcodec/bink.c v = GET_HUFF(gb, b->tree); b 459 libavcodec/bink.c *b->cur_dec++ = v; b 468 libavcodec/bink.c static int read_dcs(AVCodecContext *avctx, GetBitContext *gb, Bundle *b, b 472 libavcodec/bink.c int16_t *dst = (int16_t*)b->cur_dec; b 473 libavcodec/bink.c int16_t *dst_end = (int16_t*)b->data_end; b 475 libavcodec/bink.c CHECK_READ_VAL(gb, b, len); b 510 libavcodec/bink.c b->cur_dec = (uint8_t*)dst; b 552 libavcodec/bink.c Bundle *b = &c->bundle[bundle_num]; b 555 libavcodec/bink.c CHECK_READ_VAL(gb, b, len); b 556 libavcodec/bink.c if (b->data_end - b->cur_dec < len * (1 + (bits > 8))) b 561 libavcodec/bink.c *b->cur_dec++ = get_bits(gb, bits); b 564 libavcodec/bink.c *b->cur_dec++ = get_bits(gb, bits) - mask; b 567 libavcodec/bink.c int16_t *dst = (int16_t*)b->cur_dec; b 576 libavcodec/bink.c b->cur_dec = (uint8_t*)dst; b 90 libavcodec/bit_depth_template.c #define FUNC3(a, b, c) a ## _ ## b ## c b 91 libavcodec/bit_depth_template.c #define FUNC2(a, b, c) FUNC3(a, b, c) b 141 libavcodec/bitstream.c static int compare_vlcspec(const void *a, const void *b) b 143 libavcodec/bitstream.c const VLCcode *sa = a, *sb = b; b 43 libavcodec/bytestream.h static av_always_inline type bytestream_get_ ## name(const uint8_t **b) \ b 45 libavcodec/bytestream.h (*b) += bytes; \ b 46 libavcodec/bytestream.h return read(*b - bytes); \ b 48 libavcodec/bytestream.h static av_always_inline void bytestream_put_ ## name(uint8_t **b, \ b 51 libavcodec/bytestream.h write(*b, value); \ b 52 libavcodec/bytestream.h (*b) += bytes; \ b 357 libavcodec/bytestream.h static av_always_inline unsigned int bytestream_get_buffer(const uint8_t **b, b 361 libavcodec/bytestream.h memcpy(dst, *b, size); b 362 libavcodec/bytestream.h (*b) += size; b 366 libavcodec/bytestream.h static av_always_inline void bytestream_put_buffer(uint8_t **b, b 370 libavcodec/bytestream.h memcpy(*b, src, size); b 371 libavcodec/bytestream.h (*b) += size; b 134 libavcodec/c93.c int stride, ret, i, x, y, b, bt = 0; b 147 libavcodec/c93.c b = bytestream2_get_byte(&gb); b 148 libavcodec/c93.c if (b & C93_FIRST_FRAME) { b 244 libavcodec/c93.c if (b & C93_HAS_PALETTE) { b 87 libavcodec/cabac.c static inline void put_cabac_bit(CABACContext *c, int b){ b 88 libavcodec/cabac.c put_bits(&c->pb, 1, b); b 90 libavcodec/cabac.c put_bits(&c->pb, 1, 1-b); b 175 libavcodec/cabac.c uint8_t b[9*SIZE]; b 182 libavcodec/cabac.c ff_init_cabac_encoder(&c, b, SIZE); b 204 libavcodec/cabac.c ff_init_cabac_decoder(&c, b, SIZE); b 74 libavcodec/cavs.c static inline int get_bs(cavs_vector *mvP, cavs_vector *mvQ, int b) b 82 libavcodec/cavs.c if (b) { b 501 libavcodec/cavsdsp.c #define op_put1(a, b) a = cm[((b)+4)>>3] b 502 libavcodec/cavsdsp.c #define op_put2(a, b) a = cm[((b)+64)>>7] b 503 libavcodec/cavsdsp.c #define op_put3(a, b) a = cm[((b)+32)>>6] b 504 libavcodec/cavsdsp.c #define op_put4(a, b) a = cm[((b)+512)>>10] b 505 libavcodec/cavsdsp.c #define op_avg1(a, b) a = ((a)+cm[((b)+4)>>3] +1)>>1 b 506 libavcodec/cavsdsp.c #define op_avg2(a, b) a = ((a)+cm[((b)+64)>>7] +1)>>1 b 507 libavcodec/cavsdsp.c #define op_avg3(a, b) a = ((a)+cm[((b)+32)>>6] +1)>>1 b 508 libavcodec/cavsdsp.c #define op_avg4(a, b) a = ((a)+cm[((b)+512)>>10]+1)>>1 b 111 libavcodec/cdgraphics.c uint8_t r, g, b; b 121 libavcodec/cdgraphics.c b = ((color ) & 0x000F) * 17; b 122 libavcodec/cdgraphics.c palette[i + array_offset] = 0xFFU << 24 | r << 16 | g << 8 | b; b 127 libavcodec/cdgraphics.c static int cdg_tile_block(CDGraphicsContext *cc, uint8_t *data, int b) b 152 libavcodec/cdgraphics.c if (b) b 73 libavcodec/cdxl.c unsigned b = (rgb & 0xF) * 0x11; b 74 libavcodec/cdxl.c AV_WN32(&new_palette[i], (0xFFU << 24) | (r << 16) | (g << 8) | b); b 136 libavcodec/cdxl.c uint32_t new_palette[16], r, g, b; b 149 libavcodec/cdxl.c b = new_palette[0] & 0xFF; b 158 libavcodec/cdxl.c b = new_palette[index] & 0xFF; b 161 libavcodec/cdxl.c b = index * 0x11; b 170 libavcodec/cdxl.c AV_WL24(out + x * 3, r | g | b); b 179 libavcodec/cdxl.c uint32_t new_palette[64], r, g, b; b 192 libavcodec/cdxl.c b = new_palette[0] & 0xFF; b 201 libavcodec/cdxl.c b = new_palette[index] & 0xFF; b 204 libavcodec/cdxl.c b = (index << 2) | (b & 3); b 213 libavcodec/cdxl.c AV_WL24(out + x * 3, r | g | b); b 99 libavcodec/celp_filters.c float a,b,c; b 102 libavcodec/celp_filters.c b = filter_coeffs[1]; b 104 libavcodec/celp_filters.c b -= filter_coeffs[0] * filter_coeffs[0]; b 106 libavcodec/celp_filters.c c -= filter_coeffs[0] * b; b 169 libavcodec/celp_filters.c out3 -= b * tmp1; b 170 libavcodec/celp_filters.c out2 -= b * tmp0; b 98 libavcodec/celp_math.c int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length) b 104 libavcodec/celp_math.c sum += MUL16(a[i], b[i]); b 109 libavcodec/celp_math.c float ff_dot_productf(const float* a, const float* b, int length) b 115 libavcodec/celp_math.c sum += a[i] * b[i]; b 37 libavcodec/celp_math.h float (*dot_productf)(const float* a, const float* b, int length); b 85 libavcodec/celp_math.h int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length); b 95 libavcodec/celp_math.h float ff_dot_productf(const float* a, const float* b, int length); b 112 libavcodec/cinepak.c int r, g, b, u, v; b 119 libavcodec/cinepak.c b = *p + u*2; b 123 libavcodec/cinepak.c *p++ = av_clip_uint8(b); b 600 libavcodec/cinepakenc.c static void copy_mb(CinepakEncContext *s, AVPicture *a, AVPicture *b) b 605 libavcodec/cinepakenc.c memcpy(a->data[0]+y*a->linesize[0], b->data[0]+y*b->linesize[0], b 613 libavcodec/cinepakenc.c b->data[p] + y*b->linesize[p], b 758 libavcodec/cinepakenc.c static int compute_mb_distortion(CinepakEncContext *s, AVPicture *a, AVPicture *b) b 764 libavcodec/cinepakenc.c d = a->data[0][x + y*a->linesize[0]] - b->data[0][x + y*b->linesize[0]]; b 773 libavcodec/cinepakenc.c d = a->data[p][x + y*a->linesize[p]] - b->data[p][x + y*b->linesize[p]]; b 1137 libavcodec/cinepakenc.c uint8_t *ir[2]; int32_t r, g, b, rr, gg, bb; b 1141 libavcodec/cinepakenc.c r = g = b = 0; b 1148 libavcodec/cinepakenc.c r += rr; g += gg; b += bb; b 1161 libavcodec/cinepakenc.c rr = (-299683*r - 599156*g + 898839*b) >> 23; b 1167 libavcodec/cinepakenc.c rr = (748893*r - 599156*g - 149737*b) >> 23; b 1023 libavcodec/cook.c #define PRINT(a, b) av_dlog(q->avctx, " %s = %d\n", a, b); b 232 libavcodec/dcaenc.c static inline int32_t mul32(int32_t a, int32_t b) b 234 libavcodec/dcaenc.c int64_t r = (int64_t)a * b + 0x80000000ULL; b 366 libavcodec/dcaenc.c int b = ff_reverse[i]; b 367 libavcodec/dcaenc.c rout[i].re = mul32(buf[b].re, cos_t(4 * i)) b 368 libavcodec/dcaenc.c - mul32(buf[b].im, sin_t(4 * i)); b 369 libavcodec/dcaenc.c rout[i].im = mul32(buf[b].im, cos_t(4 * i)) b 370 libavcodec/dcaenc.c + mul32(buf[b].re, sin_t(4 * i)); b 404 libavcodec/dcaenc.c static int32_t add_cb(int32_t a, int32_t b) b 406 libavcodec/dcaenc.c if (a < b) b 407 libavcodec/dcaenc.c FFSWAP(int32_t, a, b); b 409 libavcodec/dcaenc.c if (a - b >= 256) b 411 libavcodec/dcaenc.c return a + cb_to_add[a - b]; b 79 libavcodec/dct32_template.c #define BF(a, b, c, s)\ b 81 libavcodec/dct32_template.c tmp0 = val##a + val##b;\ b 82 libavcodec/dct32_template.c tmp1 = val##a - val##b;\ b 84 libavcodec/dct32_template.c val##b = MULH3(tmp1, c, 1<<(s));\ b 87 libavcodec/dct32_template.c #define BF0(a, b, c, s)\ b 89 libavcodec/dct32_template.c tmp0 = tab[a] + tab[b];\ b 90 libavcodec/dct32_template.c tmp1 = tab[a] - tab[b];\ b 92 libavcodec/dct32_template.c val##b = MULH3(tmp1, c, 1<<(s));\ b 95 libavcodec/dct32_template.c #define BF1(a, b, c, d)\ b 97 libavcodec/dct32_template.c BF(a, b, COS4_0, 1);\ b 102 libavcodec/dct32_template.c #define BF2(a, b, c, d)\ b 104 libavcodec/dct32_template.c BF(a, b, COS4_0, 1);\ b 108 libavcodec/dct32_template.c val##c += val##b;\ b 109 libavcodec/dct32_template.c val##b += val##d;\ b 112 libavcodec/dct32_template.c #define ADD(a, b) val##a += val##b b 49 libavcodec/dirac_dwt.c static void horizontal_compose_dirac53i(IDWTELEM *b, IDWTELEM *temp, int w) b 54 libavcodec/dirac_dwt.c temp[0] = COMPOSE_53iL0(b[w2], b[0], b[w2]); b 56 libavcodec/dirac_dwt.c temp[x ] = COMPOSE_53iL0 (b[x+w2-1], b[x ], b[x+w2]); b 57 libavcodec/dirac_dwt.c temp[x+w2-1] = COMPOSE_DIRAC53iH0(temp[x-1], b[x+w2-1], temp[x]); b 59 libavcodec/dirac_dwt.c temp[w-1] = COMPOSE_DIRAC53iH0(temp[w2-1], b[w-1], temp[w2-1]); b 61 libavcodec/dirac_dwt.c interleave(b, temp, temp+w2, w2, 1, 1); b 64 libavcodec/dirac_dwt.c static void horizontal_compose_dd97i(IDWTELEM *b, IDWTELEM *tmp, int w) b 69 libavcodec/dirac_dwt.c tmp[0] = COMPOSE_53iL0(b[w2], b[0], b[w2]); b 71 libavcodec/dirac_dwt.c tmp[x] = COMPOSE_53iL0(b[x+w2-1], b[x], b[x+w2]); b 78 libavcodec/dirac_dwt.c b[2*x ] = (tmp[x] + 1)>>1; b 79 libavcodec/dirac_dwt.c b[2*x+1] = (COMPOSE_DD97iH0(tmp[x-1], tmp[x], b[x+w2], tmp[x+1], tmp[x+2]) + 1)>>1; b 83 libavcodec/dirac_dwt.c static void horizontal_compose_dd137i(IDWTELEM *b, IDWTELEM *tmp, int w) b 88 libavcodec/dirac_dwt.c tmp[0] = COMPOSE_DD137iL0(b[w2], b[w2], b[0], b[w2 ], b[w2+1]); b 89 libavcodec/dirac_dwt.c tmp[1] = COMPOSE_DD137iL0(b[w2], b[w2], b[1], b[w2+1], b[w2+2]); b 91 libavcodec/dirac_dwt.c tmp[x] = COMPOSE_DD137iL0(b[x+w2-2], b[x+w2-1], b[x], b[x+w2], b[x+w2+1]); b 92 libavcodec/dirac_dwt.c tmp[w2-1] = COMPOSE_DD137iL0(b[w-3], b[w-2], b[w2-1], b[w-1], b[w-1]); b 99 libavcodec/dirac_dwt.c b[2*x ] = (tmp[x] + 1)>>1; b 100 libavcodec/dirac_dwt.c b[2*x+1] = (COMPOSE_DD97iH0(tmp[x-1], tmp[x], b[x+w2], tmp[x+1], tmp[x+2]) + 1)>>1; b 105 libavcodec/dirac_dwt.c void horizontal_compose_haari(IDWTELEM *b, IDWTELEM *temp, int w, int shift) b 111 libavcodec/dirac_dwt.c temp[x ] = COMPOSE_HAARiL0(b[x ], b[x+w2]); b 112 libavcodec/dirac_dwt.c temp[x+w2] = COMPOSE_HAARiH0(b[x+w2], temp[x]); b 115 libavcodec/dirac_dwt.c interleave(b, temp, temp+w2, w2, shift, shift); b 118 libavcodec/dirac_dwt.c static void horizontal_compose_haar0i(IDWTELEM *b, IDWTELEM *temp, int w) b 120 libavcodec/dirac_dwt.c horizontal_compose_haari(b, temp, w, 0); b 123 libavcodec/dirac_dwt.c static void horizontal_compose_haar1i(IDWTELEM *b, IDWTELEM *temp, int w) b 125 libavcodec/dirac_dwt.c horizontal_compose_haari(b, temp, w, 1); b 128 libavcodec/dirac_dwt.c static void horizontal_compose_fidelityi(IDWTELEM *b, IDWTELEM *tmp, int w) b 136 libavcodec/dirac_dwt.c v[i] = b[av_clip(x-3+i, 0, w2-1)]; b 137 libavcodec/dirac_dwt.c tmp[x] = COMPOSE_FIDELITYiH0(v[0], v[1], v[2], v[3], b[x+w2], v[4], v[5], v[6], v[7]); b 143 libavcodec/dirac_dwt.c tmp[x+w2] = COMPOSE_FIDELITYiL0(v[0], v[1], v[2], v[3], b[x], v[4], v[5], v[6], v[7]); b 146 libavcodec/dirac_dwt.c interleave(b, tmp+w2, tmp, w2, 0, 0); b 149 libavcodec/dirac_dwt.c static void horizontal_compose_daub97i(IDWTELEM *b, IDWTELEM *temp, int w) b 154 libavcodec/dirac_dwt.c temp[0] = COMPOSE_DAUB97iL1(b[w2], b[0], b[w2]); b 156 libavcodec/dirac_dwt.c temp[x ] = COMPOSE_DAUB97iL1(b[x+w2-1], b[x ], b[x+w2]); b 157 libavcodec/dirac_dwt.c temp[x+w2-1] = COMPOSE_DAUB97iH1(temp[x-1], b[x+w2-1], temp[x]); b 159 libavcodec/dirac_dwt.c temp[w-1] = COMPOSE_DAUB97iH1(temp[w2-1], b[w-1], temp[w2-1]); b 163 libavcodec/dirac_dwt.c b[0] = (b0 + 1) >> 1; b 167 libavcodec/dirac_dwt.c b[2*x-1] = (b1 + 1) >> 1; b 168 libavcodec/dirac_dwt.c b[2*x ] = (b2 + 1) >> 1; b 171 libavcodec/dirac_dwt.c b[w-1] = (COMPOSE_DAUB97iH0(b2, temp[w-1], b2) + 1) >> 1; b 213 libavcodec/dirac_dwt.c static void vertical_compose_fidelityiH0(IDWTELEM *dst, IDWTELEM *b[8], int width) b 218 libavcodec/dirac_dwt.c dst[i] = COMPOSE_FIDELITYiH0(b[0][i], b[1][i], b[2][i], b[3][i], dst[i], b[4][i], b[5][i], b[6][i], b[7][i]); b 222 libavcodec/dirac_dwt.c static void vertical_compose_fidelityiL0(IDWTELEM *dst, IDWTELEM *b[8], int width) b 227 libavcodec/dirac_dwt.c dst[i] = COMPOSE_FIDELITYiL0(b[0][i], b[1][i], b[2][i], b[3][i], dst[i], b[4][i], b[5][i], b[6][i], b[7][i]); b 275 libavcodec/dirac_dwt.c IDWTELEM *b[8]; b 277 libavcodec/dirac_dwt.c b[i] = cs->b[i]; b 278 libavcodec/dirac_dwt.c b[6] = d->buffer + av_clip(y+5, 0, height-2)*stride; b 279 libavcodec/dirac_dwt.c b[7] = d->buffer + av_clip(y+6, 1, height-1)*stride; b 281 libavcodec/dirac_dwt.c if(y+5<(unsigned)height) vertical_compose_l0( b[5], b[6], b[7], width); b 282 libavcodec/dirac_dwt.c if(y+1<(unsigned)height) vertical_compose_h0(b[0], b[2], b[3], b[4], b[6], width); b 284 libavcodec/dirac_dwt.c if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width); b 285 libavcodec/dirac_dwt.c if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width); b 288 libavcodec/dirac_dwt.c cs->b[i] = b[i+2]; b 299 libavcodec/dirac_dwt.c IDWTELEM *b[4] = { cs->b[0], cs->b[1] }; b 300 libavcodec/dirac_dwt.c b[2] = d->buffer + avpriv_mirror(y+1, height-1)*stride; b 301 libavcodec/dirac_dwt.c b[3] = d->buffer + avpriv_mirror(y+2, height-1)*stride; b 303 libavcodec/dirac_dwt.c if(y+1<(unsigned)height) vertical_compose_l0(b[1], b[2], b[3], width); b 304 libavcodec/dirac_dwt.c if(y+0<(unsigned)height) vertical_compose_h0(b[0], b[1], b[2], width); b 306 libavcodec/dirac_dwt.c if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width); b 307 libavcodec/dirac_dwt.c if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width); b 309 libavcodec/dirac_dwt.c cs->b[0] = b[2]; b 310 libavcodec/dirac_dwt.c cs->b[1] = b[3]; b 322 libavcodec/dirac_dwt.c IDWTELEM *b[10]; b 324 libavcodec/dirac_dwt.c b[i] = cs->b[i]; b 325 libavcodec/dirac_dwt.c b[8] = d->buffer + av_clip(y+7, 0, height-2)*stride; b 326 libavcodec/dirac_dwt.c b[9] = d->buffer + av_clip(y+8, 1, height-1)*stride; b 328 libavcodec/dirac_dwt.c if(y+5<(unsigned)height) vertical_compose_l0(b[3], b[5], b[6], b[7], b[9], width); b 329 libavcodec/dirac_dwt.c if(y+1<(unsigned)height) vertical_compose_h0(b[0], b[2], b[3], b[4], b[6], width); b 331 libavcodec/dirac_dwt.c if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width); b 332 libavcodec/dirac_dwt.c if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width); b 335 libavcodec/dirac_dwt.c cs->b[i] = b[i+2]; b 361 libavcodec/dirac_dwt.c IDWTELEM *b[8]; b 365 libavcodec/dirac_dwt.c b[i] = d->buffer + av_clip((y-7 + 2*i), 0, height-2)*stride; b 366 libavcodec/dirac_dwt.c vertical_compose_h0(d->buffer + y*stride, b, width); b 371 libavcodec/dirac_dwt.c b[i] = d->buffer + av_clip((y-7 + 2*i), 1, height-1)*stride; b 372 libavcodec/dirac_dwt.c vertical_compose_l0(d->buffer + y*stride, b, width); b 390 libavcodec/dirac_dwt.c IDWTELEM *b[6]; b 392 libavcodec/dirac_dwt.c b[i] = cs->b[i]; b 393 libavcodec/dirac_dwt.c b[4] = d->buffer + avpriv_mirror(y+3, height-1)*stride; b 394 libavcodec/dirac_dwt.c b[5] = d->buffer + avpriv_mirror(y+4, height-1)*stride; b 396 libavcodec/dirac_dwt.c if(y+3<(unsigned)height) vertical_compose_l1(b[3], b[4], b[5], width); b 397 libavcodec/dirac_dwt.c if(y+2<(unsigned)height) vertical_compose_h1(b[2], b[3], b[4], width); b 398 libavcodec/dirac_dwt.c if(y+1<(unsigned)height) vertical_compose_l0(b[1], b[2], b[3], width); b 399 libavcodec/dirac_dwt.c if(y+0<(unsigned)height) vertical_compose_h0(b[0], b[1], b[2], width); b 401 libavcodec/dirac_dwt.c if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width); b 402 libavcodec/dirac_dwt.c if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width); b 405 libavcodec/dirac_dwt.c cs->b[i] = b[i+2]; b 412 libavcodec/dirac_dwt.c cs->b[0] = buffer + avpriv_mirror(-3-1, height-1)*stride; b 413 libavcodec/dirac_dwt.c cs->b[1] = buffer + avpriv_mirror(-3 , height-1)*stride; b 414 libavcodec/dirac_dwt.c cs->b[2] = buffer + avpriv_mirror(-3+1, height-1)*stride; b 415 libavcodec/dirac_dwt.c cs->b[3] = buffer + avpriv_mirror(-3+2, height-1)*stride; b 421 libavcodec/dirac_dwt.c cs->b[0] = buffer + avpriv_mirror(-1-1, height-1)*stride; b 422 libavcodec/dirac_dwt.c cs->b[1] = buffer + avpriv_mirror(-1 , height-1)*stride; b 428 libavcodec/dirac_dwt.c cs->b[0] = buffer + av_clip(-5-1, 0, height-2)*stride; b 429 libavcodec/dirac_dwt.c cs->b[1] = buffer + av_clip(-5 , 1, height-1)*stride; b 430 libavcodec/dirac_dwt.c cs->b[2] = buffer + av_clip(-5+1, 0, height-2)*stride; b 431 libavcodec/dirac_dwt.c cs->b[3] = buffer + av_clip(-5+2, 1, height-1)*stride; b 432 libavcodec/dirac_dwt.c cs->b[4] = buffer + av_clip(-5+3, 0, height-2)*stride; b 433 libavcodec/dirac_dwt.c cs->b[5] = buffer + av_clip(-5+4, 1, height-1)*stride; b 439 libavcodec/dirac_dwt.c cs->b[0] = buffer + av_clip(-5-1, 0, height-2)*stride; b 440 libavcodec/dirac_dwt.c cs->b[1] = buffer + av_clip(-5 , 1, height-1)*stride; b 441 libavcodec/dirac_dwt.c cs->b[2] = buffer + av_clip(-5+1, 0, height-2)*stride; b 442 libavcodec/dirac_dwt.c cs->b[3] = buffer + av_clip(-5+2, 1, height-1)*stride; b 443 libavcodec/dirac_dwt.c cs->b[4] = buffer + av_clip(-5+3, 0, height-2)*stride; b 444 libavcodec/dirac_dwt.c cs->b[5] = buffer + av_clip(-5+4, 1, height-1)*stride; b 445 libavcodec/dirac_dwt.c cs->b[6] = buffer + av_clip(-5+5, 0, height-2)*stride; b 446 libavcodec/dirac_dwt.c cs->b[7] = buffer + av_clip(-5+6, 1, height-1)*stride; b 33 libavcodec/dirac_dwt.h IDWTELEM *b[MAX_DWT_SUPPORT]; b 43 libavcodec/dirac_dwt.h typedef void (*vertical_compose_9tap)(IDWTELEM *dst, IDWTELEM *b[8], int width); b 60 libavcodec/dirac_dwt.h void (*horizontal_compose)(IDWTELEM *b, IDWTELEM *tmp, int width); b 79 libavcodec/diracdec.c #define DIVRNDUP(a, b) (((a) + (b) - 1) / (b)) b 465 libavcodec/diracdec.c SubBand *b, IDWTELEM *buf, int x, int y) b 472 libavcodec/diracdec.c if (b->parent) b 473 libavcodec/diracdec.c pred_ctx += !!b->parent->ibuf[b->parent->stride * (y>>1) + (x>>1)] << 1; b 475 libavcodec/diracdec.c if (b->orientation == subband_hl) b 476 libavcodec/diracdec.c sign_pred = buf[-b->stride]; b 480 libavcodec/diracdec.c pred_ctx += !(buf[-1] | buf[-b->stride] | buf[-1-b->stride]); b 481 libavcodec/diracdec.c if (b->orientation == subband_lh) b 484 libavcodec/diracdec.c pred_ctx += !buf[-b->stride]; b 513 libavcodec/diracdec.c static inline void codeblock(DiracContext *s, SubBand *b, b 534 libavcodec/diracdec.c int quant = b->quant; b 543 libavcodec/diracdec.c b->quant = quant; b 546 libavcodec/diracdec.c b->quant = FFMIN(b->quant, MAX_QUANT); b 548 libavcodec/diracdec.c qfactor = qscale_tab[b->quant]; b 551 libavcodec/diracdec.c qoffset = qoffset_intra_tab[b->quant]; b 553 libavcodec/diracdec.c qoffset = qoffset_inter_tab[b->quant]; b 555 libavcodec/diracdec.c buf = b->ibuf + top * b->stride; b 560 libavcodec/diracdec.c coeff_unpack_arith(c, qfactor, qoffset, b, buf+x, x, y); b 564 libavcodec/diracdec.c buf += b->stride; b 572 libavcodec/diracdec.c static inline void intra_dc_prediction(SubBand *b) b 574 libavcodec/diracdec.c IDWTELEM *buf = b->ibuf; b 577 libavcodec/diracdec.c for (x = 1; x < b->width; x++) b 579 libavcodec/diracdec.c buf += b->stride; b 581 libavcodec/diracdec.c for (y = 1; y < b->height; y++) { b 582 libavcodec/diracdec.c buf[0] += buf[-b->stride]; b 584 libavcodec/diracdec.c for (x = 1; x < b->width; x++) { b 585 libavcodec/diracdec.c int pred = buf[x - 1] + buf[x - b->stride] + buf[x - b->stride-1]; b 588 libavcodec/diracdec.c buf += b->stride; b 596 libavcodec/diracdec.c static av_always_inline void decode_subband_internal(DiracContext *s, SubBand *b, int is_arith) b 601 libavcodec/diracdec.c int cb_width = s->codeblock[b->level + (b->orientation != subband_ll)].width; b 602 libavcodec/diracdec.c int cb_height = s->codeblock[b->level + (b->orientation != subband_ll)].height; b 605 libavcodec/diracdec.c if (!b->length) b 608 libavcodec/diracdec.c init_get_bits8(&gb, b->coeff_data, b->length); b 611 libavcodec/diracdec.c ff_dirac_init_arith_decoder(&c, &gb, b->length); b 615 libavcodec/diracdec.c bottom = (b->height * (cb_y+1LL)) / cb_height; b 618 libavcodec/diracdec.c right = (b->width * (cb_x+1LL)) / cb_width; b 619 libavcodec/diracdec.c codeblock(s, b, &gb, &c, left, right, top, bottom, blockcnt_one, is_arith); b 625 libavcodec/diracdec.c if (b->orientation == subband_ll && s->num_refs == 0) b 626 libavcodec/diracdec.c intra_dc_prediction(b); b 629 libavcodec/diracdec.c static int decode_subband_arith(AVCodecContext *avctx, void *b) b 632 libavcodec/diracdec.c decode_subband_internal(s, b, 1); b 639 libavcodec/diracdec.c SubBand **b = arg; b 640 libavcodec/diracdec.c decode_subband_internal(s, *b, 0); b 658 libavcodec/diracdec.c SubBand *b = &s->plane[comp].band[level][orientation]; b 659 libavcodec/diracdec.c bands[num_bands++] = b; b 663 libavcodec/diracdec.c b->length = svq3_get_ue_golomb(&s->gb); b 664 libavcodec/diracdec.c if (b->length) { b 665 libavcodec/diracdec.c b->quant = svq3_get_ue_golomb(&s->gb); b 667 libavcodec/diracdec.c b->coeff_data = s->gb.buffer + get_bits_count(&s->gb)/8; b 668 libavcodec/diracdec.c b->length = FFMIN(b->length, FFMAX(get_bits_left(&s->gb)/8, 0)); b 669 libavcodec/diracdec.c skip_bits_long(&s->gb, b->length*8); b 833 libavcodec/diracdec.c SubBand *b = &p->band[level][orientation]; b 835 libavcodec/diracdec.c b->ibuf = p->idwt_buf; b 836 libavcodec/diracdec.c b->level = level; b 837 libavcodec/diracdec.c b->stride = p->idwt_stride << (s->wavelet_depth - level); b 838 libavcodec/diracdec.c b->width = w; b 839 libavcodec/diracdec.c b->height = h; b 840 libavcodec/diracdec.c b->orientation = orientation; b 843 libavcodec/diracdec.c b->ibuf += w; b 845 libavcodec/diracdec.c b->ibuf += b->stride>>1; b 848 libavcodec/diracdec.c b->parent = &p->band[level-1][orientation]; b 1163 libavcodec/diracdec.c int *b = s->globalmc[ref].pan_tilt; b 1167 libavcodec/diracdec.c int mx = m * ((A[0][0] * x + A[0][1]*y) + (1<<ez) * b[0]); b 1168 libavcodec/diracdec.c int my = m * ((A[1][0] * x + A[1][1]*y) + (1<<ez) * b[1]); b 69 libavcodec/dsddec.c unsigned char b = s->buf[(pos - (CTABLES*2 - 1) + i) & FIFOMASK]; b 70 libavcodec/dsddec.c sum += ctables[i][a] + ctables[i][b]; b 97 libavcodec/dsicinvideo.c int b, huff_code = 0; b 109 libavcodec/dsicinvideo.c b = huff_code << 4; b 111 libavcodec/dsicinvideo.c *dst_cur++ = b | (huff_code >> 4); b 36 libavcodec/dss_sp.c #define DSS_SP_FORMULA(a, b, c) (((((a) << 15) + (b) * (c)) + 0x4000) >> 15) b 317 libavcodec/dvbsub.c int a, r, g, b; b 322 libavcodec/dvbsub.c b = (x >> 0) & 0xff; b 324 libavcodec/dvbsub.c *q++ = RGB_TO_Y_CCIR(r, g, b); b 325 libavcodec/dvbsub.c *q++ = RGB_TO_V_CCIR(r, g, b, 0); b 326 libavcodec/dvbsub.c *q++ = RGB_TO_U_CCIR(r, g, b, 0); b 152 libavcodec/dvbsubdec.c #define RGBA(r,g,b,a) (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)) b 366 libavcodec/dvbsubdec.c int i, r, g, b, a = 0; b 398 libavcodec/dvbsubdec.c b = (i & 4) ? 255 : 0; b 402 libavcodec/dvbsubdec.c b = (i & 4) ? 127 : 0; b 404 libavcodec/dvbsubdec.c default_clut.clut16[i] = RGBA(r, g, b, 255); b 412 libavcodec/dvbsubdec.c b = (i & 4) ? 255 : 0; b 419 libavcodec/dvbsubdec.c b = ((i & 4) ? 85 : 0) + ((i & 0x40) ? 170 : 0); b 425 libavcodec/dvbsubdec.c b = ((i & 4) ? 85 : 0) + ((i & 0x40) ? 170 : 0); b 431 libavcodec/dvbsubdec.c b = 127 + ((i & 4) ? 43 : 0) + ((i & 0x40) ? 85 : 0); b 437 libavcodec/dvbsubdec.c b = ((i & 4) ? 43 : 0) + ((i & 0x40) ? 85 : 0); b 442 libavcodec/dvbsubdec.c default_clut.clut256[i] = RGBA(r, g, b, a); b 1065 libavcodec/dvbsubdec.c int r, g, b, r_add, g_add, b_add; b 1132 libavcodec/dvbsubdec.c YUV_TO_RGB2_CCIR(r, g, b, y); b 1134 libavcodec/dvbsubdec.c av_dlog(avctx, "clut %d := (%d,%d,%d,%d)\n", entry_id, r, g, b, alpha); b 1142 libavcodec/dvbsubdec.c clut->clut4[entry_id] = RGBA(r,g,b,255 - alpha); b 1144 libavcodec/dvbsubdec.c clut->clut16[entry_id] = RGBA(r,g,b,255 - alpha); b 1146 libavcodec/dvbsubdec.c clut->clut256[entry_id] = RGBA(r,g,b,255 - alpha); b 53 libavcodec/dvdsubdec.c uint8_t r, g, b; b 62 libavcodec/dvdsubdec.c YUV_TO_RGB2_CCIR(r, g, b, y); b 63 libavcodec/dvdsubdec.c *rgba++ = (*alpha++ << 24) | (r << 16) | (g << 8) | b; b 159 libavcodec/dvdsubdec.c int nb_opaque_colors, i, level, j, r, g, b; b 191 libavcodec/dvdsubdec.c b = (((subtitle_color >> 0) & 0xff) * level) >> 8; b 192 libavcodec/dvdsubdec.c rgba_palette[i] = b | (g << 8) | (r << 16) | ((alpha[i] * 17) << 24); b 603 libavcodec/dvdsubdec.c uint8_t r, g, b, yuv[65], *buf; b 641 libavcodec/dvdsubdec.c YUV_TO_RGB2_CCIR(r, g, b, y); b 642 libavcodec/dvdsubdec.c ctx->palette[i] = (r << 16) + (g << 8) + b; b 97 libavcodec/dvdsubenc.c static int color_distance(uint32_t a, uint32_t b) b 104 libavcodec/dvdsubenc.c alpha_b * (int)((b >> i) & 0xFF); b 107 libavcodec/dvdsubenc.c alpha_b = b >> 28; b 352 libavcodec/dvenc.c EncBlockInfo *b; b 360 libavcodec/dvenc.c b = blks; b 367 libavcodec/dvenc.c for (j = 0; j < 6; j++, b++) { b 369 libavcodec/dvenc.c if (b->area_q[a] != ff_dv_quant_shifts[qnos[i] + ff_dv_quant_offset[b->cno]][a]) { b 370 libavcodec/dvenc.c b->bit_size[a] = 1; // 4 areas 4 bits for EOB :) b 371 libavcodec/dvenc.c b->area_q[a]++; b 372 libavcodec/dvenc.c prev = b->prev[a]; b 373 libavcodec/dvenc.c av_assert2(b->next[prev] >= mb_area_start[a + 1] || b->mb[prev]); b 374 libavcodec/dvenc.c for (k = b->next[prev]; k < mb_area_start[a + 1]; k = b->next[k]) { b 375 libavcodec/dvenc.c b->mb[k] >>= 1; b 376 libavcodec/dvenc.c if (b->mb[k]) { b 377 libavcodec/dvenc.c b->bit_size[a] += dv_rl2vlc_size(k - prev - 1, b->mb[k]); b 380 libavcodec/dvenc.c if (b->next[k] >= mb_area_start[a + 1] && b->next[k] < 64) { b 381 libavcodec/dvenc.c for (a2 = a + 1; b->next[k] >= mb_area_start[a2 + 1]; a2++) b 382 libavcodec/dvenc.c b->prev[a2] = prev; b 384 libavcodec/dvenc.c av_assert2(b->mb[b->next[k]]); b 385 libavcodec/dvenc.c b->bit_size[a2] += dv_rl2vlc_size(b->next[k] - prev - 1, b->mb[b->next[k]]) - b 386 libavcodec/dvenc.c dv_rl2vlc_size(b->next[k] - k - 1, b->mb[b->next[k]]); b 387 libavcodec/dvenc.c av_assert2(b->prev[a2] == k && (a2 + 1 >= 4 || b->prev[a2 + 1] != k)); b 388 libavcodec/dvenc.c b->prev[a2] = prev; b 390 libavcodec/dvenc.c b->next[prev] = b->next[k]; b 393 libavcodec/dvenc.c b->prev[a + 1] = prev; b 395 libavcodec/dvenc.c size[i] += b->bit_size[a]; b 404 libavcodec/dvenc.c b = blks; b 406 libavcodec/dvenc.c for (j = 0; j < 6 * 5; j++, b++) { b 407 libavcodec/dvenc.c prev = b->prev[0]; b 408 libavcodec/dvenc.c for (k = b->next[prev]; k < 64; k = b->next[k]) { b 409 libavcodec/dvenc.c if (b->mb[k] < a && b->mb[k] > -a) { b 410 libavcodec/dvenc.c b->next[prev] = b->next[k]; b 412 libavcodec/dvenc.c size[0] += dv_rl2vlc_size(k - prev - 1, b->mb[k]); b 478 libavcodec/dvenc.c uint8_t *b = scratch; b 481 libavcodec/dvenc.c b[0] = c_ptr[0]; b 482 libavcodec/dvenc.c b[1] = c_ptr[1]; b 483 libavcodec/dvenc.c b[2] = c_ptr[2]; b 484 libavcodec/dvenc.c b[3] = c_ptr[3]; b 485 libavcodec/dvenc.c b[4] = d[0]; b 486 libavcodec/dvenc.c b[5] = d[1]; b 487 libavcodec/dvenc.c b[6] = d[2]; b 488 libavcodec/dvenc.c b[7] = d[3]; b 490 libavcodec/dvenc.c b += 16; b 217 libavcodec/dxtory.c int r, g, b; b 226 libavcodec/dxtory.c b = decode_sym_565(gb, lru[0], 5); b 231 libavcodec/dxtory.c dst[x * 3 + 2] = (b << 3) | (b >> 2); b 271 libavcodec/eac3dec.c int b; b 277 libavcodec/eac3dec.c b = 1 << (23 - log_gain); b 279 libavcodec/eac3dec.c b = ff_eac3_gaq_remap_2_4_b[hebap-8][log_gain-1] << 8; b 280 libavcodec/eac3dec.c mant += ((ff_eac3_gaq_remap_2_4_a[hebap-8][log_gain-1] * (int64_t)mant) >> 15) + b; b 190 libavcodec/eatgq.c const int b = (11 * (100 - quant)) / 100 + 4; b 193 libavcodec/eatgq.c s->qtable[j * 8 + i] = ((a * (j + i) / (7 + 7) + b) * b 61 libavcodec/elbg.c static inline int distance_limited(int *a, int *b, int dim, int limit) b 65 libavcodec/elbg.c dist += (a[i] - b[i])*(a[i] - b[i]); b 268 libavcodec/error_resilience.c int a, b, c, d; b 271 libavcodec/error_resilience.c b = dst[offset + 8 + y * stride] - dst[offset + 7 + y * stride]; b 274 libavcodec/error_resilience.c d = FFABS(b) - ((FFABS(a) + FFABS(c) + 1) >> 1); b 276 libavcodec/error_resilience.c if (b < 0) b 339 libavcodec/error_resilience.c int a, b, c, d; b 342 libavcodec/error_resilience.c b = dst[offset + x + 8 * stride] - dst[offset + x + 7 * stride]; b 345 libavcodec/error_resilience.c d = FFABS(b) - ((FFABS(a) + FFABS(c) + 1) >> 1); b 347 libavcodec/error_resilience.c if (b < 0) b 344 libavcodec/evrcdec.c float a[FILTER_ORDER / 2 + 1], b[FILTER_ORDER / 2 + 1]; b 355 libavcodec/evrcdec.c b[0] = k < 2 ? k < 1 ? 0.25 : -0.25 : 0; b 359 libavcodec/evrcdec.c b[i + 1] = b[i] - 2 * lsp[i * 2 + 1] * b1[i] + b2[i]; b 363 libavcodec/evrcdec.c b1[i] = b[i]; b 367 libavcodec/evrcdec.c ilpc[k - 1] = 2.0 * (a[FILTER_ORDER / 2] + b[FILTER_ORDER / 2]); b 604 libavcodec/exr.c static inline void wdec14(uint16_t l, uint16_t h, uint16_t *a, uint16_t *b) b 614 libavcodec/exr.c *b = bs; b 621 libavcodec/exr.c static inline void wdec16(uint16_t l, uint16_t h, uint16_t *a, uint16_t *b) b 627 libavcodec/exr.c *b = bb; b 909 libavcodec/exr.c const uint8_t *r, *g, *b, *a; b 913 libavcodec/exr.c b = channel_buffer[2]; b 936 libavcodec/exr.c t.i = bytestream_get_le32(&b); b 948 libavcodec/exr.c *ptr_x++ = s->gamma_table[bytestream_get_le16(&b)]; b 27 libavcodec/fft-internal.h #define BF(x, y, a, b) do { \ b 28 libavcodec/fft-internal.h x = a - b; \ b 29 libavcodec/fft-internal.h y = a + b; \ b 66 libavcodec/fft-internal.h #define BF(x, y, a, b) do { \ b 67 libavcodec/fft-internal.h x = (a - b) >> 1; \ b 68 libavcodec/fft-internal.h y = (a + b) >> 1; \ b 50 libavcodec/fft-test.c #define MUL16(a, b) ((a) * (b)) b 256 libavcodec/ffv1dec.c int b = sample[1][1][x]; b 261 libavcodec/ffv1dec.c b -= offset; b 263 libavcodec/ffv1dec.c g -= (b * s->slice_rct_by_coef + r * s->slice_rct_ry_coef) >> 2; b 264 libavcodec/ffv1dec.c b += g; b 269 libavcodec/ffv1dec.c *((uint32_t*)(src[0] + x*4 + stride[0]*y)) = b + (g<<8) + (r<<16) + (a<<24); b 271 libavcodec/ffv1dec.c *((uint16_t*)(src[0] + x*2 + stride[0]*y)) = b; b 429 libavcodec/ffv1enc.c int b, g, r, av_uninit(a); b 432 libavcodec/ffv1enc.c b = v & 0xFF; b 437 libavcodec/ffv1enc.c b = *((const uint16_t *)(src[0] + x*2 + stride[0]*y)); b 443 libavcodec/ffv1enc.c b -= g; b 445 libavcodec/ffv1enc.c g += (b * s->slice_rct_by_coef + r * s->slice_rct_ry_coef) >> 2; b 446 libavcodec/ffv1enc.c b += offset; b 451 libavcodec/ffv1enc.c sample[1][0][x] = b; b 919 libavcodec/ffv1enc.c double a=0, b=0; b 923 libavcodec/ffv1enc.c if (s->rc_stat2[i][j][k][0] + s->rc_stat2[i][j][k][1] > 200 && j || a+b > 200) { b 924 libavcodec/ffv1enc.c if (a+b) b 925 libavcodec/ffv1enc.c p = 256.0 * b / (a + b); b 927 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; b 930 libavcodec/ffv1enc.c a=b=0; b 933 libavcodec/ffv1enc.c b += s->rc_stat2[i][j][k][1]; b 934 libavcodec/ffv1enc.c if (a+b) { b 935 libavcodec/ffv1enc.c p = 256.0 * b / (a + b); b 938 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; b 1053 libavcodec/ffv1enc.c int b, g, r; b 1057 libavcodec/ffv1enc.c b = v & 0xFF; b 1061 libavcodec/ffv1enc.c b = *((const uint16_t*)(src[0] + x*2 + stride[0]*y)); b 1068 libavcodec/ffv1enc.c ab = b - lastb; b 1088 libavcodec/ffv1enc.c lastb = b; b 167 libavcodec/ffwavesynth.c static uint64_t frac64(uint64_t a, uint64_t b) b 172 libavcodec/ffwavesynth.c if (b < (uint64_t)1 << 32) { /* b small, use two 32-bits steps */ b 174 libavcodec/ffwavesynth.c return ((a / b) << 32) | ((a % b) << 32) / b; b 176 libavcodec/ffwavesynth.c if (b < (uint64_t)1 << 48) { /* b medium, use four 16-bits steps */ b 179 libavcodec/ffwavesynth.c r = (r << 16) | (a / b); b 180 libavcodec/ffwavesynth.c a %= b; b 185 libavcodec/ffwavesynth.c if (a >= (uint64_t)1 << 63 || a << 1 >= b) { b 187 libavcodec/ffwavesynth.c a = (a << 1) - b; b 263 libavcodec/flacdec.c int av_uninit(a), av_uninit(b), av_uninit(c), av_uninit(d), i; b 277 libavcodec/flacdec.c b = a - decoded[pred_order-2]; b 279 libavcodec/flacdec.c c = b - decoded[pred_order-2] + decoded[pred_order-3]; b 292 libavcodec/flacdec.c decoded[i] = a += b += decoded[i]; b 296 libavcodec/flacdec.c decoded[i] = a += b += c += decoded[i]; b 300 libavcodec/flacdec.c decoded[i] = a += b += c += d += decoded[i]; b 33 libavcodec/flacdsp_lpc_template.c # define MUL(a, b) MUL64(a, b) b 37 libavcodec/flacdsp_lpc_template.c # define MUL(a, b) ((a) * (b)) b 70 libavcodec/flacdsp_template.c int b = in[1][i]; b 72 libavcodec/flacdsp_template.c S(samples, 1, i) = (a - b) << shift; b 84 libavcodec/flacdsp_template.c int b = in[1][i]; b 85 libavcodec/flacdsp_template.c S(samples, 0, i) = (a + b) << shift; b 86 libavcodec/flacdsp_template.c S(samples, 1, i) = b << shift; b 98 libavcodec/flacdsp_template.c int b = in[1][i]; b 99 libavcodec/flacdsp_template.c a -= b >> 1; b 100 libavcodec/flacdsp_template.c S(samples, 0, i) = (a + b) << shift; b 723 libavcodec/flacenc.c int b = smp[i ] - smp[i-1]; b 724 libavcodec/flacenc.c res[i] = b - a; b 726 libavcodec/flacenc.c res[i+1] = a - b; b 732 libavcodec/flacenc.c int b = smp[i ] - smp[i-1]; b 733 libavcodec/flacenc.c int d = b - a; b 736 libavcodec/flacenc.c c = a - b; b 744 libavcodec/flacenc.c int b = smp[i ] - smp[i-1]; b 745 libavcodec/flacenc.c int d = b - a; b 749 libavcodec/flacenc.c c = a - b; b 86 libavcodec/flashsv.c unsigned b = c & 0x1F; b 90 libavcodec/flashsv.c *dst++ = (b << 3) | (b >> 2); b 144 libavcodec/flashsv2enc.c Block *b; b 147 libavcodec/flashsv2enc.c b = blocks + (col + row * s->cols); b 148 libavcodec/flashsv2enc.c b->width = (col < s->cols - 1) ? b 152 libavcodec/flashsv2enc.c b->height = (row < s->rows - 1) ? b 156 libavcodec/flashsv2enc.c b->row = row; b 157 libavcodec/flashsv2enc.c b->col = col; b 158 libavcodec/flashsv2enc.c b->enc = encbuf; b 159 libavcodec/flashsv2enc.c b->data = databuf; b 160 libavcodec/flashsv2enc.c encbuf += b->width * b->height * 3; b 161 libavcodec/flashsv2enc.c databuf += !databuf ? 0 : b->width * b->height * 6; b 312 libavcodec/flashsv2enc.c static int write_block(Block * b, uint8_t * buf, int buf_size) b 315 libavcodec/flashsv2enc.c unsigned block_size = b->data_size; b 317 libavcodec/flashsv2enc.c if (b->flags & HAS_DIFF_BLOCKS) b 319 libavcodec/flashsv2enc.c if (b->flags & ZLIB_PRIME_COMPRESS_CURRENT) b 332 libavcodec/flashsv2enc.c buf[buf_pos++] = b->flags; b 334 libavcodec/flashsv2enc.c if (b->flags & HAS_DIFF_BLOCKS) { b 335 libavcodec/flashsv2enc.c buf[buf_pos++] = (b->start); b 336 libavcodec/flashsv2enc.c buf[buf_pos++] = (b->len); b 339 libavcodec/flashsv2enc.c if (b->flags & ZLIB_PRIME_COMPRESS_CURRENT) { b 341 libavcodec/flashsv2enc.c buf[buf_pos++] = (b->col); b 342 libavcodec/flashsv2enc.c buf[buf_pos++] = (b->row); b 345 libavcodec/flashsv2enc.c memcpy(buf + buf_pos, b->data, b->data_size); b 347 libavcodec/flashsv2enc.c buf_pos += b->data_size; b 352 libavcodec/flashsv2enc.c static int encode_zlib(Block * b, uint8_t * buf, unsigned long *buf_size, int comp) b 354 libavcodec/flashsv2enc.c int res = compress2(buf, buf_size, b->sl_begin, b->sl_end - b->sl_begin, comp); b 358 libavcodec/flashsv2enc.c static int encode_zlibprime(Block * b, Block * prime, uint8_t * buf, b 380 libavcodec/flashsv2enc.c s.next_in = b->sl_begin; b 381 libavcodec/flashsv2enc.c s.avail_in = b->sl_end - b->sl_begin; b 392 libavcodec/flashsv2enc.c static int encode_bgr(Block * b, const uint8_t * src, int stride) b 395 libavcodec/flashsv2enc.c uint8_t *ptr = b->enc; b 396 libavcodec/flashsv2enc.c for (i = 0; i < b->start; i++) b 397 libavcodec/flashsv2enc.c memcpy(ptr + i * b->width * 3, src + i * stride, b->width * 3); b 398 libavcodec/flashsv2enc.c b->sl_begin = ptr + i * b->width * 3; b 399 libavcodec/flashsv2enc.c for (; i < b->start + b->len; i++) b 400 libavcodec/flashsv2enc.c memcpy(ptr + i * b->width * 3, src + i * stride, b->width * 3); b 401 libavcodec/flashsv2enc.c b->sl_end = ptr + i * b->width * 3; b 402 libavcodec/flashsv2enc.c for (; i < b->height; i++) b 403 libavcodec/flashsv2enc.c memcpy(ptr + i * b->width * 3, src + i * stride, b->width * 3); b 404 libavcodec/flashsv2enc.c b->enc_size = ptr + i * b->width * 3 - b->enc; b 405 libavcodec/flashsv2enc.c return b->enc_size; b 468 libavcodec/flashsv2enc.c int r, g, b; b 472 libavcodec/flashsv2enc.c for (b = 4; b < 256; b += 8) { b 473 libavcodec/flashsv2enc.c bgr = b | (g << 8) | (r << 16); b 474 libavcodec/flashsv2enc.c c15 = (b >> 3) | ((g & 0xf8) << 2) | ((r & 0xf8) << 7); b 534 libavcodec/flashsv2enc.c static int encode_15_7(Palette * palette, Block * b, const uint8_t * src, b 538 libavcodec/flashsv2enc.c uint8_t *ptr = b->enc; b 539 libavcodec/flashsv2enc.c for (i = 0; i < b->start; i++) b 540 libavcodec/flashsv2enc.c ptr += encode_15_7_sl(palette, ptr, src + i * stride, b->width, dist); b 541 libavcodec/flashsv2enc.c b->sl_begin = ptr; b 542 libavcodec/flashsv2enc.c for (; i < b->start + b->len; i++) b 543 libavcodec/flashsv2enc.c ptr += encode_15_7_sl(palette, ptr, src + i * stride, b->width, dist); b 544 libavcodec/flashsv2enc.c b->sl_end = ptr; b 545 libavcodec/flashsv2enc.c for (; i < b->height; i++) b 546 libavcodec/flashsv2enc.c ptr += encode_15_7_sl(palette, ptr, src + i * stride, b->width, dist); b 547 libavcodec/flashsv2enc.c b->enc_size = ptr - b->enc; b 548 libavcodec/flashsv2enc.c return b->enc_size; b 551 libavcodec/flashsv2enc.c static int encode_block(FlashSV2Context *s, Palette * palette, Block * b, b 555 libavcodec/flashsv2enc.c unsigned buf_size = b->width * b->height * 6; b 559 libavcodec/flashsv2enc.c if (b->flags & COLORSPACE_15_7) { b 560 libavcodec/flashsv2enc.c encode_15_7(palette, b, src, stride, dist); b 562 libavcodec/flashsv2enc.c encode_bgr(b, src, stride); b 565 libavcodec/flashsv2enc.c if (b->len > 0) { b 566 libavcodec/flashsv2enc.c b->data_size = buf_size; b 567 libavcodec/flashsv2enc.c res = encode_zlib(b, b->data, &b->data_size, comp); b 572 libavcodec/flashsv2enc.c res = encode_zlibprime(b, prev, buf, &buf_size, comp); b 576 libavcodec/flashsv2enc.c if (buf_size < b->data_size) { b 577 libavcodec/flashsv2enc.c b->data_size = buf_size; b 578 libavcodec/flashsv2enc.c memcpy(b->data, buf, buf_size); b 579 libavcodec/flashsv2enc.c b->flags |= ZLIB_PRIME_COMPRESS_PREVIOUS; b 583 libavcodec/flashsv2enc.c b->data_size = 0; b 588 libavcodec/flashsv2enc.c static int compare_sl(FlashSV2Context * s, Block * b, const uint8_t * src, b 591 libavcodec/flashsv2enc.c if (memcmp(src, frame, b->width * 3) != 0) { b 592 libavcodec/flashsv2enc.c b->dirty = 1; b 593 libavcodec/flashsv2enc.c memcpy(frame, src, b->width * 3); b 598 libavcodec/flashsv2enc.c if (memcmp(src, key, b->width * 3) != 0) { b 599 libavcodec/flashsv2enc.c if (b->len == 0) b 600 libavcodec/flashsv2enc.c b->start = y; b 601 libavcodec/flashsv2enc.c b->len = y + 1 - b->start; b 610 libavcodec/flashsv2enc.c Block *b; b 614 libavcodec/flashsv2enc.c b = s->frame_blocks + col + rsl / s->block_height * s->cols; b 617 libavcodec/flashsv2enc.c compare_sl(s, b, src + possl, s->current_frame + pos, b 631 libavcodec/flashsv2enc.c Block *b, *prev; b 634 libavcodec/flashsv2enc.c b = s->frame_blocks + (row * s->cols + col); b 636 libavcodec/flashsv2enc.c b->flags = s->use15_7 ? COLORSPACE_15_7 : 0; b 638 libavcodec/flashsv2enc.c b->start = 0; b 639 libavcodec/flashsv2enc.c b->len = b->height; b 640 libavcodec/flashsv2enc.c } else if (!b->dirty) { b 641 libavcodec/flashsv2enc.c b->start = 0; b 642 libavcodec/flashsv2enc.c b->len = 0; b 643 libavcodec/flashsv2enc.c b->data_size = 0; b 645 libavcodec/flashsv2enc.c } else if (b->start != 0 || b->len != b->height) { b 646 libavcodec/flashsv2enc.c b->flags |= HAS_DIFF_BLOCKS; b 649 libavcodec/flashsv2enc.c res = encode_block(s, &s->palette, b, prev, data, s->image_width * 3, s->comp, s->dist, keyframe); b 651 libavcodec/flashsv2enc.c if (b->dirty) b 653 libavcodec/flashsv2enc.c s->comp_size += b->data_size; b 654 libavcodec/flashsv2enc.c s->uncomp_size += b->enc_size; b 671 libavcodec/flashsv2enc.c Block *b; b 674 libavcodec/flashsv2enc.c b = s->frame_blocks + row * s->cols + col; b 675 libavcodec/flashsv2enc.c len = write_block(b, buf + buf_pos, buf_size - buf_pos); b 676 libavcodec/flashsv2enc.c b->start = b->len = b->dirty = 0; b 176 libavcodec/flicvideo.c unsigned char r, g, b; b 258 libavcodec/flicvideo.c b = bytestream2_get_byte(&g2) << color_shift; b 259 libavcodec/flicvideo.c entry = 0xFFU << 24 | r << 16 | g << 8 | b; b 79 libavcodec/fraps.c const Node *a = va, *b = vb; b 80 libavcodec/fraps.c return (a->count - b->count)*256 + a->sym - b->sym; b 342 libavcodec/g723_1.c #define MULL2(a, b) \ b 343 libavcodec/g723_1.c MULL(a,b,15) b 537 libavcodec/g723_1.c static int dot_product(const int16_t *a, const int16_t *b, int length) b 539 libavcodec/g723_1.c int sum = ff_dot_product(a,b,length); b 85 libavcodec/g726.c int b[6]; /**< sixth order predictor coeffs */ b 219 libavcodec/g726.c c->b[i] = 0; b 230 libavcodec/g726.c c->b[i] += 128*dq0*sgn(-c->dq[i].sign) - (c->b[i]>>8); b 267 libavcodec/g726.c c->se += mult(i2f(c->b[i] >> 2, &f), &c->dq[i]); b 476 libavcodec/get_bits.h #define INIT_VLC_STATIC(vlc, bits, a, b, c, d, e, f, g, static_size) \ b 481 libavcodec/get_bits.h init_vlc(vlc, bits, a, b, c, d, e, f, g, INIT_VLC_USE_NEW_STATIC); \ b 49 libavcodec/gsmdec_template.c static inline int gsm_mult(int a, int b) b 51 libavcodec/gsmdec_template.c return (a * b + (1 << 14)) >> 15; b 953 libavcodec/h264.h static av_always_inline uint32_t pack16to32(int a, int b) b 956 libavcodec/h264.h return (b & 0xFFFF) + (a << 16); b 958 libavcodec/h264.h return (a & 0xFFFF) + (b << 16); b 962 libavcodec/h264.h static av_always_inline uint16_t pack8to16(int a, int b) b 965 libavcodec/h264.h return (b & 0xFF) + (a << 8); b 967 libavcodec/h264.h return (a & 0xFF) + (b << 8); b 338 libavcodec/h264_direct.c int a, b; b 357 libavcodec/h264_direct.c b = 0; b 361 libavcodec/h264_direct.c b = mv[1]; b 365 libavcodec/h264_direct.c b = mv[1]; b 368 libavcodec/h264_direct.c fill_rectangle(&h->mv_cache[1][scan8[i8 * 4]], 2, 2, 8, b, 4); b 375 libavcodec/h264_direct.c int a, b; b 387 libavcodec/h264_direct.c a = b = 0; b 391 libavcodec/h264_direct.c b = mv[1]; b 394 libavcodec/h264_direct.c b = mv[1]; b 397 libavcodec/h264_direct.c fill_rectangle(&h->mv_cache[1][scan8[0]], 4, 4, 8, b, 4); b 103 libavcodec/h264_loopfilter.c unsigned int qp, int a, int b, b 108 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 125 libavcodec/h264_loopfilter.c unsigned int qp, int a, int b, b 130 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 148 libavcodec/h264_loopfilter.c int qp, int a, int b, b 153 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 172 libavcodec/h264_loopfilter.c int b, int intra) b 176 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 193 libavcodec/h264_loopfilter.c unsigned int qp, int a, int b, b 198 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 215 libavcodec/h264_loopfilter.c unsigned int qp, int a, int b, b 220 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 254 libavcodec/h264_loopfilter.c int b = 52 + h->slice_beta_offset - qp_bd_offset; b 273 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*0<<pixel_shift], linesize, bS4, qp0, a, b, h, 1); b 275 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*2<<pixel_shift], linesize, bS3, qp, a, b, h, 0); b 277 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*0*linesize], linesize, bSH, qp1, a, b, h, 1); b 279 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*2*linesize], linesize, bS3, qp, a, b, h, 0); b 281 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*1<<pixel_shift], linesize, bS3, qp, a, b, h, 0); b 282 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*2<<pixel_shift], linesize, bS3, qp, a, b, h, 0); b 283 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*3<<pixel_shift], linesize, bS3, qp, a, b, h, 0); b 285 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*0*linesize], linesize, bSH, qp1, a, b, h, 1); b 287 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*1*linesize], linesize, bS3, qp, a, b, h, 0); b 288 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*2*linesize], linesize, bS3, qp, a, b, h, 0); b 289 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*3*linesize], linesize, bS3, qp, a, b, h, 0); b 294 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cb[4*0<<pixel_shift], linesize, bS4, qpc0, a, b, h, 1); b 295 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cr[4*0<<pixel_shift], linesize, bS4, qpc0, a, b, h, 1); b 298 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cb[4*2<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 299 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cr[4*2<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 301 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*0*linesize], linesize, bSH, qpc1, a, b, h, 1 ); b 302 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*0*linesize], linesize, bSH, qpc1, a, b, h, 1 ); b 304 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*2*linesize], linesize, bS3, qpc, a, b, h, 0); b 305 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*2*linesize], linesize, bS3, qpc, a, b, h, 0); b 307 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cb[4*1<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 308 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cr[4*1<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 309 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cb[4*2<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 310 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cr[4*2<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 311 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cb[4*3<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 312 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cr[4*3<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 314 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*0*linesize], linesize, bSH, qpc1, a, b, h, 1); b 315 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*0*linesize], linesize, bSH, qpc1, a, b, h, 1); b 317 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*1*linesize], linesize, bS3, qpc, a, b, h, 0); b 318 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*1*linesize], linesize, bS3, qpc, a, b, h, 0); b 319 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*2*linesize], linesize, bS3, qpc, a, b, h, 0); b 320 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*2*linesize], linesize, bS3, qpc, a, b, h, 0); b 321 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*3*linesize], linesize, bS3, qpc, a, b, h, 0); b 322 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*3*linesize], linesize, bS3, qpc, a, b, h, 0); b 326 libavcodec/h264_loopfilter.c filter_mb_edgecv(&img_cb[2*0<<pixel_shift], uvlinesize, bS4, qpc0, a, b, h, 1); b 327 libavcodec/h264_loopfilter.c filter_mb_edgecv(&img_cr[2*0<<pixel_shift], uvlinesize, bS4, qpc0, a, b, h, 1); b 329 libavcodec/h264_loopfilter.c filter_mb_edgecv(&img_cb[2*2<<pixel_shift], uvlinesize, bS3, qpc, a, b, h, 0); b 330 libavcodec/h264_loopfilter.c filter_mb_edgecv(&img_cr[2*2<<pixel_shift], uvlinesize, bS3, qpc, a, b, h, 0); b 332 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[4*0*uvlinesize], uvlinesize, bSH, qpc1, a, b, h, 1); b 333 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[4*0*uvlinesize], uvlinesize, bSH, qpc1, a, b, h, 1); b 335 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[4*1*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 336 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[4*1*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 337 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[4*2*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 338 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[4*2*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 339 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[4*3*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 340 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[4*3*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 343 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cb[2*0<<pixel_shift], uvlinesize, bS4, qpc0, a, b, h, 1); b 344 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cr[2*0<<pixel_shift], uvlinesize, bS4, qpc0, a, b, h, 1); b 346 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cb[2*2<<pixel_shift], uvlinesize, bS3, qpc, a, b, h, 0); b 347 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cr[2*2<<pixel_shift], uvlinesize, bS3, qpc, a, b, h, 0); b 349 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cb[2*0*uvlinesize], uvlinesize, bSH, qpc1, a, b, h, 1); b 350 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cr[2*0*uvlinesize], uvlinesize, bSH, qpc1, a, b, h, 1); b 352 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cb[2*2*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 353 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cr[2*2*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 381 libavcodec/h264_loopfilter.c filter_mb_edge##hv( &img_y[4*edge*(dir?linesize:1<<pixel_shift)], linesize, bS[dir][edge], edge ? qp : qp##dir, a, b, h, intra );\ b 384 libavcodec/h264_loopfilter.c filter_mb_edge##hv( &img_cb[4*edge*(dir?linesize:1<<pixel_shift)], linesize, bS[dir][edge], edge ? qpc : qpc##dir, a, b, h, intra );\ b 385 libavcodec/h264_loopfilter.c filter_mb_edge##hv( &img_cr[4*edge*(dir?linesize:1<<pixel_shift)], linesize, bS[dir][edge], edge ? qpc : qpc##dir, a, b, h, intra );\ b 387 libavcodec/h264_loopfilter.c filter_mb_edgec##hv( &img_cb[2*edge*(dir?uvlinesize:1<<pixel_shift)], uvlinesize, bS[dir][edge], edge ? qpc : qpc##dir, a, b, h, intra );\ b 388 libavcodec/h264_loopfilter.c filter_mb_edgec##hv( &img_cr[2*edge*(dir?uvlinesize:1<<pixel_shift)], uvlinesize, bS[dir][edge], edge ? qpc : qpc##dir, a, b, h, intra );\ b 463 libavcodec/h264_loopfilter.c static av_always_inline void filter_mb_dir(H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int mb_xy, int mb_type, int mvy_limit, int first_vertical_edge_done, int a, int b, int chroma, int dir) { b 518 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[j*linesize], tmp_linesize, bS, qp, a, b, h, 0 ); b 523 libavcodec/h264_loopfilter.c filter_mb_edgeh (&img_cb[j*uvlinesize], tmp_uvlinesize, bS, chroma_qp_avg[0], a, b, h, 0); b 524 libavcodec/h264_loopfilter.c filter_mb_edgeh (&img_cr[j*uvlinesize], tmp_uvlinesize, bS, chroma_qp_avg[1], a, b, h, 0); b 526 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[j*uvlinesize], tmp_uvlinesize, bS, chroma_qp_avg[0], a, b, h, 0); b 527 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[j*uvlinesize], tmp_uvlinesize, bS, chroma_qp_avg[1], a, b, h, 0); b 587 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[0], linesize, bS, qp, a, b, h, 1 ); b 590 libavcodec/h264_loopfilter.c filter_mb_edgev ( &img_cb[0], uvlinesize, bS, chroma_qp_avg[0], a, b, h, 1); b 591 libavcodec/h264_loopfilter.c filter_mb_edgev ( &img_cr[0], uvlinesize, bS, chroma_qp_avg[1], a, b, h, 1); b 593 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cb[0], uvlinesize, bS, chroma_qp_avg[0], a, b, h, 1); b 594 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cr[0], uvlinesize, bS, chroma_qp_avg[1], a, b, h, 1); b 598 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[0], linesize, bS, qp, a, b, h, 1 ); b 601 libavcodec/h264_loopfilter.c filter_mb_edgeh ( &img_cb[0], uvlinesize, bS, chroma_qp_avg[0], a, b, h, 1); b 602 libavcodec/h264_loopfilter.c filter_mb_edgeh ( &img_cr[0], uvlinesize, bS, chroma_qp_avg[1], a, b, h, 1); b 604 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cb[0], uvlinesize, bS, chroma_qp_avg[0], a, b, h, 1); b 605 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cr[0], uvlinesize, bS, chroma_qp_avg[1], a, b, h, 1); b 670 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*edge << h->pixel_shift], linesize, bS, qp, a, b, h, 0 ); b 673 libavcodec/h264_loopfilter.c filter_mb_edgev ( &img_cb[4*edge << h->pixel_shift], uvlinesize, bS, h->chroma_qp[0], a, b, h, 0); b 674 libavcodec/h264_loopfilter.c filter_mb_edgev ( &img_cr[4*edge << h->pixel_shift], uvlinesize, bS, h->chroma_qp[1], a, b, h, 0); b 676 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cb[2*edge << h->pixel_shift], uvlinesize, bS, h->chroma_qp[0], a, b, h, 0); b 677 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cr[2*edge << h->pixel_shift], uvlinesize, bS, h->chroma_qp[1], a, b, h, 0); b 683 libavcodec/h264_loopfilter.c filter_mb_edgeh(&img_y[4*edge*linesize], linesize, bS, qp, a, b, h, 0); b 685 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[4*edge*uvlinesize], uvlinesize, bS, h->chroma_qp[0], a, b, h, 0); b 686 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[4*edge*uvlinesize], uvlinesize, bS, h->chroma_qp[1], a, b, h, 0); b 689 libavcodec/h264_loopfilter.c filter_mb_edgeh(&img_y[4*edge*linesize], linesize, bS, qp, a, b, h, 0); b 692 libavcodec/h264_loopfilter.c filter_mb_edgeh (&img_cb[4*edge*uvlinesize], uvlinesize, bS, h->chroma_qp[0], a, b, h, 0); b 693 libavcodec/h264_loopfilter.c filter_mb_edgeh (&img_cr[4*edge*uvlinesize], uvlinesize, bS, h->chroma_qp[1], a, b, h, 0); b 695 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[2*edge*uvlinesize], uvlinesize, bS, h->chroma_qp[0], a, b, h, 0); b 696 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[2*edge*uvlinesize], uvlinesize, bS, h->chroma_qp[1], a, b, h, 0); b 712 libavcodec/h264_loopfilter.c int b = 52 + h->slice_beta_offset - qp_bd_offset; b 779 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_y , linesize, bS , 1, qp [0], a, b, 1 ); b 780 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_y + 8* linesize, linesize, bS+4, 1, qp [1], a, b, 1 ); b 783 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cb, uvlinesize, bS , 1, bqp[0], a, b, 1 ); b 784 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cb + 8*uvlinesize, uvlinesize, bS+4, 1, bqp[1], a, b, 1 ); b 785 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cr, uvlinesize, bS , 1, rqp[0], a, b, 1 ); b 786 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cr + 8*uvlinesize, uvlinesize, bS+4, 1, rqp[1], a, b, 1 ); b 788 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv(h, img_cb, uvlinesize, bS , 1, bqp[0], a, b, 1); b 789 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv(h, img_cb + 8*uvlinesize, uvlinesize, bS+4, 1, bqp[1], a, b, 1); b 790 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv(h, img_cr, uvlinesize, bS , 1, rqp[0], a, b, 1); b 791 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv(h, img_cr + 8*uvlinesize, uvlinesize, bS+4, 1, rqp[1], a, b, 1); b 793 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cb, uvlinesize, bS , 1, bqp[0], a, b, 1 ); b 794 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cb + 4*uvlinesize, uvlinesize, bS+4, 1, bqp[1], a, b, 1 ); b 795 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cr, uvlinesize, bS , 1, rqp[0], a, b, 1 ); b 796 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cr + 4*uvlinesize, uvlinesize, bS+4, 1, rqp[1], a, b, 1 ); b 800 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_y , 2* linesize, bS , 2, qp [0], a, b, 1 ); b 801 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_y + linesize, 2* linesize, bS+1, 2, qp [1], a, b, 1 ); b 804 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cb, 2*uvlinesize, bS , 2, bqp[0], a, b, 1 ); b 805 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cb + uvlinesize, 2*uvlinesize, bS+1, 2, bqp[1], a, b, 1 ); b 806 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cr, 2*uvlinesize, bS , 2, rqp[0], a, b, 1 ); b 807 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cr + uvlinesize, 2*uvlinesize, bS+1, 2, rqp[1], a, b, 1 ); b 809 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cb, 2*uvlinesize, bS , 2, bqp[0], a, b, 1 ); b 810 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cb + uvlinesize, 2*uvlinesize, bS+1, 2, bqp[1], a, b, 1 ); b 811 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cr, 2*uvlinesize, bS , 2, rqp[0], a, b, 1 ); b 812 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cr + uvlinesize, 2*uvlinesize, bS+1, 2, rqp[1], a, b, 1 ); b 824 libavcodec/h264_loopfilter.c dir ? 0 : first_vertical_edge_done, a, b, b 828 libavcodec/h264_loopfilter.c filter_mb_dir(h, mb_x, mb_y, img_y, img_cb, img_cr, linesize, uvlinesize, mb_xy, mb_type, mvy_limit, first_vertical_edge_done, a, b, chroma, 0); b 829 libavcodec/h264_loopfilter.c filter_mb_dir(h, mb_x, mb_y, img_y, img_cb, img_cr, linesize, uvlinesize, mb_xy, mb_type, mvy_limit, 0, a, b, chroma, 1); b 538 libavcodec/h264_mb.c #define XCHG(a, b, xchg) \ b 541 libavcodec/h264_mb.c AV_SWAP64(b + 0, a + 0); \ b 542 libavcodec/h264_mb.c AV_SWAP64(b + 8, a + 8); \ b 544 libavcodec/h264_mb.c AV_COPY128(b, a); \ b 547 libavcodec/h264_mb.c AV_SWAP64(b, a); \ b 549 libavcodec/h264_mb.c AV_COPY64(b, a); b 409 libavcodec/h264_slice.c #define IN_RANGE(a, b, size) (((a) >= (b)) && ((a) < ((b) + (size)))) b 199 libavcodec/h264chroma_template.c #define op_avg(a, b) a = (((a)+(((b) + 32)>>6)+1)>>1) b 200 libavcodec/h264chroma_template.c #define op_put(a, b) a = (((b) + 32)>>6) b 307 libavcodec/h264idct_template.c int a,b,c,d,e; b 311 libavcodec/h264idct_template.c b= block[stride*0 + xStride*1]; b 315 libavcodec/h264idct_template.c e= a-b; b 316 libavcodec/h264idct_template.c a= a+b; b 317 libavcodec/h264idct_template.c b= c-d; b 321 libavcodec/h264idct_template.c block[stride*0 + xStride*1]= ((e+b)*qmul) >> 7; b 323 libavcodec/h264idct_template.c block[stride*1 + xStride*1]= ((e-b)*qmul) >> 7; b 335 libavcodec/h264pred_template.c const pixel4 b = AV_RN4PA(((pixel4*)(src-stride))+1); b 341 libavcodec/h264pred_template.c AV_WN4PA(((pixel4*)(src+i*stride))+1, b); b 470 libavcodec/h264pred_template.c int b = a; b 473 libavcodec/h264pred_template.c src[16+i] = CLIP((b ) >> 5); b 474 libavcodec/h264pred_template.c src[17+i] = CLIP((b+ H) >> 5); b 475 libavcodec/h264pred_template.c src[18+i] = CLIP((b+2*H) >> 5); b 476 libavcodec/h264pred_template.c src[19+i] = CLIP((b+3*H) >> 5); b 477 libavcodec/h264pred_template.c b += 4*H; b 494 libavcodec/h264pred_template.c const pixel4 b= AV_RN4PA(((pixel4*)(src-stride))+1); b 498 libavcodec/h264pred_template.c AV_WN4PA(((pixel4*)(src+i*stride))+1, b); b 508 libavcodec/h264pred_template.c const pixel4 b= AV_RN4PA(((pixel4*)(src-stride))+1); b 512 libavcodec/h264pred_template.c AV_WN4PA(((pixel4*)(src+i*stride))+1, b); b 791 libavcodec/h264pred_template.c int b = a; b 793 libavcodec/h264pred_template.c src[0] = CLIP((b ) >> 5); b 794 libavcodec/h264pred_template.c src[1] = CLIP((b+ H) >> 5); b 795 libavcodec/h264pred_template.c src[2] = CLIP((b+2*H) >> 5); b 796 libavcodec/h264pred_template.c src[3] = CLIP((b+3*H) >> 5); b 797 libavcodec/h264pred_template.c src[4] = CLIP((b+4*H) >> 5); b 798 libavcodec/h264pred_template.c src[5] = CLIP((b+5*H) >> 5); b 799 libavcodec/h264pred_template.c src[6] = CLIP((b+6*H) >> 5); b 800 libavcodec/h264pred_template.c src[7] = CLIP((b+7*H) >> 5); b 833 libavcodec/h264pred_template.c int b = a; b 835 libavcodec/h264pred_template.c src[0] = CLIP((b ) >> 5); b 836 libavcodec/h264pred_template.c src[1] = CLIP((b+ H) >> 5); b 837 libavcodec/h264pred_template.c src[2] = CLIP((b+2*H) >> 5); b 838 libavcodec/h264pred_template.c src[3] = CLIP((b+3*H) >> 5); b 839 libavcodec/h264pred_template.c src[4] = CLIP((b+4*H) >> 5); b 840 libavcodec/h264pred_template.c src[5] = CLIP((b+5*H) >> 5); b 841 libavcodec/h264pred_template.c src[6] = CLIP((b+6*H) >> 5); b 842 libavcodec/h264pred_template.c src[7] = CLIP((b+7*H) >> 5); b 945 libavcodec/h264pred_template.c pixel4 a, b; b 957 libavcodec/h264pred_template.c b = AV_RN4PA(((pixel4*)src)+1); b 960 libavcodec/h264pred_template.c AV_WN4PA(((pixel4*)(src+y*stride))+1, b); b 533 libavcodec/h264qpel_template.c #define op_avg(a, b) a = (((a)+CLIP(((b) + 16)>>5)+1)>>1) b 535 libavcodec/h264qpel_template.c #define op_put(a, b) a = CLIP(((b) + 16)>>5) b 536 libavcodec/h264qpel_template.c #define op2_avg(a, b) a = (((a)+CLIP(((b) + 512)>>10)+1)>>1) b 537 libavcodec/h264qpel_template.c #define op2_put(a, b) a = CLIP(((b) + 512)>>10) b 278 libavcodec/hevc_mvs.c #define COMPARE_MV_REFIDX(a, b) \ b 279 libavcodec/hevc_mvs.c compare_mv_ref_idx(TAB_MVF_PU(a), TAB_MVF_PU(b)) b 328 libavcodec/hevcdsp_template.c #define CMP(a, b) (((a) > (b)) - ((a) < (b))) b 39 libavcodec/hpel_template.c pixel4 a, b; \ b 41 libavcodec/hpel_template.c b = AV_RN4P(&src2[i * src_stride2]); \ b 42 libavcodec/hpel_template.c OP(*((pixel4 *) &dst[i * dst_stride]), rnd_avg_pixel4(a, b)); \ b 44 libavcodec/hpel_template.c b = AV_RN4P(&src2[i * src_stride2 + 4 * sizeof(pixel)]); \ b 46 libavcodec/hpel_template.c rnd_avg_pixel4(a, b)); \ b 60 libavcodec/hpel_template.c pixel4 a, b; \ b 62 libavcodec/hpel_template.c b = AV_RN4P(&src2[i * src_stride2]); \ b 63 libavcodec/hpel_template.c OP(*((pixel4 *) &dst[i * dst_stride]), rnd_avg_pixel4(a, b)); \ b 77 libavcodec/hpel_template.c pixel4 a, b; \ b 79 libavcodec/hpel_template.c b = AV_RN2P(&src2[i * src_stride2]); \ b 80 libavcodec/hpel_template.c OP(*((pixel2 *) &dst[i * dst_stride]), rnd_avg_pixel4(a, b)); \ b 101 libavcodec/hpel_template.c #define op_avg(a, b) a = rnd_avg_pixel4(a, b) b 102 libavcodec/hpel_template.c #define op_put(a, b) a = b b 50 libavcodec/hpeldsp.c uint32_t a, b; \ b 52 libavcodec/hpeldsp.c b = AV_RN32(&src2[i * src_stride2]); \ b 54 libavcodec/hpeldsp.c no_rnd_avg32(a, b)); \ b 56 libavcodec/hpeldsp.c b = AV_RN32(&src2[i * src_stride2 + 4]); \ b 58 libavcodec/hpeldsp.c no_rnd_avg32(a, b)); \ b 178 libavcodec/hpeldsp.c const uint32_t b = AV_RN32(pixels + 1); \ b 180 libavcodec/hpeldsp.c (b & 0x03030303UL) + \ b 183 libavcodec/hpeldsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 189 libavcodec/hpeldsp.c uint32_t b = AV_RN32(pixels + 1); \ b 191 libavcodec/hpeldsp.c (b & 0x03030303UL); \ b 193 libavcodec/hpeldsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 199 libavcodec/hpeldsp.c b = AV_RN32(pixels + 1); \ b 201 libavcodec/hpeldsp.c (b & 0x03030303UL) + \ b 204 libavcodec/hpeldsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 223 libavcodec/hpeldsp.c const uint32_t b = AV_RN32(pixels + 1); \ b 225 libavcodec/hpeldsp.c (b & 0x03030303UL) + \ b 228 libavcodec/hpeldsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 234 libavcodec/hpeldsp.c uint32_t b = AV_RN32(pixels + 1); \ b 236 libavcodec/hpeldsp.c (b & 0x03030303UL); \ b 238 libavcodec/hpeldsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 244 libavcodec/hpeldsp.c b = AV_RN32(pixels + 1); \ b 246 libavcodec/hpeldsp.c (b & 0x03030303UL) + \ b 249 libavcodec/hpeldsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 271 libavcodec/hpeldsp.c const uint32_t b = AV_RN32(pixels + 1); \ b 273 libavcodec/hpeldsp.c (b & 0x03030303UL) + \ b 276 libavcodec/hpeldsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 282 libavcodec/hpeldsp.c uint32_t b = AV_RN32(pixels + 1); \ b 284 libavcodec/hpeldsp.c (b & 0x03030303UL); \ b 286 libavcodec/hpeldsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 292 libavcodec/hpeldsp.c b = AV_RN32(pixels + 1); \ b 294 libavcodec/hpeldsp.c (b & 0x03030303UL) + \ b 297 libavcodec/hpeldsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 330 libavcodec/hpeldsp.c #define op_avg(a, b) a = rnd_avg32(a, b) b 331 libavcodec/hpeldsp.c #define op_put(a, b) a = b b 722 libavcodec/hqxvlc.c #define RPT_2(a, b, c) { a, b, c }, { a, b, c } b 723 libavcodec/hqxvlc.c #define RPT_4(a, b, c) RPT_2( a, b, c), RPT_2( a, b, c) b 724 libavcodec/hqxvlc.c #define RPT_8(a, b, c) RPT_4( a, b, c), RPT_4( a, b, c) b 725 libavcodec/hqxvlc.c #define RPT_16(a, b, c) RPT_8( a, b, c), RPT_8( a, b, c) b 726 libavcodec/hqxvlc.c #define RPT_32(a, b, c) RPT_16( a, b, c), RPT_16( a, b, c) b 727 libavcodec/hqxvlc.c #define RPT_64(a, b, c) RPT_32( a, b, c), RPT_32( a, b, c) b 728 libavcodec/hqxvlc.c #define RPT_128(a, b, c) RPT_64( a, b, c), RPT_64( a, b, c) b 729 libavcodec/hqxvlc.c #define RPT_256(a, b, c) RPT_128(a, b, c), RPT_128(a, b, c) b 730 libavcodec/hqxvlc.c #define RPT_512(a, b, c) RPT_256(a, b, c), RPT_256(a, b, c) b 731 libavcodec/hqxvlc.c #define RPT_1024(a, b, c) RPT_512(a, b, c), RPT_512(a, b, c) b 158 libavcodec/huffyuvdec.c int i, b, g, r, code; b 169 libavcodec/huffyuvdec.c for (b = -16; b < 16; b++) { b 170 libavcodec/huffyuvdec.c int len1 = s->len[p1][b & 255]; b 174 libavcodec/huffyuvdec.c code = (s->bits[p0][g & 255] << len1) + s->bits[p1][b & 255]; b 184 libavcodec/huffyuvdec.c map[i][B] = g + b; b 188 libavcodec/huffyuvdec.c map[i][G] = b; b 36 libavcodec/huffyuvdsp.c long b = *(long *) (dst + i); b 37 libavcodec/huffyuvdsp.c *(long *) (dst + i) = ((a & pb_7f) + (b & pb_7f)) ^ ((a ^ b) & pb_80); b 88 libavcodec/huffyuvdsp.c uint8_t r = left[R], g = left[G], b = left[B], a = left[A]; b 91 libavcodec/huffyuvdsp.c b += src[4 * i + B]; b 96 libavcodec/huffyuvdsp.c dst[4 * i + B] = b; b 102 libavcodec/huffyuvdsp.c left[B] = b; b 99 libavcodec/huffyuvenc.c int r, g, b, a; b 102 libavcodec/huffyuvenc.c b = *blue; b 112 libavcodec/huffyuvenc.c dst[i * 4 + B] = bt - b; b 116 libavcodec/huffyuvenc.c b = bt; b 133 libavcodec/huffyuvenc.c int r, g, b; b 136 libavcodec/huffyuvenc.c b = *blue; b 143 libavcodec/huffyuvenc.c dst[i * 3 + 2] = bt - b; b 146 libavcodec/huffyuvenc.c b = bt; b 710 libavcodec/huffyuvenc.c int b =(s->temp[0][planes == 3 ? 3 * i + 2 : 4 * i + B] - g) & 0xFF;\ b 715 libavcodec/huffyuvenc.c s->stats[0][b]++; \ b 723 libavcodec/huffyuvenc.c put_bits(&s->pb, s->len[0][b], s->bits[0][b]); \ b 48 libavcodec/huffyuvencdsp.c long b = *(long *) (src2 + i); b 49 libavcodec/huffyuvencdsp.c *(long *) (dst + i) = ((a | pb_80) - (b & pb_7f)) ^ b 50 libavcodec/huffyuvencdsp.c ((a ^ b ^ pb_80) & pb_80); b 49 libavcodec/imdct15.c #define CMUL(c, a, b) CMUL3((c).re, (c).im, (a).re, (a).im, (b).re, (b).im) b 53 libavcodec/imdct15.c #define CMUL2(c, d, a, b) \ b 57 libavcodec/imdct15.c float bre = (b).re; \ b 58 libavcodec/imdct15.c float bim = (b).im; \ b 241 libavcodec/indeo3data.h #define PD(a,b) (((a) << 8) + (b)) b 243 libavcodec/indeo3data.h #define PD(a,b) (((b) << 8) + (a)) b 250 libavcodec/indeo3data.h #define E2(a, b) PD(a, b), PD(-(a), -(b)) b 251 libavcodec/indeo3data.h #define E4(a, b) PD(a, b), PD(-(a), -(b)), PD(b, a), PD(-(b), -(a)) b 288 libavcodec/indeo3data.h #define PD(a,b) (((a) << 24) + ((a) << 16) + ((b) << 8) + (b)) b 290 libavcodec/indeo3data.h #define PD(a,b) (((b) << 24) + ((b) << 16) + ((a) << 8) + (a)) b 147 libavcodec/internal.h int ff_match_2uint16(const uint16_t (*tab)[2], int size, int a, int b); b 378 libavcodec/intrax8.c int a,b,c,i; b 403 libavcodec/intrax8.c b= w->prediction_table[2*s->mb_x + !(s->mb_y&1) ];//block[x ][y-1] b 407 libavcodec/intrax8.c w->est_run = FFMIN(b,a); b 415 libavcodec/intrax8.c b&=3; b 418 libavcodec/intrax8.c i=( 0xFFEAF4C4>>(2*b+8*a) )&3; b 282 libavcodec/ivi_common.c int p, b, t; b 286 libavcodec/ivi_common.c for (b = 0; b < planes[p].num_bands; b++) { b 287 libavcodec/ivi_common.c av_freep(&planes[p].bands[b].bufs[0]); b 288 libavcodec/ivi_common.c av_freep(&planes[p].bands[b].bufs[1]); b 289 libavcodec/ivi_common.c av_freep(&planes[p].bands[b].bufs[2]); b 290 libavcodec/ivi_common.c av_freep(&planes[p].bands[b].bufs[3]); b 292 libavcodec/ivi_common.c if (planes[p].bands[b].blk_vlc.cust_tab.table) b 293 libavcodec/ivi_common.c ff_free_vlc(&planes[p].bands[b].blk_vlc.cust_tab); b 294 libavcodec/ivi_common.c for (t = 0; t < planes[p].bands[b].num_tiles; t++) b 295 libavcodec/ivi_common.c av_freep(&planes[p].bands[b].tiles[t].mbs); b 296 libavcodec/ivi_common.c av_freep(&planes[p].bands[b].tiles); b 306 libavcodec/ivi_common.c int p, b; b 347 libavcodec/ivi_common.c for (b = 0; b < planes[p].num_bands; b++) { b 348 libavcodec/ivi_common.c band = &planes[p].bands[b]; /* select appropriate plane/band */ b 350 libavcodec/ivi_common.c band->band_num = b; b 381 libavcodec/ivi_common.c int p, int b, int t_height, int t_width) b 404 libavcodec/ivi_common.c if (p || b) { b 422 libavcodec/ivi_common.c int p, b, x_tiles, y_tiles, t_width, t_height, ret; b 436 libavcodec/ivi_common.c for (b = 0; b < planes[p].num_bands; b++) { b 437 libavcodec/ivi_common.c band = &planes[p].bands[b]; b 450 libavcodec/ivi_common.c p, b, t_height, t_width); b 1059 libavcodec/ivi_common.c int result, p, b; b 1102 libavcodec/ivi_common.c for (b = 0; b < ctx->planes[p].num_bands; b++) { b 1103 libavcodec/ivi_common.c result = decode_band(ctx, &ctx->planes[p].bands[b], avctx); b 1106 libavcodec/ivi_common.c "Error while decoding band: %d, plane: %d\n", b, p); b 836 libavcodec/ivi_dsp.c #define OP_PUT(a, b) (a) = (b) b 837 libavcodec/ivi_dsp.c #define OP_ADD(a, b) (a) += (b) b 207 libavcodec/jpeg2000.h static inline int ff_jpeg2000_ceildivpow2(int a, int b) b 209 libavcodec/jpeg2000.h return (a + (1 << b) - 1) >> b; b 212 libavcodec/jpeg2000.h static inline int ff_jpeg2000_ceildiv(int a, int b) b 214 libavcodec/jpeg2000.h return (a + b - 1) / b; b 1514 libavcodec/jpeg2000dec.c uint32_t r, g, b; b 1549 libavcodec/jpeg2000dec.c b = bytestream2_get_byteu(&s->g) << 8 - colour_depth[2]; b 1552 libavcodec/jpeg2000dec.c b = bytestream2_get_be16u(&s->g) >> colour_depth[2] - 8; b 1554 libavcodec/jpeg2000dec.c s->palette[i] = 0xffu << 24 | r << 16 | g << 8 | b; b 501 libavcodec/jpeg2000dwt.c b[2][2]; b 508 libavcodec/jpeg2000dwt.c b[i][j] = border[i][j]; b 510 libavcodec/jpeg2000dwt.c maxlen = FFMAX(b[0][1] - b[0][0], b 511 libavcodec/jpeg2000dwt.c b[1][1] - b[1][0]); b 514 libavcodec/jpeg2000dwt.c s->linelen[lev][i] = b[i][1] - b[i][0]; b 515 libavcodec/jpeg2000dwt.c s->mod[lev][i] = b[i][0] & 1; b 517 libavcodec/jpeg2000dwt.c b[i][j] = (b[i][j] + 1) >> 1; b 457 libavcodec/jpeglsdec.c int b = src[x+0] + ((454 * (src[x+1]-128) + 574) >> 8); b 460 libavcodec/jpeglsdec.c src[x+2] = av_clip_uint8(b); b 641 libavcodec/lagarith.c uint8_t r, g, b, a; b 644 libavcodec/lagarith.c b = srcs[2][i]; b 646 libavcodec/lagarith.c b += g; b 649 libavcodec/lagarith.c AV_WN32(dst + i * 4, MKBETAG(a, r, g, b)); b 653 libavcodec/lagarith.c dst[i * 3 + 2] = b; b 186 libavcodec/libutvideodec.cpp unsigned a,b; b 189 libavcodec/libutvideodec.cpp b = AV_RL32(in); b 193 libavcodec/libutvideodec.cpp *y++ = (b ) & 0x3FF; b 200 libavcodec/libutvideodec.cpp *u++ = (b>>10) & 0x3FF; b 201 libavcodec/libutvideodec.cpp *y++ = (b>>20) & 0x3FF; b 209 libavcodec/libutvideodec.cpp b = AV_RL32(in); b 211 libavcodec/libutvideodec.cpp *y++ = (b ) & 0x3FF; b 212 libavcodec/libutvideodec.cpp *v++ = (b>>10) & 0x3FF; b 213 libavcodec/libutvideodec.cpp *y++ = (b>>20) & 0x3FF; b 32 libavcodec/libzvbi-teletextdec.c #define RGBA(r,g,b,a) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) b 270 libavcodec/libzvbi-teletextdec.c int r, g, b, a; b 274 libavcodec/libzvbi-teletextdec.c b = VBI_B(page->color_map[ci]); b 276 libavcodec/libzvbi-teletextdec.c ((uint32_t *)sub_rect->pict.data[1])[ci] = RGBA(r, g, b, a); b 119 libavcodec/loco.c int a, b, c; b 122 libavcodec/loco.c b = data[-step]; b 125 libavcodec/loco.c return mid_pred(a, a + b - c, b); b 30 libavcodec/lossless_videodsp.c long b = *(long*)(dst+i); b 31 libavcodec/lossless_videodsp.c *(long*)(dst+i) = ((a&pw_lsb) + (b&pw_lsb)) ^ ((a^b)&pw_msb); b 55 libavcodec/lossless_videodsp.c long b = *(long*)(src2+i); b 56 libavcodec/lossless_videodsp.c *(long*)(dst+i) = ((a|pw_msb) - (b&pw_lsb)) ^ ((a^b^pw_msb)&pw_msb); b 186 libavcodec/lpc.h LPC_TYPE b = lpc_last[i-1-j]; b 187 libavcodec/lpc.h lpc[ j] = f + r * b; b 188 libavcodec/lpc.h lpc[i-1-j] = b + r * f; b 53 libavcodec/mathops.h # define MUL64(a,b) ((int64_t)(a) * (int64_t)(b)) b 57 libavcodec/mathops.h # define MULL(a,b,s) (MUL64(a, b) >> (s)) b 61 libavcodec/mathops.h static av_always_inline int MULH(int a, int b){ b 62 libavcodec/mathops.h return MUL64(a, b) >> 32; b 67 libavcodec/mathops.h static av_always_inline unsigned UMULH(unsigned a, unsigned b){ b 68 libavcodec/mathops.h return ((uint64_t)(a) * (uint64_t)(b))>>32; b 73 libavcodec/mathops.h # define MAC64(d, a, b) ((d) += MUL64(a, b)) b 77 libavcodec/mathops.h # define MLS64(d, a, b) ((d) -= MUL64(a, b)) b 97 libavcodec/mathops.h static inline av_const int mid_pred(int a, int b, int c) b 100 libavcodec/mathops.h int t= (a-b)&((a-b)>>31); b 102 libavcodec/mathops.h b+=t; b 103 libavcodec/mathops.h b-= (b-c)&((b-c)>>31); b 104 libavcodec/mathops.h b+= (a-b)&((a-b)>>31); b 106 libavcodec/mathops.h return b; b 108 libavcodec/mathops.h if(a>b){ b 109 libavcodec/mathops.h if(c>b){ b 110 libavcodec/mathops.h if(c>a) b=a; b 111 libavcodec/mathops.h else b=c; b 114 libavcodec/mathops.h if(b>c){ b 115 libavcodec/mathops.h if(c>a) b=c; b 116 libavcodec/mathops.h else b=a; b 119 libavcodec/mathops.h return b; b 126 libavcodec/mathops.h static inline av_const int median4(int a, int b, int c, int d) b 128 libavcodec/mathops.h if (a < b) { b 129 libavcodec/mathops.h if (c < d) return (FFMIN(b, d) + FFMAX(a, c)) / 2; b 130 libavcodec/mathops.h else return (FFMIN(b, c) + FFMAX(a, d)) / 2; b 132 libavcodec/mathops.h if (c < d) return (FFMIN(a, d) + FFMAX(b, c)) / 2; b 133 libavcodec/mathops.h else return (FFMIN(a, c) + FFMAX(b, d)) / 2; b 155 libavcodec/mathops.h #define COPY3_IF_LT(x, y, a, b, c, d)\ b 158 libavcodec/mathops.h (a) = (b);\ b 180 libavcodec/mathops.h # define PACK_2U8(a,b) (((a) << 8) | (b)) b 183 libavcodec/mathops.h # define PACK_4U8(a,b,c,d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d)) b 186 libavcodec/mathops.h # define PACK_2U16(a,b) (((a) << 16) | (b)) b 190 libavcodec/mathops.h # define PACK_2U8(a,b) (((b) << 8) | (a)) b 193 libavcodec/mathops.h # define PACK_4U8(a,b,c,d) (((d) << 24) | ((c) << 16) | ((b) << 8) | (a)) b 196 libavcodec/mathops.h # define PACK_2U16(a,b) (((b) << 16) | (a)) b 201 libavcodec/mathops.h # define PACK_2S8(a,b) PACK_2U8((a)&255, (b)&255) b 204 libavcodec/mathops.h # define PACK_4S8(a,b,c,d) PACK_4U8((a)&255, (b)&255, (c)&255, (d)&255) b 207 libavcodec/mathops.h # define PACK_2S16(a,b) PACK_2U16((a)&0xffff, (b)&0xffff) b 211 libavcodec/mathops.h # define FASTDIV(a,b) ((uint32_t)((((uint64_t)a) * ff_inverse[b]) >> 32)) b 216 libavcodec/mathops.h unsigned int b; b 219 libavcodec/mathops.h else if (a < (1 << 12)) b = ff_sqrt_tab[a >> 4] >> 2; b 221 libavcodec/mathops.h else if (a < (1 << 14)) b = ff_sqrt_tab[a >> 6] >> 1; b 222 libavcodec/mathops.h else if (a < (1 << 16)) b = ff_sqrt_tab[a >> 8] ; b 227 libavcodec/mathops.h b = ff_sqrt_tab[c >> (s + 8)]; b 228 libavcodec/mathops.h b = FASTDIV(c,b) + (b << s); b 231 libavcodec/mathops.h return b - (a < b * b); b 239 libavcodec/mathops.h } b; b 240 libavcodec/mathops.h b.u8 = a; b 241 libavcodec/mathops.h return b.s8; b 111 libavcodec/me_cmp.c #define avg2(a, b) (((a) + (b) + 1) >> 1) b 112 libavcodec/me_cmp.c #define avg4(a, b, c, d) (((a) + (b) + (c) + (d) + 2) >> 2) b 364 libavcodec/me_cmp.c static int zero_cmp(MpegEncContext *s, uint8_t *a, uint8_t *b, b 438 libavcodec/me_cmp.c int a, b; \ b 440 libavcodec/me_cmp.c b = y; \ b 441 libavcodec/me_cmp.c x = a + b; \ b 442 libavcodec/me_cmp.c y = a - b; \ b 150 libavcodec/mips/aaccoder_mips.c float a, b, c, d; b 155 libavcodec/mips/aaccoder_mips.c b = fabsf(in[i+1]); b 160 libavcodec/mips/aaccoder_mips.c bx = sqrtf(b); b 165 libavcodec/mips/aaccoder_mips.c b = b * bx; b 170 libavcodec/mips/aaccoder_mips.c out[i+1] = sqrtf(b); b 2219 libavcodec/mips/aaccoder_mips.c int b; b 2227 libavcodec/mips/aaccoder_mips.c &b); b 2255 libavcodec/mips/aaccoder_mips.c int b; b 2263 libavcodec/mips/aaccoder_mips.c &b); b 2264 libavcodec/mips/aaccoder_mips.c bits += b; b 76 libavcodec/mips/aacpsy_mips.h float a, b, c, d; b 102 libavcodec/mips/aacpsy_mips.h : [a]"=&f"(a), [b]"=&f"(b), b 70 libavcodec/mips/celp_filters_mips.c float a,b,c; b 75 libavcodec/mips/celp_filters_mips.c b = filter_coeffs[1]; b 77 libavcodec/mips/celp_filters_mips.c b -= filter_coeffs[0] * filter_coeffs[0]; b 79 libavcodec/mips/celp_filters_mips.c c -= filter_coeffs[0] * b; b 157 libavcodec/mips/celp_filters_mips.c : [a]"f"(a), [b]"f"(b), [c]"f"(c) b 59 libavcodec/mips/celp_math_mips.c static float ff_dot_productf_mips(const float* a, const float* b, b 77 libavcodec/mips/celp_math_mips.c : [sum] "=&f" (sum), [a] "+r" (a), [b] "+r" (b) b 32 libavcodec/mips/mathops.h static inline av_const int64_t MAC64(int64_t d, int a, int b) b 37 libavcodec/mips/mathops.h : "+r"(d), "=&r"(m) : "r"(a), "r"(b)); b 40 libavcodec/mips/mathops.h #define MAC64(d, a, b) ((d) = MAC64(d, a, b)) b 42 libavcodec/mips/mathops.h static inline av_const int64_t MLS64(int64_t d, int a, int b) b 47 libavcodec/mips/mathops.h : "+r"(d), "=&r"(m) : "r"(a), "r"(b)); b 50 libavcodec/mips/mathops.h #define MLS64(d, a, b) ((d) = MLS64(d, a, b)) b 1890 libavcodec/mjpegdec.c int t = 0, b = 0; b 1909 libavcodec/mjpegdec.c while (b < t) { b 1910 libavcodec/mjpegdec.c uint8_t x = src[b++]; b 1913 libavcodec/mjpegdec.c x = src[b++]; b 2251 libavcodec/mjpegdec.c int b = dst[2][j] * k; b 2253 libavcodec/mjpegdec.c dst[1][j] = b*257 >> 16; b 2273 libavcodec/mjpegdec.c int b = (128 - dst[2][j]) * k; b 2276 libavcodec/mjpegdec.c dst[2][j] = (b*257 >> 16) + 128; b 70 libavcodec/motion_est.c static int minima_cmp(const void *a, const void *b){ b 72 libavcodec/motion_est.c const Minima *db = (const Minima *) b; b 295 libavcodec/motion_est.c static int zero_cmp(MpegEncContext *s, uint8_t *a, uint8_t *b, b 301 libavcodec/motion_est.c static void zero_hpel(uint8_t *a, const uint8_t *b, ptrdiff_t stride, int h){ b 431 libavcodec/motion_est.c const int b= score_map[(index+(1<<ME_MAP_SHIFT))&(ME_MAP_SIZE-1)]; b 440 libavcodec/motion_est.c if(t<=b){ b 444 libavcodec/motion_est.c if(t+r<=b+l){ b 454 libavcodec/motion_est.c if(t+l<=b+r){ b 465 libavcodec/motion_est.c if(t+l<=b+r){ b 475 libavcodec/motion_est.c if(t+r<=b+l){ b 1352 libavcodec/motion_est.c #define CHECK_BIDIR2(a,b,c,d)\ b 1353 libavcodec/motion_est.c CHECK_BIDIR(a,b,c,d)\ b 1354 libavcodec/motion_est.c CHECK_BIDIR(-(a),-(b),-(c),-(d)) b 1373 libavcodec/motion_est.c int b= (ymax - FFMAX(fy,by))|(FFMIN(fy,by) - ymin); b 1374 libavcodec/motion_est.c if((a|b) < 0) b 1392 libavcodec/motion_est.c int b= FFMIN(ymax - FFMAX(fy,by), FFMIN(fy,by) - ymin); b 1393 libavcodec/motion_est.c borderdist= FFMIN(a,b); b 91 libavcodec/motion_est_template.c const int b= score_map[(index+(1<<ME_MAP_SHIFT))&(ME_MAP_SIZE-1)] b 106 libavcodec/motion_est_template.c if(t<=b){ b 110 libavcodec/motion_est_template.c if(t+r<=b+l){ b 118 libavcodec/motion_est_template.c if(t+l<=b+r){ b 127 libavcodec/motion_est_template.c if(t+l<=b+r){ b 135 libavcodec/motion_est_template.c if(t+r<=b+l){ b 252 libavcodec/motion_est_template.c const int b= score_map[(index+(1<<ME_MAP_SHIFT) )&(ME_MAP_SIZE-1)]; b 269 libavcodec/motion_est_template.c const int64_t b2= nx*nx*(br + bl - 2*b) + 4*nx*(br-bl) + 32*b; b 297 libavcodec/motion_est_template.c const int cy = 4*(b - t); b 298 libavcodec/motion_est_template.c const int cy2= b + t - 2*c; b 311 libavcodec/motion_est_template.c av_assert2(16*cy2 + 4*cy + 32*c == 32*b); b 35 libavcodec/motionpixels_tablegen.h int r, g, b; b 39 libavcodec/motionpixels_tablegen.h b = (1000 * y + 886 * u) / 1000; b 41 libavcodec/motionpixels_tablegen.h return ((cm[r * 8] & 0xF8) << 7) | ((cm[g * 8] & 0xF8) << 2) | (cm[b * 8] >> 3); b 42 libavcodec/motionpixels_tablegen.h if ((unsigned)r < 32 && (unsigned)g < 32 && (unsigned)b < 32) b 43 libavcodec/motionpixels_tablegen.h return (r << 10) | (g << 5) | b; b 181 libavcodec/mpeg4video.h int a, b, c, wrap, pred, scale, ret; b 199 libavcodec/mpeg4video.h b = dc_val[-1 - wrap]; b 206 libavcodec/mpeg4video.h b = c = 1024; b 208 libavcodec/mpeg4video.h b = a = 1024; b 212 libavcodec/mpeg4video.h b = 1024; b 215 libavcodec/mpeg4video.h if (abs(a - b) < abs(b - c)) { b 28 libavcodec/mpegaudiodec_fixed.c #define SHR(a,b) ((a)>>(b)) b 29 libavcodec/mpegaudiodec_float.c #define SHR(a,b) ((a)*(1.0f/(1<<(b)))) b 574 libavcodec/mpegaudiodec_template.c int scale, qindex, bits, steps, k, l, m, b; b 656 libavcodec/mpegaudiodec_template.c b = bit_alloc[ch][i]; b 657 libavcodec/mpegaudiodec_template.c if (b) { b 659 libavcodec/mpegaudiodec_template.c qindex = alloc_table[j+b]; b 693 libavcodec/mpegaudiodec_template.c b = bit_alloc[0][i]; b 694 libavcodec/mpegaudiodec_template.c if (b) { b 698 libavcodec/mpegaudiodec_template.c qindex = alloc_table[j+b]; b 47 libavcodec/mpegaudiodsp_template.c #define SHR(a,b) ((a)*(1.0f/(1<<(b)))) b 67 libavcodec/mpegaudiodsp_template.c # define SHR(a,b) ((a)>>(b)) b 43 libavcodec/mpegaudioenc_template.c #define MUL(a,b) (((int64_t)(a) * (int64_t)(b)) >> FRAC_BITS) b 514 libavcodec/mpegaudioenc_template.c int i, ch, b, max_smr, max_ch, max_sb, current_frame_size, max_frame_size; b 576 libavcodec/mpegaudioenc_template.c b = bit_alloc[max_ch][max_sb]; b 577 libavcodec/mpegaudioenc_template.c incr = s->total_quant_bits[alloc[b + 1]] - b 578 libavcodec/mpegaudioenc_template.c s->total_quant_bits[alloc[b]]; b 583 libavcodec/mpegaudioenc_template.c b = ++bit_alloc[max_ch][max_sb]; b 586 libavcodec/mpegaudioenc_template.c smr[max_ch][max_sb] = smr1[max_ch][max_sb] - quant_snr[alloc[b]]; b 588 libavcodec/mpegaudioenc_template.c if (b == ((1 << alloc[0]) - 1)) b 609 libavcodec/mpegaudioenc_template.c int i, j, k, l, bit_alloc_bits, b, ch; b 680 libavcodec/mpegaudioenc_template.c b = bit_alloc[ch][i]; b 681 libavcodec/mpegaudioenc_template.c if (b) { b 684 libavcodec/mpegaudioenc_template.c qindex = s->alloc_table[j+b]; b 3578 libavcodec/mpegvideo_enc.c int a,b; b 3580 libavcodec/mpegvideo_enc.c b= ff_get_best_fcode(s, s->p_field_mv_table[1][1], CANDIDATE_MB_TYPE_INTER_I); b 3581 libavcodec/mpegvideo_enc.c s->f_code= FFMAX3(s->f_code, a, b); b 3597 libavcodec/mpegvideo_enc.c int a, b; b 3600 libavcodec/mpegvideo_enc.c b = ff_get_best_fcode(s, s->b_bidir_forw_mv_table, CANDIDATE_MB_TYPE_BIDIR); b 3601 libavcodec/mpegvideo_enc.c s->f_code = FFMAX(a, b); b 3604 libavcodec/mpegvideo_enc.c b = ff_get_best_fcode(s, s->b_bidir_back_mv_table, CANDIDATE_MB_TYPE_BIDIR); b 3605 libavcodec/mpegvideo_enc.c s->b_code = FFMAX(a, b); b 417 libavcodec/mpegvideo_motion.c #define OBMC_FILTER(x, t, l, m, r, b)\ b 418 libavcodec/mpegvideo_motion.c dst[x]= (t*top[x] + l*left[x] + m*mid[x] + r*right[x] + b*bottom[x] + 4)>>3 b 419 libavcodec/mpegvideo_motion.c #define OBMC_FILTER4(x, t, l, m, r, b)\ b 420 libavcodec/mpegvideo_motion.c OBMC_FILTER(x , t, l, m, r, b);\ b 421 libavcodec/mpegvideo_motion.c OBMC_FILTER(x+1 , t, l, m, r, b);\ b 422 libavcodec/mpegvideo_motion.c OBMC_FILTER(x +stride, t, l, m, r, b);\ b 423 libavcodec/mpegvideo_motion.c OBMC_FILTER(x+1+stride, t, l, m, r, b); b 39 libavcodec/mpegvideoencdsp.c int b = rem[i] + ((basis[i] * scale + b 43 libavcodec/mpegvideoencdsp.c b >>= RECON_SHIFT; b 44 libavcodec/mpegvideoencdsp.c av_assert2(-512 < b && b < 512); b 46 libavcodec/mpegvideoencdsp.c sum += (w * b) * (w * b) >> 4; b 154 libavcodec/msmpeg4.c int xy, wrap, pred, a, b, c; b 163 libavcodec/msmpeg4.c b = s->coded_block[xy - 1 - wrap]; b 166 libavcodec/msmpeg4.c if (b == c) { b 195 libavcodec/msmpeg4.c int a, b, c, wrap, pred, scale; b 212 libavcodec/msmpeg4.c b = dc_val[ - 1 - wrap]; b 216 libavcodec/msmpeg4.c b=c=1024; b 238 libavcodec/msmpeg4.c : "+b" (a), "+c" (b), "+D" (c) b 246 libavcodec/msmpeg4.c b = (b + (8 >> 1)) / 8; b 250 libavcodec/msmpeg4.c b = FASTDIV((b + (scale >> 1)), scale); b 268 libavcodec/msmpeg4.c if (abs(a - b) < abs(b - c)) { b 314 libavcodec/msmpeg4.c if (abs(a - b) < abs(b - c)) { b 323 libavcodec/msmpeg4.c if (abs(a - b) <= abs(b - c)) { b 122 libavcodec/mss1.c int i, ncol, r, g, b; b 132 libavcodec/mss1.c b = arith_get_bits(acoder, 8); b 133 libavcodec/mss1.c *pal++ = (0xFFU << 24) | (r << 16) | (g << 8) | b; b 184 libavcodec/mss2.c #define READ_PAIR(a, b) \ b 188 libavcodec/mss2.c b = (t & 0xF) << 8; \ b 189 libavcodec/mss2.c b |= bytestream2_get_byte(gB); \ b 207 libavcodec/mss2.c int b = bytestream2_get_byte(gB); b 208 libavcodec/mss2.c if (b < 128) b 209 libavcodec/mss2.c last_symbol = b << 8 | bytestream2_get_byte(gB); b 210 libavcodec/mss2.c else if (b > 129) { b 212 libavcodec/mss2.c while (b-- > 130) b 220 libavcodec/mss2.c last_symbol = 127 - b; b 329 libavcodec/mss2.c int b = get_vlc2(gb, vlc.table, 9, 3); b 330 libavcodec/mss2.c if (b < 256) b 331 libavcodec/mss2.c last_symbol = b; b 332 libavcodec/mss2.c else if (b < 268) { b 333 libavcodec/mss2.c b -= 256; b 334 libavcodec/mss2.c if (b == 11) b 335 libavcodec/mss2.c b = get_bits(gb, 4) + 10; b 337 libavcodec/mss2.c if (!b) b 340 libavcodec/mss2.c repeat = get_bits(gb, b); b 342 libavcodec/mss2.c repeat += (1 << b) - 1; b 351 libavcodec/mss2.c last_symbol = 267 - b; b 106 libavcodec/mss2dsp.c uint8_t *src1, *src2, *dst1, *dst2, *p, a, b; b 129 libavcodec/mss2dsp.c b = src2[i]; b 130 libavcodec/mss2dsp.c dst1[i] = (3 * a + b + 2) >> 2; b 131 libavcodec/mss2dsp.c dst2[i] = (a + 3 * b + 2) >> 2; b 143 libavcodec/mss2dsp.c b = p[(i + 1) >> 1]; b 144 libavcodec/mss2dsp.c p[i] = (3 * a + b + 1) >> 2; b 145 libavcodec/mss2dsp.c p[i + 1] = (a + 3 * b + 1) >> 2; b 97 libavcodec/nellymoser.c int b = buf[i]-off; b 98 libavcodec/nellymoser.c b = ((b>>(shift-1))+1)>>1; b 99 libavcodec/nellymoser.c ret += av_clip(b, 0, NELLY_BIT_CAP); b 91 libavcodec/on2avc.c int w, b, band_off = 0; b 104 libavcodec/on2avc.c for (b = 0; b < c->num_bands; b++) b 142 libavcodec/on2avc.c int w, w2, b, scale, first = 1; b 153 libavcodec/on2avc.c for (b = 0; b < c->num_bands; b++) { b 159 libavcodec/on2avc.c if (c->band_type[w2 * c->num_bands + b]) { b 250 libavcodec/on2avc.c int w, b, band_idx; b 262 libavcodec/on2avc.c for (b = 0; b < c->num_bands; b++) { b 263 libavcodec/on2avc.c int band_size = c->band_start[b + 1] - c->band_start[b]; b 264 libavcodec/on2avc.c int band_type = c->band_type[band_idx + b]; b 272 libavcodec/on2avc.c c->band_scales[band_idx + b]); b 275 libavcodec/on2avc.c c->band_scales[band_idx + b]); b 286 libavcodec/on2avc.c int w, b, i; b 292 libavcodec/on2avc.c for (b = 0; b < c->num_bands; b++) { b 293 libavcodec/on2avc.c if (c->ms_info[band_off + b]) { b 294 libavcodec/on2avc.c for (i = c->band_start[b]; i < c->band_start[b + 1]; i++) { b 300 libavcodec/on2avc.c ch0 += c->band_start[b + 1] - c->band_start[b]; b 301 libavcodec/on2avc.c ch1 += c->band_start[b + 1] - c->band_start[b]; b 60 libavcodec/opus.h #define ROUND_MULL(a,b,s) (((MUL64(a, b) >> ((s) - 1)) + 1) >> 1) b 61 libavcodec/opus.h #define ROUND_MUL16(a,b) ((MUL16(a, b) + 16384) >> 15) b 1192 libavcodec/opus_celt.c static inline int celt_compute_qn(int N, int b, int offset, int pulse_cap, b 1203 libavcodec/opus_celt.c qb = FFMIN3(b - pulse_cap - (4 << 3), (b + N2 * offset) / N2, 8 << 3); b 1320 libavcodec/opus_celt.c int N, int b, unsigned int blocks, b 1352 libavcodec/opus_celt.c b -= 1 << 3; b 1407 libavcodec/opus_celt.c if (!dualstereo && duration >= 0 && b > cache[cache[0]] + 12 && N > 2) { b 1432 libavcodec/opus_celt.c celt_compute_qn(N, b, offset, pulse_cap, dualstereo); b 1447 libavcodec/opus_celt.c inv = (b > 2 << 3 && s->remaining2 > 2 << 3) ? opus_rc_p2model(rc, 2) : 0; b 1451 libavcodec/opus_celt.c b -= qalloc; b 1483 libavcodec/opus_celt.c mbits = b; b 1532 libavcodec/opus_celt.c mbits = av_clip((b - delta) / 2, 0, b); b 1533 libavcodec/opus_celt.c sbits = b - mbits; b 1587 libavcodec/opus_celt.c unsigned int q = celt_bits2pulses(cache, b); b 1904 libavcodec/opus_celt.c int b; b 1912 libavcodec/opus_celt.c b = av_clip_uintp2(FFMIN(s->remaining2 + 1, s->pulses[i] + curr_balance), 14); b 1914 libavcodec/opus_celt.c b = 0; b 1952 libavcodec/opus_celt.c cm[0] = celt_decode_band(s, rc, i, X, NULL, band_size, b / 2, s->blocks, b 1956 libavcodec/opus_celt.c cm[1] = celt_decode_band(s, rc, i, Y, NULL, band_size, b/2, s->blocks, b 1960 libavcodec/opus_celt.c cm[0] = celt_decode_band(s, rc, i, X, Y, band_size, b, s->blocks, b 1972 libavcodec/opus_celt.c update_lowband = (b > band_size << 3); b 1159 libavcodec/opus_silk.c int a, b, c, d; b 1167 libavcodec/opus_silk.c for (b = 0; b < 2; b++) { b 1168 libavcodec/opus_silk.c silk_count_children(rc, 1, branch[1][b], branch[2]); b 303 libavcodec/pafvideo.c unsigned r, g, b; b 309 libavcodec/pafvideo.c b = bytestream2_get_byteu(&c->gb); b 310 libavcodec/pafvideo.c b = b << 2 | b >> 4; b 311 libavcodec/pafvideo.c *out++ = (0xFFU << 24) | (r << 16) | (g << 8) | b; b 74 libavcodec/pel_template.c #define op_avg(a, b) a = rnd_avg_pixel4(a, b) b 75 libavcodec/pel_template.c #define op_put(a, b) a = b b 36 libavcodec/pgssubdec.c #define RGBA(r,g,b,a) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) b 333 libavcodec/pgssubdec.c int r, g, b, r_add, g_add, b_add; b 358 libavcodec/pgssubdec.c YUV_TO_RGB2(r, g, b, y); b 360 libavcodec/pgssubdec.c av_dlog(avctx, "Color %d := (%d,%d,%d,%d)\n", color_id, r, g, b, alpha); b 363 libavcodec/pgssubdec.c palette->clut[color_id] = RGBA(r,g,b,alpha); b 26 libavcodec/pixels.h #define CALL_2X_PIXELS_MACRO(STATIC, a, b, n) \ b 30 libavcodec/pixels.h b(block, pixels, line_size, h); \ b 31 libavcodec/pixels.h b(block + n, pixels + n, line_size, h); \ b 34 libavcodec/pixels.h #define CALL_2X_PIXELS(a, b, n) CALL_2X_PIXELS_MACRO(static, a, b, n) b 35 libavcodec/pixels.h #define CALL_2X_PIXELS_EXPORT(a, b, n) CALL_2X_PIXELS_MACRO(, a, b, n) b 100 libavcodec/pngdec.c int x, mask, dsp_mask, j, src_x, b, bpp; b 113 libavcodec/pngdec.c b = (src[src_x >> 3] >> (7 - (src_x & 7))) & 1; b 115 libavcodec/pngdec.c dst[x >> 3] |= b << (7 - j); b 127 libavcodec/pngdec.c b = (src[src_x >> 2] >> (6 - 2*(src_x & 3))) & 3; b 129 libavcodec/pngdec.c dst[x >> 2] |= b << (6 - j2); b 141 libavcodec/pngdec.c b = (src[src_x >> 1] >> (4 - 4*(src_x & 1))) & 15; b 143 libavcodec/pngdec.c dst[x >> 1] |= b << (4 - j2); b 171 libavcodec/pngdec.c int a, b, c, p, pa, pb, pc; b 174 libavcodec/pngdec.c b = top[i]; b 177 libavcodec/pngdec.c p = b - c; b 187 libavcodec/pngdec.c p = b; b 200 libavcodec/pngdec.c b = dst[2]; \ b 210 libavcodec/pngdec.c dst[i + 2] = b = op(b, src[i + 2], last[i + 2]); \ b 235 libavcodec/pngdec.c int i, p, r, g, b, a; b 692 libavcodec/pngdec.c int n, i, r, g, b; b 701 libavcodec/pngdec.c b = bytestream2_get_byte(&s->gb); b 702 libavcodec/pngdec.c s->palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | b; b 36 libavcodec/pngdsp.c long b = *(long *)(src2 + i); b 37 libavcodec/pngdsp.c *(long *)(dst + i) = ((a & pb_7f) + (b & pb_7f)) ^ ((a ^ b) & pb_80); b 57 libavcodec/pngenc.c int x, mask, dst_x, j, b, bpp; b 70 libavcodec/pngenc.c b = (src[x >> 3] >> (7 - j)) & 1; b 71 libavcodec/pngenc.c dst[dst_x >> 3] |= b << (7 - (dst_x & 7)); b 97 libavcodec/pngenc.c int a, b, c, p, pa, pb, pc; b 100 libavcodec/pngenc.c b = top[i]; b 103 libavcodec/pngenc.c p = b - c; b 113 libavcodec/pngenc.c p = b; b 217 libavcodec/ppc/fdctdsp.c #define MERGE_S16(hl, a, b) vec_merge ## hl(vs16(a), vs16(b)) b 282 libavcodec/ppc/fdctdsp.c b ## n ## 1 = ((vector float) vec_unpackl(vs16(b ## n ## 0))); \ b 283 libavcodec/ppc/fdctdsp.c b ## n ## 0 = ((vector float) vec_unpackh(vs16(b ## n ## 0))); \ b 284 libavcodec/ppc/fdctdsp.c b ## n ## 1 = vec_ctf(vs32(b ## n ## 1), 0); \ b 285 libavcodec/ppc/fdctdsp.c b ## n ## 0 = vec_ctf(vs32(b ## n ## 0), 0) b 311 libavcodec/ppc/fdctdsp.c #define CTFX(x, b) \ b 312 libavcodec/ppc/fdctdsp.c b ## 0 = ((vector float) vec_unpackh(vs16(x))); \ b 313 libavcodec/ppc/fdctdsp.c b ## 1 = ((vector float) vec_unpackl(vs16(x))); \ b 314 libavcodec/ppc/fdctdsp.c b ## 0 = vec_ctf(vs32(b ## 0), 0); \ b 315 libavcodec/ppc/fdctdsp.c b ## 1 = vec_ctf(vs32(b ## 1), 0) b 434 libavcodec/ppc/fdctdsp.c b ## n ## 0 = vec_round(b ## n ## 0); \ b 435 libavcodec/ppc/fdctdsp.c b ## n ## 1 = vec_round(b ## n ## 1); \ b 436 libavcodec/ppc/fdctdsp.c b ## n ## 0 = ((vector float) vec_cts(b ## n ## 0, 0)); \ b 437 libavcodec/ppc/fdctdsp.c b ## n ## 1 = ((vector float) vec_cts(b ## n ## 1, 0)); \ b 438 libavcodec/ppc/fdctdsp.c b ## n ## 0 = ((vector float) vec_pack(vs32(b ## n ## 0), \ b 439 libavcodec/ppc/fdctdsp.c vs32(b ## n ## 1))); \ b 440 libavcodec/ppc/fdctdsp.c vec_st(vs16(b ## n ## 0), 0, bp) b 64 libavcodec/ppc/fft_init.c vec_f cos,sin,cos0,sin0,cos1,sin1,re,im,r0,i0,r1,i1,a,b,c,d; b 67 libavcodec/ppc/fft_init.c b = pin[-k*2-p-1]; /* { z[-k-2].re, z[-k-2].im, z[-k-1].re, z[-k-1].im } */\ b 68 libavcodec/ppc/fft_init.c re = vec_perm(a, b, vcprm(0,2,s0,s2)); /* { z[k].re, z[k+1].re, z[-k-2].re, z[-k-1].re } */\ b 69 libavcodec/ppc/fft_init.c im = vec_perm(a, b, vcprm(s3,s1,3,1)); /* { z[-k-1].im, z[-k-2].im, z[k+1].im, z[k].im } */\ b 80 libavcodec/ppc/fft_init.c b = vec_perm(r##p, i##p, vcprm(1,s1,1,s1));\ b 84 libavcodec/ppc/fft_init.c STORE2(b, revtabk[ p*2-3]);\ b 111 libavcodec/ppc/fft_init.c vec_f cos,sin,re,im,a,b,c,d; b 120 libavcodec/ppc/fft_init.c CMULB(a,b,j); b 124 libavcodec/ppc/fft_init.c pout[2*k] = vec_perm(c, b, vcprm(0,s3,1,s2)); b 125 libavcodec/ppc/fft_init.c pout[2*k+1] = vec_perm(c, b, vcprm(2,s1,3,s0)); b 145 libavcodec/ppc/fft_init.c vec_u32 b = p1[-k-1]; b 147 libavcodec/ppc/fft_init.c p1[k] = vec_perm(b, b, vcprm(3,2,1,0)); b 262 libavcodec/ppc/fft_vsx.h vec_f a, b, c, d; b 265 libavcodec/ppc/fft_vsx.h b = vec_ld(byte_2complex, &(out[0])); b 267 libavcodec/ppc/fft_vsx.h c = vec_perm(a, b, vcprm(0,1,s2,s1)); b 268 libavcodec/ppc/fft_vsx.h d = vec_perm(a, b, vcprm(2,3,s0,s3)); b 270 libavcodec/ppc/fft_vsx.h b = vec_sub(c, d); b 272 libavcodec/ppc/fft_vsx.h c = vec_perm(a, b, vcprm(0,1,s0,s1)); b 273 libavcodec/ppc/fft_vsx.h d = vec_perm(a, b, vcprm(2,3,s3,s2)); b 276 libavcodec/ppc/fft_vsx.h b = vec_sub(c, d); b 278 libavcodec/ppc/fft_vsx.h vec_st(b, byte_2complex, &(out[0])); b 504 libavcodec/ppc/fft_vsx.h vec_f a, b, c, d; b 507 libavcodec/ppc/fft_vsx.h b = vec_ld(byte_2complex, &(out[0])); b 509 libavcodec/ppc/fft_vsx.h c = vec_perm(a, b, vcprm(0,1,s2,s1)); b 510 libavcodec/ppc/fft_vsx.h d = vec_perm(a, b, vcprm(2,3,s0,s3)); b 512 libavcodec/ppc/fft_vsx.h b = vec_sub(c, d); b 514 libavcodec/ppc/fft_vsx.h c = vec_perm(a,b, vcprm(0,s0,1,s1)); b 515 libavcodec/ppc/fft_vsx.h d = vec_perm(a, b, vcprm(2,s3,3,s2)); b 518 libavcodec/ppc/fft_vsx.h b = vec_sub(c, d); b 520 libavcodec/ppc/fft_vsx.h c = vec_perm(a, b, vcprm(0,1,s0,s1)); b 521 libavcodec/ppc/fft_vsx.h d = vec_perm(a, b, vcprm(2,3,s2,s3)); b 76 libavcodec/ppc/h264chroma_template.c #define GET_VSRC1(vs0, off, b, perm0, s){ \ b 80 libavcodec/ppc/h264chroma_template.c vsrcDuc = vec_ld(off + b, s); \ b 86 libavcodec/ppc/h264chroma_template.c #define GET_VSRC(vs0, vs1, off, b, perm0, perm1, s){ \ b 90 libavcodec/ppc/h264chroma_template.c vsrcDuc = vec_ld(off + b, s); \ b 103 libavcodec/ppc/h264chroma_template.c #define GET_VSRC1(vs0, off, b, perm0, s){ \ b 106 libavcodec/ppc/h264chroma_template.c #define GET_VSRC(vs0, vs1, off, b, perm0, perm1, s){ \ b 215 libavcodec/ppc/h264qpel.c vec_u8 a, b, d, mask_; b 223 libavcodec/ppc/h264qpel.c b = load_with_perm_vec(i * 16, src2, mask_); b 224 libavcodec/ppc/h264qpel.c d = vec_avg(a, b); b 255 libavcodec/ppc/h264qpel.c vec_u8 a, b, d, mask_; b 264 libavcodec/ppc/h264qpel.c b = load_with_perm_vec(i * 16, src2, mask_); b 265 libavcodec/ppc/h264qpel.c d = vec_avg(a, b); b 71 libavcodec/ppc/hpeldsp_altivec.c #define op_avg(a,b) a = ( ((a)|(b)) - ((((a)^(b))&0xFEFEFEFEUL)>>1) ) b 33 libavcodec/ppc/lossless_audiodsp_altivec.c #define GET_T(tt0,tt1,src,a,b){ \ b 35 libavcodec/ppc/lossless_audiodsp_altivec.c tt0 = vec_perm(b, a, align); \ b 36 libavcodec/ppc/lossless_audiodsp_altivec.c b = vec_ld(32, src); \ b 37 libavcodec/ppc/lossless_audiodsp_altivec.c tt1 = vec_perm(a, b, align); \ b 40 libavcodec/ppc/lossless_audiodsp_altivec.c #define GET_T(tt0,tt1,src,a,b){ \ b 43 libavcodec/ppc/mathops.h static inline av_const int MULH(int a, int b){ b 45 libavcodec/ppc/mathops.h __asm__ ("mulhw %0, %1, %2" : "=r"(r) : "r"(a), "r"(b)); b 50 libavcodec/ppc/mathops.h static inline av_const int64_t MAC64(int64_t d, int a, int b) b 59 libavcodec/ppc/mathops.h : "r"(a), "r"(b)); b 62 libavcodec/ppc/mathops.h #define MAC64(d, a, b) ((d) = MAC64(d, a, b)) b 64 libavcodec/ppc/mathops.h static inline av_const int64_t MLS64(int64_t d, int a, int b) b 73 libavcodec/ppc/mathops.h : "r"(a), "r"(b)); b 76 libavcodec/ppc/mathops.h #define MLS64(d, a, b) ((d) = MLS64(d, a, b)) b 60 libavcodec/ppc/mpegaudiodsp_altivec.c #define MULT(a, b) \ b 63 libavcodec/ppc/mpegaudiodsp_altivec.c v2 = vec_ld(b, win2a); \ b 65 libavcodec/ppc/vp8dsp_altivec.c b = vec_ld((offset)-is6tap-1+15, src); \ b 66 libavcodec/ppc/vp8dsp_altivec.c pixh = vec_perm(a, b, permh##offset); \ b 67 libavcodec/ppc/vp8dsp_altivec.c pixl = vec_perm(a, b, perml##offset) b 69 libavcodec/ppc/vp8dsp_altivec.c #define GET_OUTER(offset) outer = vec_perm(a, b, perm_6tap##offset) b 103 libavcodec/ppc/vp8dsp_altivec.c vec_u8 b; b 1252 libavcodec/qdm2.c GetBitContext *gb, int b) b 1308 libavcodec/qdm2.c exp = qdm2_get_vlc(gb, (b ? &fft_level_exp_vlc : &fft_level_exp_alt_vlc), 0, 2); b 44 libavcodec/qdrw.c int r, g, b; b 81 libavcodec/qdrw.c b = *buf++; b 83 libavcodec/qdrw.c pal[idx] = 0xFFU << 24 | r << 16 | g << 8 | b; b 40 libavcodec/qpel_template.c uint32_t a, b; \ b 42 libavcodec/qpel_template.c b = AV_RN32(&src2[i * src_stride2]); \ b 44 libavcodec/qpel_template.c no_rnd_avg32(a, b)); \ b 46 libavcodec/qpel_template.c b = AV_RN32(&src2[i * src_stride2 + 4]); \ b 48 libavcodec/qpel_template.c no_rnd_avg32(a, b)); \ b 85 libavcodec/qpel_template.c uint32_t a, b, c, d, l0, l1, h0, h1; \ b 87 libavcodec/qpel_template.c b = AV_RN32(&src2[i * src_stride2]); \ b 91 libavcodec/qpel_template.c (b & 0x03030303UL) + \ b 94 libavcodec/qpel_template.c ((b & 0xFCFCFCFCUL) >> 2); \ b 102 libavcodec/qpel_template.c b = AV_RN32(&src2[i * src_stride2 + 4]); \ b 106 libavcodec/qpel_template.c (b & 0x03030303UL) + \ b 109 libavcodec/qpel_template.c ((b & 0xFCFCFCFCUL) >> 2); \ b 135 libavcodec/qpel_template.c uint32_t a, b, c, d, l0, l1, h0, h1; \ b 137 libavcodec/qpel_template.c b = AV_RN32(&src2[i * src_stride2]); \ b 141 libavcodec/qpel_template.c (b & 0x03030303UL) + \ b 144 libavcodec/qpel_template.c ((b & 0xFCFCFCFCUL) >> 2); \ b 152 libavcodec/qpel_template.c b = AV_RN32(&src2[i * src_stride2 + 4]); \ b 156 libavcodec/qpel_template.c (b & 0x03030303UL) + \ b 159 libavcodec/qpel_template.c ((b & 0xFCFCFCFCUL) >> 2); \ b 215 libavcodec/qpel_template.c #define op_avg(a, b) a = rnd_avg32(a, b) b 216 libavcodec/qpel_template.c #define op_put(a, b) a = b b 691 libavcodec/qpeldsp.c #define op_avg(a, b) a = (((a) + cm[((b) + 16) >> 5] + 1) >> 1) b 692 libavcodec/qpeldsp.c #define op_put(a, b) a = cm[((b) + 16) >> 5] b 693 libavcodec/qpeldsp.c #define op_put_no_rnd(a, b) a = cm[((b) + 15) >> 5] b 274 libavcodec/qtrle.c uint8_t r, g, b; b 292 libavcodec/qtrle.c b = bytestream2_get_byte(&s->g); b 299 libavcodec/qtrle.c rgb[pixel_ptr++] = b; b 70 libavcodec/r210dec.c uint16_t r, g, b; b 77 libavcodec/r210dec.c b = pixel << 6; b 81 libavcodec/r210dec.c b = (pixel << 4) & 0xffc0; b 87 libavcodec/r210dec.c *dst++ = b | (b >> 10); b 61 libavcodec/r210enc.c uint16_t b = *src++ >> 6; b 63 libavcodec/r210enc.c pixel = (r << 20) | (g << 10) | b; b 65 libavcodec/r210enc.c pixel = (r << 22) | (g << 12) | (b << 2); b 1547 libavcodec/ra144.c int b, i, j; b 1564 libavcodec/ra144.c b = 0x1000-((bp2[i+1] * bp2[i+1]) >> 12); b 1566 libavcodec/ra144.c if (!b) b 1567 libavcodec/ra144.c b = -2; b 1569 libavcodec/ra144.c b = 0x1000000 / b; b 1573 libavcodec/ra144.c if((int)(a*(unsigned)b) != a*(int64_t)b) b 1576 libavcodec/ra144.c bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * b) >> 12; b 1640 libavcodec/ra144.c int b = LPC_ORDER; b 1649 libavcodec/ra144.c b++; b 1654 libavcodec/ra144.c return ff_t_sqrt(res) >> b; b 1660 libavcodec/ra144.c int b = NBLOCKS - a; b 1666 libavcodec/ra144.c out[i] = (a * ractx->lpc_coef[0][i] + b * ractx->lpc_coef[1][i])>> 2; b 123 libavcodec/rangecoder.c static uint8_t b[9 * SIZE]; b 135 libavcodec/rangecoder.c ff_init_range_encoder(&c, b, SIZE); b 148 libavcodec/rangecoder.c ff_init_range_decoder(&c, b, SIZE); b 31 libavcodec/rnd_avg.h static inline uint32_t rnd_avg32(uint32_t a, uint32_t b) b 33 libavcodec/rnd_avg.h return (a | b) - (((a ^ b) & ~BYTE_VEC32(0x01)) >> 1); b 36 libavcodec/rnd_avg.h static inline uint32_t no_rnd_avg32(uint32_t a, uint32_t b) b 38 libavcodec/rnd_avg.h return (a & b) + (((a ^ b) & ~BYTE_VEC32(0x01)) >> 1); b 41 libavcodec/rnd_avg.h static inline uint64_t rnd_avg64(uint64_t a, uint64_t b) b 43 libavcodec/rnd_avg.h return (a | b) - (((a ^ b) & ~BYTE_VEC64(0x01)) >> 1); b 46 libavcodec/rnd_avg.h static inline uint64_t no_rnd_avg64(uint64_t a, uint64_t b) b 48 libavcodec/rnd_avg.h return (a & b) + (((a ^ b) & ~BYTE_VEC64(0x01)) >> 1); b 118 libavcodec/roqvideoenc.c static inline int eval_sse(const uint8_t *a, const uint8_t *b, int count) b 123 libavcodec/roqvideoenc.c diff += square(*b++ - *a++); b 173 libavcodec/roqvideoenc.c static inline int squared_diff_macroblock(uint8_t a[], uint8_t b[], int size) b 179 libavcodec/roqvideoenc.c sdiff += bias*eval_sse(a, b, size*size); b 181 libavcodec/roqvideoenc.c b += size*size; b 255 libavcodec/rv30dsp.c #define op_avg(a, b) a = (((a)+cm[b]+1)>>1) b 256 libavcodec/rv30dsp.c #define op_put(a, b) a = cm[b] b 514 libavcodec/rv34.c #define GET_PTS_DIFF(a, b) (((a) - (b) + 8192) & 0x1FFF) b 196 libavcodec/rv40dsp.c #define op_avg(a, b) a = (((a)+cm[b]+1)>>1) b 197 libavcodec/rv40dsp.c #define op_put(a, b) a = cm[b] b 222 libavcodec/rv40dsp.c const uint32_t b = AV_RN32(pixels + 1); \ b 224 libavcodec/rv40dsp.c (b & 0x03030303UL) + \ b 227 libavcodec/rv40dsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 233 libavcodec/rv40dsp.c uint32_t b = AV_RN32(pixels + 1); \ b 235 libavcodec/rv40dsp.c (b & 0x03030303UL); \ b 237 libavcodec/rv40dsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 243 libavcodec/rv40dsp.c b = AV_RN32(pixels + 1); \ b 245 libavcodec/rv40dsp.c (b & 0x03030303UL) + \ b 248 libavcodec/rv40dsp.c ((b & 0xFCFCFCFCUL) >> 2); \ b 263 libavcodec/rv40dsp.c #define op_avg(a, b) a = rnd_avg32(a, b) b 264 libavcodec/rv40dsp.c #define op_put(a, b) a = b b 369 libavcodec/rv40dsp.c #define op_avg(a, b) a = (((a)+((b)>>6)+1)>>1) b 370 libavcodec/rv40dsp.c #define op_put(a, b) a = ((b)>>6) b 420 libavcodec/rv40dsp.c #define CLIP_SYMM(a, b) av_clip(a, -(b), b) b 64 libavcodec/simple_idct_template.c #define MUL(a, b) MUL16(a, b) b 65 libavcodec/simple_idct_template.c #define MAC(a, b, c) MAC16(a, b, c) b 95 libavcodec/simple_idct_template.c #define MUL(a, b) ((a) * (b)) b 96 libavcodec/simple_idct_template.c #define MAC(a, b, c) ((a) += (b) * (c)) b 172 libavcodec/snow.c int x, y, b, r, l; b 182 libavcodec/snow.c b= needs[l] | needs[r]; b 184 libavcodec/snow.c b= 15; b 186 libavcodec/snow.c if(b&5){ b 220 libavcodec/snow.c if(b&2){ b 248 libavcodec/snow.c if(b&4){ b 286 libavcodec/snow.c if(b==15){ b 315 libavcodec/snow.c int b= 8-a; b 318 libavcodec/snow.c dst[x]= (a*src1[x] + b*src2[x] + 4)>>3; b 546 libavcodec/snow.c SubBand *b= &s->plane[plane_index].band[level][orientation]; b 548 libavcodec/snow.c b->buf= s->spatial_dwt_buffer; b 549 libavcodec/snow.c b->level= level; b 550 libavcodec/snow.c b->stride= s->plane[plane_index].width << (s->spatial_decomposition_count - level); b 551 libavcodec/snow.c b->width = (w + !(orientation&1))>>1; b 552 libavcodec/snow.c b->height= (h + !(orientation>1))>>1; b 554 libavcodec/snow.c b->stride_line = 1 << (s->spatial_decomposition_count - level); b 555 libavcodec/snow.c b->buf_x_offset = 0; b 556 libavcodec/snow.c b->buf_y_offset = 0; b 559 libavcodec/snow.c b->buf += (w+1)>>1; b 560 libavcodec/snow.c b->buf_x_offset = (w+1)>>1; b 563 libavcodec/snow.c b->buf += b->stride>>1; b 564 libavcodec/snow.c b->buf_y_offset = b->stride_line >> 1; b 566 libavcodec/snow.c b->ibuf= s->spatial_idwt_buffer + (b->buf - s->spatial_dwt_buffer); b 569 libavcodec/snow.c b->parent= &s->plane[plane_index].band[level-1][orientation]; b 571 libavcodec/snow.c av_freep(&b->x_coeff); b 572 libavcodec/snow.c b->x_coeff=av_mallocz_array(((b->width+1) * b->height+1), sizeof(x_and_coeff)); b 573 libavcodec/snow.c if (!b->x_coeff) b 725 libavcodec/snow.c SubBand *b= &s->plane[plane_index].band[level][orientation]; b 727 libavcodec/snow.c av_freep(&b->x_coeff); b 287 libavcodec/snow.h static av_always_inline int same_block(BlockNode *a, BlockNode *b){ b 288 libavcodec/snow.h if((a->type&BLOCK_INTRA) && (b->type&BLOCK_INTRA)){ b 289 libavcodec/snow.h return !((a->color[0] - b->color[0]) | (a->color[1] - b->color[1]) | (a->color[2] - b->color[2])); b 291 libavcodec/snow.h return !((a->mx - b->mx) | (a->my - b->my) | (a->ref - b->ref) | ((a->type ^ b->type)&BLOCK_INTRA)); b 617 libavcodec/snow.h static inline void unpack_coeffs(SnowContext *s, SubBand *b, SubBand * parent, int orientation){ b 618 libavcodec/snow.h const int w= b->width; b 619 libavcodec/snow.h const int h= b->height; b 623 libavcodec/snow.h x_and_coeff *xc= b->x_coeff; b 629 libavcodec/snow.h runs= get_symbol2(&s->c, b->state[30], 0); b 630 libavcodec/snow.h if(runs-- > 0) run= get_symbol2(&s->c, b->state[1], 3); b 665 libavcodec/snow.h v=get_rac(&s->c, &b->state[0][context]); b 667 libavcodec/snow.h v= 2*(get_symbol2(&s->c, b->state[context + 2], context-4) + 1); b 668 libavcodec/snow.h v+=get_rac(&s->c, &b->state[0][16 + 1 + 3 + ff_quant3bA[l&0xFF] + 3*ff_quant3bA[t&0xFF]]); b 678 libavcodec/snow.h if(runs-- > 0) run= get_symbol2(&s->c, b->state[1], 3); b 680 libavcodec/snow.h v= 2*(get_symbol2(&s->c, b->state[0 + 2], 0-4) + 1); b 681 libavcodec/snow.h v+=get_rac(&s->c, &b->state[0][16 + 1 + 3]); b 178 libavcodec/snow_dwt.c static void horizontal_decompose53i(DWTELEM *b, DWTELEM *temp, int width) b 185 libavcodec/snow_dwt.c temp[x] = b[2 * x]; b 186 libavcodec/snow_dwt.c temp[x + w2] = b[2 * x + 1]; b 189 libavcodec/snow_dwt.c temp[x] = b[2 * x]; b 190 libavcodec/snow_dwt.c lift(b + w2, temp + w2, temp, 1, 1, 1, width, -1, 0, 1, 1, 0); b 191 libavcodec/snow_dwt.c lift(b, temp, b + w2, 1, 1, 1, width, 1, 2, 2, 0, 0); b 238 libavcodec/snow_dwt.c static void horizontal_decompose97i(DWTELEM *b, DWTELEM *temp, int width) b 242 libavcodec/snow_dwt.c lift(temp + w2, b + 1, b, 1, 2, 2, width, W_AM, W_AO, W_AS, 1, 1); b 243 libavcodec/snow_dwt.c liftS(temp, b, temp + w2, 1, 2, 1, width, W_BM, W_BO, W_BS, 0, 0); b 244 libavcodec/snow_dwt.c lift(b + w2, temp + w2, temp, 1, 1, 1, width, W_CM, W_CO, W_CS, 1, 0); b 245 libavcodec/snow_dwt.c lift(b, temp, b + w2, 1, 1, 1, width, W_DM, W_DO, W_DS, 0, 0); b 340 libavcodec/snow_dwt.c static void horizontal_compose53i(IDWTELEM *b, IDWTELEM *temp, int width) b 347 libavcodec/snow_dwt.c temp[2 * x] = b[x]; b 348 libavcodec/snow_dwt.c temp[2 * x + 1] = b[x + w2]; b 351 libavcodec/snow_dwt.c temp[2 * x] = b[x]; b 353 libavcodec/snow_dwt.c b[0] = temp[0] - ((temp[1] + 1) >> 1); b 355 libavcodec/snow_dwt.c b[x] = temp[x] - ((temp[x - 1] + temp[x + 1] + 2) >> 2); b 356 libavcodec/snow_dwt.c b[x - 1] = temp[x - 1] + ((b[x - 2] + b[x] + 1) >> 1); b 359 libavcodec/snow_dwt.c b[x] = temp[x] - ((temp[x - 1] + 1) >> 1); b 360 libavcodec/snow_dwt.c b[x - 1] = temp[x - 1] + ((b[x - 2] + b[x] + 1) >> 1); b 362 libavcodec/snow_dwt.c b[x - 1] = temp[x - 1] + b[x - 2]; b 465 libavcodec/snow_dwt.c void ff_snow_horizontal_compose97i(IDWTELEM *b, IDWTELEM *temp, int width) b 470 libavcodec/snow_dwt.c temp[0] = b[0] - ((3 * b[w2] + 2) >> 2); b 472 libavcodec/snow_dwt.c temp[2 * x] = b[x] - ((3 * (b[x + w2 - 1] + b[x + w2]) + 4) >> 3); b 473 libavcodec/snow_dwt.c temp[2 * x - 1] = b[x + w2 - 1] - temp[2 * x - 2] - temp[2 * x]; b 476 libavcodec/snow_dwt.c temp[2 * x] = b[x] - ((3 * b[x + w2 - 1] + 2) >> 2); b 477 libavcodec/snow_dwt.c temp[2 * x - 1] = b[x + w2 - 1] - temp[2 * x - 2] - temp[2 * x]; b 479 libavcodec/snow_dwt.c temp[2 * x - 1] = b[x + w2 - 1] - 2 * temp[2 * x - 2]; b 481 libavcodec/snow_dwt.c b[0] = temp[0] + ((2 * temp[0] + temp[1] + 4) >> 3); b 483 libavcodec/snow_dwt.c b[x] = temp[x] + ((4 * temp[x] + temp[x - 1] + temp[x + 1] + 8) >> 4); b 484 libavcodec/snow_dwt.c b[x - 1] = temp[x - 1] + ((3 * (b[x - 2] + b[x])) >> 1); b 487 libavcodec/snow_dwt.c b[x] = temp[x] + ((2 * temp[x] + temp[x - 1] + 4) >> 3); b 488 libavcodec/snow_dwt.c b[x - 1] = temp[x - 1] + ((3 * (b[x - 2] + b[x])) >> 1); b 490 libavcodec/snow_dwt.c b[x - 1] = temp[x - 1] + 3 * b[x - 2]; b 58 libavcodec/snow_dwt.h void (*horizontal_compose97i)(IDWTELEM *b, IDWTELEM *temp, int width); b 103 libavcodec/snow_dwt.h void ff_snow_horizontal_compose97i(IDWTELEM *b, IDWTELEM *temp, int width); b 114 libavcodec/snowdec.c static inline void decode_subband_slice_buffered(SnowContext *s, SubBand *b, slice_buffer * sb, int start_y, int h, int save_state[1]){ b 115 libavcodec/snowdec.c const int w= b->width; b 117 libavcodec/snowdec.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); b 122 libavcodec/snowdec.c if(b->ibuf == s->spatial_idwt_buffer || s->qlog == LOSSLESS_QLOG){ b 135 libavcodec/snowdec.c IDWTELEM * line = slice_buffer_get_line(sb, y * b->stride_line + b->buf_y_offset) + b->buf_x_offset; b 136 libavcodec/snowdec.c memset(line, 0, b->width*sizeof(IDWTELEM)); b 137 libavcodec/snowdec.c v = b->x_coeff[new_index].coeff; b 138 libavcodec/snowdec.c x = b->x_coeff[new_index++].x; b 144 libavcodec/snowdec.c v = b->x_coeff[new_index].coeff; b 145 libavcodec/snowdec.c x = b->x_coeff[new_index++].x; b 213 libavcodec/snowdec.c static void dequantize_slice_buffered(SnowContext *s, slice_buffer * sb, SubBand *b, IDWTELEM *src, int stride, int start_y, int end_y){ b 214 libavcodec/snowdec.c const int w= b->width; b 215 libavcodec/snowdec.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); b 224 libavcodec/snowdec.c IDWTELEM * line = slice_buffer_get_line(sb, (y * b->stride_line) + b->buf_y_offset) + b->buf_x_offset; b 236 libavcodec/snowdec.c static void correlate_slice_buffered(SnowContext *s, slice_buffer * sb, SubBand *b, IDWTELEM *src, int stride, int inverse, int use_median, int start_y, int end_y){ b 237 libavcodec/snowdec.c const int w= b->width; b 244 libavcodec/snowdec.c line = slice_buffer_get_line(sb, ((start_y - 1) * b->stride_line) + b->buf_y_offset) + b->buf_x_offset; b 249 libavcodec/snowdec.c line = slice_buffer_get_line(sb, (y * b->stride_line) + b->buf_y_offset) + b->buf_x_offset; b 511 libavcodec/snowdec.c SubBand *b= &p->band[level][orientation]; b 512 libavcodec/snowdec.c unpack_coeffs(s, b, b->parent, orientation); b 540 libavcodec/snowdec.c SubBand *b= &p->band[level][orientation]; b 552 libavcodec/snowdec.c start_y = FFMIN(b->height, start_y); b 553 libavcodec/snowdec.c end_y = FFMIN(b->height, end_y); b 558 libavcodec/snowdec.c int correlate_end_y = FFMIN(b->height, end_y + 1); b 559 libavcodec/snowdec.c int correlate_start_y = FFMIN(b->height, (start_y ? start_y + 1 : 0)); b 565 libavcodec/snowdec.c decode_subband_slice_buffered(s, b, &s->sb, start_y, end_y, decode_state[level][orientation]); b 445 libavcodec/snowenc.c BlockNode *b= &s->block[index]; b 455 libavcodec/snowenc.c int mx_context= av_log2(2*FFABS(left->mx - top->mx)) + 16*!!b->ref; b 456 libavcodec/snowenc.c int my_context= av_log2(2*FFABS(left->my - top->my)) + 16*!!b->ref; b 465 libavcodec/snowenc.c if(same_block(b,b+1) && same_block(b,b+w) && same_block(b,b+w+1)){ b 476 libavcodec/snowenc.c if(b->type & BLOCK_INTRA){ b 479 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[32], b->color[0]-pl , 1); b 481 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[64], b->color[1]-pcb, 1); b 482 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[96], b->color[2]-pcr, 1); b 484 libavcodec/snowenc.c set_blocks(s, level, x, y, b->color[0], b->color[1], b->color[2], pmx, pmy, 0, BLOCK_INTRA); b 486 libavcodec/snowenc.c pred_mv(s, &pmx, &pmy, b->ref, left, top, tr); b 489 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[128 + 1024 + 32*ref_context], b->ref, 0); b 490 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[128 + 32*mx_context], b->mx - pmx, 1); b 491 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[128 + 32*my_context], b->my - pmy, 1); b 492 libavcodec/snowenc.c set_blocks(s, level, x, y, pl, pcb, pcr, b->mx, b->my, b->ref, 0); b 511 libavcodec/snowenc.c BlockNode *b= &s->block[index]; b 512 libavcodec/snowenc.c BlockNode backup= *b; b 518 libavcodec/snowenc.c b->type|= BLOCK_INTRA; b 519 libavcodec/snowenc.c b->color[plane_index]= 0; b 549 libavcodec/snowenc.c *b= backup; b 558 libavcodec/snowenc.c const BlockNode *b = &s->block[index]; b 578 libavcodec/snowenc.c if(b->type & BLOCK_INTRA){ b 579 libavcodec/snowenc.c return 3+2*( av_log2(2*FFABS(left->color[0] - b->color[0])) b 580 libavcodec/snowenc.c + av_log2(2*FFABS(left->color[1] - b->color[1])) b 581 libavcodec/snowenc.c + av_log2(2*FFABS(left->color[2] - b->color[2]))); b 583 libavcodec/snowenc.c pred_mv(s, &dmx, &dmy, b->ref, left, top, tr); b 584 libavcodec/snowenc.c dmx-= b->mx; b 585 libavcodec/snowenc.c dmy-= b->my; b 588 libavcodec/snowenc.c + av_log2(2*b->ref)); b 744 libavcodec/snowenc.c BlockNode *b= &s->block[mb_x+mb_y*b_stride]; b 745 libavcodec/snowenc.c int merged= same_block(b,b+1) && same_block(b,b+b_stride) && same_block(b,b+b_stride+1); b 762 libavcodec/snowenc.c static int encode_subband_c0run(SnowContext *s, SubBand *b, const IDWTELEM *src, const IDWTELEM *parent, int stride, int orientation){ b 763 libavcodec/snowenc.c const int w= b->width; b 764 libavcodec/snowenc.c const int h= b->height; b 798 libavcodec/snowenc.c if(px<b->parent->width && py<b->parent->height) b 816 libavcodec/snowenc.c put_symbol2(&s->c, b->state[30], max_index, 0); b 818 libavcodec/snowenc.c put_symbol2(&s->c, b->state[1], run, 3); b 849 libavcodec/snowenc.c if(px<b->parent->width && py<b->parent->height) b 855 libavcodec/snowenc.c put_rac(&s->c, &b->state[0][context], !!v); b 861 libavcodec/snowenc.c put_symbol2(&s->c, b->state[1], run, 3); b 873 libavcodec/snowenc.c put_symbol2(&s->c, b->state[context + 2], FFABS(v)-1, context-4); b 874 libavcodec/snowenc.c put_rac(&s->c, &b->state[0][16 + 1 + 3 + ff_quant3bA[l2&0xFF] + 3*ff_quant3bA[t2&0xFF]], v<0); b 882 libavcodec/snowenc.c static int encode_subband(SnowContext *s, SubBand *b, const IDWTELEM *src, const IDWTELEM *parent, int stride, int orientation){ b 885 libavcodec/snowenc.c return encode_subband_c0run(s, b, src, parent, stride, orientation); b 1171 libavcodec/snowenc.c BlockNode *b[4]; b 1173 libavcodec/snowenc.c b[0]= &s->block[index]; b 1174 libavcodec/snowenc.c b[1]= b[0]+1; b 1175 libavcodec/snowenc.c b[2]= b[0]+b_stride; b 1176 libavcodec/snowenc.c b[3]= b[2]+1; b 1177 libavcodec/snowenc.c if(same_block(b[0], b[1]) && b 1178 libavcodec/snowenc.c same_block(b[0], b[2]) && b 1179 libavcodec/snowenc.c same_block(b[0], b[3])) b 1190 libavcodec/snowenc.c (b[0]->mx + b[1]->mx + b[2]->mx + b[3]->mx + 2) >> 2, b 1191 libavcodec/snowenc.c (b[0]->my + b[1]->my + b[2]->my + b[3]->my + 2) >> 2, 0, &best_rd); b 1194 libavcodec/snowenc.c if(!(b[i]->type&BLOCK_INTRA)) b 1195 libavcodec/snowenc.c check_4block_inter(s, mb_x, mb_y, b[i]->mx, b[i]->my, b[i]->ref, &best_rd); b 1227 libavcodec/snowenc.c static void quantize(SnowContext *s, SubBand *b, IDWTELEM *dst, DWTELEM *src, int stride, int bias){ b 1228 libavcodec/snowenc.c const int w= b->width; b 1229 libavcodec/snowenc.c const int h= b->height; b 1230 libavcodec/snowenc.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); b 1288 libavcodec/snowenc.c static void dequantize(SnowContext *s, SubBand *b, IDWTELEM *src, int stride){ b 1289 libavcodec/snowenc.c const int w= b->width; b 1290 libavcodec/snowenc.c const int h= b->height; b 1291 libavcodec/snowenc.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); b 1310 libavcodec/snowenc.c static void decorrelate(SnowContext *s, SubBand *b, IDWTELEM *src, int stride, int inverse, int use_median){ b 1311 libavcodec/snowenc.c const int w= b->width; b 1312 libavcodec/snowenc.c const int h= b->height; b 1334 libavcodec/snowenc.c static void correlate(SnowContext *s, SubBand *b, IDWTELEM *src, int stride, int inverse, int use_median){ b 1335 libavcodec/snowenc.c const int w= b->width; b 1336 libavcodec/snowenc.c const int h= b->height; b 1479 libavcodec/snowenc.c SubBand *b= &s->plane[0].band[level][orientation]; b 1480 libavcodec/snowenc.c IDWTELEM *buf= b->ibuf; b 1481 libavcodec/snowenc.c const int w= b->width; b 1482 libavcodec/snowenc.c const int h= b->height; b 1483 libavcodec/snowenc.c const int stride= b->stride; b 1484 libavcodec/snowenc.c const int qlog= av_clip(2*QROOT + b->qlog, 0, QROOT*16); b 1491 libavcodec/snowenc.c buf[x+y*stride]= b->buf[x+y*stride]; b 1493 libavcodec/snowenc.c decorrelate(s, b, buf, stride, 1, 0); b 1528 libavcodec/snowenc.c SubBand *b= &p->band[level][orientation]; b 1529 libavcodec/snowenc.c IDWTELEM *ibuf= b->ibuf; b 1533 libavcodec/snowenc.c ibuf[b->width/2 + b->height/2*b->stride]= 256*16; b 1542 libavcodec/snowenc.c b->qlog= (int)(log(352256.0/sqrt(error)) / log(pow(2.0, 1.0/QROOT))+0.5); b 1766 libavcodec/snowenc.c SubBand *b= &p->band[level][orientation]; b 1768 libavcodec/snowenc.c quantize(s, b, b->ibuf, b->buf, b->stride, s->qbias); b 1770 libavcodec/snowenc.c decorrelate(s, b, b->ibuf, b->stride, pic->pict_type == AV_PICTURE_TYPE_P, 0); b 1772 libavcodec/snowenc.c encode_subband(s, b, b->ibuf, b->parent ? b->parent->ibuf : NULL, b->stride, orientation); b 1773 libavcodec/snowenc.c av_assert0(b->parent==NULL || b->parent->stride == b->stride*2); b 1775 libavcodec/snowenc.c correlate(s, b, b->ibuf, b->stride, 1, 0); b 1781 libavcodec/snowenc.c SubBand *b= &p->band[level][orientation]; b 1783 libavcodec/snowenc.c dequantize(s, b, b->ibuf, b->stride); b 82 libavcodec/sonic.c static inline int shift(int a,int b) b 84 libavcodec/sonic.c return (a+(1<<(b-1))) >> b; b 87 libavcodec/sonic.c static inline int shift_down(int a,int b) b 89 libavcodec/sonic.c return (a>>b)+(a<0); b 36 libavcodec/synth_filter.c float b= synth_buf2[i + 16]; b 41 libavcodec/synth_filter.c b += window[i + j + 16]*( synth_buf[ i + j ]); b 47 libavcodec/synth_filter.c b += window[i + j + 16]*( synth_buf[ i + j - 512]); b 52 libavcodec/synth_filter.c out[i + 16] = b*scale; b 32 libavcodec/tableprint_vlc.h #define av_malloc_array(a, b) NULL b 553 libavcodec/takdec.c int32_t b = p2[i]; b 554 libavcodec/takdec.c p2[i] = a + b; b 560 libavcodec/takdec.c int32_t b = p2[i]; b 561 libavcodec/takdec.c p1[i] = b - a; b 567 libavcodec/takdec.c int32_t b = p2[i]; b 568 libavcodec/takdec.c a -= b >> 1; b 570 libavcodec/takdec.c p2[i] = a + b; b 580 libavcodec/takdec.c int32_t b = p2[i]; b 581 libavcodec/takdec.c b = dfactor * (b >> dshift) + 128 >> 8 << dshift; b 582 libavcodec/takdec.c p1[i] = b - a; b 612 libavcodec/takdec.c int32_t b = p2[i]; b 613 libavcodec/takdec.c p1[i] = a + b; b 621 libavcodec/takdec.c int32_t b = p2[i]; b 622 libavcodec/takdec.c p1[i] = a + b; b 83 libavcodec/tiertexseqv.c int b, i, len, bits; b 94 libavcodec/tiertexseqv.c for (b = 0; b < 8; b++) { b 95 libavcodec/tiertexseqv.c memcpy(dst, &block[b * 8], 8); b 102 libavcodec/tiertexseqv.c for (b = 0; b < 8; b++) b 103 libavcodec/tiertexseqv.c dst[b * seq->frame->linesize[0]] = block[i * 8 + b]; b 117 libavcodec/tiertexseqv.c for (b = 0; b < 8; b++) { b 188 libavcodec/truemotion1.c int r, b, lo; b 190 libavcodec/truemotion1.c b = cdt[p2]; b 192 libavcodec/truemotion1.c lo = b + r; b 213 libavcodec/truemotion1.c int r, b, lo; b 215 libavcodec/truemotion1.c b = cdt[p2]; b 217 libavcodec/truemotion1.c lo = b + r; b 232 libavcodec/truemotion1.c int r, b; b 234 libavcodec/truemotion1.c b = cdt[p2]; b 236 libavcodec/truemotion1.c return (b+r) << 1; b 100 libavcodec/tscc2.c #define COL_OP(a, b) a = (b) b 101 libavcodec/tscc2.c #define ROW_OP(a, b) a = ((b) + 0x20) >> 6 b 133 libavcodec/twinvqdec.c static int very_broken_op(int a, int b) b 135 libavcodec/twinvqdec.c int x = a * b + 200; b 139 libavcodec/twinvqdec.c if (x % 400 || b % 5) b 144 libavcodec/twinvqdec.c size = tabs[b / 5].size; b 145 libavcodec/twinvqdec.c rtab = tabs[b / 5].tab; b 3512 libavcodec/utils.c int ff_match_2uint16(const uint16_t(*tab)[2], int size, int a, int b) b 3515 libavcodec/utils.c for (i = 0; i < size && !(tab[i][0] == a && tab[i][1] == b); i++) ; b 35 libavcodec/utvideo.c int ff_ut_huff_cmp_len(const void *a, const void *b) b 37 libavcodec/utvideo.c const HuffEntry *aa = a, *bb = b; b 91 libavcodec/utvideo.h int ff_ut_huff_cmp_len(const void *a, const void *b); b 190 libavcodec/utvideodec.c uint8_t r, g, b; b 196 libavcodec/utvideodec.c b = src[i + 2]; b 198 libavcodec/utvideodec.c src[i + 2] = b + g - 0x80; b 40 libavcodec/utvideoenc.c static int huff_cmp_sym(const void *a, const void *b) b 42 libavcodec/utvideoenc.c const HuffEntry *aa = a, *bb = b; b 31 libavcodec/v210dec.c #define READ_PIXELS(a, b, c) \ b 35 libavcodec/v210dec.c *b++ = (val >> 10) & 0x3FF; \ b 32 libavcodec/v210enc.c #define WRITE_PIXELS(a, b, c) \ b 35 libavcodec/v210enc.c val |= (CLIP(*b++) << 10) | \ b 41 libavcodec/v210enc.c #define WRITE_PIXELS8(a, b, c) \ b 44 libavcodec/v210enc.c val |= (CLIP8(*b++) << 12) | \ b 95 libavcodec/vb.c int x, y, a, b; b 152 libavcodec/vb.c b = bytestream2_get_byte(&g); b 155 libavcodec/vb.c cur[x + y*width] = (pattern & 1) ? b : a; b 319 libavcodec/vc1_block.c int a, b, c, wrap, pred, scale; b 339 libavcodec/vc1_block.c b = dc_val[ - 1 - wrap]; b 345 libavcodec/vc1_block.c b = a = dcpred[scale]; b 347 libavcodec/vc1_block.c b = c = dcpred[scale]; b 351 libavcodec/vc1_block.c b = a = 0; b 353 libavcodec/vc1_block.c b = c = 0; b 356 libavcodec/vc1_block.c if (abs(a - b) <= abs(b - c)) { b 385 libavcodec/vc1_block.c int a, b, c, wrap, pred; b 404 libavcodec/vc1_block.c b = dc_val[ - 1 - wrap]; b 425 libavcodec/vc1_block.c b = (b * s->y_dc_scale_table[q2] * ff_vc1_dqscale[dqscale_index] + 0x20000) >> 18; b 428 libavcodec/vc1_block.c if (c_avail && (!a_avail || abs(a - b) <= abs(b - c))) { b 455 libavcodec/vc1_block.c int xy, wrap, pred, a, b, c; b 464 libavcodec/vc1_block.c b = s->coded_block[xy - 1 - wrap]; b 467 libavcodec/vc1_block.c if (b == c) { b 144 libavcodec/vc1_parser.c uint8_t b; b 147 libavcodec/vc1_parser.c b = buf[i++]; b 148 libavcodec/vc1_parser.c unesc_buffer[unesc_index++] = b; b 150 libavcodec/vc1_parser.c search_state = b ? NO_MATCH : search_state + 1; b 152 libavcodec/vc1_parser.c if (b == 1) b 154 libavcodec/vc1_parser.c else if (b > 1) { b 155 libavcodec/vc1_parser.c if (b == 3) b 186 libavcodec/vc1_parser.c b = buf[i++]; b 188 libavcodec/vc1_parser.c search_state = b ? NO_MATCH : TWO_ZEROS; b 190 libavcodec/vc1_parser.c if (b >= 1) b 191 libavcodec/vc1_parser.c search_state = b == 1 ? ONE : NO_MATCH; b 204 libavcodec/vc1_parser.c vpc->prev_start_code = b; b 208 libavcodec/vc1_parser.c if (!pic_found && (b == (VC1_CODE_FRAME & 0xFF) || b == (VC1_CODE_FIELD & 0xFF))) { b 211 libavcodec/vc1_parser.c else if (pic_found && b != (VC1_CODE_FIELD & 0xFF) && b != (VC1_CODE_SLICE & 0xFF)) { b 213 libavcodec/vc1_parser.c pic_found = b == (VC1_CODE_FRAME & 0xFF); b 41 libavcodec/vc1dsp.c int a, b, c, d; b 46 libavcodec/vc1dsp.c b = src[-stride]; b 50 libavcodec/vc1dsp.c d2 = (a - d + b - c + 4 - rnd) >> 3; b 53 libavcodec/vc1dsp.c src[-stride] = av_clip_uint8(b - d2); b 65 libavcodec/vc1dsp.c int a, b, c, d; b 70 libavcodec/vc1dsp.c b = src[-1]; b 74 libavcodec/vc1dsp.c d2 = (a - d + b - c + 4 - rnd) >> 3; b 77 libavcodec/vc1dsp.c src[-1] = av_clip_uint8(b - d2); b 88 libavcodec/vc1dsp.c int a, b, c, d; b 93 libavcodec/vc1dsp.c b = top[56]; b 97 libavcodec/vc1dsp.c d2 = a - d + b - c; b 100 libavcodec/vc1dsp.c top[56] = ((b << 3) - d2 + rnd2) >> 3; b 114 libavcodec/vc1dsp.c int a, b, c, d; b 119 libavcodec/vc1dsp.c b = left[7]; b 123 libavcodec/vc1dsp.c d2 = a - d + b - c; b 126 libavcodec/vc1dsp.c left[7] = ((b << 3) - d2 + rnd2) >> 3; b 726 libavcodec/vc1dsp.c #define op_put(a, b) (a) = av_clip_uint8(b) b 727 libavcodec/vc1dsp.c #define op_avg(a, b) (a) = ((a) + av_clip_uint8(b) + 1) >> 1 b 728 libavcodec/vc1dsp.c #define op4_avg(a, b) (a) = rnd_avg32(a, b) b 729 libavcodec/vc1dsp.c #define op4_put(a, b) (a) = (b) b 736 libavcodec/vc1dsp.c #define PUT_VC1_MSPEL(a, b) \ b 737 libavcodec/vc1dsp.c static void put_vc1_mspel_mc ## a ## b ## _c(uint8_t *dst, \ b 741 libavcodec/vc1dsp.c put_vc1_mspel_mc(dst, src, stride, a, b, rnd); \ b 743 libavcodec/vc1dsp.c static void avg_vc1_mspel_mc ## a ## b ## _c(uint8_t *dst, \ b 747 libavcodec/vc1dsp.c avg_vc1_mspel_mc(dst, src, stride, a, b, rnd); \ b 749 libavcodec/vc1dsp.c static void put_vc1_mspel_mc ## a ## b ## _16_c(uint8_t *dst, \ b 753 libavcodec/vc1dsp.c put_vc1_mspel_mc_16(dst, src, stride, a, b, rnd); \ b 755 libavcodec/vc1dsp.c static void avg_vc1_mspel_mc ## a ## b ## _16_c(uint8_t *dst, \ b 759 libavcodec/vc1dsp.c avg_vc1_mspel_mc_16(dst, src, stride, a, b, rnd); \ b 831 libavcodec/vc1dsp.c #define avg2(a, b) (((a) + (b) + 1) >> 1) b 887 libavcodec/vc1dsp.c int b = src[(offset >> 16) + 1]; b 888 libavcodec/vc1dsp.c *dst++ = a + ((b - a) * (offset & 0xFFFF) >> 16); b 38 libavcodec/vc1dsp.h void (*vc1_inv_trans_8x8)(int16_t *b); b 121 libavcodec/vmdaudio.c uint8_t b = *buf++; b 122 libavcodec/vmdaudio.c if (b & 0x80) b 123 libavcodec/vmdaudio.c predictor[ch] -= vmdaudio_table[b & 0x7F]; b 125 libavcodec/vmdaudio.c predictor[ch] += vmdaudio_table[b]; b 187 libavcodec/vmdvideo.c unsigned char r, g, b; b 252 libavcodec/vmdvideo.c b = bytestream2_get_byteu(&gb) * 4; b 253 libavcodec/vmdvideo.c palette32[i] = 0xFFU << 24 | (r << 16) | (g << 8) | (b); b 387 libavcodec/vmdvideo.c unsigned char r, g, b; b 415 libavcodec/vmdvideo.c b = raw_palette[palette_index++] * 4; b 416 libavcodec/vmdvideo.c palette32[i] = 0xFFU << 24 | (r << 16) | (g << 8) | (b); b 44 libavcodec/vp3dsp.c #define M(a, b) (((a) * (b)) >> 16) b 269 libavcodec/vp3dsp.c uint32_t a, b; b 272 libavcodec/vp3dsp.c b = AV_RN32(&src2[i * stride]); b 273 libavcodec/vp3dsp.c AV_WN32A(&dst[i * stride], no_rnd_avg32(a, b)); b 275 libavcodec/vp3dsp.c b = AV_RN32(&src2[i * stride + 4]); b 276 libavcodec/vp3dsp.c AV_WN32A(&dst[i * stride + 4], no_rnd_avg32(a, b)); b 38 libavcodec/vp3dsp.h const uint8_t *b, b 181 libavcodec/vp5.c int b, i, cg, idx, ctx, ctx_last; b 184 libavcodec/vp5.c for (b=0; b<6; b++) { b 187 libavcodec/vp5.c if (b > 3) pt = 1; b 189 libavcodec/vp5.c ctx = 6*s->coeff_ctx[ff_vp56_b6to4[b]][0] b 190 libavcodec/vp5.c + s->above_blocks[s->above_block_idx[b]].not_null_dc; b 199 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx] = 4; b 208 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx] = 3; b 211 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx] = 2; b 218 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx] = 1; b 225 libavcodec/vp5.c s->block_coeff[b][permute[coeff_idx]] = coeff; b 230 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx] = 0; b 237 libavcodec/vp5.c ctx = s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx]; b 242 libavcodec/vp5.c ctx_last = FFMIN(s->coeff_ctx_last[ff_vp56_b6to4[b]], 24); b 243 libavcodec/vp5.c s->coeff_ctx_last[ff_vp56_b6to4[b]] = coeff_idx; b 246 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][i] = 5; b 247 libavcodec/vp5.c s->above_blocks[s->above_block_idx[b]].not_null_dc = s->coeff_ctx[ff_vp56_b6to4[b]][0]; b 166 libavcodec/vp56.c int b; b 169 libavcodec/vp56.c for (b=0; b<4; b++) { b 170 libavcodec/vp56.c type[b] = vp56_rac_gets(&s->c, 2); b 171 libavcodec/vp56.c if (type[b]) b 172 libavcodec/vp56.c type[b]++; /* only returns 0, 2, 3 or 4 (all INTER_PF) */ b 176 libavcodec/vp56.c for (b=0; b<4; b++) { b 177 libavcodec/vp56.c switch (type[b]) { b 179 libavcodec/vp56.c s->mv[b] = (VP56mv) {0,0}; b 182 libavcodec/vp56.c s->parse_vector_adjustment(s, &s->mv[b]); b 185 libavcodec/vp56.c s->mv[b] = s->vector_candidate[0]; b 188 libavcodec/vp56.c s->mv[b] = s->vector_candidate[1]; b 191 libavcodec/vp56.c mv.x += s->mv[b].x; b 192 libavcodec/vp56.c mv.y += s->mv[b].y; b 210 libavcodec/vp56.c int ctx, b; b 258 libavcodec/vp56.c for (b=0; b<6; b++) b 259 libavcodec/vp56.c s->mv[b] = *mv; b 267 libavcodec/vp56.c int b; b 269 libavcodec/vp56.c for (b=0; b<6; b++) { b 270 libavcodec/vp56.c VP56RefDc *ab = &s->above_blocks[s->above_block_idx[b]]; b 271 libavcodec/vp56.c VP56RefDc *lb = &s->left_block[ff_vp56_b6to4[b]]; b 291 libavcodec/vp56.c dc = s->prev_dc[ff_vp56_b2p[b]][ref_frame]; b 295 libavcodec/vp56.c s->block_coeff[b][idx] += dc; b 296 libavcodec/vp56.c s->prev_dc[ff_vp56_b2p[b]][ref_frame] = s->block_coeff[b][idx]; b 297 libavcodec/vp56.c ab->dc_coeff = s->block_coeff[b][idx]; b 299 libavcodec/vp56.c lb->dc_coeff = s->block_coeff[b][idx]; b 301 libavcodec/vp56.c s->block_coeff[b][idx] *= s->dequant_dc; b 313 libavcodec/vp56.c static void vp56_mc(VP56Context *s, int b, int plane, uint8_t *src, b 316 libavcodec/vp56.c uint8_t *dst = s->frames[VP56_FRAME_CURRENT]->data[plane] + s->block_offset[b]; b 320 libavcodec/vp56.c int mask = s->vp56_coord_div[b] - 1; b 330 libavcodec/vp56.c dx = s->mv[b].x / s->vp56_coord_div[b]; b 331 libavcodec/vp56.c dy = s->mv[b].y / s->vp56_coord_div[b]; b 333 libavcodec/vp56.c if (b >= 4) { b 343 libavcodec/vp56.c src + s->block_offset[b] + (dy-2)*stride + (dx-2), b 354 libavcodec/vp56.c src + s->block_offset[b] + (dy-2)*stride + (dx-2), b 360 libavcodec/vp56.c src_offset = s->block_offset[b] + dy*stride + dx; b 366 libavcodec/vp56.c if (s->mv[b].x & mask) b 367 libavcodec/vp56.c overlap_offset += (s->mv[b].x > 0) ? 1 : -1; b 368 libavcodec/vp56.c if (s->mv[b].y & mask) b 369 libavcodec/vp56.c overlap_offset += (s->mv[b].y > 0) ? stride : -stride; b 374 libavcodec/vp56.c stride, s->mv[b], mask, s->filter_selection, b<4); b 389 libavcodec/vp56.c int b, ab, b_max, plane, off; b 411 libavcodec/vp56.c for (b=0; b<b_max; b++) { b 412 libavcodec/vp56.c plane = ff_vp56_b2p[b+ab]; b 413 libavcodec/vp56.c s->vp3dsp.idct_put(frame_current->data[plane] + s->block_offset[b], b 414 libavcodec/vp56.c s->stride[plane], s->block_coeff[b]); b 420 libavcodec/vp56.c for (b=0; b<b_max; b++) { b 421 libavcodec/vp56.c plane = ff_vp56_b2p[b+ab]; b 422 libavcodec/vp56.c off = s->block_offset[b]; b 427 libavcodec/vp56.c s->stride[plane], s->block_coeff[b]); b 438 libavcodec/vp56.c for (b=0; b<b_max; b++) { b 439 libavcodec/vp56.c int x_off = b==1 || b==3 ? 8 : 0; b 440 libavcodec/vp56.c int y_off = b==2 || b==3 ? 8 : 0; b 441 libavcodec/vp56.c plane = ff_vp56_b2p[b+ab]; b 442 libavcodec/vp56.c vp56_mc(s, b, plane, frame_ref->data[plane], s->stride[plane], b 444 libavcodec/vp56.c s->vp3dsp.idct_add(frame_current->data[plane] + s->block_offset[b], b 445 libavcodec/vp56.c s->stride[plane], s->block_coeff[b]); b 234 libavcodec/vp6.c const Node *a = va, *b = vb; b 235 libavcodec/vp6.c return (a->count - b->count)*16 + (b->sym - a->sym); b 242 libavcodec/vp6.c int a, b, i; b 248 libavcodec/vp6.c b = tmp[i].count * (255 - coeff_model[i]) >> 8; b 250 libavcodec/vp6.c nodes[map[2*i+1]].count = b + !b; b 389 libavcodec/vp6.c int b, cg, idx; b 392 libavcodec/vp6.c for (b=0; b<6; b++) { b 394 libavcodec/vp6.c if (b > 3) pt = 1; b 430 libavcodec/vp6.c s->block_coeff[b][permute[idx]] = coeff2; b 449 libavcodec/vp6.c int b, i, cg, idx, ctx; b 452 libavcodec/vp6.c for (b=0; b<6; b++) { b 456 libavcodec/vp6.c if (b > 3) pt = 1; b 458 libavcodec/vp6.c ctx = s->left_block[ff_vp56_b6to4[b]].not_null_dc b 459 libavcodec/vp6.c + s->above_blocks[s->above_block_idx[b]].not_null_dc; b 489 libavcodec/vp6.c s->block_coeff[b][permute[idx]] = coeff; b 512 libavcodec/vp6.c s->left_block[ff_vp56_b6to4[b]].not_null_dc = b 513 libavcodec/vp6.c s->above_blocks[s->above_block_idx[b]].not_null_dc = !!s->block_coeff[b][0]; b 1285 libavcodec/vp8.c int b = vp56_rac_get_prob(&c, token_prob[9 + a]); b 1286 libavcodec/vp8.c int cat = (a << 1) + b; b 1471 libavcodec/vp8.c #define XCHG(a, b, xchg) \ b 1474 libavcodec/vp8.c AV_SWAP64(b, a); \ b 1476 libavcodec/vp8.c AV_COPY64(b, a); \ b 588 libavcodec/vp8dsp.c int a = 8 - mx, b = mx; \ b 592 libavcodec/vp8dsp.c dst[x] = (a * src[x] + b * src[x + 1] + 4) >> 3; \ b 618 libavcodec/vp8dsp.c int a = 8 - mx, b = mx; \ b 625 libavcodec/vp8dsp.c tmp[x] = (a * src[x] + b * src[x + 1] + 4) >> 3; \ b 102 libavcodec/vp9.c VP9Block *b_base, *b; b 987 libavcodec/vp9.c VP9Block *b = s->b; b 989 libavcodec/vp9.c const int8_t (*p)[2] = mv_ref_blk_off[b->bs]; b 1010 libavcodec/vp9.c RETURN_DIRECT_MV(b->mv[0][z]); b 1012 libavcodec/vp9.c RETURN_DIRECT_MV(b->mv[2][z]); b 1013 libavcodec/vp9.c RETURN_DIRECT_MV(b->mv[1][z]); b 1014 libavcodec/vp9.c RETURN_DIRECT_MV(b->mv[0][z]); b 1203 libavcodec/vp9.c VP9Block *b = s->b; b 1211 libavcodec/vp9.c find_ref_mvs(s, &mv[0], b->ref[0], 0, mode == NEARMV, b 1240 libavcodec/vp9.c if (b->comp) { b 1242 libavcodec/vp9.c find_ref_mvs(s, &mv[1], b->ref[1], 1, mode == NEARMV, b 1332 libavcodec/vp9.c VP9Block *b = s->b; b 1334 libavcodec/vp9.c enum TxfmMode max_tx = max_tx_for_bl_bp[b->bs]; b 1335 libavcodec/vp9.c int w4 = FFMIN(s->cols - col, bwh_tab[1][b->bs][0]); b 1336 libavcodec/vp9.c int h4 = FFMIN(s->rows - row, bwh_tab[1][b->bs][1]), y; b 1341 libavcodec/vp9.c b->seg_id = 0; b 1343 libavcodec/vp9.c b->seg_id = vp8_rac_get_tree(&s->c, vp9_segmentation_tree, s->prob.seg); b 1368 libavcodec/vp9.c b->seg_id = pred; b 1370 libavcodec/vp9.c b->seg_id = 0; b 1376 libavcodec/vp9.c b->seg_id = vp8_rac_get_tree(&s->c, vp9_segmentation_tree, b 1385 libavcodec/vp9.c w4, h4, 8 * s->sb_cols, b->seg_id); b 1388 libavcodec/vp9.c b->skip = s->segmentation.enabled && b 1389 libavcodec/vp9.c s->segmentation.feat[b->seg_id].skip_enabled; b 1390 libavcodec/vp9.c if (!b->skip) { b 1392 libavcodec/vp9.c b->skip = vp56_rac_get_prob(&s->c, s->prob.p.skip[c]); b 1393 libavcodec/vp9.c s->counts.skip[c][b->skip]++; b 1397 libavcodec/vp9.c b->intra = 1; b 1398 libavcodec/vp9.c } else if (s->segmentation.feat[b->seg_id].ref_enabled) { b 1399 libavcodec/vp9.c b->intra = !s->segmentation.feat[b->seg_id].ref_val; b 1412 libavcodec/vp9.c b->intra = !bit; b 1415 libavcodec/vp9.c if ((b->intra || !b->skip) && s->txfmmode == TX_SWITCHABLE) { b 1435 libavcodec/vp9.c b->tx = vp56_rac_get_prob(&s->c, s->prob.p.tx32p[c][0]); b 1436 libavcodec/vp9.c if (b->tx) { b 1437 libavcodec/vp9.c b->tx += vp56_rac_get_prob(&s->c, s->prob.p.tx32p[c][1]); b 1438 libavcodec/vp9.c if (b->tx == 2) b 1439 libavcodec/vp9.c b->tx += vp56_rac_get_prob(&s->c, s->prob.p.tx32p[c][2]); b 1441 libavcodec/vp9.c s->counts.tx32p[c][b->tx]++; b 1444 libavcodec/vp9.c b->tx = vp56_rac_get_prob(&s->c, s->prob.p.tx16p[c][0]); b 1445 libavcodec/vp9.c if (b->tx) b 1446 libavcodec/vp9.c b->tx += vp56_rac_get_prob(&s->c, s->prob.p.tx16p[c][1]); b 1447 libavcodec/vp9.c s->counts.tx16p[c][b->tx]++; b 1450 libavcodec/vp9.c b->tx = vp56_rac_get_prob(&s->c, s->prob.p.tx8p[c]); b 1451 libavcodec/vp9.c s->counts.tx8p[c][b->tx]++; b 1454 libavcodec/vp9.c b->tx = TX_4X4; b 1458 libavcodec/vp9.c b->tx = FFMIN(max_tx, s->txfmmode); b 1465 libavcodec/vp9.c b->comp = 0; b 1466 libavcodec/vp9.c if (b->bs > BS_8x8) { b 1470 libavcodec/vp9.c b->mode[0] = a[0] = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1472 libavcodec/vp9.c if (b->bs != BS_8x4) { b 1473 libavcodec/vp9.c b->mode[1] = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1474 libavcodec/vp9.c vp9_default_kf_ymode_probs[a[1]][b->mode[0]]); b 1475 libavcodec/vp9.c l[0] = a[1] = b->mode[1]; b 1477 libavcodec/vp9.c l[0] = a[1] = b->mode[1] = b->mode[0]; b 1479 libavcodec/vp9.c if (b->bs != BS_4x8) { b 1480 libavcodec/vp9.c b->mode[2] = a[0] = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1482 libavcodec/vp9.c if (b->bs != BS_8x4) { b 1483 libavcodec/vp9.c b->mode[3] = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1484 libavcodec/vp9.c vp9_default_kf_ymode_probs[a[1]][b->mode[2]]); b 1485 libavcodec/vp9.c l[1] = a[1] = b->mode[3]; b 1487 libavcodec/vp9.c l[1] = a[1] = b->mode[3] = b->mode[2]; b 1490 libavcodec/vp9.c b->mode[2] = b->mode[0]; b 1491 libavcodec/vp9.c l[1] = a[1] = b->mode[3] = b->mode[1]; b 1494 libavcodec/vp9.c b->mode[0] = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1496 libavcodec/vp9.c b->mode[3] = b->mode[2] = b->mode[1] = b->mode[0]; b 1498 libavcodec/vp9.c memset(a, b->mode[0], bwh_tab[0][b->bs][0]); b 1499 libavcodec/vp9.c memset(l, b->mode[0], bwh_tab[0][b->bs][1]); b 1501 libavcodec/vp9.c b->uvmode = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1502 libavcodec/vp9.c vp9_default_kf_uvmode_probs[b->mode[3]]); b 1503 libavcodec/vp9.c } else if (b->intra) { b 1504 libavcodec/vp9.c b->comp = 0; b 1505 libavcodec/vp9.c if (b->bs > BS_8x8) { b 1506 libavcodec/vp9.c b->mode[0] = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1508 libavcodec/vp9.c s->counts.y_mode[0][b->mode[0]]++; b 1509 libavcodec/vp9.c if (b->bs != BS_8x4) { b 1510 libavcodec/vp9.c b->mode[1] = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1512 libavcodec/vp9.c s->counts.y_mode[0][b->mode[1]]++; b 1514 libavcodec/vp9.c b->mode[1] = b->mode[0]; b 1516 libavcodec/vp9.c if (b->bs != BS_4x8) { b 1517 libavcodec/vp9.c b->mode[2] = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1519 libavcodec/vp9.c s->counts.y_mode[0][b->mode[2]]++; b 1520 libavcodec/vp9.c if (b->bs != BS_8x4) { b 1521 libavcodec/vp9.c b->mode[3] = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1523 libavcodec/vp9.c s->counts.y_mode[0][b->mode[3]]++; b 1525 libavcodec/vp9.c b->mode[3] = b->mode[2]; b 1528 libavcodec/vp9.c b->mode[2] = b->mode[0]; b 1529 libavcodec/vp9.c b->mode[3] = b->mode[1]; b 1535 libavcodec/vp9.c int sz = size_group[b->bs]; b 1537 libavcodec/vp9.c b->mode[0] = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1539 libavcodec/vp9.c b->mode[1] = b->mode[2] = b->mode[3] = b->mode[0]; b 1540 libavcodec/vp9.c s->counts.y_mode[sz][b->mode[3]]++; b 1542 libavcodec/vp9.c b->uvmode = vp8_rac_get_tree(&s->c, vp9_intramode_tree, b 1543 libavcodec/vp9.c s->prob.p.uv_mode[b->mode[3]]); b 1544 libavcodec/vp9.c s->counts.uv_mode[b->mode[3]][b->uvmode]++; b 1563 libavcodec/vp9.c if (s->segmentation.feat[b->seg_id].ref_enabled) { b 1564 libavcodec/vp9.c av_assert2(s->segmentation.feat[b->seg_id].ref_val != 0); b 1565 libavcodec/vp9.c b->comp = 0; b 1566 libavcodec/vp9.c b->ref[0] = s->segmentation.feat[b->seg_id].ref_val - 1; b 1570 libavcodec/vp9.c b->comp = s->comppredmode == PRED_COMPREF; b 1601 libavcodec/vp9.c b->comp = vp56_rac_get_prob(&s->c, s->prob.p.comp[c]); b 1602 libavcodec/vp9.c s->counts.comp[c][b->comp]++; b 1608 libavcodec/vp9.c if (b->comp) /* two references */ { b 1611 libavcodec/vp9.c b->ref[fix_idx] = s->fixcompref; b 1674 libavcodec/vp9.c b->ref[var_idx] = s->varcompref[bit]; b 1716 libavcodec/vp9.c b->ref[0] = 0; b 1802 libavcodec/vp9.c b->ref[0] = 1 + bit; b 1807 libavcodec/vp9.c if (b->bs <= BS_8x8) { b 1808 libavcodec/vp9.c if (s->segmentation.feat[b->seg_id].skip_enabled) { b 1809 libavcodec/vp9.c b->mode[0] = b->mode[1] = b->mode[2] = b->mode[3] = ZEROMV; b 1817 libavcodec/vp9.c int c = inter_mode_ctx_lut[s->above_mode_ctx[col + off[b->bs]]] b 1818 libavcodec/vp9.c [s->left_mode_ctx[row7 + off[b->bs]]]; b 1820 libavcodec/vp9.c b->mode[0] = vp8_rac_get_tree(&s->c, vp9_inter_mode_tree, b 1822 libavcodec/vp9.c b->mode[1] = b->mode[2] = b->mode[3] = b->mode[0]; b 1823 libavcodec/vp9.c s->counts.mv_mode[c][b->mode[0] - 10]++; b 1846 libavcodec/vp9.c b->filter = vp9_filter_lut[filter_id]; b 1848 libavcodec/vp9.c b->filter = s->filtermode; b 1851 libavcodec/vp9.c if (b->bs > BS_8x8) { b 1854 libavcodec/vp9.c b->mode[0] = vp8_rac_get_tree(&s->c, vp9_inter_mode_tree, b 1856 libavcodec/vp9.c s->counts.mv_mode[c][b->mode[0] - 10]++; b 1857 libavcodec/vp9.c fill_mv(s, b->mv[0], b->mode[0], 0); b 1859 libavcodec/vp9.c if (b->bs != BS_8x4) { b 1860 libavcodec/vp9.c b->mode[1] = vp8_rac_get_tree(&s->c, vp9_inter_mode_tree, b 1862 libavcodec/vp9.c s->counts.mv_mode[c][b->mode[1] - 10]++; b 1863 libavcodec/vp9.c fill_mv(s, b->mv[1], b->mode[1], 1); b 1865 libavcodec/vp9.c b->mode[1] = b->mode[0]; b 1866 libavcodec/vp9.c AV_COPY32(&b->mv[1][0], &b->mv[0][0]); b 1867 libavcodec/vp9.c AV_COPY32(&b->mv[1][1], &b->mv[0][1]); b 1870 libavcodec/vp9.c if (b->bs != BS_4x8) { b 1871 libavcodec/vp9.c b->mode[2] = vp8_rac_get_tree(&s->c, vp9_inter_mode_tree, b 1873 libavcodec/vp9.c s->counts.mv_mode[c][b->mode[2] - 10]++; b 1874 libavcodec/vp9.c fill_mv(s, b->mv[2], b->mode[2], 2); b 1876 libavcodec/vp9.c if (b->bs != BS_8x4) { b 1877 libavcodec/vp9.c b->mode[3] = vp8_rac_get_tree(&s->c, vp9_inter_mode_tree, b 1879 libavcodec/vp9.c s->counts.mv_mode[c][b->mode[3] - 10]++; b 1880 libavcodec/vp9.c fill_mv(s, b->mv[3], b->mode[3], 3); b 1882 libavcodec/vp9.c b->mode[3] = b->mode[2]; b 1883 libavcodec/vp9.c AV_COPY32(&b->mv[3][0], &b->mv[2][0]); b 1884 libavcodec/vp9.c AV_COPY32(&b->mv[3][1], &b->mv[2][1]); b 1887 libavcodec/vp9.c b->mode[2] = b->mode[0]; b 1888 libavcodec/vp9.c AV_COPY32(&b->mv[2][0], &b->mv[0][0]); b 1889 libavcodec/vp9.c AV_COPY32(&b->mv[2][1], &b->mv[0][1]); b 1890 libavcodec/vp9.c b->mode[3] = b->mode[1]; b 1891 libavcodec/vp9.c AV_COPY32(&b->mv[3][0], &b->mv[1][0]); b 1892 libavcodec/vp9.c AV_COPY32(&b->mv[3][1], &b->mv[1][1]); b 1895 libavcodec/vp9.c fill_mv(s, b->mv[0], b->mode[0], -1); b 1896 libavcodec/vp9.c AV_COPY32(&b->mv[1][0], &b->mv[0][0]); b 1897 libavcodec/vp9.c AV_COPY32(&b->mv[2][0], &b->mv[0][0]); b 1898 libavcodec/vp9.c AV_COPY32(&b->mv[3][0], &b->mv[0][0]); b 1899 libavcodec/vp9.c AV_COPY32(&b->mv[1][1], &b->mv[0][1]); b 1900 libavcodec/vp9.c AV_COPY32(&b->mv[2][1], &b->mv[0][1]); b 1901 libavcodec/vp9.c AV_COPY32(&b->mv[3][1], &b->mv[0][1]); b 1904 libavcodec/vp9.c vref = b->ref[b->comp ? s->signbias[s->varcompref[0]] : 0]; b 1944 libavcodec/vp9.c switch (bwh_tab[1][b->bs][0]) { b 1947 libavcodec/vp9.c SPLAT_CTX(s->dir##_skip_ctx[off], b->skip, n); \ b 1948 libavcodec/vp9.c SPLAT_CTX(s->dir##_txfm_ctx[off], b->tx, n); \ b 1949 libavcodec/vp9.c SPLAT_CTX(s->dir##_partition_ctx[off], dir##_ctx[b->bs], n); \ b 1951 libavcodec/vp9.c SPLAT_CTX(s->dir##_intra_ctx[off], b->intra, n); \ b 1952 libavcodec/vp9.c SPLAT_CTX(s->dir##_comp_ctx[off], b->comp, n); \ b 1953 libavcodec/vp9.c SPLAT_CTX(s->dir##_mode_ctx[off], b->mode[3], n); \ b 1954 libavcodec/vp9.c if (!b->intra) { \ b 1967 libavcodec/vp9.c switch (bwh_tab[1][b->bs][1]) { b 1977 libavcodec/vp9.c if (b->bs > BS_8x8) { b 1978 libavcodec/vp9.c int mv0 = AV_RN32A(&b->mv[3][0]), mv1 = AV_RN32A(&b->mv[3][1]); b 1980 libavcodec/vp9.c AV_COPY32(&s->left_mv_ctx[row7 * 2 + 0][0], &b->mv[1][0]); b 1981 libavcodec/vp9.c AV_COPY32(&s->left_mv_ctx[row7 * 2 + 0][1], &b->mv[1][1]); b 1984 libavcodec/vp9.c AV_COPY32(&s->above_mv_ctx[col * 2 + 0][0], &b->mv[2][0]); b 1985 libavcodec/vp9.c AV_COPY32(&s->above_mv_ctx[col * 2 + 0][1], &b->mv[2][1]); b 1989 libavcodec/vp9.c int n, mv0 = AV_RN32A(&b->mv[3][0]), mv1 = AV_RN32A(&b->mv[3][1]); b 2007 libavcodec/vp9.c if (b->intra) { b 2012 libavcodec/vp9.c } else if (b->comp) { b 2014 libavcodec/vp9.c mv[x].ref[0] = b->ref[0]; b 2015 libavcodec/vp9.c mv[x].ref[1] = b->ref[1]; b 2016 libavcodec/vp9.c AV_COPY32(&mv[x].mv[0], &b->mv[3][0]); b 2017 libavcodec/vp9.c AV_COPY32(&mv[x].mv[1], &b->mv[3][1]); b 2021 libavcodec/vp9.c mv[x].ref[0] = b->ref[0]; b 2023 libavcodec/vp9.c AV_COPY32(&mv[x].mv[0], &b->mv[3][0]); b 2161 libavcodec/vp9.c VP9Block *b = s->b; b 2163 libavcodec/vp9.c uint8_t (*p)[6][11] = s->prob.coef[b->tx][0 /* y */][!b->intra]; b 2164 libavcodec/vp9.c unsigned (*c)[6][3] = s->counts.coef[b->tx][0 /* y */][!b->intra]; b 2165 libavcodec/vp9.c unsigned (*e)[6][2] = s->counts.eob[b->tx][0 /* y */][!b->intra]; b 2166 libavcodec/vp9.c int w4 = bwh_tab[1][b->bs][0] << 1, h4 = bwh_tab[1][b->bs][1] << 1; b 2170 libavcodec/vp9.c int16_t (*qmul)[2] = s->segmentation.feat[b->seg_id].qmul; b 2171 libavcodec/vp9.c int tx = 4 * s->lossless + b->tx; b 2174 libavcodec/vp9.c const int16_t *uvscan = vp9_scans[b->uvtx][DCT_DCT]; b 2175 libavcodec/vp9.c const int16_t (*uvnb)[2] = vp9_scans_nb[b->uvtx][DCT_DCT]; b 2184 libavcodec/vp9.c const int16_t *y_band_counts = band_counts[b->tx]; b 2185 libavcodec/vp9.c const int16_t *uv_band_counts = band_counts[b->uvtx]; b 2199 libavcodec/vp9.c enum TxfmType txtp = vp9_intra_txfm_type[b->mode[mode_index]]; \ b 2248 libavcodec/vp9.c switch (b->tx) { b 2250 libavcodec/vp9.c DECODE_Y_COEF_LOOP(1, b->bs > BS_8x8 ? n : 0,); b 2284 libavcodec/vp9.c p = s->prob.coef[b->uvtx][1 /* uv */][!b->intra]; b 2285 libavcodec/vp9.c c = s->counts.coef[b->uvtx][1 /* uv */][!b->intra]; b 2286 libavcodec/vp9.c e = s->counts.eob[b->uvtx][1 /* uv */][!b->intra]; b 2294 libavcodec/vp9.c switch (b->uvtx) { b 2473 libavcodec/vp9.c VP9Block *b = s->b; b 2475 libavcodec/vp9.c int w4 = bwh_tab[1][b->bs][0] << 1, step1d = 1 << b->tx, n; b 2476 libavcodec/vp9.c int h4 = bwh_tab[1][b->bs][1] << 1, x, y, step = 1 << (b->tx * 2); b 2479 libavcodec/vp9.c int tx = 4 * s->lossless + b->tx, uvtx = b->uvtx + 4 * s->lossless; b 2480 libavcodec/vp9.c int uvstep1d = 1 << b->uvtx, p; b 2489 libavcodec/vp9.c int mode = b->mode[b->bs > BS_8x8 && b->tx == TX_4X4 ? b 2493 libavcodec/vp9.c int eob = b->skip ? 0 : b->tx > TX_8X8 ? AV_RN16A(&s->eob[n]) : s->eob[n]; b 2498 libavcodec/vp9.c col, x, w4, row, y, b->tx, 0); b 2499 libavcodec/vp9.c s->dsp.intra_pred[b->tx][mode](ptr, s->y_stride, l, a); b 2512 libavcodec/vp9.c step = 1 << (b->uvtx * 2); b 2520 libavcodec/vp9.c int mode = b->uvmode; b 2522 libavcodec/vp9.c int eob = b->skip ? 0 : b->uvtx > TX_8X8 ? AV_RN16A(&s->uveob[p][n]) : s->uveob[p][n]; b 2527 libavcodec/vp9.c col, x, w4, row, y, b->uvtx, p + 1); b 2528 libavcodec/vp9.c s->dsp.intra_pred[b->uvtx][mode](ptr, s->uv_stride, l, a); b 2623 libavcodec/vp9.c VP9Block *b = s->b; b 2625 libavcodec/vp9.c ThreadFrame *tref1 = &s->refs[s->refidx[b->ref[0]]], *tref2; b 2630 libavcodec/vp9.c if (b->comp) { b 2631 libavcodec/vp9.c tref2 = &s->refs[s->refidx[b->ref[1]]]; b 2638 libavcodec/vp9.c if (b->bs > BS_8x8) { b 2639 libavcodec/vp9.c if (b->bs == BS_8x4) { b 2640 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[3][b->filter][0], s->dst[0], ls_y, b 2642 libavcodec/vp9.c row << 3, col << 3, &b->mv[0][0], 8, 4, w1, h1); b 2643 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[3][b->filter][0], b 2646 libavcodec/vp9.c (row << 3) + 4, col << 3, &b->mv[2][0], 8, 4, w1, h1); b 2648 libavcodec/vp9.c if (b->comp) { b 2649 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[3][b->filter][1], s->dst[0], ls_y, b 2651 libavcodec/vp9.c row << 3, col << 3, &b->mv[0][1], 8, 4, w2, h2); b 2652 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[3][b->filter][1], b 2655 libavcodec/vp9.c (row << 3) + 4, col << 3, &b->mv[2][1], 8, 4, w2, h2); b 2657 libavcodec/vp9.c } else if (b->bs == BS_4x8) { b 2658 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][0], s->dst[0], ls_y, b 2660 libavcodec/vp9.c row << 3, col << 3, &b->mv[0][0], 4, 8, w1, h1); b 2661 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][0], s->dst[0] + 4, ls_y, b 2663 libavcodec/vp9.c row << 3, (col << 3) + 4, &b->mv[1][0], 4, 8, w1, h1); b 2665 libavcodec/vp9.c if (b->comp) { b 2666 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][1], s->dst[0], ls_y, b 2668 libavcodec/vp9.c row << 3, col << 3, &b->mv[0][1], 4, 8, w2, h2); b 2669 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][1], s->dst[0] + 4, ls_y, b 2671 libavcodec/vp9.c row << 3, (col << 3) + 4, &b->mv[1][1], 4, 8, w2, h2); b 2674 libavcodec/vp9.c av_assert2(b->bs == BS_4x4); b 2678 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][0], s->dst[0], ls_y, b 2680 libavcodec/vp9.c row << 3, col << 3, &b->mv[0][0], 4, 4, w1, h1); b 2681 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][0], s->dst[0] + 4, ls_y, b 2683 libavcodec/vp9.c row << 3, (col << 3) + 4, &b->mv[1][0], 4, 4, w1, h1); b 2684 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][0], b 2687 libavcodec/vp9.c (row << 3) + 4, col << 3, &b->mv[2][0], 4, 4, w1, h1); b 2688 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][0], b 2691 libavcodec/vp9.c (row << 3) + 4, (col << 3) + 4, &b->mv[3][0], 4, 4, w1, h1); b 2693 libavcodec/vp9.c if (b->comp) { b 2694 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][1], s->dst[0], ls_y, b 2696 libavcodec/vp9.c row << 3, col << 3, &b->mv[0][1], 4, 4, w2, h2); b 2697 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][1], s->dst[0] + 4, ls_y, b 2699 libavcodec/vp9.c row << 3, (col << 3) + 4, &b->mv[1][1], 4, 4, w2, h2); b 2700 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][1], b 2703 libavcodec/vp9.c (row << 3) + 4, col << 3, &b->mv[2][1], 4, 4, w2, h2); b 2704 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[4][b->filter][1], b 2707 libavcodec/vp9.c (row << 3) + 4, (col << 3) + 4, &b->mv[3][1], 4, 4, w2, h2); b 2711 libavcodec/vp9.c int bwl = bwlog_tab[0][b->bs]; b 2712 libavcodec/vp9.c int bw = bwh_tab[0][b->bs][0] * 4, bh = bwh_tab[0][b->bs][1] * 4; b 2714 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[bwl][b->filter][0], s->dst[0], ls_y, b 2716 libavcodec/vp9.c row << 3, col << 3, &b->mv[0][0],bw, bh, w1, h1); b 2718 libavcodec/vp9.c if (b->comp) b 2719 libavcodec/vp9.c mc_luma_dir(s, s->dsp.mc[bwl][b->filter][1], s->dst[0], ls_y, b 2721 libavcodec/vp9.c row << 3, col << 3, &b->mv[0][1], bw, bh, w2, h2); b 2726 libavcodec/vp9.c int bwl = bwlog_tab[1][b->bs]; b 2727 libavcodec/vp9.c int bw = bwh_tab[1][b->bs][0] * 4, bh = bwh_tab[1][b->bs][1] * 4; b 2732 libavcodec/vp9.c if (b->comp) { b 2736 libavcodec/vp9.c if (b->bs > BS_8x8) { b 2737 libavcodec/vp9.c mvuv.x = ROUNDED_DIV(b->mv[0][0].x + b->mv[1][0].x + b->mv[2][0].x + b->mv[3][0].x, 4); b 2738 libavcodec/vp9.c mvuv.y = ROUNDED_DIV(b->mv[0][0].y + b->mv[1][0].y + b->mv[2][0].y + b->mv[3][0].y, 4); b 2740 libavcodec/vp9.c mvuv = b->mv[0][0]; b 2743 libavcodec/vp9.c mc_chroma_dir(s, s->dsp.mc[bwl][b->filter][0], b 2749 libavcodec/vp9.c if (b->comp) { b 2750 libavcodec/vp9.c if (b->bs > BS_8x8) { b 2751 libavcodec/vp9.c mvuv.x = ROUNDED_DIV(b->mv[0][1].x + b->mv[1][1].x + b->mv[2][1].x + b->mv[3][1].x, 4); b 2752 libavcodec/vp9.c mvuv.y = ROUNDED_DIV(b->mv[0][1].y + b->mv[1][1].y + b->mv[2][1].y + b->mv[3][1].y, 4); b 2754 libavcodec/vp9.c mvuv = b->mv[0][1]; b 2756 libavcodec/vp9.c mc_chroma_dir(s, s->dsp.mc[bwl][b->filter][1], b 2764 libavcodec/vp9.c if (!b->skip) { b 2767 libavcodec/vp9.c int w4 = bwh_tab[1][b->bs][0] << 1, step1d = 1 << b->tx, n; b 2768 libavcodec/vp9.c int h4 = bwh_tab[1][b->bs][1] << 1, x, y, step = 1 << (b->tx * 2); b 2771 libavcodec/vp9.c int tx = 4 * s->lossless + b->tx, uvtx = b->uvtx + 4 * s->lossless; b 2772 libavcodec/vp9.c int uvstep1d = 1 << b->uvtx, p; b 2779 libavcodec/vp9.c int eob = b->tx > TX_8X8 ? AV_RN16A(&s->eob[n]) : s->eob[n]; b 2791 libavcodec/vp9.c step = 1 << (b->uvtx * 2); b 2797 libavcodec/vp9.c int eob = b->uvtx > TX_8X8 ? AV_RN16A(&s->uveob[p][n]) : s->uveob[p][n]; b 2947 libavcodec/vp9.c VP9Block *b = s->b; b 2962 libavcodec/vp9.c b->bs = bs; b 2963 libavcodec/vp9.c b->bl = bl; b 2964 libavcodec/vp9.c b->bp = bp; b 2966 libavcodec/vp9.c b->uvtx = b->tx - (w4 * 2 == (1 << b->tx) || h4 * 2 == (1 << b->tx)); b 2968 libavcodec/vp9.c if (!b->skip) { b 3002 libavcodec/vp9.c s->b++; b 3037 libavcodec/vp9.c if (b->intra) { b 3075 libavcodec/vp9.c (lvl = s->segmentation.feat[b->seg_id].lflvl[b->intra ? 0 : b->ref[0] + 1] b 3076 libavcodec/vp9.c [b->mode[3] != ZEROMV]) > 0) { b 3078 libavcodec/vp9.c int skip_inter = !b->intra && b->skip, col7 = s->col7, row7 = s->row7; b 3081 libavcodec/vp9.c mask_edges(lflvl, 0, row7, col7, x_end, y_end, 0, 0, b->tx, skip_inter); b 3085 libavcodec/vp9.c b->uvtx, skip_inter); b 3103 libavcodec/vp9.c s->b++; b 3192 libavcodec/vp9.c VP9Block *b = s->b; b 3198 libavcodec/vp9.c av_assert2(b->bl == BL_8X8); b 3199 libavcodec/vp9.c decode_b(ctx, row, col, lflvl, yoff, uvoff, b->bl, b->bp); b 3200 libavcodec/vp9.c } else if (s->b->bl == bl) { b 3201 libavcodec/vp9.c decode_b(ctx, row, col, lflvl, yoff, uvoff, b->bl, b->bp); b 3202 libavcodec/vp9.c if (b->bp == PARTITION_H && row + hbs < s->rows) { b 3205 libavcodec/vp9.c decode_b(ctx, row + hbs, col, lflvl, yoff, uvoff, b->bl, b->bp); b 3206 libavcodec/vp9.c } else if (b->bp == PARTITION_V && col + hbs < s->cols) { b 3209 libavcodec/vp9.c decode_b(ctx, row, col + hbs, lflvl, yoff, uvoff, b->bl, b->bp); b 3858 libavcodec/vp9.c s->b = s->b_base; b 322 libavcodec/vqavideo.c unsigned char r, g, b; b 424 libavcodec/vqavideo.c b = bytestream2_get_byteu(&s->gb) * 4; b 425 libavcodec/vqavideo.c s->palette[i] = 0xFFU << 24 | r << 16 | g << 8 | b; b 906 libavcodec/webp.c static av_always_inline uint8_t clamp_add_subtract_half(int a, int b, int c) b 908 libavcodec/webp.c int d = a + b >> 1; b 197 libavcodec/wma.c int a, b, pos, lpos, k, block_len, i, j, n; b 211 libavcodec/wma.c b = avctx->sample_rate; b 212 libavcodec/wma.c pos = ((block_len * 2 * a) + (b >> 1)) / b; b 245 libavcodec/wma.c b = avctx->sample_rate; b 246 libavcodec/wma.c pos = ((block_len * 2 * a) + (b << 1)) / (4 * b); b 142 libavcodec/wmadec.c float a, b; b 150 libavcodec/wmadec.c b = s->lsp_pow_m_table2[m]; b 151 libavcodec/wmadec.c return s->lsp_pow_e_table[e] * (a + b * t.f); b 156 libavcodec/wmadec.c float wdel, a, b; b 171 libavcodec/wmadec.c b = 1.0; b 176 libavcodec/wmadec.c s->lsp_pow_m_table1[i] = 2 * a - b; b 177 libavcodec/wmadec.c s->lsp_pow_m_table2[i] = b - a; b 178 libavcodec/wmadec.c b = a; b 369 libavcodec/wmaenc.c float a, b; b 374 libavcodec/wmaenc.c b = s->coefs[1][i] * 0.5; b 375 libavcodec/wmaenc.c s->coefs[0][i] = a + b; b 376 libavcodec/wmaenc.c s->coefs[1][i] = a - b; b 241 libavcodec/wmaprodec.c #define PRINT(a, b) av_log(s->avctx, AV_LOG_DEBUG, " %s = %d\n", a, b); b 242 libavcodec/wmaprodec.c #define PRINT_HEX(a, b) av_log(s->avctx, AV_LOG_DEBUG, " %s = %"PRIx32"\n", a, b); b 448 libavcodec/wmaprodec.c int b; b 449 libavcodec/wmaprodec.c for (b = 0; b < s->num_sfb[i]; b++) { b 451 libavcodec/wmaprodec.c int offset = ((s->sfb_offsets[i][b] b 452 libavcodec/wmaprodec.c + s->sfb_offsets[i][b + 1] - 1) << i) >> 1; b 459 libavcodec/wmaprodec.c s->sf_offsets[i][x][b] = v; b 934 libavcodec/wmaprodec.c int b; b 935 libavcodec/wmaprodec.c for (b = 0; b < s->num_bands; b++) b 936 libavcodec/wmaprodec.c s->channel[c].scale_factors[b] = b 1284 libavcodec/wmaprodec.c int b; b 1291 libavcodec/wmaprodec.c for (b = 0; b < s->num_bands; b++) { b 1292 libavcodec/wmaprodec.c const int end = FFMIN(s->cur_sfb_offsets[b+1], s->subframe_len); b 1297 libavcodec/wmaprodec.c int start = s->cur_sfb_offsets[b]; b 35 libavcodec/wmv2dsp.c static void wmv2_idct_row(short * b) b 41 libavcodec/wmv2dsp.c a1 = W1 * b[1] + W7 * b[7]; b 42 libavcodec/wmv2dsp.c a7 = W7 * b[1] - W1 * b[7]; b 43 libavcodec/wmv2dsp.c a5 = W5 * b[5] + W3 * b[3]; b 44 libavcodec/wmv2dsp.c a3 = W3 * b[5] - W5 * b[3]; b 45 libavcodec/wmv2dsp.c a2 = W2 * b[2] + W6 * b[6]; b 46 libavcodec/wmv2dsp.c a6 = W6 * b[2] - W2 * b[6]; b 47 libavcodec/wmv2dsp.c a0 = W0 * b[0] + W0 * b[4]; b 48 libavcodec/wmv2dsp.c a4 = W0 * b[0] - W0 * b[4]; b 55 libavcodec/wmv2dsp.c b[0] = (a0 + a2 + a1 + a5 + (1 << 7)) >> 8; b 56 libavcodec/wmv2dsp.c b[1] = (a4 + a6 + s1 + (1 << 7)) >> 8; b 57 libavcodec/wmv2dsp.c b[2] = (a4 - a6 + s2 + (1 << 7)) >> 8; b 58 libavcodec/wmv2dsp.c b[3] = (a0 - a2 + a7 + a3 + (1 << 7)) >> 8; b 59 libavcodec/wmv2dsp.c b[4] = (a0 - a2 - a7 - a3 + (1 << 7)) >> 8; b 60 libavcodec/wmv2dsp.c b[5] = (a4 - a6 - s2 + (1 << 7)) >> 8; b 61 libavcodec/wmv2dsp.c b[6] = (a4 + a6 - s1 + (1 << 7)) >> 8; b 62 libavcodec/wmv2dsp.c b[7] = (a0 + a2 - a1 - a5 + (1 << 7)) >> 8; b 65 libavcodec/wmv2dsp.c static void wmv2_idct_col(short * b) b 71 libavcodec/wmv2dsp.c a1 = (W1 * b[8 * 1] + W7 * b[8 * 7] + 4) >> 3; b 72 libavcodec/wmv2dsp.c a7 = (W7 * b[8 * 1] - W1 * b[8 * 7] + 4) >> 3; b 73 libavcodec/wmv2dsp.c a5 = (W5 * b[8 * 5] + W3 * b[8 * 3] + 4) >> 3; b 74 libavcodec/wmv2dsp.c a3 = (W3 * b[8 * 5] - W5 * b[8 * 3] + 4) >> 3; b 75 libavcodec/wmv2dsp.c a2 = (W2 * b[8 * 2] + W6 * b[8 * 6] + 4) >> 3; b 76 libavcodec/wmv2dsp.c a6 = (W6 * b[8 * 2] - W2 * b[8 * 6] + 4) >> 3; b 77 libavcodec/wmv2dsp.c a0 = (W0 * b[8 * 0] + W0 * b[8 * 4] ) >> 3; b 78 libavcodec/wmv2dsp.c a4 = (W0 * b[8 * 0] - W0 * b[8 * 4] ) >> 3; b 85 libavcodec/wmv2dsp.c b[8 * 0] = (a0 + a2 + a1 + a5 + (1 << 13)) >> 14; b 86 libavcodec/wmv2dsp.c b[8 * 1] = (a4 + a6 + s1 + (1 << 13)) >> 14; b 87 libavcodec/wmv2dsp.c b[8 * 2] = (a4 - a6 + s2 + (1 << 13)) >> 14; b 88 libavcodec/wmv2dsp.c b[8 * 3] = (a0 - a2 + a7 + a3 + (1 << 13)) >> 14; b 90 libavcodec/wmv2dsp.c b[8 * 4] = (a0 - a2 - a7 - a3 + (1 << 13)) >> 14; b 91 libavcodec/wmv2dsp.c b[8 * 5] = (a4 - a6 - s2 + (1 << 13)) >> 14; b 92 libavcodec/wmv2dsp.c b[8 * 6] = (a4 + a6 - s1 + (1 << 13)) >> 14; b 93 libavcodec/wmv2dsp.c b[8 * 7] = (a0 + a2 - a1 - a5 + (1 << 13)) >> 14; b 40 libavcodec/x86/cavsdsp.c #define SUMSUB_BA( a, b ) \ b 41 libavcodec/x86/cavsdsp.c "paddw "#b", "#a" \n\t"\ b 42 libavcodec/x86/cavsdsp.c "paddw "#b", "#b" \n\t"\ b 43 libavcodec/x86/cavsdsp.c "psubw "#a", "#b" \n\t" b 128 libavcodec/x86/cavsdsp.c #define SBUTTERFLY(a,b,t,n,m)\ b 130 libavcodec/x86/cavsdsp.c "punpckl" #n " " #b ", " #a " \n\t" /* aebf */\ b 131 libavcodec/x86/cavsdsp.c "punpckh" #n " " #b ", " #t " \n\t" /* cgdh */\ b 133 libavcodec/x86/cavsdsp.c #define TRANSPOSE4(a,b,c,d,t)\ b 134 libavcodec/x86/cavsdsp.c SBUTTERFLY(a,b,t,wd,q) /* a=aebf t=cgdh */\ b 135 libavcodec/x86/cavsdsp.c SBUTTERFLY(c,d,b,wd,q) /* c=imjn b=kolp */\ b 137 libavcodec/x86/cavsdsp.c SBUTTERFLY(t,b,c,dq,q) /* t=cgko c=dhlp */ b 453 libavcodec/x86/cavsdsp.c #define PUT_OP(a,b,temp, size) "mov" #size " " #a ", " #b " \n\t" b 454 libavcodec/x86/cavsdsp.c #define AVG_3DNOW_OP(a,b,temp, size) \ b 455 libavcodec/x86/cavsdsp.c "mov" #size " " #b ", " #temp " \n\t"\ b 457 libavcodec/x86/cavsdsp.c "mov" #size " " #a ", " #b " \n\t" b 458 libavcodec/x86/cavsdsp.c #define AVG_MMXEXT_OP(a, b, temp, size) \ b 459 libavcodec/x86/cavsdsp.c "mov" #size " " #b ", " #temp " \n\t"\ b 461 libavcodec/x86/cavsdsp.c "mov" #size " " #a ", " #b " \n\t" b 33 libavcodec/x86/dirac_dwt.c void ff_horizontal_compose_haar0i##ext(IDWTELEM *b, IDWTELEM *tmp, int w);\ b 34 libavcodec/x86/dirac_dwt.c void ff_horizontal_compose_haar1i##ext(IDWTELEM *b, IDWTELEM *tmp, int w);\ b 88 libavcodec/x86/dirac_dwt.c static void horizontal_compose_haar0i##ext(IDWTELEM *b, IDWTELEM *tmp, int w)\ b 92 libavcodec/x86/dirac_dwt.c ff_horizontal_compose_haar0i##ext(b, tmp, w);\ b 95 libavcodec/x86/dirac_dwt.c b[2*x ] = tmp[x];\ b 96 libavcodec/x86/dirac_dwt.c b[2*x+1] = COMPOSE_HAARiH0(b[x+w2], tmp[x]);\ b 99 libavcodec/x86/dirac_dwt.c static void horizontal_compose_haar1i##ext(IDWTELEM *b, IDWTELEM *tmp, int w)\ b 103 libavcodec/x86/dirac_dwt.c ff_horizontal_compose_haar1i##ext(b, tmp, w);\ b 106 libavcodec/x86/dirac_dwt.c b[2*x ] = (tmp[x] + 1)>>1;\ b 107 libavcodec/x86/dirac_dwt.c b[2*x+1] = (COMPOSE_HAARiH0(b[x+w2], tmp[x]) + 1)>>1;\ b 119 libavcodec/x86/dirac_dwt.c void ff_horizontal_compose_dd97i_ssse3(IDWTELEM *b, IDWTELEM *tmp, int w); b 121 libavcodec/x86/dirac_dwt.c static void horizontal_compose_dd97i_ssse3(IDWTELEM *b, IDWTELEM *tmp, int w) b 125 libavcodec/x86/dirac_dwt.c ff_horizontal_compose_dd97i_ssse3(b, tmp, w); b 128 libavcodec/x86/dirac_dwt.c b[2*x ] = (tmp[x] + 1)>>1; b 129 libavcodec/x86/dirac_dwt.c b[2*x+1] = (COMPOSE_DD97iH0(tmp[x-1], tmp[x], b[x+w2], tmp[x+1], tmp[x+2]) + 1)>>1; b 24 libavcodec/x86/dirac_dwt.h void ff_horizontal_compose_dd97i_end_c(IDWTELEM *b, IDWTELEM *tmp, int w2, int x); b 25 libavcodec/x86/dirac_dwt.h void ff_horizontal_compose_haar1i_end_c(IDWTELEM *b, IDWTELEM *tmp, int w2, int x); b 26 libavcodec/x86/dirac_dwt.h void ff_horizontal_compose_haar0i_end_c(IDWTELEM *b, IDWTELEM *tmp, int w2, int x); b 111 libavcodec/x86/hpeldsp_init.c #define PAVGBP(a, b, c, d, e, f) PAVGBP_MMX_NO_RND(a, b, c, d, e, f) b 112 libavcodec/x86/hpeldsp_init.c #define PAVGB(a, b, c, e) PAVGB_MMX_NO_RND(a, b, c, e) b 135 libavcodec/x86/hpeldsp_init.c #define PAVGBP(a, b, c, d, e, f) PAVGBP_MMX(a, b, c, d, e, f) b 136 libavcodec/x86/hpeldsp_init.c #define PAVGB(a, b, c, e) PAVGB_MMX(a, b, c, e) b 34 libavcodec/x86/mathops.h static av_always_inline av_const int MULL(int a, int b, unsigned shift) b 41 libavcodec/x86/mathops.h :"a"(a), "rm"(b), "ci"((uint8_t)shift) b 47 libavcodec/x86/mathops.h static av_always_inline av_const int MULH(int a, int b) b 53 libavcodec/x86/mathops.h :"a"(a), "rm"(b) b 59 libavcodec/x86/mathops.h static av_always_inline av_const int64_t MUL64(int a, int b) b 65 libavcodec/x86/mathops.h :"a"(a), "rm"(b) b 75 libavcodec/x86/mathops.h static inline av_const int mid_pred(int a, int b, int c) b 77 libavcodec/x86/mathops.h int i=b; b 87 libavcodec/x86/mathops.h :"r"(b), "r"(c) b 93 libavcodec/x86/mathops.h #define COPY3_IF_LT(x, y, a, b, c, d)\ b 100 libavcodec/x86/mathops.h : "r" (y), "r" (b), "r" (d)\ b 76 libavcodec/x86/mpegaudiodsp.c #define MULT(a, b) \ b 81 libavcodec/x86/mpegaudiodsp.c "mulps " #b "(%2,%0), %%xmm2 \n\t" \ b 46 libavcodec/x86/mpegvideoenc_template.c #define PMAXW(a,b) "pmaxsw "a", "b" \n\t" b 47 libavcodec/x86/mpegvideoenc_template.c #define PMAX(a,b) \ b 48 libavcodec/x86/mpegvideoenc_template.c "movhlps "a", "b" \n\t"\ b 49 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a)\ b 50 libavcodec/x86/mpegvideoenc_template.c "pshuflw $0x0E, "a", "b" \n\t"\ b 51 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a)\ b 52 libavcodec/x86/mpegvideoenc_template.c "pshuflw $0x01, "a", "b" \n\t"\ b 53 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a) b 60 libavcodec/x86/mpegvideoenc_template.c #define PMAXW(a,b) "pmaxsw "a", "b" \n\t" b 61 libavcodec/x86/mpegvideoenc_template.c #define PMAX(a,b) \ b 62 libavcodec/x86/mpegvideoenc_template.c "pshufw $0x0E, "a", "b" \n\t"\ b 63 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a)\ b 64 libavcodec/x86/mpegvideoenc_template.c "pshufw $0x01, "a", "b" \n\t"\ b 65 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a) b 70 libavcodec/x86/mpegvideoenc_template.c #define PMAXW(a,b) \ b 71 libavcodec/x86/mpegvideoenc_template.c "psubusw "a", "b" \n\t"\ b 72 libavcodec/x86/mpegvideoenc_template.c "paddw "a", "b" \n\t" b 73 libavcodec/x86/mpegvideoenc_template.c #define PMAX(a,b) \ b 74 libavcodec/x86/mpegvideoenc_template.c "movq "a", "b" \n\t"\ b 76 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a)\ b 77 libavcodec/x86/mpegvideoenc_template.c "movq "a", "b" \n\t"\ b 79 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a) b 85 libavcodec/x86/mpegvideoenc_template.c #define SAVE_SIGN(a,b) \ b 86 libavcodec/x86/mpegvideoenc_template.c "movdqa "b", "a" \n\t"\ b 87 libavcodec/x86/mpegvideoenc_template.c "pabsw "b", "b" \n\t" b 88 libavcodec/x86/mpegvideoenc_template.c #define RESTORE_SIGN(a,b) \ b 89 libavcodec/x86/mpegvideoenc_template.c "psignw "a", "b" \n\t" b 91 libavcodec/x86/mpegvideoenc_template.c #define SAVE_SIGN(a,b) \ b 93 libavcodec/x86/mpegvideoenc_template.c "pcmpgtw "b", "a" \n\t" /* block[i] <= 0 ? 0xFF : 0x00 */\ b 94 libavcodec/x86/mpegvideoenc_template.c "pxor "a", "b" \n\t"\ b 95 libavcodec/x86/mpegvideoenc_template.c "psubw "a", "b" \n\t" /* ABS(block[i]) */ b 96 libavcodec/x86/mpegvideoenc_template.c #define RESTORE_SIGN(a,b) \ b 97 libavcodec/x86/mpegvideoenc_template.c "pxor "a", "b" \n\t"\ b 98 libavcodec/x86/mpegvideoenc_template.c "psubw "a", "b" \n\t" // out=((ABS(block[i])*qmat[0] - bias[0]*qmat[0])>>16)*sign(block[i]) b 30 libavcodec/x86/snowdsp.c static void ff_snow_horizontal_compose97i_sse2(IDWTELEM *b, IDWTELEM *temp, int width){ b 37 libavcodec/x86/snowdsp.c IDWTELEM * const ref = b + w2 - 1; b 38 libavcodec/x86/snowdsp.c IDWTELEM b_0 = b[0]; //By allowing the first entry in b[0] to be calculated twice b 67 libavcodec/x86/snowdsp.c :: "r"(&b[i]), "r"(&ref[i]) b 71 libavcodec/x86/snowdsp.c snow_horizontal_compose_lift_lead_out(i, b, b, ref, width, w_l, 0, W_DM, W_DO, W_DS); b 72 libavcodec/x86/snowdsp.c b[0] = b_0 - ((W_DM * 2 * ref[1]+W_DO)>>W_DS); b 76 libavcodec/x86/snowdsp.c IDWTELEM * const dst = b+w2; b 80 libavcodec/x86/snowdsp.c dst[i] = dst[i] - (b[i] + b[i + 1]); b 96 libavcodec/x86/snowdsp.c :: "r"(&dst[i]), "r"(&b[i]) b 100 libavcodec/x86/snowdsp.c snow_horizontal_compose_lift_lead_out(i, dst, dst, b, width, w_r, 1, W_CM, W_CO, W_CS); b 104 libavcodec/x86/snowdsp.c IDWTELEM * const ref = b+w2 - 1; b 105 libavcodec/x86/snowdsp.c IDWTELEM b_0 = b[0]; b 140 libavcodec/x86/snowdsp.c :: "r"(&b[i]), "r"(&ref[i]) b 144 libavcodec/x86/snowdsp.c snow_horizontal_compose_liftS_lead_out(i, b, b, ref, width, w_l); b 145 libavcodec/x86/snowdsp.c b[0] = b_0 + ((2 * ref[1] + W_BO-1 + 4 * b_0) >> W_BS); b 149 libavcodec/x86/snowdsp.c IDWTELEM * const src = b+w2; b 153 libavcodec/x86/snowdsp.c temp[i] = src[i] - ((-W_AM*(b[i] + b[i+1]))>>W_AS); b 171 libavcodec/x86/snowdsp.c :: "r"(&src[i]), "r"(&b[i]), "r"(&temp[i]) b 175 libavcodec/x86/snowdsp.c snow_horizontal_compose_lift_lead_out(i, temp, src, b, width, w_r, 1, -W_AM, W_AO+1, W_AS); b 179 libavcodec/x86/snowdsp.c snow_interleave_line_header(&i, width, b, temp); b 182 libavcodec/x86/snowdsp.c b[i+1] = temp[i>>1]; b 183 libavcodec/x86/snowdsp.c b[i] = b[i>>1]; b 211 libavcodec/x86/snowdsp.c :: "r"(&(b)[i]), "r"(&(b)[i>>1]), "r"(&(temp)[i>>1]) b 218 libavcodec/x86/snowdsp.c static void ff_snow_horizontal_compose97i_mmx(IDWTELEM *b, IDWTELEM *temp, int width){ b 225 libavcodec/x86/snowdsp.c IDWTELEM * const ref = b + w2 - 1; b 228 libavcodec/x86/snowdsp.c b[0] = b[0] - ((W_DM * 2 * ref[1]+W_DO)>>W_DS); b 250 libavcodec/x86/snowdsp.c :: "r"(&b[i]), "r"(&ref[i]) b 254 libavcodec/x86/snowdsp.c snow_horizontal_compose_lift_lead_out(i, b, b, ref, width, w_l, 0, W_DM, W_DO, W_DS); b 258 libavcodec/x86/snowdsp.c IDWTELEM * const dst = b+w2; b 273 libavcodec/x86/snowdsp.c :: "r"(&dst[i]), "r"(&b[i]) b 277 libavcodec/x86/snowdsp.c snow_horizontal_compose_lift_lead_out(i, dst, dst, b, width, w_r, 1, W_CM, W_CO, W_CS); b 281 libavcodec/x86/snowdsp.c IDWTELEM * const ref = b+w2 - 1; b 284 libavcodec/x86/snowdsp.c b[0] = b[0] + (((2 * ref[1] + W_BO) + 4 * b[0]) >> W_BS); b 317 libavcodec/x86/snowdsp.c :: "r"(&b[i]), "r"(&ref[i]) b 321 libavcodec/x86/snowdsp.c snow_horizontal_compose_liftS_lead_out(i, b, b, ref, width, w_l); b 325 libavcodec/x86/snowdsp.c IDWTELEM * const src = b+w2; b 344 libavcodec/x86/snowdsp.c :: "r"(&src[i]), "r"(&b[i]), "r"(&temp[i]) b 348 libavcodec/x86/snowdsp.c snow_horizontal_compose_lift_lead_out(i, temp, src, b, width, w_r, 1, -W_AM, W_AO+1, W_AS); b 352 libavcodec/x86/snowdsp.c snow_interleave_line_header(&i, width, b, temp); b 355 libavcodec/x86/snowdsp.c b[i+1] = temp[i>>1]; b 356 libavcodec/x86/snowdsp.c b[i] = b[i>>1]; b 384 libavcodec/x86/snowdsp.c :: "r"(&b[i]), "r"(&b[i>>1]), "r"(&temp[i>>1]) b 480 libavcodec/x86/vc1dsp_mmx.c #define DECLARE_FUNCTION(a, b) \ b 481 libavcodec/x86/vc1dsp_mmx.c static void put_vc1_mspel_mc ## a ## b ## _mmx(uint8_t *dst, \ b 486 libavcodec/x86/vc1dsp_mmx.c put_vc1_mspel_mc(dst, src, stride, a, b, rnd); \ b 488 libavcodec/x86/vc1dsp_mmx.c static void avg_vc1_mspel_mc ## a ## b ## _mmxext(uint8_t *dst, \ b 493 libavcodec/x86/vc1dsp_mmx.c avg_vc1_mspel_mc(dst, src, stride, a, b, rnd); \ b 495 libavcodec/x86/vc1dsp_mmx.c static void put_vc1_mspel_mc ## a ## b ## _16_mmx(uint8_t *dst, \ b 500 libavcodec/x86/vc1dsp_mmx.c put_vc1_mspel_mc_16(dst, src, stride, a, b, rnd); \ b 502 libavcodec/x86/vc1dsp_mmx.c static void avg_vc1_mspel_mc ## a ## b ## _16_mmxext(uint8_t *dst, \ b 507 libavcodec/x86/vc1dsp_mmx.c avg_vc1_mspel_mc_16(dst, src, stride, a, b, rnd); \ b 44 libavcodec/x86/vp3dsp_init.c const uint8_t *b, ptrdiff_t stride, b 458 libavcodec/xan.c static inline unsigned mul(unsigned a, unsigned b) b 460 libavcodec/xan.c return (a * b) >> 16; b 580 libavcodec/xan.c int b = gamma_corr(bytestream2_get_byteu(&ctx)); b 584 libavcodec/xan.c int b = gamma_lookup[bytestream2_get_byteu(&ctx)]; b 586 libavcodec/xan.c *tmpptr++ = (0xFFU << 24) | (r << 16) | (g << 8) | b; b 31 libavcodec/xface.c void ff_big_add(BigInt *b, uint8_t a) b 40 libavcodec/xface.c w = b->words; b 42 libavcodec/xface.c for (i = 0; i < b->nb_words && c; i++) { b 47 libavcodec/xface.c if (i == b->nb_words && c) { b 48 libavcodec/xface.c av_assert0(b->nb_words < XFACE_MAX_WORDS); b 49 libavcodec/xface.c b->nb_words++; b 54 libavcodec/xface.c void ff_big_div(BigInt *b, uint8_t a, uint8_t *r) b 61 libavcodec/xface.c if (a == 1 || b->nb_words == 0) { b 68 libavcodec/xface.c i = --b->nb_words; b 69 libavcodec/xface.c w = b->words; b 78 libavcodec/xface.c i = b->nb_words; b 79 libavcodec/xface.c w = b->words + i; b 89 libavcodec/xface.c if (b->words[b->nb_words - 1] == 0) b 90 libavcodec/xface.c b->nb_words--; b 93 libavcodec/xface.c void ff_big_mul(BigInt *b, uint8_t a) b 100 libavcodec/xface.c if (a == 1 || b->nb_words == 0) b 104 libavcodec/xface.c av_assert0(b->nb_words < XFACE_MAX_WORDS); b 105 libavcodec/xface.c i = b->nb_words++; b 106 libavcodec/xface.c w = b->words + i; b 114 libavcodec/xface.c i = b->nb_words; b 115 libavcodec/xface.c w = b->words; b 123 libavcodec/xface.c av_assert0(b->nb_words < XFACE_MAX_WORDS); b 124 libavcodec/xface.c b->nb_words++; b 66 libavcodec/xface.h void ff_big_add(BigInt *b, uint8_t a); b 72 libavcodec/xface.h void ff_big_div(BigInt *b, uint8_t a, uint8_t *r); b 77 libavcodec/xface.h void ff_big_mul(BigInt *b, uint8_t a); b 33 libavcodec/xfacedec.c static int pop_integer(BigInt *b, const ProbRange *pranges) b 39 libavcodec/xfacedec.c ff_big_div(b, 0, &r); b 46 libavcodec/xfacedec.c ff_big_mul(b, pranges->range); b 47 libavcodec/xfacedec.c ff_big_add(b, r - pranges->offset); b 51 libavcodec/xfacedec.c static void pop_greys(BigInt *b, char *bitmap, int w, int h) b 56 libavcodec/xfacedec.c pop_greys(b, bitmap, w, h); b 57 libavcodec/xfacedec.c pop_greys(b, bitmap + w, w, h); b 58 libavcodec/xfacedec.c pop_greys(b, bitmap + XFACE_WIDTH * h, w, h); b 59 libavcodec/xfacedec.c pop_greys(b, bitmap + XFACE_WIDTH * h + w, w, h); b 61 libavcodec/xfacedec.c w = pop_integer(b, ff_xface_probranges_2x2); b 69 libavcodec/xfacedec.c static void decode_block(BigInt *b, char *bitmap, int w, int h, int level) b 71 libavcodec/xfacedec.c switch (pop_integer(b, &ff_xface_probranges_per_level[level][0])) { b 75 libavcodec/xfacedec.c pop_greys(b, bitmap, w, h); b 81 libavcodec/xfacedec.c decode_block(b, bitmap, w, h, level); b 82 libavcodec/xfacedec.c decode_block(b, bitmap + w, w, h, level); b 83 libavcodec/xfacedec.c decode_block(b, bitmap + h * XFACE_WIDTH, w, h, level); b 84 libavcodec/xfacedec.c decode_block(b, bitmap + w + h * XFACE_WIDTH, w, h, level); b 118 libavcodec/xfacedec.c BigInt b = {0}; b 138 libavcodec/xfacedec.c ff_big_mul(&b, XFACE_PRINTS); b 139 libavcodec/xfacedec.c ff_big_add(&b, c - XFACE_FIRST_PRINT); b 145 libavcodec/xfacedec.c decode_block(&b, buf, 16, 16, 0); b 146 libavcodec/xfacedec.c decode_block(&b, buf + 16, 16, 16, 0); b 147 libavcodec/xfacedec.c decode_block(&b, buf + 32, 16, 16, 0); b 148 libavcodec/xfacedec.c decode_block(&b, buf + XFACE_WIDTH * 16, 16, 16, 0); b 149 libavcodec/xfacedec.c decode_block(&b, buf + XFACE_WIDTH * 16 + 16, 16, 16, 0); b 150 libavcodec/xfacedec.c decode_block(&b, buf + XFACE_WIDTH * 16 + 32, 16, 16, 0); b 151 libavcodec/xfacedec.c decode_block(&b, buf + XFACE_WIDTH * 32 , 16, 16, 0); b 152 libavcodec/xfacedec.c decode_block(&b, buf + XFACE_WIDTH * 32 + 16, 16, 16, 0); b 153 libavcodec/xfacedec.c decode_block(&b, buf + XFACE_WIDTH * 32 + 32, 16, 16, 0); b 137 libavcodec/xfaceenc.c static void push_integer(BigInt *b, const ProbRange *prange) b 141 libavcodec/xfaceenc.c ff_big_div(b, prange->range, &r); b 142 libavcodec/xfaceenc.c ff_big_mul(b, 0); b 143 libavcodec/xfaceenc.c ff_big_add(b, r + prange->offset); b 152 libavcodec/xfaceenc.c BigInt b = {0}; b 196 libavcodec/xfaceenc.c push_integer(&b, &pq.prob_ranges[--pq.prob_ranges_idx]); b 200 libavcodec/xfaceenc.c av_assert0(b.nb_words < XFACE_MAX_WORDS); b 201 libavcodec/xfaceenc.c while (b.nb_words) { b 203 libavcodec/xfaceenc.c ff_big_div(&b, XFACE_PRINTS, &r); b 149 libavcodec/xvididct.c #define BUTTERFLY(a, b, tmp) \ b 150 libavcodec/xvididct.c (tmp) = (a) + (b); \ b 151 libavcodec/xvididct.c (b) = (a) - (b); \ b 154 libavcodec/xvididct.c #define LOAD_BUTTERFLY(m1, m2, a, b, tmp, s) \ b 155 libavcodec/xvididct.c (m1) = (s)[(a)] + (s)[(b)]; \ b 156 libavcodec/xvididct.c (m2) = (s)[(a)] - (s)[(b)] b 443 libavdevice/x11grab.c int b = (uint8_t)(xcim->pixels[xcim_addr] >> 16); b 449 libavdevice/x11grab.c pix[image_addr + 2] = b; b 454 libavdevice/x11grab.c pix[image_addr + 2] = b + (pix[image_addr + 2] * (255 - a) + 255 / 2) / 255; b 339 libavdevice/xcbgrab.c int r, g, b, a; b 343 libavdevice/xcbgrab.c b = (*cursor >> 16) & 0xff; b 352 libavdevice/xcbgrab.c image[2] = b; b 356 libavdevice/xcbgrab.c image[2] = BLEND(b, image[2], a); b 180 libavfilter/af_aecho.c #define MOD(a, b) (((a) >= (b)) ? (a) - (b) : (a)) b 116 libavfilter/af_aphaser.c #define MOD(a, b) (((a) >= (b)) ? (a) - (b) : (a)) b 473 libavfilter/af_atempo.c uint8_t *b = atempo->buffer; b 474 libavfilter/af_atempo.c memcpy(b, src, nb * atempo->stride); b 513 libavfilter/af_atempo.c const uint8_t *a, *b; b 561 libavfilter/af_atempo.c b = atempo->buffer; b 575 libavfilter/af_atempo.c memcpy(dst, b + i1 * atempo->stride, n1 * atempo->stride); b 735 libavfilter/af_atempo.c const scalar_type *bbb = (const scalar_type *)b; \ b 792 libavfilter/af_atempo.c const uint8_t *b = frag->data + ib * atempo->stride; b 46 libavfilter/af_compand.c double a, b; b 166 libavfilter/af_compand.c out_log = cs->y + in_log * (cs->a * in_log + cs->b); b 215 libavfilter/af_compand.c #define MOD(a, b) (((a) >= (b)) ? (a) - (b) : (a)) b 456 libavfilter/af_compand.c L(4).b = (L(2).y - L(4).y) / (L(2).x - L(4).x); b 459 libavfilter/af_compand.c L(2).b = (L(0).y - L(2).y) / (L(0).x - L(2).x); b 484 libavfilter/af_compand.c L(3).b = out1 / in1 - L(3).a * in1; b 179 libavfilter/af_flanger.c double a, b; b 184 libavfilter/af_flanger.c b = delayed_1 * 2 - delayed_2 *.5; b 185 libavfilter/af_flanger.c delayed = delayed_0 + (a * frac_delay + b) * frac_delay; b 308 libavfilter/avf_showcqt.c static inline int qsort_sparsecoeff(const SparseCoeff *a, const SparseCoeff *b) b 310 libavfilter/avf_showcqt.c if (fabsf(a->value) >= fabsf(b->value)) b 389 libavfilter/avfiltergraph.c AVFilterFormats *a, *b, *ret; b 393 libavfilter/avfiltergraph.c b = clone_filter_formats(b_arg); b 395 libavfilter/avfiltergraph.c if (!a || !b) { b 398 libavfilter/avfiltergraph.c if (b) b 399 libavfilter/avfiltergraph.c av_freep(&b->formats); b 402 libavfilter/avfiltergraph.c av_freep(&b); b 408 libavfilter/avfiltergraph.c ret = ff_merge_samplerates(a, b); b 410 libavfilter/avfiltergraph.c ret = ff_merge_formats(a, b, type); b 419 libavfilter/avfiltergraph.c av_freep(&b->formats); b 421 libavfilter/avfiltergraph.c av_freep(&b); b 360 libavfilter/f_sendcmd.c static int cmp_intervals(const void *a, const void *b) b 363 libavfilter/f_sendcmd.c const Interval *i2 = b; b 61 libavfilter/formats.c #define MERGE_FORMATS(ret, a, b, fmts, nb, type, fail) \ b 63 libavfilter/formats.c int i, j, k = 0, count = FFMIN(a->nb, b->nb); \ b 72 libavfilter/formats.c for (j = 0; j < b->nb; j++) \ b 73 libavfilter/formats.c if (a->fmts[i] == b->fmts[j]) { \ b 74 libavfilter/formats.c if(k >= FFMIN(a->nb, b->nb)){ \ b 89 libavfilter/formats.c MERGE_REF(ret, b, fmts, type, fail); \ b 92 libavfilter/formats.c AVFilterFormats *ff_merge_formats(AVFilterFormats *a, AVFilterFormats *b, b 100 libavfilter/formats.c if (a == b) b 112 libavfilter/formats.c for (j = 0; j < b->nb_formats; j++) { b 114 libavfilter/formats.c const AVPixFmtDescriptor *bdesc = av_pix_fmt_desc_get(b->formats[j]); b 117 libavfilter/formats.c if (a->formats[i] == b->formats[j]) { b 127 libavfilter/formats.c MERGE_FORMATS(ret, a, b, formats, nb_formats, AVFilterFormats, fail); b 140 libavfilter/formats.c AVFilterFormats *b) b 144 libavfilter/formats.c if (a == b) return a; b 146 libavfilter/formats.c if (a->nb_formats && b->nb_formats) { b 147 libavfilter/formats.c MERGE_FORMATS(ret, a, b, formats, nb_formats, AVFilterFormats, fail); b 149 libavfilter/formats.c MERGE_REF(a, b, formats, AVFilterFormats, fail); b 152 libavfilter/formats.c MERGE_REF(b, a, formats, AVFilterFormats, fail); b 153 libavfilter/formats.c ret = b; b 167 libavfilter/formats.c AVFilterChannelLayouts *b) b 171 libavfilter/formats.c unsigned b_all = b->all_layouts + b->all_counts; b 174 libavfilter/formats.c if (a == b) return a; b 178 libavfilter/formats.c FFSWAP(AVFilterChannelLayouts *, a, b); b 184 libavfilter/formats.c for (i = j = 0; i < b->nb_channel_layouts; i++) b 185 libavfilter/formats.c if (KNOWN(b->channel_layouts[i])) b 186 libavfilter/formats.c b->channel_layouts[j++] = b->channel_layouts[i]; b 191 libavfilter/formats.c b->nb_channel_layouts = j; b 193 libavfilter/formats.c MERGE_REF(b, a, channel_layouts, AVFilterChannelLayouts, fail); b 194 libavfilter/formats.c return b; b 197 libavfilter/formats.c ret_max = a->nb_channel_layouts + b->nb_channel_layouts; b 207 libavfilter/formats.c for (j = 0; j < b->nb_channel_layouts; j++) { b 208 libavfilter/formats.c if (a->channel_layouts[i] == b->channel_layouts[j]) { b 210 libavfilter/formats.c a->channel_layouts[i] = b->channel_layouts[j] = 0; b 222 libavfilter/formats.c for (j = 0; j < b->nb_channel_layouts; j++) b 223 libavfilter/formats.c if (b->channel_layouts[j] == bfmt) b 227 libavfilter/formats.c FFSWAP(AVFilterChannelLayouts *, a, b); b 233 libavfilter/formats.c for (j = 0; j < b->nb_channel_layouts; j++) b 234 libavfilter/formats.c if (a->channel_layouts[i] == b->channel_layouts[j]) b 242 libavfilter/formats.c MERGE_REF(ret, b, channel_layouts, AVFilterChannelLayouts, fail); b 120 libavfilter/formats.h AVFilterChannelLayouts *b); b 122 libavfilter/formats.h AVFilterFormats *b); b 221 libavfilter/formats.h AVFilterFormats *ff_merge_formats(AVFilterFormats *a, AVFilterFormats *b, b 189 libavfilter/vf_blend.c #define MULTIPLY(x, a, b) ((x) * (((a) * (b)) / 255)) b 190 libavfilter/vf_blend.c #define SCREEN(x, a, b) (255 - (x) * ((255 - (a)) * (255 - (b)) / 255)) b 191 libavfilter/vf_blend.c #define BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, 255 - ((255 - (b)) << 8) / (a))) b 192 libavfilter/vf_blend.c #define DODGE(a, b) (((a) == 255) ? (a) : FFMIN(255, (((b) << 8) / (255 - (a))))) b 272 libavfilter/vf_blend.c BlendContext *b = ctx->priv; b 283 libavfilter/vf_blend.c for (plane = 0; plane < b->nb_planes; plane++) { b 284 libavfilter/vf_blend.c int hsub = plane == 1 || plane == 2 ? b->hsub : 0; b 285 libavfilter/vf_blend.c int vsub = plane == 1 || plane == 2 ? b->vsub : 0; b 288 libavfilter/vf_blend.c FilterParams *param = &b->params[plane]; b 296 libavfilter/vf_blend.c if (!b->tblend) b 304 libavfilter/vf_blend.c BlendContext *b = ctx->priv; b 307 libavfilter/vf_blend.c b->tblend = !strcmp(ctx->filter->name, "tblend"); b 309 libavfilter/vf_blend.c for (plane = 0; plane < FF_ARRAY_ELEMS(b->params); plane++) { b 310 libavfilter/vf_blend.c FilterParams *param = &b->params[plane]; b 312 libavfilter/vf_blend.c if (b->all_mode >= 0) b 313 libavfilter/vf_blend.c param->mode = b->all_mode; b 314 libavfilter/vf_blend.c if (b->all_opacity < 1) b 315 libavfilter/vf_blend.c param->opacity = b->all_opacity; b 345 libavfilter/vf_blend.c if (b->all_expr && !param->expr_str) { b 346 libavfilter/vf_blend.c param->expr_str = av_strdup(b->all_expr); b 359 libavfilter/vf_blend.c b->dinput.process = blend_frame; b 378 libavfilter/vf_blend.c BlendContext *b = ctx->priv; b 381 libavfilter/vf_blend.c ff_dualinput_uninit(&b->dinput); b 382 libavfilter/vf_blend.c av_frame_free(&b->prev_frame); b 384 libavfilter/vf_blend.c for (i = 0; i < FF_ARRAY_ELEMS(b->params); i++) b 385 libavfilter/vf_blend.c av_expr_free(b->params[i].e); b 395 libavfilter/vf_blend.c BlendContext *b = ctx->priv; b 425 libavfilter/vf_blend.c b->hsub = pix_desc->log2_chroma_w; b 426 libavfilter/vf_blend.c b->vsub = pix_desc->log2_chroma_h; b 427 libavfilter/vf_blend.c b->nb_planes = av_pix_fmt_count_planes(toplink->format); b 429 libavfilter/vf_blend.c if ((ret = ff_dualinput_init(ctx, &b->dinput)) < 0) b 437 libavfilter/vf_blend.c BlendContext *b = outlink->src->priv; b 438 libavfilter/vf_blend.c return ff_dualinput_request_frame(&b->dinput, outlink); b 443 libavfilter/vf_blend.c BlendContext *b = inlink->dst->priv; b 444 libavfilter/vf_blend.c return ff_dualinput_filter_frame(&b->dinput, inlink, buf); b 491 libavfilter/vf_blend.c BlendContext *b = ctx->priv; b 494 libavfilter/vf_blend.c b->hsub = pix_desc->log2_chroma_w; b 495 libavfilter/vf_blend.c b->vsub = pix_desc->log2_chroma_h; b 496 libavfilter/vf_blend.c b->nb_planes = av_pix_fmt_count_planes(inlink->format); b 504 libavfilter/vf_blend.c BlendContext *b = inlink->dst->priv; b 507 libavfilter/vf_blend.c if (b->prev_frame) { b 508 libavfilter/vf_blend.c AVFrame *out = blend_frame(inlink->dst, frame, b->prev_frame); b 509 libavfilter/vf_blend.c av_frame_free(&b->prev_frame); b 510 libavfilter/vf_blend.c b->prev_frame = frame; b 513 libavfilter/vf_blend.c b->prev_frame = frame; b 287 libavfilter/vf_boxblur.c uint8_t *a = temp[0], *b = temp[1]; b 293 libavfilter/vf_boxblur.c blur(b, pixsize, a, pixsize, len, radius, pixsize); b 294 libavfilter/vf_boxblur.c c = a; a = b; b = c; b 90 libavfilter/vf_colorbalance.c int i, r, g, b; b 111 libavfilter/vf_colorbalance.c r = g = b = i; b 121 libavfilter/vf_colorbalance.c b = av_clip_uint8(b + s->yellow_blue.shadows * shadows[b]); b 122 libavfilter/vf_colorbalance.c b = av_clip_uint8(b + s->yellow_blue.midtones * midtones[b]); b 123 libavfilter/vf_colorbalance.c b = av_clip_uint8(b + s->yellow_blue.highlights * highlights[b]); b 127 libavfilter/vf_colorbalance.c s->lut[B][i] = b; b 109 libavfilter/vf_curves.c const char *b; b 289 libavfilter/vf_curves.c double b = (yn-yc)/h[i] - h[i]*r[i]/2. - h[i]*(r[i+1]-r[i])/6.; b 302 libavfilter/vf_curves.c double yy = a + b*xx + c*xx*xx + d*xx*xx*xx; b 410 libavfilter/vf_curves.c SET_COMP_IF_NOT_SET(2, b); b 493 libavfilter/vf_curves.c const uint8_t b = curves->rgba_map[B]; b 504 libavfilter/vf_curves.c dst[x + b] = curves->graph[B][src[x + b]]; b 367 libavfilter/vf_dctdnoiz.c float *b = &tmp_block2[i]; \ b 370 libavfilter/vf_dctdnoiz.c var_values[VAR_C] = FFABS(*b); \ b 371 libavfilter/vf_dctdnoiz.c *b *= av_expr_eval(expr, var_values, NULL); \ b 373 libavfilter/vf_dctdnoiz.c if (FFABS(*b) < sigma_th) \ b 374 libavfilter/vf_dctdnoiz.c *b = 0; \ b 413 libavfilter/vf_dctdnoiz.c int r, int g, int b) b 424 libavfilter/vf_dctdnoiz.c dstp_r[x] = srcp[r] * DCT3X3_0_0 + srcp[g] * DCT3X3_0_1 + srcp[b] * DCT3X3_0_2; b 425 libavfilter/vf_dctdnoiz.c dstp_g[x] = srcp[r] * DCT3X3_1_0 + srcp[b] * DCT3X3_1_2; b 426 libavfilter/vf_dctdnoiz.c dstp_b[x] = srcp[r] * DCT3X3_2_0 + srcp[g] * DCT3X3_2_1 + srcp[b] * DCT3X3_2_2; b 439 libavfilter/vf_dctdnoiz.c int r, int g, int b) b 452 libavfilter/vf_dctdnoiz.c dstp[b] = av_clip_uint8(src_r[x] * DCT3X3_0_2 + src_g[x] * DCT3X3_1_2 + src_b[x] * DCT3X3_2_2); b 462 libavfilter/vf_dctdnoiz.c #define DECLARE_COLOR_FUNCS(name, r, g, b) \ b 467 libavfilter/vf_dctdnoiz.c color_decorrelation(dst, dst_linesize, src, src_linesize, w, h, r, g, b); \ b 474 libavfilter/vf_dctdnoiz.c color_correlation(dst, dst_linesize, src, src_linesize, w, h, r, g, b); \ b 94 libavfilter/vf_deshake.c static int cmp(const double *a, const double *b) b 96 libavfilter/vf_deshake.c return *a < *b ? -1 : ( *a > *b ? 1 : 0 ); b 103 libavfilter/vf_drawtext.c typedef double (*eval_func2)(void *, double a, double b); b 285 libavfilter/vf_drawtext.c static int glyph_cmp(void *key, const void *b) b 287 libavfilter/vf_drawtext.c const Glyph *a = key, *bb = b; b 113 libavfilter/vf_frei0r.c if (sscanf(param, "%f/%f/%f", &val.col.r, &val.col.g, &val.col.b) != 3) { b 118 libavfilter/vf_frei0r.c val.col.b = rgba[2] / 255.0; b 195 libavfilter/vf_frei0r.c av_log(ctx, AV_LOG_DEBUG, "%f/%f/%f", col.r, col.g, col.b); b 124 libavfilter/vf_histeq.c #define GET_RGB_VALUES(r, g, b, src, map) do { \ b 127 libavfilter/vf_histeq.c b = src[x + map[B]]; \ b 139 libavfilter/vf_histeq.c unsigned int r, g, b, jran; b 159 libavfilter/vf_histeq.c GET_RGB_VALUES(r, g, b, src, histeq->rgba_map); b 160 libavfilter/vf_histeq.c luma = (55 * r + 182 * g + 19 * b) >> 8; b 224 libavfilter/vf_histeq.c GET_RGB_VALUES(r, g, b, src, histeq->rgba_map); b 225 libavfilter/vf_histeq.c if (((m = FFMAX3(r, g, b)) * lut) / luma > 255) { b 228 libavfilter/vf_histeq.c b = (b * 255) / m; b 232 libavfilter/vf_histeq.c b = (b * lut) / luma; b 236 libavfilter/vf_histeq.c dst[x + histeq->rgba_map[B]] = b; b 237 libavfilter/vf_histeq.c oluma = av_clip_uint8((55 * r + 182 * g + 19 * b) >> 8); b 114 libavfilter/vf_hue.c const float b = h->brightness; b 118 libavfilter/vf_hue.c h->lut_l[i] = av_clip_uint8(i + b * 25.5); b 56 libavfilter/vf_idet.c static uint64_t uintpow(uint64_t b,unsigned int e) b 59 libavfilter/vf_idet.c while(e--) r*=b; b 87 libavfilter/vf_idet.c int ff_idet_filter_line_c(const uint8_t *a, const uint8_t *b, const uint8_t *c, int w) b 93 libavfilter/vf_idet.c int v = (*a++ + *c++) - 2 * *b++; b 100 libavfilter/vf_idet.c int ff_idet_filter_line_c_16bit(const uint16_t *a, const uint16_t *b, const uint16_t *c, int w) b 106 libavfilter/vf_idet.c int v = (*a++ + *c++) - 2 * *b++; b 27 libavfilter/vf_idet.h typedef int (*ff_idet_filter_func)(const uint8_t *a, const uint8_t *b, const uint8_t *c, int w); b 77 libavfilter/vf_idet.h int ff_idet_filter_line_c(const uint8_t *a, const uint8_t *b, const uint8_t *c, int w); b 78 libavfilter/vf_idet.h int ff_idet_filter_line_c_16bit(const uint16_t *a, const uint16_t *b, const uint16_t *c, int w); b 121 libavfilter/vf_il.c const int b = 1 - a; b 129 libavfilter/vf_il.c memcpy(dst + dst_linesize * (y + m), src + src_linesize * (y * 2 + b), w); b 135 libavfilter/vf_il.c memcpy(dst + dst_linesize * (y * 2 + 1), src + src_linesize * (y * 2 + b), w); b 141 libavfilter/vf_il.c memcpy(dst + dst_linesize * (y * 2 + b), src + src_linesize * (y + m), w); b 52 libavfilter/vf_lut3d.c float r, g, b; b 98 libavfilter/vf_lut3d.c lerpf(v0->r, v1->r, f), lerpf(v0->g, v1->g, f), lerpf(v0->b, v1->b, f) b 113 libavfilter/vf_lut3d.c return lut3d->lut[NEAR(s->r)][NEAR(s->g)][NEAR(s->b)]; b 123 libavfilter/vf_lut3d.c const int prev[] = {PREV(s->r), PREV(s->g), PREV(s->b)}; b 124 libavfilter/vf_lut3d.c const int next[] = {NEXT(s->r), NEXT(s->g), NEXT(s->b)}; b 125 libavfilter/vf_lut3d.c const struct rgbvec d = {s->r - prev[0], s->g - prev[1], s->b - prev[2]}; b 140 libavfilter/vf_lut3d.c const struct rgbvec c = lerp(&c0, &c1, d.b); b 151 libavfilter/vf_lut3d.c const int prev[] = {PREV(s->r), PREV(s->g), PREV(s->b)}; b 152 libavfilter/vf_lut3d.c const int next[] = {NEXT(s->r), NEXT(s->g), NEXT(s->b)}; b 153 libavfilter/vf_lut3d.c const struct rgbvec d = {s->r - prev[0], s->g - prev[1], s->b - prev[2]}; b 158 libavfilter/vf_lut3d.c if (d.g > d.b) { b 161 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; b 162 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; b 163 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; b 164 libavfilter/vf_lut3d.c } else if (d.r > d.b) { b 167 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; b 168 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; b 169 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; b 173 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; b 174 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; b 175 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; b 178 libavfilter/vf_lut3d.c if (d.b > d.g) { b 181 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; b 182 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; b 183 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; b 184 libavfilter/vf_lut3d.c } else if (d.b > d.r) { b 187 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; b 188 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; b 189 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; b 193 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; b 194 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; b 195 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; b 213 libavfilter/vf_lut3d.c const uint8_t b = lut3d->rgba_map[B]; \ b 227 libavfilter/vf_lut3d.c src[x + b] * scale}; \ b 231 libavfilter/vf_lut3d.c dst[x + b] = av_clip_uint##nbits(vec.b * (float)((1<<nbits) - 1)); \ b 291 libavfilter/vf_lut3d.c if (sscanf(line, "%f %f %f", &vec->r, &vec->g, &vec->b) != 3) b 336 libavfilter/vf_lut3d.c if (sscanf(line, "%f %f %f", &vec->r, &vec->g, &vec->b) != 3) b 340 libavfilter/vf_lut3d.c vec->b *= max[2] - min[2]; b 365 libavfilter/vf_lut3d.c int r, g, b; b 369 libavfilter/vf_lut3d.c if (sscanf(line, "%d %d %d", &r, &g, &b) != 3) b 373 libavfilter/vf_lut3d.c vec->b = b / scale; b 437 libavfilter/vf_lut3d.c vec->b = val[rgb_map[2]] * scale; b 456 libavfilter/vf_lut3d.c vec->b = i * c; b 660 libavfilter/vf_lut3d.c vec->b = src[rgba_map[2]] / (float)((1<<(nbits)) - 1); \ b 112 libavfilter/vf_palettegen.c const struct color_ref * const *b = pb; \ b 114 libavfilter/vf_palettegen.c - ((*b)->color >> (8 * (2 - (pos))) & 0xff); \ b 119 libavfilter/vf_palettegen.c DECLARE_CMP_FUNC(b, 2) b 126 libavfilter/vf_palettegen.c static int cmp_color(const void *a, const void *b) b 129 libavfilter/vf_palettegen.c const struct range_box *box2 = b; b 133 libavfilter/vf_palettegen.c static av_always_inline int diff(const uint32_t a, const uint32_t b) b 136 libavfilter/vf_palettegen.c const uint8_t c2[] = {b >> 16 & 0xff, b >> 8 & 0xff, b & 0xff}; b 188 libavfilter/vf_palettegen.c uint64_t r = 0, g = 0, b = 0, div = 0; b 194 libavfilter/vf_palettegen.c b += (ref->color & 0xff) * ref->count; b 200 libavfilter/vf_palettegen.c b = b / div; b 202 libavfilter/vf_palettegen.c return 0xffU<<24 | r<<16 | g<<8 | b; b 334 libavfilter/vf_palettegen.c const uint8_t r = rgb >> 16 & 0xff, g = rgb >> 8 & 0xff, b = rgb & 0xff; b 337 libavfilter/vf_palettegen.c min[2] = FFMIN(b, min[2]), max[2] = FFMAX(b, max[2]); b 398 libavfilter/vf_palettegen.c const uint8_t b = color & ((1<<NBITS)-1); b 399 libavfilter/vf_palettegen.c return r<<(NBITS*2) | g<<NBITS | b; b 320 libavfilter/vf_paletteuse.c uint8_t r, uint8_t g, uint8_t b, b 326 libavfilter/vf_paletteuse.c const uint8_t rgb[] = {r, g, b}; b 329 libavfilter/vf_paletteuse.c const uint8_t bhash = b & ((1<<NBITS)-1); b 357 libavfilter/vf_paletteuse.c const uint8_t b = c & 0xff; b 358 libavfilter/vf_paletteuse.c const int dstx = color_get(cache, c, r, g, b, map, palette, search_method); b 362 libavfilter/vf_paletteuse.c *eb = b - (dstc & 0xff); b 394 libavfilter/vf_paletteuse.c const uint8_t b = av_clip_uint8(b8 + d); b 395 libavfilter/vf_paletteuse.c const uint32_t c = r<<16 | g<<8 | b; b 396 libavfilter/vf_paletteuse.c const int color = color_get(cache, c, r, g, b, map, palette, search_method); b 462 libavfilter/vf_paletteuse.c const uint8_t b = src[x] & 0xff; b 463 libavfilter/vf_paletteuse.c const int color = color_get(cache, src[x] & 0xffffff, r, g, b, map, palette, search_method); b 533 libavfilter/vf_paletteuse.c int r, g, b, ret = 0; b 537 libavfilter/vf_paletteuse.c for (b = 0; b < 256; b++) { b 538 libavfilter/vf_paletteuse.c const uint8_t rgb[] = {r, g, b}; b 551 libavfilter/vf_paletteuse.c r, g, b, r1, r2, c1 & 0xffffff, c2 & 0xffffff, d1, d2); b 577 libavfilter/vf_paletteuse.c const struct color *b = pb; \ b 579 libavfilter/vf_paletteuse.c - (b->value >> (8 * (2 - (pos))) & 0xff); \ b 584 libavfilter/vf_paletteuse.c DECLARE_CMP_FUNC(b, 2) b 605 libavfilter/vf_paletteuse.c const uint8_t b = c & 0xff; b 608 libavfilter/vf_paletteuse.c r < box->min[0] || g < box->min[1] || b < box->min[2] || b 609 libavfilter/vf_paletteuse.c r > box->max[0] || g > box->max[1] || b > box->max[2]) b 614 libavfilter/vf_paletteuse.c if (b < ranges.min[2]) ranges.min[2] = b; b 618 libavfilter/vf_paletteuse.c if (b > ranges.max[2]) ranges.max[2] = b; b 689 libavfilter/vf_paletteuse.c static int cmp_pal_entry(const void *a, const void *b) b 692 libavfilter/vf_paletteuse.c const int c2 = *(const uint32_t *)b & 0xffffff; b 285 libavfilter/vf_perspective.c const int b = s->coeff[subU][1]; b 289 libavfilter/vf_perspective.c sum = s->coeff[subV][0] * (a * src[index - 1 - src_linesize] + b * src[index - 0 - src_linesize] + b 291 libavfilter/vf_perspective.c s->coeff[subV][1] * (a * src[index - 1 ] + b * src[index - 0 ] + b 293 libavfilter/vf_perspective.c s->coeff[subV][2] * (a * src[index - 1 + src_linesize] + b * src[index - 0 + src_linesize] + b 295 libavfilter/vf_perspective.c s->coeff[subV][3] * (a * src[index - 1 + 2 * src_linesize] + b * src[index - 0 + 2 * src_linesize] + b 109 libavfilter/vf_phase.c #define DIFF(a, as, b, bs) ((t) = ((*(a) - (b)[bs]) << 2) + (a)[(as) << 1] - (b)[-(bs)], (t) * (t)) b 72 libavfilter/vf_pullup.c static int diff_c(const uint8_t *a, const uint8_t *b, ptrdiff_t s) b 78 libavfilter/vf_pullup.c diff += ABS(a[j] - b[j]); b 80 libavfilter/vf_pullup.c b += s; b 86 libavfilter/vf_pullup.c static int comb_c(const uint8_t *a, const uint8_t *b, ptrdiff_t s) b 92 libavfilter/vf_pullup.c comb += ABS((a[j] << 1) - b[j - s] - b[j ]) + b 93 libavfilter/vf_pullup.c ABS((b[j] << 1) - a[j ] - a[j + s]); b 95 libavfilter/vf_pullup.c b += s; b 101 libavfilter/vf_pullup.c static int var_c(const uint8_t *a, const uint8_t *b, ptrdiff_t s) b 226 libavfilter/vf_pullup.c static PullupBuffer *pullup_lock_buffer(PullupBuffer *b, int parity) b 228 libavfilter/vf_pullup.c if (!b) b 232 libavfilter/vf_pullup.c b->lock[0]++; b 234 libavfilter/vf_pullup.c b->lock[1]++; b 236 libavfilter/vf_pullup.c return b; b 239 libavfilter/vf_pullup.c static void pullup_release_buffer(PullupBuffer *b, int parity) b 241 libavfilter/vf_pullup.c if (!b) b 245 libavfilter/vf_pullup.c b->lock[0]--; b 247 libavfilter/vf_pullup.c b->lock[1]--; b 250 libavfilter/vf_pullup.c static int alloc_buffer(PullupContext *s, PullupBuffer *b) b 254 libavfilter/vf_pullup.c if (b->planes[0]) b 257 libavfilter/vf_pullup.c b->planes[i] = av_malloc(s->planeheight[i] * s->planewidth[i]); b 260 libavfilter/vf_pullup.c b->planes[1] = av_malloc(4*256); b 541 libavfilter/vf_pullup.c uint8_t *a, *b; b 554 libavfilter/vf_pullup.c b = fb->buffer->planes[mp] + pb * s->planewidth[mp] + s->metric_offset; b 558 libavfilter/vf_pullup.c *dest++ = func(a + x, b + x, stride); b 559 libavfilter/vf_pullup.c a += ystep; b += ystep; b 587 libavfilter/vf_pullup.c static void pullup_submit_field(PullupContext *s, PullupBuffer *b, int parity) b 601 libavfilter/vf_pullup.c f->buffer = pullup_lock_buffer(b, parity); b 666 libavfilter/vf_pullup.c PullupBuffer *b; b 671 libavfilter/vf_pullup.c b = pullup_get_buffer(s, 2); b 672 libavfilter/vf_pullup.c if (!b) { b 679 libavfilter/vf_pullup.c av_image_copy(b->planes, s->planewidth, b 684 libavfilter/vf_pullup.c pullup_submit_field(s, b, p ); b 685 libavfilter/vf_pullup.c pullup_submit_field(s, b, p^1); b 688 libavfilter/vf_pullup.c pullup_submit_field(s, b, p); b 690 libavfilter/vf_pullup.c pullup_release_buffer(b, 2); b 64 libavfilter/vf_pullup.h int (*diff)(const uint8_t *a, const uint8_t *b, ptrdiff_t s); b 65 libavfilter/vf_pullup.h int (*comb)(const uint8_t *a, const uint8_t *b, ptrdiff_t s); b 66 libavfilter/vf_pullup.h int (*var )(const uint8_t *a, const uint8_t *b, ptrdiff_t s); b 285 libavfilter/vf_removelogo.c int a, b, c, w, h; b 325 libavfilter/vf_removelogo.c for (b = -a; b <= a; b++) { b 326 libavfilter/vf_removelogo.c mask[a][b + a] = (int *)av_malloc_array((a * 2) + 1, sizeof(int)); b 327 libavfilter/vf_removelogo.c if (!mask[a][b + a]) { b 332 libavfilter/vf_removelogo.c if ((b * b) + (c * c) <= (a * a)) /* Circular 0/1 mask. */ b 333 libavfilter/vf_removelogo.c mask[a][b + a][c + a] = 1; b 335 libavfilter/vf_removelogo.c mask[a][b + a][c + a] = 0; b 537 libavfilter/vf_removelogo.c int a, b; b 546 libavfilter/vf_removelogo.c for (b = -a; b <= a; b++) { b 547 libavfilter/vf_removelogo.c av_freep(&s->mask[a][b + a]); /* Free a scanline. */ b 86 libavfilter/vf_signalstats.c uint8_t r, g, b; b 94 libavfilter/vf_signalstats.c b = s->rgba_color[2]; b 95 libavfilter/vf_signalstats.c s->yuv_color[0] = (( 66*r + 129*g + 25*b + (1<<7)) >> 8) + 16; b 96 libavfilter/vf_signalstats.c s->yuv_color[1] = ((-38*r + -74*g + 112*b + (1<<7)) >> 8) + 128; b 97 libavfilter/vf_signalstats.c s->yuv_color[2] = ((112*r + -94*g + -18*b + (1<<7)) >> 8) + 128; b 77 libavfilter/vf_xbr.c #define ALPHA_BLEND_128_W(a, b) ((((a) & LB_MASK) >> 1) + (((b) & LB_MASK) >> 1)) b 78 libavfilter/vf_xbr.c #define ALPHA_BLEND_BASE(a, b, m, s) ( (RED_BLUE_MASK & (((a) & RED_BLUE_MASK) + (((((b) & RED_BLUE_MASK) - ((a) & RED_BLUE_MASK)) * (m)) >> (s)))) \ b 79 libavfilter/vf_xbr.c | (GREEN_MASK & (((a) & GREEN_MASK) + (((((b) & GREEN_MASK) - ((a) & GREEN_MASK)) * (m)) >> (s))))) b 80 libavfilter/vf_xbr.c #define ALPHA_BLEND_32_W(a, b) ALPHA_BLEND_BASE(a, b, 1, 3) b 81 libavfilter/vf_xbr.c #define ALPHA_BLEND_64_W(a, b) ALPHA_BLEND_BASE(a, b, 1, 2) b 82 libavfilter/vf_xbr.c #define ALPHA_BLEND_192_W(a, b) ALPHA_BLEND_BASE(a, b, 3, 2) b 83 libavfilter/vf_xbr.c #define ALPHA_BLEND_224_W(a, b) ALPHA_BLEND_BASE(a, b, 7, 3) b 70 libavfilter/vf_yadif.c int b = (prev2[2 * mrefs] + next2[2 * mrefs])>>1; \ b 72 libavfilter/vf_yadif.c int max = FFMAX3(d - e, d - c, FFMIN(b - c, f - e)); \ b 73 libavfilter/vf_yadif.c int min = FFMIN3(d - e, d - c, FFMAX(b - c, f - e)); \ b 289 libavfilter/vf_yadif.c static int checkstride(YADIFContext *yadif, const AVFrame *a, const AVFrame *b) b 293 libavfilter/vf_yadif.c if (a->linesize[i] != b->linesize[i]) b 195 libavfilter/vsrc_mandelbrot.c uint32_t a,b,c,d, i; b 208 libavfilter/vsrc_mandelbrot.c b=color[(x-1) + (y+1)*linesize]; b 213 libavfilter/vsrc_mandelbrot.c b= color[(x-1) + (y+0)*linesize]; b 215 libavfilter/vsrc_mandelbrot.c }else if(b&&d){ b 221 libavfilter/vsrc_mandelbrot.c b= color[(x+1) + (y-1)*linesize]; b 225 libavfilter/vsrc_mandelbrot.c b= color[(x+1) + (y-1)*linesize]; b 232 libavfilter/vsrc_mandelbrot.c uint8_t bc= b>>s; b 688 libavfilter/vsrc_testsrc.c int x, int y, int r, int g, int b, enum AVPixelFormat fmt, b 695 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; b 696 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; b 697 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; b 698 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; b 699 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; b 700 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; b 703 libavfilter/vsrc_testsrc.c v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)); b 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)); b 726 libavfilter/vsrc_testsrc.c int r = 0, g = 0, b = 0; b 730 libavfilter/vsrc_testsrc.c else b = c; b 732 libavfilter/vsrc_testsrc.c rgbtest_put_pixel(frame->data[0], frame->linesize[0], x, y, r, g, b, b 30 libavfilter/x86/vf_idet_init.c int ff_idet_filter_line_##KIND(const uint8_t *a, const uint8_t *b, \ b 32 libavfilter/x86/vf_idet_init.c static int idet_filter_line_##KIND(const uint8_t *a, const uint8_t *b, \ b 38 libavfilter/x86/vf_idet_init.c sum += ff_idet_filter_line_##KIND(a, b, c, w); \ b 40 libavfilter/x86/vf_idet_init.c sum += ff_idet_filter_line_c(a + w, b + w, c + w, left_over); \ b 46 libavfilter/x86/vf_idet_init.c int ff_idet_filter_line_16bit_##KIND(const uint16_t *a, const uint16_t *b, \ b 48 libavfilter/x86/vf_idet_init.c static int idet_filter_line_16bit_##KIND(const uint16_t *a, const uint16_t *b, \ b 54 libavfilter/x86/vf_idet_init.c sum += ff_idet_filter_line_16bit_##KIND(a, b, c, w); \ b 56 libavfilter/x86/vf_idet_init.c sum += ff_idet_filter_line_c_16bit(a + w, b + w, c + w, left_over); \ b 26 libavfilter/x86/vf_pullup_init.c int ff_pullup_filter_diff_mmx(const uint8_t *a, const uint8_t *b, ptrdiff_t s); b 27 libavfilter/x86/vf_pullup_init.c int ff_pullup_filter_comb_mmx(const uint8_t *a, const uint8_t *b, ptrdiff_t s); b 28 libavfilter/x86/vf_pullup_init.c int ff_pullup_filter_var_mmx (const uint8_t *a, const uint8_t *b, ptrdiff_t s); b 111 libavformat/asfcrypt.c uint32_t b = data >> 32; b 116 libavformat/asfcrypt.c b += tmp; b 118 libavformat/asfcrypt.c tmp = multiswap_step(keys + 6, b); b 135 libavformat/asfcrypt.c uint32_t b; b 139 libavformat/asfcrypt.c b = multiswap_inv_step(keys + 6, tmp); b 141 libavformat/asfcrypt.c b -= tmp; b 144 libavformat/asfcrypt.c return ((uint64_t)b << 32) | a; b 213 libavformat/avio.h void avio_w8(AVIOContext *s, int b); b 65 libavformat/avio_internal.h void ffio_fill(AVIOContext *s, int b, int count); b 155 libavformat/aviobuf.c void avio_w8(AVIOContext *s, int b) b 157 libavformat/aviobuf.c av_assert2(b>=-128 && b<=255); b 158 libavformat/aviobuf.c *s->buf_ptr++ = b; b 163 libavformat/aviobuf.c void ffio_fill(AVIOContext *s, int b, int count) b 167 libavformat/aviobuf.c memset(s->buf_ptr, b, len); b 62 libavformat/bink.c const uint8_t *b = p->buf; b 64 libavformat/bink.c if (((b[0] == 'B' && b[1] == 'I' && b[2] == 'K' && b 65 libavformat/bink.c (b[3] == 'b' || b[3] == 'f' || b[3] == 'g' || b[3] == 'h' || b[3] == 'i')) || b 66 libavformat/bink.c (b[0] == 'K' && b[1] == 'B' && b[2] == '2' && /* Bink 2 */ b 67 libavformat/bink.c (b[3] == 'a' || b[3] == 'd' || b[3] == 'f' || b[3] == 'g'))) && b 68 libavformat/bink.c AV_RL32(b+8) > 0 && // num_frames b 69 libavformat/bink.c AV_RL32(b+20) > 0 && AV_RL32(b+20) <= BINK_MAX_WIDTH && b 70 libavformat/bink.c AV_RL32(b+24) > 0 && AV_RL32(b+24) <= BINK_MAX_HEIGHT && b 71 libavformat/bink.c AV_RL32(b+28) > 0 && AV_RL32(b+32) > 0) // fps num,den b 48 libavformat/brstm.c BRSTMDemuxContext *b = s->priv_data; b 50 libavformat/brstm.c av_freep(&b->table); b 51 libavformat/brstm.c av_freep(&b->adpc); b 58 libavformat/brstm.c BRSTMDemuxContext *b = s->priv_data; b 135 libavformat/brstm.c b->current_block = 0; b 136 libavformat/brstm.c b->block_count = avio_rb32(s->pb); b 137 libavformat/brstm.c if (b->block_count > UINT16_MAX) { b 138 libavformat/brstm.c av_log(s, AV_LOG_WARNING, "too many blocks: %u\n", b->block_count); b 142 libavformat/brstm.c b->block_size = avio_rb32(s->pb); b 143 libavformat/brstm.c if (b->block_size > UINT16_MAX / st->codec->channels) b 145 libavformat/brstm.c b->block_size *= st->codec->channels; b 147 libavformat/brstm.c b->samples_per_block = avio_rb32(s->pb); b 148 libavformat/brstm.c b->last_block_used_bytes = avio_rb32(s->pb); b 149 libavformat/brstm.c if (b->last_block_used_bytes > UINT16_MAX / st->codec->channels) b 151 libavformat/brstm.c b->last_block_used_bytes *= st->codec->channels; b 165 libavformat/brstm.c b->table = av_mallocz(32 * st->codec->channels); b 166 libavformat/brstm.c if (!b->table) b 170 libavformat/brstm.c if (avio_read(s->pb, b->table + ch * 32, 32) != 32) { b 197 libavformat/brstm.c asize = b->block_count * st->codec->channels * 4; b 202 libavformat/brstm.c if (b->adpc) { b 206 libavformat/brstm.c b->adpc = av_mallocz(asize); b 207 libavformat/brstm.c if (!b->adpc) { b 211 libavformat/brstm.c avio_read(s->pb, b->adpc, asize); b 217 libavformat/brstm.c (!b->adpc && codec == AV_CODEC_ID_ADPCM_THP)) { b 243 libavformat/brstm.c BRSTMDemuxContext *b = s->priv_data; b 249 libavformat/brstm.c b->current_block++; b 250 libavformat/brstm.c if (b->current_block == b->block_count) { b 251 libavformat/brstm.c size = b->last_block_used_bytes; b 253 libavformat/brstm.c } else if (b->current_block < b->block_count) { b 254 libavformat/brstm.c size = b->block_size; b 255 libavformat/brstm.c samples = b->samples_per_block; b 268 libavformat/brstm.c bytestream_put_buffer(&dst, b->table, 32 * codec->channels); b 269 libavformat/brstm.c bytestream_put_buffer(&dst, b->adpc + 4 * codec->channels * b 270 libavformat/brstm.c (b->current_block - 1), 4 * codec->channels); b 41 libavformat/eacdata.c const uint8_t *b = p->buf; b 43 libavformat/eacdata.c if (b[0] == 0x04 && (b[1] == 0x00 || b[1] == 0x04 || b[1] == 0x0C || b[1] == 0x14)) b 193 libavformat/flvenc.c static void put_amf_bool(AVIOContext *pb, int b) b 196 libavformat/flvenc.c avio_w8(pb, !!b); b 84 libavformat/gifdec.c int b = avio_r8(pb); b 85 libavformat/gifdec.c if (b != gif87a_sig[i] && b != gif89a_sig[i]) b 86 libavformat/gifdec.c i = -(b != 'G'); b 913 libavformat/id3v2.c uint8_t *b; b 915 libavformat/id3v2.c b = buffer; b 916 libavformat/id3v2.c while (avio_tell(pb) < end && b - buffer < tlen && !pb->eof_reached) { b 917 libavformat/id3v2.c *b++ = avio_r8(pb); b 918 libavformat/id3v2.c if (*(b - 1) == 0xff && avio_tell(pb) < end - 1 && b 919 libavformat/id3v2.c b - buffer < tlen && b 922 libavformat/id3v2.c *b++ = val ? val : avio_r8(pb); b 925 libavformat/id3v2.c ffio_init_context(&pb_local, buffer, b - buffer, 0, NULL, NULL, NULL, b 927 libavformat/id3v2.c tlen = b - buffer; b 261 libavformat/idcin.c unsigned char r, g, b; b 292 libavformat/idcin.c b = palette_buffer[i * 3 + 2] << palette_scale; b 293 libavformat/idcin.c palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); b 27 libavformat/img2_alias_pix.c const uint8_t *b = p->buf; b 28 libavformat/img2_alias_pix.c const uint8_t *end = b + p->buf_size; b 29 libavformat/img2_alias_pix.c int width = bytestream_get_be16(&b); b 30 libavformat/img2_alias_pix.c int height = bytestream_get_be16(&b); b 31 libavformat/img2_alias_pix.c av_unused int ox = bytestream_get_be16(&b); b 32 libavformat/img2_alias_pix.c av_unused int oy = bytestream_get_be16(&b); b 33 libavformat/img2_alias_pix.c int bpp = bytestream_get_be16(&b); b 44 libavformat/img2_alias_pix.c int count = *b++; b 47 libavformat/img2_alias_pix.c if (b > end) b 49 libavformat/img2_alias_pix.c b += bpp / 8; b 590 libavformat/img2dec.c const uint8_t *b = p->buf; b 593 libavformat/img2dec.c if (AV_RB16(b) != 0x424d) b 596 libavformat/img2dec.c ihsize = AV_RL32(b+14); b 600 libavformat/img2dec.c if (!AV_RN32(b + 6)) { b 608 libavformat/img2dec.c const uint8_t *b = p->buf; b 610 libavformat/img2dec.c int is_big = (AV_RN32(b) == AV_RN32("SDPX")); b 619 libavformat/img2dec.c if (is_big || AV_RN32(b) == AV_RN32("XPDS")) b 626 libavformat/img2dec.c const uint8_t *b = p->buf; b 628 libavformat/img2dec.c if (AV_RL32(b) == 20000630) b 635 libavformat/img2dec.c const uint8_t *b = p->buf; b 637 libavformat/img2dec.c if (AV_RB64(b) == 0x0000000c6a502020 || b 638 libavformat/img2dec.c AV_RB32(b) == 0xff4fff51) b 645 libavformat/img2dec.c const uint8_t *b = p->buf; b 648 libavformat/img2dec.c if (AV_RB16(b) != 0xFFD8 || b 649 libavformat/img2dec.c AV_RB32(b) == 0xFFD8FFF7) b 652 libavformat/img2dec.c b += 2; b 653 libavformat/img2dec.c if (AV_RB16(b) == 0xFFE1 && AV_RB32(b + 4) == AV_RB32("Exif")) { b 654 libavformat/img2dec.c exif_size = AV_RB16(b + 2) + 2; b 655 libavformat/img2dec.c b += exif_size; b 659 libavformat/img2dec.c if (b[i] != 0xFF) b 661 libavformat/img2dec.c c = b[i + 1]; b 700 libavformat/img2dec.c const uint8_t *b = p->buf; b 702 libavformat/img2dec.c if (AV_RB32(b) == 0xffd8fff7) b 709 libavformat/img2dec.c const uint8_t *b = p->buf; b 711 libavformat/img2dec.c if (AV_RL16(b) == 0x1234) b 718 libavformat/img2dec.c const uint8_t *b = p->buf; b 720 libavformat/img2dec.c if (AV_RB64(b) == 0x89504e470d0a1a0a) b 727 libavformat/img2dec.c const uint8_t *b = p->buf; b 729 libavformat/img2dec.c if (AV_RB16(b) == 474 && b 730 libavformat/img2dec.c (b[2] & ~1) == 0 && b 731 libavformat/img2dec.c (b[3] & ~3) == 0 && b[3] && b 732 libavformat/img2dec.c (AV_RB16(b + 4) & ~7) == 0 && AV_RB16(b + 4)) b 739 libavformat/img2dec.c const uint8_t *b = p->buf; b 741 libavformat/img2dec.c if (AV_RB32(b) == 0x59a66a95) b 748 libavformat/img2dec.c const uint8_t *b = p->buf; b 750 libavformat/img2dec.c if (AV_RB32(b) == 0x49492a00 || b 751 libavformat/img2dec.c AV_RB32(b) == 0x4D4D002a) b 758 libavformat/img2dec.c const uint8_t *b = p->buf; b 760 libavformat/img2dec.c if (AV_RB32(b) == 0x52494646 && b 761 libavformat/img2dec.c AV_RB32(b + 8) == 0x57454250) b 231 libavformat/ipmovie.c unsigned char r, g, b; b 481 libavformat/ipmovie.c b = scratch[j++] * 4; b 482 libavformat/ipmovie.c s->palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); b 533 libavformat/ipmovie.c const uint8_t *b = p->buf; b 536 libavformat/ipmovie.c if (b[0] == signature[0] && memcmp(b, signature, sizeof(signature)) == 0) b 538 libavformat/ipmovie.c b++; b 539 libavformat/ipmovie.c } while (b < b_end); b 137 libavformat/jacosubdec.c int a = 0, b = 0, c = 0, d = 0; b 139 libavformat/jacosubdec.c int n = sscanf(buf, "%d"SSEP"%d"SSEP"%d"SSEP"%d", &a, &b, &c, &d); b 148 libavformat/jacosubdec.c case 4: return sign * ((a*3600 + b*60 + c) * timeres + d); b 149 libavformat/jacosubdec.c case 3: return sign * (( a*60 + b) * timeres + c); b 150 libavformat/jacosubdec.c case 2: return sign * (( a) * timeres + b); b 1650 libavformat/matroskadec.c AVIOContext b; b 1768 libavformat/matroskadec.c ffio_init_context(&b, track->codec_priv.data, b 1771 libavformat/matroskadec.c ret = ff_get_wav_header(&b, st->codec, track->codec_priv.size, 0); b 1858 libavformat/matroskadec.c ffio_init_context(&b, extradata, extradata_size, 1, b 1860 libavformat/matroskadec.c avio_write(&b, "TTA1", 4); b 1861 libavformat/matroskadec.c avio_wl16(&b, 1); b 1862 libavformat/matroskadec.c avio_wl16(&b, track->audio.channels); b 1863 libavformat/matroskadec.c avio_wl16(&b, track->audio.bitdepth); b 1866 libavformat/matroskadec.c avio_wl32(&b, track->audio.out_samplerate); b 1867 libavformat/matroskadec.c avio_wl32(&b, av_rescale((matroska->duration * matroska->time_scale), b 1885 libavformat/matroskadec.c ffio_init_context(&b, track->codec_priv.data, b 1888 libavformat/matroskadec.c avio_skip(&b, 22); b 1889 libavformat/matroskadec.c flavor = avio_rb16(&b); b 1890 libavformat/matroskadec.c track->audio.coded_framesize = avio_rb32(&b); b 1891 libavformat/matroskadec.c avio_skip(&b, 12); b 1892 libavformat/matroskadec.c track->audio.sub_packet_h = avio_rb16(&b); b 1893 libavformat/matroskadec.c track->audio.frame_size = avio_rb16(&b); b 1894 libavformat/matroskadec.c track->audio.sub_packet_size = avio_rb16(&b); b 1513 libavformat/mov.c unsigned char a, r, g, b; b 1523 libavformat/mov.c r = g = b = color_index; b 1524 libavformat/mov.c sc->palette[j] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); b 1543 libavformat/mov.c b = color_table[j * 3 + 2]; b 1544 libavformat/mov.c sc->palette[j] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); b 1561 libavformat/mov.c b = avio_r8(pb); b 1563 libavformat/mov.c sc->palette[j] = (a << 24 ) | (r << 16) | (g << 8) | (b); b 1680 libavformat/mov.c uint8_t r, g, b; b 1687 libavformat/mov.c b = av_clip_uint8(1.164 * (y - 16) + 2.018 * (cb - 128)); b 1691 libavformat/mov.c return (r << 16) | (g << 8) | b; b 97 libavformat/movenc.c static int utf8len(const uint8_t *b) b 101 libavformat/movenc.c while (*b) { b 102 libavformat/movenc.c GET_UTF8(val, *b++, return -1;) b 2269 libavformat/movenc.c static void write_matrix(AVIOContext *pb, int16_t a, int16_t b, int16_t c, b 2273 libavformat/movenc.c avio_wb32(pb, b << 16); /* 16.16 format */ b 2966 libavformat/movenc.c static int ascii_to_wc(AVIOContext *pb, const uint8_t *b) b 2969 libavformat/movenc.c while (*b) { b 2970 libavformat/movenc.c GET_UTF8(val, *b++, return -1;) b 4737 libavformat/movenc.c uint8_t r, g, b; b 4742 libavformat/movenc.c b = (rgb ) & 0xFF; b 4744 libavformat/movenc.c y = av_clip_uint8( 16. + 0.257 * r + 0.504 * g + 0.098 * b); b 4745 libavformat/movenc.c cb = av_clip_uint8(128. - 0.148 * r - 0.291 * g + 0.439 * b); b 4746 libavformat/movenc.c cr = av_clip_uint8(128. + 0.439 * r - 0.368 * g - 0.071 * b); b 120 libavformat/mp3dec.c uint8_t b = avio_r8(s->pb); b 123 libavformat/mp3dec.c av_rescale(b, filesize, 256), b 30 libavformat/mpc8.c #define MKMPCTAG(a, b) ((a) | ((b) << 8)) b 123 libavformat/mpegtsenc.c int first, b, len1, left; b 139 libavformat/mpegtsenc.c b = s->pid >> 8; b 141 libavformat/mpegtsenc.c b |= 0x40; b 142 libavformat/mpegtsenc.c *q++ = b; b 338 libavformat/mxfdec.c int i, b; b 340 libavformat/mxfdec.c b = avio_r8(pb); b 341 libavformat/mxfdec.c if (b == key[0]) b 343 libavformat/mxfdec.c else if (b != key[i]) b 54 libavformat/network.h #define getsockopt(a, b, c, d, e) getsockopt(a, b, c, (char*) d, e) b 55 libavformat/network.h #define setsockopt(a, b, c, d, e) setsockopt(a, b, c, (const char*) d, e) b 240 libavformat/nut.c int ff_nut_sp_pos_cmp(const Syncpoint *a, const Syncpoint *b) b 242 libavformat/nut.c return ((a->pos - b->pos) >> 32) - ((b->pos - a->pos) >> 32); b 245 libavformat/nut.c int ff_nut_sp_pts_cmp(const Syncpoint *a, const Syncpoint *b) b 247 libavformat/nut.c return ((a->ts - b->ts) >> 32) - ((b->ts - a->ts) >> 32); b 134 libavformat/nut.h int ff_nut_sp_pos_cmp(const Syncpoint *a, const Syncpoint *b); b 135 libavformat/nut.h int ff_nut_sp_pts_cmp(const Syncpoint *a, const Syncpoint *b); b 143 libavformat/os_support.h #define mkdir(a, b) _mkdir(a) b 230 libavformat/os_support.h #define mkdir(a, b) win32_mkdir(a) b 58 libavformat/rpl.c int b = avio_r8(pb); b 59 libavformat/rpl.c if (b == 0) b 61 libavformat/rpl.c if (b == '\n') { b 65 libavformat/rpl.c line[i] = b; b 63 libavformat/rtmpdh.c #define bn_cmp(a, b) mpz_cmp(a, b) b 94 libavformat/rtmpdh.c #define bn_cmp(a, b) gcry_mpi_cmp(a, b) b 168 libavformat/rtmpdh.c #define bn_cmp(a, b) BN_cmp(a, b) b 125 libavformat/rtpdec_qt.c #define MKTAG16(a,b) MKTAG(a,b,0,0) b 112 libavformat/rtpproto.c const struct sockaddr_storage *b) b 114 libavformat/rtpproto.c if (a->ss_family != b->ss_family) b 118 libavformat/rtpproto.c ((const struct sockaddr_in *)b)->sin_addr.s_addr); b 124 libavformat/rtpproto.c const uint8_t *s6_addr_b = ((const struct sockaddr_in6 *)b)->sin6_addr.s6_addr; b 145 libavformat/subtitles.c static int cmp_pkt_sub_ts_pos(const void *a, const void *b) b 148 libavformat/subtitles.c const AVPacket *s2 = b; b 157 libavformat/subtitles.c static int cmp_pkt_sub_pos_ts(const void *a, const void *b) b 160 libavformat/subtitles.c const AVPacket *s2 = b; b 139 libavformat/swfenc.c int a, int b, int c, int d, int tx, int ty) b 158 libavformat/swfenc.c max_nbits(&nbits, b); b 161 libavformat/swfenc.c put_bits(&p, nbits, b); b 72 libavformat/tedcaptionsdec.c uint8_t b; b 73 libavformat/tedcaptionsdec.c int ret = avio_read(pb, &b, 1); b 74 libavformat/tedcaptionsdec.c *cur_byte = ret > 0 ? b : ret == 0 ? AVERROR_EOF : ret; b 34 libavformat/uncodedframecrcenc.c unsigned a = *cksum & 0xFFFF, b = *cksum >> 16; \ b 37 libavformat/uncodedframecrcenc.c b = (b + a) % 65521; \ b 39 libavformat/uncodedframecrcenc.c *cksum = a | (b << 16); \ b 1743 libavformat/utils.c int a, b, m; b 1747 libavformat/utils.c b = nb_entries; b 1750 libavformat/utils.c if (b && entries[b - 1].timestamp < wanted_timestamp) b 1751 libavformat/utils.c a = b - 1; b 1753 libavformat/utils.c while (b - a > 1) { b 1754 libavformat/utils.c m = (a + b) >> 1; b 1757 libavformat/utils.c b = m; b 1761 libavformat/utils.c m = (flags & AVSEEK_FLAG_BACKWARD) ? a : b; b 114 libavutil/aes.c static inline int mix_core(uint32_t multbl[][256], int a, int b, int c, int d){ b 116 libavutil/aes.c return multbl[0][a] ^ ROT(multbl[0][b], 8) ^ ROT(multbl[0][c], 16) ^ ROT(multbl[0][d], 24); b 118 libavutil/aes.c return multbl[0][a] ^ multbl[1][b] ^ multbl[2][c] ^ multbl[3][d]; b 276 libavutil/aes.c AVAES b; b 299 libavutil/aes.c av_aes_init(&b, rkey[i], 128, 1); b 300 libavutil/aes.c av_aes_crypt(&b, temp, rct[i], 1, NULL, 1); b 82 libavutil/arm/intmath.h static av_always_inline int av_sat_add32_arm(int a, int b) b 85 libavutil/arm/intmath.h __asm__ ("qadd %0, %1, %2" : "=r"(r) : "r"(a), "r"(b)); b 90 libavutil/arm/intmath.h static av_always_inline int av_sat_dadd32_arm(int a, int b) b 93 libavutil/arm/intmath.h __asm__ ("qdadd %0, %1, %2" : "=r"(r) : "r"(a), "r"(b)); b 213 libavutil/avstring.c int av_strcasecmp(const char *a, const char *b) b 218 libavutil/avstring.c c2 = av_tolower(*b++); b 223 libavutil/avstring.c int av_strncasecmp(const char *a, const char *b, size_t n) b 229 libavutil/avstring.c c2 = av_tolower(*b++); b 247 libavutil/avstring.h int av_strcasecmp(const char *a, const char *b); b 253 libavutil/avstring.h int av_strncasecmp(const char *a, const char *b, size_t n); b 311 libavutil/bprint.c static void bprint_pascal(AVBPrint *b, unsigned size) b 319 libavutil/bprint.c av_bprintf(b, "%8d\n", 1); b 325 libavutil/bprint.c av_bprintf(b, "%8d", p[j]); b 326 libavutil/bprint.c av_bprintf(b, "\n"); b 332 libavutil/bprint.c AVBPrint b; b 336 libavutil/bprint.c av_bprint_init(&b, 0, -1); b 337 libavutil/bprint.c bprint_pascal(&b, 5); b 338 libavutil/bprint.c printf("Short text in unlimited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); b 339 libavutil/bprint.c printf("%s\n", b.str); b 340 libavutil/bprint.c av_bprint_finalize(&b, NULL); b 342 libavutil/bprint.c av_bprint_init(&b, 0, -1); b 343 libavutil/bprint.c bprint_pascal(&b, 25); b 344 libavutil/bprint.c printf("Long text in unlimited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); b 345 libavutil/bprint.c av_bprint_finalize(&b, NULL); b 347 libavutil/bprint.c av_bprint_init(&b, 0, 2048); b 348 libavutil/bprint.c bprint_pascal(&b, 25); b 349 libavutil/bprint.c printf("Long text in limited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); b 350 libavutil/bprint.c av_bprint_finalize(&b, NULL); b 352 libavutil/bprint.c av_bprint_init(&b, 0, 1); b 353 libavutil/bprint.c bprint_pascal(&b, 5); b 354 libavutil/bprint.c printf("Short text in automatic buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); b 356 libavutil/bprint.c av_bprint_init(&b, 0, 1); b 357 libavutil/bprint.c bprint_pascal(&b, 25); b 358 libavutil/bprint.c printf("Long text in automatic buffer: %u/%u\n", (unsigned)strlen(b.str)/8*8, b.len); b 361 libavutil/bprint.c av_bprint_init(&b, 0, 0); b 362 libavutil/bprint.c bprint_pascal(&b, 25); b 363 libavutil/bprint.c printf("Long text count only buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); b 365 libavutil/bprint.c av_bprint_init_for_buffer(&b, buf, sizeof(buf)); b 366 libavutil/bprint.c bprint_pascal(&b, 25); b 367 libavutil/bprint.c printf("Long text count only buffer: %u/%u\n", (unsigned)strlen(buf), b.len); b 369 libavutil/bprint.c av_bprint_init(&b, 0, -1); b 370 libavutil/bprint.c av_bprint_strftime(&b, "%Y-%m-%d", &testtime); b 371 libavutil/bprint.c printf("strftime full: %u/%u \"%s\"\n", (unsigned)strlen(buf), b.len, b.str); b 372 libavutil/bprint.c av_bprint_finalize(&b, NULL); b 374 libavutil/bprint.c av_bprint_init(&b, 0, 8); b 375 libavutil/bprint.c av_bprint_strftime(&b, "%Y-%m-%d", &testtime); b 376 libavutil/bprint.c printf("strftime truncated: %u/%u \"%s\"\n", (unsigned)strlen(buf), b.len, b.str); b 108 libavutil/buffer.c AVBuffer *b; b 110 libavutil/buffer.c b = (*dst)->buffer; b 118 libavutil/buffer.c if (!avpriv_atomic_int_add_and_fetch(&b->refcount, -1)) { b 119 libavutil/buffer.c b->free(b->opaque, b->data); b 120 libavutil/buffer.c av_freep(&b); b 44 libavutil/colorspace.h #define YUV_TO_RGB2_CCIR(r, g, b, y1)\ b 49 libavutil/colorspace.h b = cm[(y + b_add) >> SCALEBITS];\ b 61 libavutil/colorspace.h #define YUV_TO_RGB2(r, g, b, y1)\ b 66 libavutil/colorspace.h b = cm[(y + b_add) >> SCALEBITS];\ b 87 libavutil/colorspace.h #define RGB_TO_Y(r, g, b) \ b 89 libavutil/colorspace.h FIX(0.11400) * (b) + ONE_HALF) >> SCALEBITS) b 99 libavutil/colorspace.h #define RGB_TO_Y_CCIR(r, g, b) \ b 101 libavutil/colorspace.h FIX(0.11400*219.0/255.0) * (b) + (ONE_HALF + (16 << SCALEBITS))) >> SCALEBITS) b 53 libavutil/common.h #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b)) b 55 libavutil/common.h #define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) b 57 libavutil/common.h #define FF_CEIL_RSHIFT(a,b) (!av_builtin_constant_p(b) ? -((-(a)) >> (b)) \ b 58 libavutil/common.h : ((a) + (1<<(b)) - 1) >> (b)) b 59 libavutil/common.h #define FFUDIV(a,b) (((a)>0 ?(a):(a)-(b)+1) / (b)) b 60 libavutil/common.h #define FFUMOD(a,b) ((a)-(b)*FFUDIV(a,b)) b 64 libavutil/common.h #define FFMAX(a,b) ((a) > (b) ? (a) : (b)) b 65 libavutil/common.h #define FFMAX3(a,b,c) FFMAX(FFMAX(a,b),c) b 66 libavutil/common.h #define FFMIN(a,b) ((a) > (b) ? (b) : (a)) b 67 libavutil/common.h #define FFMIN3(a,b,c) FFMIN(FFMIN(a,b),c) b 69 libavutil/common.h #define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0) b 220 libavutil/common.h static av_always_inline int av_sat_add32_c(int a, int b) b 222 libavutil/common.h return av_clipl_int32((int64_t)a + b); b 232 libavutil/common.h static av_always_inline int av_sat_dadd32_c(int a, int b) b 234 libavutil/common.h return av_sat_add32(a, av_sat_add32(b, b)); b 304 libavutil/common.h #define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((unsigned)(d) << 24)) b 305 libavutil/common.h #define MKBETAG(a,b,c,d) ((d) | ((c) << 8) | ((b) << 16) | ((unsigned)(a) << 24)) b 29 libavutil/des.c #define T(a, b, c, d, e, f, g, h) 64-a,64-b,64-c,64-d,64-e,64-f,64-g,64-h b 43 libavutil/des.c #define T(a, b, c, d) 32-a,32-b,32-c,32-d b 57 libavutil/des.c #define T(a, b, c, d, e, f, g) 64-a,64-b,64-c,64-d,64-e,64-f,64-g b 70 libavutil/des.c #define T(a, b, c, d, e, f) 56-a,56-b,56-c,56-d,56-e,56-f b 47 libavutil/error.h #define FFERRTAG(a, b, c, d) (-(int)MKTAG(a, b, c, d)) b 48 libavutil/eval.c double (* const *funcs2)(void *, double a, double b); // NULL terminated b 186 libavutil/float_dsp.c static int compare_floats(const float *a, const float *b, int len, b 191 libavutil/float_dsp.c if (fabsf(a[i] - b[i]) > max_diff) { b 193 libavutil/float_dsp.c i, a[i], b[i], a[i] - b[i]); b 212 libavutil/float_dsp.c static int compare_doubles(const double *a, const double *b, int len, b 218 libavutil/float_dsp.c if (fabs(a[i] - b[i]) > max_diff) { b 220 libavutil/float_dsp.c i, a[i], b[i], a[i] - b[i]); b 157 libavutil/imgutils.c int r, g, b; b 163 libavutil/imgutils.c b = (i&3 )*85; b 166 libavutil/imgutils.c b = (i>>6 )*85; b 173 libavutil/imgutils.c b = (i&1 )*255; b 176 libavutil/imgutils.c b = (i>>3 )*255; b 181 libavutil/imgutils.c r = b = g = i; b 186 libavutil/imgutils.c pal[i] = b + (g << 8) + (r << 16) + (0xFFU << 24); b 32 libavutil/integer.c AVInteger av_add_i(AVInteger a, AVInteger b){ b 36 libavutil/integer.c carry= (carry>>16) + a.v[i] + b.v[i]; b 42 libavutil/integer.c AVInteger av_sub_i(AVInteger a, AVInteger b){ b 46 libavutil/integer.c carry= (carry>>16) + a.v[i] - b.v[i]; b 62 libavutil/integer.c AVInteger av_mul_i(AVInteger a, AVInteger b){ b 66 libavutil/integer.c int nb= (av_log2_i(b)+16) >> 4; b 75 libavutil/integer.c carry= (carry>>16) + out.v[j] + a.v[i]*b.v[j-i]; b 83 libavutil/integer.c int av_cmp_i(AVInteger a, AVInteger b){ b 85 libavutil/integer.c int v= (int16_t)a.v[AV_INTEGER_SIZE-1] - (int16_t)b.v[AV_INTEGER_SIZE-1]; b 89 libavutil/integer.c int v= a.v[i] - b.v[i]; b 109 libavutil/integer.c AVInteger av_mod_i(AVInteger *quot, AVInteger a, AVInteger b){ b 110 libavutil/integer.c int i= av_log2_i(a) - av_log2_i(b); b 114 libavutil/integer.c av_assert2((int16_t)a.v[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b.v[AV_INTEGER_SIZE-1] >= 0); b 115 libavutil/integer.c av_assert2(av_log2_i(b)>=0); b 118 libavutil/integer.c b= av_shr_i(b, -i); b 124 libavutil/integer.c if(av_cmp_i(a, b) >= 0){ b 125 libavutil/integer.c a= av_sub_i(a, b); b 128 libavutil/integer.c b= av_shr_i(b, 1); b 133 libavutil/integer.c AVInteger av_div_i(AVInteger a, AVInteger b){ b 135 libavutil/integer.c av_mod_i(", a, b); b 174 libavutil/integer.c int64_t a,b; b 177 libavutil/integer.c for(b=3; b<256*256*256; b+=27118){ b 179 libavutil/integer.c AVInteger bi= av_int2i(b); b 182 libavutil/integer.c av_assert0(av_i2int(bi) == b); b 183 libavutil/integer.c av_assert0(av_i2int(av_add_i(ai,bi)) == a+b); b 184 libavutil/integer.c av_assert0(av_i2int(av_sub_i(ai,bi)) == a-b); b 185 libavutil/integer.c av_assert0(av_i2int(av_mul_i(ai,bi)) == a*b); b 191 libavutil/integer.c av_assert0(av_i2int(av_div_i(ai,bi)) == a/b); b 40 libavutil/integer.h AVInteger av_add_i(AVInteger a, AVInteger b) av_const; b 41 libavutil/integer.h AVInteger av_sub_i(AVInteger a, AVInteger b) av_const; b 49 libavutil/integer.h AVInteger av_mul_i(AVInteger a, AVInteger b) av_const; b 54 libavutil/integer.h int av_cmp_i(AVInteger a, AVInteger b) av_const; b 67 libavutil/integer.h AVInteger av_mod_i(AVInteger *quot, AVInteger a, AVInteger b); b 72 libavutil/integer.h AVInteger av_div_i(AVInteger a, AVInteger b) av_const; b 601 libavutil/intreadwrite.h #define AV_SWAP(n, a, b) FFSWAP(av_alias##n, *(av_alias##n*)(a), *(av_alias##n*)(b)) b 604 libavutil/intreadwrite.h # define AV_SWAP64(a, b) AV_SWAP(64, a, b) b 50 libavutil/lfg.h unsigned int b= c->state[(c->index-24) & 63]; b 51 libavutil/lfg.h return c->state[c->index++ & 63] = 2*a*b+a+b; b 39 libavutil/macros.h #define AV_GLUE(a, b) a ## b b 40 libavutil/macros.h #define AV_JOIN(a, b) AV_GLUE(a, b) b 55 libavutil/mathematics.c int64_t av_gcd(int64_t a, int64_t b) b 57 libavutil/mathematics.c if (b) b 58 libavutil/mathematics.c return av_gcd(b, a % b); b 63 libavutil/mathematics.c int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) b 67 libavutil/mathematics.c av_assert2(b >=0); b 70 libavutil/mathematics.c if (c <= 0 || b < 0 || !((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rnd&~AV_ROUND_PASS_MINMAX)!=4)) b 80 libavutil/mathematics.c return -av_rescale_rnd(-a, b, c, rnd ^ ((rnd >> 1) & 1)); b 87 libavutil/mathematics.c if (b <= INT_MAX && c <= INT_MAX) { b 89 libavutil/mathematics.c return (a * b + r) / c; b 91 libavutil/mathematics.c return a / c * b + (a % c * b + r) / c; b 96 libavutil/mathematics.c uint64_t b0 = b & 0xFFFFFFFF; b 97 libavutil/mathematics.c uint64_t b1 = b >> 32; b 119 libavutil/mathematics.c ai = av_mul_i(av_int2i(a), av_int2i(b)); b 127 libavutil/mathematics.c int64_t av_rescale(int64_t a, int64_t b, int64_t c) b 129 libavutil/mathematics.c return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF); b 135 libavutil/mathematics.c int64_t b = bq.num * (int64_t)cq.den; b 137 libavutil/mathematics.c return av_rescale_rnd(a, b, c, rnd); b 148 libavutil/mathematics.c int64_t b = tb_b.num * (int64_t)tb_a.den; b 149 libavutil/mathematics.c if ((FFABS(ts_a)|a|FFABS(ts_b)|b) <= INT_MAX) b 150 libavutil/mathematics.c return (ts_a*a > ts_b*b) - (ts_a*a < ts_b*b); b 151 libavutil/mathematics.c if (av_rescale_rnd(ts_a, a, b, AV_ROUND_DOWN) < ts_b) b 153 libavutil/mathematics.c if (av_rescale_rnd(ts_b, b, a, AV_ROUND_DOWN) < ts_a) b 158 libavutil/mathematics.c int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod) b 160 libavutil/mathematics.c int64_t c = (a - b) & (mod - 1); b 167 libavutil/mathematics.c int64_t a, b, this; b 179 libavutil/mathematics.c b = (av_rescale_q_rnd(2*in_ts+1, in_tb, fs_tb, AV_ROUND_UP )+1)>>1; b 180 libavutil/mathematics.c if (*last < 2*a - b || *last > 2*b - a) b 183 libavutil/mathematics.c this = av_clip64(*last, a, b); b 84 libavutil/mathematics.h int64_t av_const av_gcd(int64_t a, int64_t b); b 90 libavutil/mathematics.h int64_t av_rescale(int64_t a, int64_t b, int64_t c) av_const; b 99 libavutil/mathematics.h int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding) av_const; b 133 libavutil/mathematics.h int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod); b 81 libavutil/md5.c #define CORE(i, a, b, c, d) do { \ b 86 libavutil/md5.c if (i < 16) a += (d ^ (b & (c ^ d))) + X[ i & 15]; \ b 87 libavutil/md5.c else a += ((d & b) | (~d & c)) + X[(1 + 5*i) & 15]; \ b 89 libavutil/md5.c if (i < 48) a += (b ^ c ^ d) + X[(5 + 3*i) & 15]; \ b 90 libavutil/md5.c else a += (c ^ (b | ~d)) + X[( 7*i) & 15]; \ b 92 libavutil/md5.c a = b + (a << t | a >> (32 - t)); \ b 99 libavutil/md5.c uint32_t a, b, c, d, t, *X; b 103 libavutil/md5.c b = ABCD[2]; b 116 libavutil/md5.c CORE(i, a, b, c, d); b 119 libavutil/md5.c c = b; b 120 libavutil/md5.c b = a; b 125 libavutil/md5.c CORE( i, a,b,c,d); CORE((i+1),d,a,b,c); \ b 126 libavutil/md5.c CORE((i+2),c,d,a,b); CORE((i+3),b,c,d,a) b 133 libavutil/md5.c ABCD[2] += b; b 377 libavutil/mem.c uint32_t b = v << 16 | v >> 8; b 382 libavutil/mem.c uint32_t b = v >> 8 | v << 16; b 388 libavutil/mem.c AV_WN32(dst + 4, b); b 401 libavutil/mem.c AV_WN32(dst, b); b 337 libavutil/mem.h static inline int av_size_mult(size_t a, size_t b, size_t *r) b 339 libavutil/mem.h size_t t = a * b; b 342 libavutil/mem.h if ((a | b) >= ((size_t)1 << (sizeof(size_t) * 4)) && a && t / a != b) b 52 libavutil/murmur3.c #define ROT(a, b) (((a) << (b)) | ((a) >> (64 - (b)))) b 150 libavutil/opt.c int b = hexchar2int(*val++); b 151 libavutil/opt.c if (a < 0 || b < 0) { b 155 libavutil/opt.c *ptr++ = (a << 4) | b; b 49 libavutil/ppc/util_altivec.h #define vcprm(a,b,c,d) (const vector unsigned char){WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d} b 59 libavutil/ppc/util_altivec.h #define vcswapi2s(a,b,c,d) (const vector unsigned char){SWP_W2S ## a, SWP_W2S ## b, SWP_W2S ## c, SWP_W2S ## d} b 66 libavutil/ppc/util_altivec.h #define TRANSPOSE8(a,b,c,d,e,f,g,h) \ b 73 libavutil/ppc/util_altivec.h C1 = vec_mergeh (b, f); \ b 74 libavutil/ppc/util_altivec.h D1 = vec_mergel (b, f); \ b 90 libavutil/ppc/util_altivec.h b = vec_mergel (A2, E2); \ b 101 libavutil/ppc/util_altivec.h #define VEC_LD(offset,b) \ b 102 libavutil/ppc/util_altivec.h vec_perm(vec_ld(offset, b), vec_ld((offset)+15, b), vec_lvsl(offset, b)) b 104 libavutil/ppc/util_altivec.h #define VEC_LD(offset,b) \ b 105 libavutil/ppc/util_altivec.h vec_vsx_ld(offset, b) b 121 libavutil/ppc/util_altivec.h vec_u8 b = vec_ld(offset+15, src); b 122 libavutil/ppc/util_altivec.h return vec_perm(a, b, perm_vec); b 125 libavutil/ppc/util_altivec.h #define unaligned_load(a,b) VEC_LD(a,b) b 126 libavutil/ppc/util_altivec.h #define load_with_perm_vec(a,b,c) VEC_LD(a,b) b 135 libavutil/ppc/util_altivec.h #define vec_unaligned_load(b) VEC_LD(0, b) b 138 libavutil/ppc/util_altivec.h #define VEC_MERGEH(a, b) vec_mergeh(a, b) b 139 libavutil/ppc/util_altivec.h #define VEC_MERGEL(a, b) vec_mergel(a, b) b 141 libavutil/ppc/util_altivec.h #define VEC_MERGEH(a, b) vec_mergeh(b, a) b 142 libavutil/ppc/util_altivec.h #define VEC_MERGEL(a, b) vec_mergel(b, a) b 146 libavutil/ppc/util_altivec.h #define VEC_ST(a,b,c) vec_st(a,b,c) b 148 libavutil/ppc/util_altivec.h #define VEC_ST(a,b,c) vec_vsx_st(a,b,c) b 152 libavutil/ppc/util_altivec.h #define VEC_SPLAT16(a,b) vec_splat((vec_s16)(a), b) b 154 libavutil/ppc/util_altivec.h #define VEC_SPLAT16(a,b) vec_splat((vec_s16)(vec_perm(a, a, vcswapi2s(0,1,2,3))), b) b 158 libavutil/ppc/util_altivec.h #define VEC_SLD16(a,b,c) vec_sld(a, b, c) b 160 libavutil/ppc/util_altivec.h #define VEC_SLD16(a,b,c) vec_sld(b, a, c) b 80 libavutil/rational.c AVRational av_mul_q(AVRational b, AVRational c) b 82 libavutil/rational.c av_reduce(&b.num, &b.den, b 83 libavutil/rational.c b.num * (int64_t) c.num, b 84 libavutil/rational.c b.den * (int64_t) c.den, INT_MAX); b 85 libavutil/rational.c return b; b 88 libavutil/rational.c AVRational av_div_q(AVRational b, AVRational c) b 90 libavutil/rational.c return av_mul_q(b, (AVRational) { c.den, c.num }); b 93 libavutil/rational.c AVRational av_add_q(AVRational b, AVRational c) { b 94 libavutil/rational.c av_reduce(&b.num, &b.den, b 95 libavutil/rational.c b.num * (int64_t) c.den + b 96 libavutil/rational.c c.num * (int64_t) b.den, b 97 libavutil/rational.c b.den * (int64_t) c.den, INT_MAX); b 98 libavutil/rational.c return b; b 101 libavutil/rational.c AVRational av_sub_q(AVRational b, AVRational c) b 103 libavutil/rational.c return av_add_q(b, (AVRational) { -c.num, c.den }); b 130 libavutil/rational.c int64_t b = 2 * (int64_t)q1.den * q2.den; b 133 libavutil/rational.c int64_t x_up = av_rescale_rnd(a, q.den, b, AV_ROUND_UP); b 136 libavutil/rational.c int64_t x_down = av_rescale_rnd(a, q.den, b, AV_ROUND_DOWN); b 154 libavutil/rational.c AVRational a,b,r; b 157 libavutil/rational.c for (b.num = -2; b.num <= 2; b.num++) { b 158 libavutil/rational.c for (b.den = -2; b.den <= 2; b.den++) { b 159 libavutil/rational.c int c = av_cmp_q(a,b); b 160 libavutil/rational.c double d = av_q2d(a) == av_q2d(b) ? b 161 libavutil/rational.c 0 : (av_q2d(a) - av_q2d(b)); b 167 libavutil/rational.c a.den, b.num, b.den, c,d); b 168 libavutil/rational.c r = av_sub_q(av_add_q(b,a), b); b 169 libavutil/rational.c if(b.den && (r.num*a.den != a.num*r.den || !r.num != !a.num || !r.den != !a.den)) b 180 libavutil/rational.c for (b.num = 1; b.num <= 10; b.num++) { b 181 libavutil/rational.c for (b.den = 1; b.den <= 10; b.den++) { b 183 libavutil/rational.c if (av_gcd(b.num, b.den) > 1) b 185 libavutil/rational.c if (av_cmp_q(b, a) < 0) b 192 libavutil/rational.c int exact = start + av_rescale_q(i+1, b, a); b 193 libavutil/rational.c acc = av_add_stable(a, acc, b, 1); b 196 libavutil/rational.c a.den, b.num, b.den, acc, exact); b 66 libavutil/rational.h static inline int av_cmp_q(AVRational a, AVRational b){ b 67 libavutil/rational.h const int64_t tmp= a.num * (int64_t)b.den - b.num * (int64_t)a.den; b 69 libavutil/rational.h if(tmp) return (int)((tmp ^ a.den ^ b.den)>>63)|1; b 70 libavutil/rational.h else if(b.den && a.den) return 0; b 71 libavutil/rational.h else if(a.num && b.num) return (a.num>>31) - (b.num>>31); b 102 libavutil/rational.h AVRational av_mul_q(AVRational b, AVRational c) av_const; b 110 libavutil/rational.h AVRational av_div_q(AVRational b, AVRational c) av_const; b 118 libavutil/rational.h AVRational av_add_q(AVRational b, AVRational c) av_const; b 126 libavutil/rational.h AVRational av_sub_q(AVRational b, AVRational c) av_const; b 91 libavutil/ripemd.c #define SWAP(a,b) if (ext) { t = a; a = b; b = t; } b 93 libavutil/ripemd.c #define ROUND128_0_TO_15(a,b,c,d,e,f,g,h) \ b 94 libavutil/ripemd.c a = rol(a + (( b ^ c ^ d) + block[WA[n]]), ROTA[n]); \ b 98 libavutil/ripemd.c #define ROUND128_16_TO_31(a,b,c,d,e,f,g,h) \ b 99 libavutil/ripemd.c a = rol(a + ((((c ^ d) & b) ^ d) + block[WA[n]] + KA[0]), ROTA[n]); \ b 103 libavutil/ripemd.c #define ROUND128_32_TO_47(a,b,c,d,e,f,g,h) \ b 104 libavutil/ripemd.c a = rol(a + (((~c | b) ^ d) + block[WA[n]] + KA[1]), ROTA[n]); \ b 108 libavutil/ripemd.c #define ROUND128_48_TO_63(a,b,c,d,e,f,g,h) \ b 109 libavutil/ripemd.c a = rol(a + ((((b ^ c) & d) ^ c) + block[WA[n]] + KA[2]), ROTA[n]); \ b 115 libavutil/ripemd.c uint32_t a, b, c, d, e, f, g, h, t; b 120 libavutil/ripemd.c a = state[0]; b = state[1]; c = state[2]; d = state[3]; b 124 libavutil/ripemd.c b = f = state[1]; b 135 libavutil/ripemd.c ROUND128_0_TO_15(a,b,c,d,e,f,g,h); b 136 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 142 libavutil/ripemd.c ROUND128_16_TO_31(a,b,c,d,e,f,g,h); b 143 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 146 libavutil/ripemd.c SWAP(b,f) b 149 libavutil/ripemd.c ROUND128_32_TO_47(a,b,c,d,e,f,g,h); b 150 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 156 libavutil/ripemd.c ROUND128_48_TO_63(a,b,c,d,e,f,g,h); b 157 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 164 libavutil/ripemd.c ROUND128_0_TO_15(a,b,c,d,e,f,g,h); \ b 165 libavutil/ripemd.c ROUND128_0_TO_15(d,a,b,c,h,e,f,g); \ b 166 libavutil/ripemd.c ROUND128_0_TO_15(c,d,a,b,g,h,e,f); \ b 167 libavutil/ripemd.c ROUND128_0_TO_15(b,c,d,a,f,g,h,e) b 173 libavutil/ripemd.c ROUND128_16_TO_31(a,b,c,d,e,f,g,h); \ b 174 libavutil/ripemd.c ROUND128_16_TO_31(d,a,b,c,h,e,f,g); \ b 175 libavutil/ripemd.c ROUND128_16_TO_31(c,d,a,b,g,h,e,f); \ b 176 libavutil/ripemd.c ROUND128_16_TO_31(b,c,d,a,f,g,h,e) b 179 libavutil/ripemd.c SWAP(b,f) b 182 libavutil/ripemd.c ROUND128_32_TO_47(a,b,c,d,e,f,g,h); \ b 183 libavutil/ripemd.c ROUND128_32_TO_47(d,a,b,c,h,e,f,g); \ b 184 libavutil/ripemd.c ROUND128_32_TO_47(c,d,a,b,g,h,e,f); \ b 185 libavutil/ripemd.c ROUND128_32_TO_47(b,c,d,a,f,g,h,e) b 191 libavutil/ripemd.c ROUND128_48_TO_63(a,b,c,d,e,f,g,h); \ b 192 libavutil/ripemd.c ROUND128_48_TO_63(d,a,b,c,h,e,f,g); \ b 193 libavutil/ripemd.c ROUND128_48_TO_63(c,d,a,b,g,h,e,f); \ b 194 libavutil/ripemd.c ROUND128_48_TO_63(b,c,d,a,f,g,h,e) b 201 libavutil/ripemd.c state[0] += a; state[1] += b; state[2] += c; state[3] += d; b 207 libavutil/ripemd.c state[3] = state[0] + b + g; b 217 libavutil/ripemd.c #define ROUND160_0_TO_15(a,b,c,d,e,f,g,h,i,j) \ b 218 libavutil/ripemd.c a = rol(a + (( b ^ c ^ d) + block[WA[n]]), ROTA[n]) + e; \ b 222 libavutil/ripemd.c #define ROUND160_16_TO_31(a,b,c,d,e,f,g,h,i,j) \ b 223 libavutil/ripemd.c a = rol(a + ((((c ^ d) & b) ^ d) + block[WA[n]] + KA[0]), ROTA[n]) + e; \ b 227 libavutil/ripemd.c #define ROUND160_32_TO_47(a,b,c,d,e,f,g,h,i,j) \ b 228 libavutil/ripemd.c a = rol(a + (((~c | b) ^ d) + block[WA[n]] + KA[1]), ROTA[n]) + e; \ b 232 libavutil/ripemd.c #define ROUND160_48_TO_63(a,b,c,d,e,f,g,h,i,j) \ b 233 libavutil/ripemd.c a = rol(a + ((((b ^ c) & d) ^ c) + block[WA[n]] + KA[2]), ROTA[n]) + e; \ b 237 libavutil/ripemd.c #define ROUND160_64_TO_79(a,b,c,d,e,f,g,h,i,j) \ b 238 libavutil/ripemd.c a = rol(a + (((~d | c) ^ b) + block[WA[n]] + KA[3]), ROTA[n]) + e; \ b 244 libavutil/ripemd.c uint32_t a, b, c, d, e, f, g, h, i, j, t; b 249 libavutil/ripemd.c a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; b 253 libavutil/ripemd.c b = g = state[1]; b 265 libavutil/ripemd.c ROUND160_0_TO_15(a,b,c,d,e,f,g,h,i,j); b 266 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 269 libavutil/ripemd.c SWAP(b,g) b 272 libavutil/ripemd.c ROUND160_16_TO_31(a,b,c,d,e,f,g,h,i,j); b 273 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 279 libavutil/ripemd.c ROUND160_32_TO_47(a,b,c,d,e,f,g,h,i,j); b 280 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 286 libavutil/ripemd.c ROUND160_48_TO_63(a,b,c,d,e,f,g,h,i,j); b 287 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 293 libavutil/ripemd.c ROUND160_64_TO_79(a,b,c,d,e,f,g,h,i,j); b 294 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 301 libavutil/ripemd.c ROUND160_0_TO_15(a,b,c,d,e,f,g,h,i,j); \ b 302 libavutil/ripemd.c ROUND160_0_TO_15(e,a,b,c,d,j,f,g,h,i); \ b 303 libavutil/ripemd.c ROUND160_0_TO_15(d,e,a,b,c,i,j,f,g,h); \ b 304 libavutil/ripemd.c ROUND160_0_TO_15(c,d,e,a,b,h,i,j,f,g); \ b 305 libavutil/ripemd.c ROUND160_0_TO_15(b,c,d,e,a,g,h,i,j,f) b 308 libavutil/ripemd.c ROUND160_0_TO_15(a,b,c,d,e,f,g,h,i,j); b 312 libavutil/ripemd.c ROUND160_16_TO_31(e,a,b,c,d,j,f,g,h,i); \ b 313 libavutil/ripemd.c ROUND160_16_TO_31(d,e,a,b,c,i,j,f,g,h); \ b 314 libavutil/ripemd.c ROUND160_16_TO_31(c,d,e,a,b,h,i,j,f,g); \ b 315 libavutil/ripemd.c ROUND160_16_TO_31(b,c,d,e,a,g,h,i,j,f); \ b 316 libavutil/ripemd.c ROUND160_16_TO_31(a,b,c,d,e,f,g,h,i,j) b 319 libavutil/ripemd.c ROUND160_16_TO_31(e,a,b,c,d,j,f,g,h,i); b 320 libavutil/ripemd.c SWAP(b,g) b 323 libavutil/ripemd.c ROUND160_32_TO_47(d,e,a,b,c,i,j,f,g,h); \ b 324 libavutil/ripemd.c ROUND160_32_TO_47(c,d,e,a,b,h,i,j,f,g); \ b 325 libavutil/ripemd.c ROUND160_32_TO_47(b,c,d,e,a,g,h,i,j,f); \ b 326 libavutil/ripemd.c ROUND160_32_TO_47(a,b,c,d,e,f,g,h,i,j); \ b 327 libavutil/ripemd.c ROUND160_32_TO_47(e,a,b,c,d,j,f,g,h,i) b 330 libavutil/ripemd.c ROUND160_32_TO_47(d,e,a,b,c,i,j,f,g,h); b 334 libavutil/ripemd.c ROUND160_48_TO_63(c,d,e,a,b,h,i,j,f,g); \ b 335 libavutil/ripemd.c ROUND160_48_TO_63(b,c,d,e,a,g,h,i,j,f); \ b 336 libavutil/ripemd.c ROUND160_48_TO_63(a,b,c,d,e,f,g,h,i,j); \ b 337 libavutil/ripemd.c ROUND160_48_TO_63(e,a,b,c,d,j,f,g,h,i); \ b 338 libavutil/ripemd.c ROUND160_48_TO_63(d,e,a,b,c,i,j,f,g,h) b 341 libavutil/ripemd.c ROUND160_48_TO_63(c,d,e,a,b,h,i,j,f,g); b 345 libavutil/ripemd.c ROUND160_64_TO_79(b,c,d,e,a,g,h,i,j,f); \ b 346 libavutil/ripemd.c ROUND160_64_TO_79(a,b,c,d,e,f,g,h,i,j); \ b 347 libavutil/ripemd.c ROUND160_64_TO_79(e,a,b,c,d,j,f,g,h,i); \ b 348 libavutil/ripemd.c ROUND160_64_TO_79(d,e,a,b,c,i,j,f,g,h); \ b 349 libavutil/ripemd.c ROUND160_64_TO_79(c,d,e,a,b,h,i,j,f,g) b 352 libavutil/ripemd.c ROUND160_64_TO_79(b,c,d,e,a,g,h,i,j,f); b 357 libavutil/ripemd.c state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; b 364 libavutil/ripemd.c state[4] = state[0] + b + h; b 67 libavutil/sha.c unsigned int i, a, b, c, d, e; b 70 libavutil/sha.c b = state[1]; b 85 libavutil/sha.c t += ((b&(c^d))^d) + 0x5A827999; b 87 libavutil/sha.c t += ( b^c ^d) + 0x6ED9EBA1; b 90 libavutil/sha.c t += (((b|c)&d)|(b&c)) + 0x8F1BBCDC; b 92 libavutil/sha.c t += ( b^c ^d) + 0xCA62C1D6; b 96 libavutil/sha.c c = rol(b, 30); b 97 libavutil/sha.c b = a; b 103 libavutil/sha.c R0(a, b, c, d, e, 0 + i); \ b 104 libavutil/sha.c R0(e, a, b, c, d, 1 + i); \ b 105 libavutil/sha.c R0(d, e, a, b, c, 2 + i); \ b 106 libavutil/sha.c R0(c, d, e, a, b, 3 + i); \ b 107 libavutil/sha.c R0(b, c, d, e, a, 4 + i); \ b 112 libavutil/sha.c R0(a, b, c, d, e, 15); b 113 libavutil/sha.c R1(e, a, b, c, d, 16); b 114 libavutil/sha.c R1(d, e, a, b, c, 17); b 115 libavutil/sha.c R1(c, d, e, a, b, 18); b 116 libavutil/sha.c R1(b, c, d, e, a, 19); b 119 libavutil/sha.c R2(a, b, c, d, e, 0 + i); \ b 120 libavutil/sha.c R2(e, a, b, c, d, 1 + i); \ b 121 libavutil/sha.c R2(d, e, a, b, c, 2 + i); \ b 122 libavutil/sha.c R2(c, d, e, a, b, 3 + i); \ b 123 libavutil/sha.c R2(b, c, d, e, a, 4 + i); \ b 130 libavutil/sha.c R3(a, b, c, d, e, 0 + i); \ b 131 libavutil/sha.c R3(e, a, b, c, d, 1 + i); \ b 132 libavutil/sha.c R3(d, e, a, b, c, 2 + i); \ b 133 libavutil/sha.c R3(c, d, e, a, b, 3 + i); \ b 134 libavutil/sha.c R3(b, c, d, e, a, 4 + i); \ b 140 libavutil/sha.c R4(a, b, c, d, e, 0 + i); \ b 141 libavutil/sha.c R4(e, a, b, c, d, 1 + i); \ b 142 libavutil/sha.c R4(d, e, a, b, c, 2 + i); \ b 143 libavutil/sha.c R4(c, d, e, a, b, 3 + i); \ b 144 libavutil/sha.c R4(b, c, d, e, a, 4 + i); \ b 150 libavutil/sha.c state[1] += b; b 188 libavutil/sha.c #define ROUND256(a,b,c,d,e,f,g,h) \ b 191 libavutil/sha.c (h) = T1 + Sigma0_256(a) + Maj((a), (b), (c)); \ b 194 libavutil/sha.c #define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) \ b 196 libavutil/sha.c ROUND256(a,b,c,d,e,f,g,h) b 198 libavutil/sha.c #define ROUND256_16_TO_63(a,b,c,d,e,f,g,h) \ b 200 libavutil/sha.c ROUND256(a,b,c,d,e,f,g,h) b 204 libavutil/sha.c unsigned int i, a, b, c, d, e, f, g, h; b 209 libavutil/sha.c b = state[1]; b 224 libavutil/sha.c T2 = Sigma0_256(a) + Maj(a, b, c); b 230 libavutil/sha.c c = b; b 231 libavutil/sha.c b = a; b 238 libavutil/sha.c ROUND256_0_TO_15(a, b, c, d, e, f, g, h); \ b 239 libavutil/sha.c ROUND256_0_TO_15(h, a, b, c, d, e, f, g); \ b 240 libavutil/sha.c ROUND256_0_TO_15(g, h, a, b, c, d, e, f); \ b 241 libavutil/sha.c ROUND256_0_TO_15(f, g, h, a, b, c, d, e); \ b 242 libavutil/sha.c ROUND256_0_TO_15(e, f, g, h, a, b, c, d); \ b 243 libavutil/sha.c ROUND256_0_TO_15(d, e, f, g, h, a, b, c); \ b 244 libavutil/sha.c ROUND256_0_TO_15(c, d, e, f, g, h, a, b); \ b 245 libavutil/sha.c ROUND256_0_TO_15(b, c, d, e, f, g, h, a) b 250 libavutil/sha.c ROUND256_16_TO_63(a, b, c, d, e, f, g, h); \ b 251 libavutil/sha.c ROUND256_16_TO_63(h, a, b, c, d, e, f, g); \ b 252 libavutil/sha.c ROUND256_16_TO_63(g, h, a, b, c, d, e, f); \ b 253 libavutil/sha.c ROUND256_16_TO_63(f, g, h, a, b, c, d, e); \ b 254 libavutil/sha.c ROUND256_16_TO_63(e, f, g, h, a, b, c, d); \ b 255 libavutil/sha.c ROUND256_16_TO_63(d, e, f, g, h, a, b, c); \ b 256 libavutil/sha.c ROUND256_16_TO_63(c, d, e, f, g, h, a, b); \ b 257 libavutil/sha.c ROUND256_16_TO_63(b, c, d, e, f, g, h, a) b 263 libavutil/sha.c state[1] += b; b 105 libavutil/sha512.c #define ROUND512(a,b,c,d,e,f,g,h) \ b 108 libavutil/sha512.c (h) = T1 + Sigma0_512(a) + Maj((a), (b), (c)); \ b 111 libavutil/sha512.c #define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) \ b 113 libavutil/sha512.c ROUND512(a,b,c,d,e,f,g,h) b 115 libavutil/sha512.c #define ROUND512_16_TO_80(a,b,c,d,e,f,g,h) \ b 117 libavutil/sha512.c ROUND512(a,b,c,d,e,f,g,h) b 121 libavutil/sha512.c uint64_t a, b, c, d, e, f, g, h; b 127 libavutil/sha512.c b = state[1]; b 142 libavutil/sha512.c T2 = Sigma0_512(a) + Maj(a, b, c); b 148 libavutil/sha512.c c = b; b 149 libavutil/sha512.c b = a; b 155 libavutil/sha512.c ROUND512_0_TO_15(a, b, c, d, e, f, g, h); \ b 156 libavutil/sha512.c ROUND512_0_TO_15(h, a, b, c, d, e, f, g); \ b 157 libavutil/sha512.c ROUND512_0_TO_15(g, h, a, b, c, d, e, f); \ b 158 libavutil/sha512.c ROUND512_0_TO_15(f, g, h, a, b, c, d, e); \ b 159 libavutil/sha512.c ROUND512_0_TO_15(e, f, g, h, a, b, c, d); \ b 160 libavutil/sha512.c ROUND512_0_TO_15(d, e, f, g, h, a, b, c); \ b 161 libavutil/sha512.c ROUND512_0_TO_15(c, d, e, f, g, h, a, b); \ b 162 libavutil/sha512.c ROUND512_0_TO_15(b, c, d, e, f, g, h, a) b 168 libavutil/sha512.c ROUND512_16_TO_80(a, b, c, d, e, f, g, h); \ b 169 libavutil/sha512.c ROUND512_16_TO_80(h, a, b, c, d, e, f, g); \ b 170 libavutil/sha512.c ROUND512_16_TO_80(g, h, a, b, c, d, e, f); \ b 171 libavutil/sha512.c ROUND512_16_TO_80(f, g, h, a, b, c, d, e); \ b 172 libavutil/sha512.c ROUND512_16_TO_80(e, f, g, h, a, b, c, d); \ b 173 libavutil/sha512.c ROUND512_16_TO_80(d, e, f, g, h, a, b, c); \ b 174 libavutil/sha512.c ROUND512_16_TO_80(c, d, e, f, g, h, a, b); \ b 175 libavutil/sha512.c ROUND512_16_TO_80(b, c, d, e, f, g, h, a) b 181 libavutil/sha512.c state[1] += b; b 82 libavutil/softfloat.h static inline av_const SoftFloat av_mul_sf(SoftFloat a, SoftFloat b){ b 83 libavutil/softfloat.h a.exp += b.exp; b 84 libavutil/softfloat.h av_assert2((int32_t)((a.mant * (int64_t)b.mant) >> ONE_BITS) == (a.mant * (int64_t)b.mant) >> ONE_BITS); b 85 libavutil/softfloat.h a.mant = (a.mant * (int64_t)b.mant) >> ONE_BITS; b 93 libavutil/softfloat.h static av_const SoftFloat av_div_sf(SoftFloat a, SoftFloat b){ b 94 libavutil/softfloat.h a.exp -= b.exp+1; b 95 libavutil/softfloat.h a.mant = ((int64_t)a.mant<<(ONE_BITS+1)) / b.mant; b 99 libavutil/softfloat.h static inline av_const int av_cmp_sf(SoftFloat a, SoftFloat b){ b 100 libavutil/softfloat.h int t= a.exp - b.exp; b 101 libavutil/softfloat.h if(t<0) return (a.mant >> (-t)) - b.mant ; b 102 libavutil/softfloat.h else return a.mant - (b.mant >> t); b 105 libavutil/softfloat.h static inline av_const SoftFloat av_add_sf(SoftFloat a, SoftFloat b){ b 106 libavutil/softfloat.h int t= a.exp - b.exp; b 107 libavutil/softfloat.h if (t <-31) return b; b 108 libavutil/softfloat.h else if (t < 0) return av_normalize1_sf((SoftFloat){b.exp, b.mant + (a.mant >> (-t))}); b 109 libavutil/softfloat.h else if (t < 32) return av_normalize1_sf((SoftFloat){a.exp, a.mant + (b.mant >> t )}); b 113 libavutil/softfloat.h static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){ b 114 libavutil/softfloat.h return av_add_sf(a, (SoftFloat){b.exp, -b.mant}); b 40 libavutil/tree.c int (*cmp)(void *key, const void *b), void *next[2]) b 60 libavutil/tree.c int (*cmp)(void *key, const void *b), AVTreeNode **next) b 205 libavutil/tree.c static int cmp(void *a, const void *b) b 207 libavutil/tree.c return (uint8_t *) a - (const uint8_t *) b; b 63 libavutil/tree.h int (*cmp)(void *key, const void *b), void *next[2]); b 109 libavutil/tree.h int (*cmp)(void *key, const void *b), b 122 libavutil/twofish.c static uint8_t gfmul(uint8_t a, uint8_t b) b 125 libavutil/twofish.c while (a && b) { b 127 libavutil/twofish.c r = r ^ b; b 128 libavutil/twofish.c t = b & 0x80; b 129 libavutil/twofish.c b = b << 1; b 131 libavutil/twofish.c b = b ^ 0x4d; b 35 libavutil/version.h #define AV_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c)) b 36 libavutil/version.h #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c b 37 libavutil/version.h #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c) b 27 libavutil/x86/asm.h typedef struct xmm_reg { uint64_t a, b; } xmm_reg; b 28 libavutil/x86/asm.h typedef struct ymm_reg { uint64_t a, b, c, d; } ymm_reg; b 43 libavutil/x86/intreadwrite.h static av_always_inline void AV_SWAP64(void *a, void *b) b 49 libavutil/x86/intreadwrite.h : "+m"(*(uint64_t*)a), "+m"(*(uint64_t*)b) b 398 libpostproc/postprocess.c uint64_t b= (v*3/16) & 0xFF; b 402 libpostproc/postprocess.c uint64_t B= (0x100 - b)&0xFF; b 406 libpostproc/postprocess.c lut[i] = (a<<56) | (b<<48) | (c<<40) | (d<<32) | b 414 libpostproc/postprocess.c int b= src[3] - src[4]; b 417 libpostproc/postprocess.c int d= FFMAX(FFABS(b) - (FFABS(a) + FFABS(c))/2, 0); b 420 libpostproc/postprocess.c int v = d * FFSIGN(-b); b 83 libpostproc/postprocess_template.c #define REAL_PAVGB(a,b) "pavgb " #a ", " #b " \n\t" b 85 libpostproc/postprocess_template.c #define REAL_PAVGB(a,b) "pavgusb " #a ", " #b " \n\t" b 87 libpostproc/postprocess_template.c #define PAVGB(a,b) REAL_PAVGB(a,b) b 90 libpostproc/postprocess_template.c #define PMINUB(a,b,t) "pminub " #a ", " #b " \n\t" b 92 libpostproc/postprocess_template.c #define PMINUB(b,a,t) \ b 94 libpostproc/postprocess_template.c "psubusb " #b ", " #t " \n\t"\ b 99 libpostproc/postprocess_template.c #define PMAXUB(a,b) "pmaxub " #a ", " #b " \n\t" b 101 libpostproc/postprocess_template.c #define PMAXUB(a,b) \ b 102 libpostproc/postprocess_template.c "psubusb " #a ", " #b " \n\t"\ b 103 libpostproc/postprocess_template.c "paddb " #a ", " #b " \n\t" b 512 libpostproc/postprocess_template.c int b= src[l4] - src[l5]; b 515 libpostproc/postprocess_template.c int d= FFABS(b) - ((FFABS(a) + FFABS(c))>>1); b 519 libpostproc/postprocess_template.c int v = d * FFSIGN(-b); b 1478 libpostproc/postprocess_template.c int a, b, x; b 1483 libpostproc/postprocess_template.c b= *(uint32_t*)&src[stride*2]; b 1484 libpostproc/postprocess_template.c *(uint32_t*)&src[stride*1]= (a|b) - (((a^b)&0xFEFEFEFEUL)>>1); b 1486 libpostproc/postprocess_template.c *(uint32_t*)&src[stride*3]= (a|b) - (((a^b)&0xFEFEFEFEUL)>>1); b 1487 libpostproc/postprocess_template.c b= *(uint32_t*)&src[stride*6]; b 1488 libpostproc/postprocess_template.c *(uint32_t*)&src[stride*5]= (a|b) - (((a^b)&0xFEFEFEFEUL)>>1); b 1490 libpostproc/postprocess_template.c *(uint32_t*)&src[stride*7]= (a|b) - (((a^b)&0xFEFEFEFEUL)>>1); b 1514 libpostproc/postprocess_template.c #define REAL_DEINT_CUBIC(a,b,c,d,e)\ b 1516 libpostproc/postprocess_template.c "movq " #b ", %%xmm1 \n\t"\ b 1533 libpostproc/postprocess_template.c #define REAL_DEINT_CUBIC(a,b,c,d,e)\ b 1535 libpostproc/postprocess_template.c "movq " #b ", %%mm1 \n\t"\ b 1555 libpostproc/postprocess_template.c #define DEINT_CUBIC(a,b,c,d,e) REAL_DEINT_CUBIC(a,b,c,d,e) b 1602 libpostproc/postprocess_template.c #define REAL_DEINT_FF(a,b,c,d)\ b 1604 libpostproc/postprocess_template.c "movq " #b ", %%mm2 \n\t"\ b 1628 libpostproc/postprocess_template.c "movq %%mm1, " #b " \n\t"\ b 1630 libpostproc/postprocess_template.c #define DEINT_FF(a,b,c,d) REAL_DEINT_FF(a,b,c,d) b 1682 libpostproc/postprocess_template.c #define REAL_DEINT_L5(t1,t2,a,b,c)\ b 1684 libpostproc/postprocess_template.c "movq " #b ", %%mm3 \n\t"\ b 1715 libpostproc/postprocess_template.c #define DEINT_L5(t1,t2,a,b,c) REAL_DEINT_L5(t1,t2,a,b,c) b 1820 libpostproc/postprocess_template.c int a, b, c, x; b 1825 libpostproc/postprocess_template.c b= *(uint32_t*)&src[stride*0]; b 1828 libpostproc/postprocess_template.c *(uint32_t*)&src[stride*0]= (a|b) - (((a^b)&0xFEFEFEFEUL)>>1); b 1831 libpostproc/postprocess_template.c b= (a&b) + (((a^b)&0xFEFEFEFEUL)>>1); b 1832 libpostproc/postprocess_template.c *(uint32_t*)&src[stride*1]= (c|b) - (((c^b)&0xFEFEFEFEUL)>>1); b 1834 libpostproc/postprocess_template.c b= *(uint32_t*)&src[stride*3]; b 1835 libpostproc/postprocess_template.c c= (b&c) + (((b^c)&0xFEFEFEFEUL)>>1); b 1840 libpostproc/postprocess_template.c *(uint32_t*)&src[stride*3]= (a|b) - (((a^b)&0xFEFEFEFEUL)>>1); b 1843 libpostproc/postprocess_template.c b= (a&b) + (((a^b)&0xFEFEFEFEUL)>>1); b 1844 libpostproc/postprocess_template.c *(uint32_t*)&src[stride*4]= (c|b) - (((c^b)&0xFEFEFEFEUL)>>1); b 1846 libpostproc/postprocess_template.c b= *(uint32_t*)&src[stride*6]; b 1847 libpostproc/postprocess_template.c c= (b&c) + (((b^c)&0xFEFEFEFEUL)>>1); b 1852 libpostproc/postprocess_template.c *(uint32_t*)&src[stride*6]= (a|b) - (((a^b)&0xFEFEFEFEUL)>>1); b 1855 libpostproc/postprocess_template.c b= (a&b) + (((a^b)&0xFEFEFEFEUL)>>1); b 1856 libpostproc/postprocess_template.c *(uint32_t*)&src[stride*7]= (c|b) - (((c^b)&0xFEFEFEFEUL)>>1); b 1932 libpostproc/postprocess_template.c #define REAL_MEDIAN(a,b,c)\ b 1934 libpostproc/postprocess_template.c "movq " #b ", %%mm2 \n\t"\ b 1954 libpostproc/postprocess_template.c "movq %%mm0, " #b " \n\t" b 1955 libpostproc/postprocess_template.c #define MEDIAN(a,b,c) REAL_MEDIAN(a,b,c) b 1973 libpostproc/postprocess_template.c int a, b, c, d, e, f; b 1975 libpostproc/postprocess_template.c b = colsrc[stride ]; b 1977 libpostproc/postprocess_template.c d = (a-b)>>31; b 1978 libpostproc/postprocess_template.c e = (b-c)>>31; b 1980 libpostproc/postprocess_template.c colsrc[stride ] = (a|(d^f)) & (b|(d^e)) & (c|(e^f)); b 2205 libpostproc/postprocess_template.c #define REAL_L2_DIFF_CORE(a, b)\ b 2207 libpostproc/postprocess_template.c "movq " #b ", %%mm2 \n\t"\ b 2222 libpostproc/postprocess_template.c #define REAL_L2_DIFF_CORE(a, b)\ b 2224 libpostproc/postprocess_template.c "movq " #b ", %%mm2 \n\t"\ b 2240 libpostproc/postprocess_template.c #define L2_DIFF_CORE(a, b) REAL_L2_DIFF_CORE(a, b) b 141 libswresample/swresample-test.c static int cmp(const int *a, const int *b){ b 142 libswresample/swresample-test.c return *a - *b; b 366 libswresample/swresample-test.c double b= get(aout, ch, i, in_ch_count, in_sample_fmt); b 368 libswresample/swresample-test.c sum_b += b; b 370 libswresample/swresample-test.c sum_bb+= b*b; b 371 libswresample/swresample-test.c sum_ab+= a*b; b 372 libswresample/swresample-test.c maxdiff= FFMAX(maxdiff, FFABS(a-b)); b 396 libswresample/swresample-test.c double b= get(aout, ch, i, in_ch_count, in_sample_fmt); b 398 libswresample/swresample-test.c sum_b += b; b 400 libswresample/swresample-test.c sum_bb+= b*b; b 401 libswresample/swresample-test.c sum_ab+= a*b; b 402 libswresample/swresample-test.c maxdiff= FFMAX(maxdiff, FFABS(a-b)); b 54 libswscale/input.c dst[i] = (ry*r + gy*g + by*b + (0x2001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; b 72 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; b 73 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; b 91 libswscale/input.c dstU[i]= (ru*r + gu*g + bu*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; b 92 libswscale/input.c dstV[i]= (rv*r + gv*g + bv*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; b 142 libswscale/input.c dst[i] = (ry*r + gy*g + by*b + (0x2001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; b 163 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; b 164 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; b 188 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; b 189 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; b 269 libswscale/input.c int b = (px & maskb) >> shb; b 273 libswscale/input.c dst[i] = (ry * r + gy * g + by * b + rnd) >> ((S)-6); b 296 libswscale/input.c int b = (px & maskb) >> shb; b 300 libswscale/input.c dstU[i] = (ru * r + gu * g + bu * b + rnd) >> ((S)-6); b 301 libswscale/input.c dstV[i] = (rv * r + gv * g + bv * b + rnd) >> ((S)-6); b 329 libswscale/input.c int b, r, g = (px0 & maskgx) + (px1 & maskgx); b 332 libswscale/input.c b = (rb & maskb) >> shb; b 342 libswscale/input.c dstU[i] = (ru * r + gu * g + bu * b + (unsigned)rnd) >> ((S)-6+1); b 343 libswscale/input.c dstV[i] = (rv * r + gv * g + bv * b + (unsigned)rnd) >> ((S)-6+1); b 407 libswscale/input.c unsigned int b = bsrc[2*i] + bsrc[2*i+1]; b 410 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (0x4001<<(RGB2YUV_SHIFT-6))) >> (RGB2YUV_SHIFT-6+1); b 411 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (0x4001<<(RGB2YUV_SHIFT-6))) >> (RGB2YUV_SHIFT-6+1); b 664 libswscale/input.c int b = src[i * 3 + 0]; b 668 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (32<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6)); b 681 libswscale/input.c int b = src1[3 * i + 0]; b 685 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); b 686 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); b 700 libswscale/input.c int b = src1[6 * i + 0] + src1[6 * i + 3]; b 704 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); b 705 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); b 719 libswscale/input.c int b = src[i * 3 + 2]; b 721 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (32<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6)); b 737 libswscale/input.c int b = src1[3 * i + 2]; b 739 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); b 740 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); b 756 libswscale/input.c int b = src1[6 * i + 2] + src1[6 * i + 5]; b 758 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); b 759 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); b 770 libswscale/input.c int b = src[1][i]; b 773 libswscale/input.c dst[i] = (ry*r + gy*g + by*b + (0x801<<(RGB2YUV_SHIFT-7))) >> (RGB2YUV_SHIFT-6); b 794 libswscale/input.c int b = src[1][i]; b 797 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (0x4001<<(RGB2YUV_SHIFT-7))) >> (RGB2YUV_SHIFT-6); b 798 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (0x4001<<(RGB2YUV_SHIFT-7))) >> (RGB2YUV_SHIFT-6); b 814 libswscale/input.c int b = rdpx(src[1] + i); b 817 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (33 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14)); b 834 libswscale/input.c int b = rdpx(src[1] + i); b 837 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); b 838 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); b 1150 libswscale/output.c const uint32_t *b = (const uint32_t *) _b; b 1155 libswscale/output.c dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (hasAlpha ? A1 << sh : 0); b 1156 libswscale/output.c dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2] + (hasAlpha ? A2 << sh : 0); b 1161 libswscale/output.c av_assert2((((r[Y1] + g[Y1] + b[Y1]) >> sh) & 0xFF) == 0); b 1162 libswscale/output.c dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (A1 << sh); b 1163 libswscale/output.c dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2] + (A2 << sh); b 1168 libswscale/output.c av_assert2((((r[Y1] + g[Y1] + b[Y1]) >> sh) & 0xFF) == 0xFF); b 1170 libswscale/output.c dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1]; b 1171 libswscale/output.c dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2]; b 1178 libswscale/output.c const uint8_t *b = (const uint8_t *) _b; b 1180 libswscale/output.c #define r_b ((target == AV_PIX_FMT_RGB24) ? r : b) b 1181 libswscale/output.c #define b_r ((target == AV_PIX_FMT_RGB24) ? b : r) b 1197 libswscale/output.c const uint16_t *b = (const uint16_t *) _b; b 1223 libswscale/output.c dest[i * 2 + 0] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1]; b 1224 libswscale/output.c dest[i * 2 + 1] = r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2]; b 1229 libswscale/output.c const uint8_t *b = (const uint8_t *) _b; b 1249 libswscale/output.c dest[i] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1] + b 1250 libswscale/output.c ((r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2]) << 4); b 1252 libswscale/output.c dest[i * 2 + 0] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1]; b 1253 libswscale/output.c dest[i * 2 + 1] = r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2]; b 1274 libswscale/output.c const void *r, *g, *b; b 1305 libswscale/output.c b = c->table_bU[U + YUVRGB_TABLE_HEADROOM]; b 1308 libswscale/output.c r, g, b, y, target, hasAlpha); b 1336 libswscale/output.c *b = c->table_bU[U + YUVRGB_TABLE_HEADROOM]; b 1346 libswscale/output.c r, g, b, y, target, hasAlpha); b 1369 libswscale/output.c *b = c->table_bU[U + YUVRGB_TABLE_HEADROOM]; b 1379 libswscale/output.c r, g, b, y, target, hasAlpha); b 1391 libswscale/output.c *b = c->table_bU[U + YUVRGB_TABLE_HEADROOM]; b 1401 libswscale/output.c r, g, b, y, target, hasAlpha); b 1520 libswscale/output.c int r,g,b; b 1537 libswscale/output.c b = B >> (isrgb8 ? 6 : 7); b 1540 libswscale/output.c b = av_clip(b, 0, isrgb8 ? 3 : 1); b 1543 libswscale/output.c err[2] = B - b*(isrgb8 ? 85 : 255); b 1551 libswscale/output.c b = (((B >> 20) + A_DITHER(i + 17*2,y) -96)>>8); b 1554 libswscale/output.c b = av_clip_uintp2(b, 2); b 1558 libswscale/output.c b = (((B >> 21) + A_DITHER(i + 17*2,y)-256)>>8); b 1561 libswscale/output.c b = av_clip_uintp2(b, 1); b 1570 libswscale/output.c b = (((B >> 20) + X_DITHER(i + 17*2,y) - 96)>>8); b 1573 libswscale/output.c b = av_clip_uintp2(b, 2); b 1577 libswscale/output.c b = (((B >> 21) + X_DITHER(i + 17*2,y)-256)>>8); b 1580 libswscale/output.c b = av_clip_uintp2(b, 1); b 1587 libswscale/output.c dest[0] = r + 2*g + 8*b; b 1589 libswscale/output.c dest[0] = b + 2*g + 8*r; b 1591 libswscale/output.c dest[0] = r + 8*g + 64*b; b 1593 libswscale/output.c dest[0] = b + 4*g + 32*r; b 38 libswscale/ppc/swscale_altivec.c #define GET_LS(a,b,c,s) {\ b 39 libswscale/ppc/swscale_altivec.c vector signed short l2 = vec_ld(((b) << 1) + 16, s);\ b 43 libswscale/ppc/swscale_altivec.c #define GET_VF(a, b, c,d) {\ b 45 libswscale/ppc/swscale_altivec.c b = vec_mergel(c, d);\ b 48 libswscale/ppc/swscale_altivec.c #define GET_LS(a,b,c,s) {\ b 50 libswscale/ppc/swscale_altivec.c a = vec_vsx_ld(((b) << 1) + 16, s);\ b 52 libswscale/ppc/swscale_altivec.c #define GET_VF(a, b, c, d) {\ b 54 libswscale/ppc/swscale_altivec.c b = vec_mergeh(d, c);\ b 193 libswscale/ppc/swscale_altivec.c #define GET_VFD(a, b, f, vf0, vf1, per, vf, off) {\ b 194 libswscale/ppc/swscale_altivec.c vf1 = vec_ld((a * 2 * filterSize) + (b * 2) + 16 + off, f);\ b 208 libswscale/ppc/swscale_altivec.c #define GET_VFD(a, b, f, vf0, vf1, per, vf, off) {\ b 209 libswscale/ppc/swscale_altivec.c vf = vec_vsx_ld((a * 2 * filterSize) + (b * 2) + off, f);\ b 439 libswscale/ppc/yuv2rgb_altivec.c #define out_abgr(a, b, c, ptr) \ b 440 libswscale/ppc/yuv2rgb_altivec.c vec_mstrgb32(__typeof__(a), ((__typeof__(a)) { 255 }), c, b, a, ptr) b 441 libswscale/ppc/yuv2rgb_altivec.c #define out_bgra(a, b, c, ptr) \ b 442 libswscale/ppc/yuv2rgb_altivec.c vec_mstrgb32(__typeof__(a), c, b, a, ((__typeof__(a)) { 255 }), ptr) b 443 libswscale/ppc/yuv2rgb_altivec.c #define out_rgba(a, b, c, ptr) \ b 444 libswscale/ppc/yuv2rgb_altivec.c vec_mstrgb32(__typeof__(a), a, b, c, ((__typeof__(a)) { 255 }), ptr) b 445 libswscale/ppc/yuv2rgb_altivec.c #define out_argb(a, b, c, ptr) \ b 446 libswscale/ppc/yuv2rgb_altivec.c vec_mstrgb32(__typeof__(a), ((__typeof__(a)) { 255 }), a, b, c, ptr) b 447 libswscale/ppc/yuv2rgb_altivec.c #define out_rgb24(a, b, c, ptr) vec_mstrgb24(a, b, c, ptr) b 448 libswscale/ppc/yuv2rgb_altivec.c #define out_bgr24(a, b, c, ptr) vec_mstbgr24(a, b, c, ptr) b 201 libswscale/rgb2rgb.c uint16_t rgb, r, g, b; b 210 libswscale/rgb2rgb.c b = rgb & 0x00F; b 213 libswscale/rgb2rgb.c b = (b << 1) | ( b >> 3); b 214 libswscale/rgb2rgb.c *d++ = r | g | b; b 322 libswscale/rgb2rgb.c #define DEFINE_SHUFFLE_BYTES(a, b, c, d) \ b 323 libswscale/rgb2rgb.c void shuffle_bytes_ ## a ## b ## c ## d(const uint8_t *src, \ b 330 libswscale/rgb2rgb.c dst[i + 1] = src[i + b]; \ b 193 libswscale/rgb2rgb_template.c const int b = *s++; b 196 libswscale/rgb2rgb_template.c *d++ = (b >> 3) | ((g & 0xFC) << 3) | ((r & 0xF8) << 8); b 209 libswscale/rgb2rgb_template.c const int b = *s++; b 210 libswscale/rgb2rgb_template.c *d++ = (b >> 3) | ((g & 0xFC) << 3) | ((r & 0xF8) << 8); b 222 libswscale/rgb2rgb_template.c const int b = *s++; b 225 libswscale/rgb2rgb_template.c *d++ = (b >> 3) | ((g & 0xF8) << 2) | ((r & 0xF8) << 7); b 238 libswscale/rgb2rgb_template.c const int b = *s++; b 239 libswscale/rgb2rgb_template.c *d++ = (b >> 3) | ((g & 0xF8) << 2) | ((r & 0xF8) << 7); b 630 libswscale/rgb2rgb_template.c unsigned int b = src[6 * i + 0]; b 634 libswscale/rgb2rgb_template.c unsigned int Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; b 635 libswscale/rgb2rgb_template.c unsigned int V = ((rv * r + gv * g + bv * b) >> RGB2YUV_SHIFT) + 128; b 636 libswscale/rgb2rgb_template.c unsigned int U = ((ru * r + gu * g + bu * b) >> RGB2YUV_SHIFT) + 128; b 642 libswscale/rgb2rgb_template.c b = src[6 * i + 3]; b 646 libswscale/rgb2rgb_template.c Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; b 656 libswscale/rgb2rgb_template.c unsigned int b = src[6 * i + 0]; b 660 libswscale/rgb2rgb_template.c unsigned int Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; b 664 libswscale/rgb2rgb_template.c b = src[6 * i + 3]; b 668 libswscale/rgb2rgb_template.c Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; b 780 libswscale/swscale.c int x, y, z, r, g, b; b 803 libswscale/swscale.c b = c->xyz2rgb_matrix[2][0] * x + b 810 libswscale/swscale.c b = av_clip_uintp2(b, 12); b 816 libswscale/swscale.c AV_WB16(dst + xp + 2, c->rgbgamma[b] << 4); b 820 libswscale/swscale.c AV_WL16(dst + xp + 2, c->rgbgamma[b] << 4); b 836 libswscale/swscale.c int x, y, z, r, g, b; b 841 libswscale/swscale.c b = AV_RB16(src + xp + 2); b 845 libswscale/swscale.c b = AV_RL16(src + xp + 2); b 850 libswscale/swscale.c b = c->rgbgammainv[b>>4]; b 855 libswscale/swscale.c c->rgb2xyz_matrix[0][2] * b >> 12; b 858 libswscale/swscale.c c->rgb2xyz_matrix[1][2] * b >> 12; b 861 libswscale/swscale.c c->rgb2xyz_matrix[2][2] * b >> 12; b 941 libswscale/swscale.c int r, g, b, y, u, v, a = 0xff; b 947 libswscale/swscale.c b = p & 0xFF; b 951 libswscale/swscale.c b = ( i & 3) * 85; b 953 libswscale/swscale.c b = ( i >> 6 ) * 85; b 959 libswscale/swscale.c b = ( i & 1) * 255; b 961 libswscale/swscale.c r = g = b = i; b 964 libswscale/swscale.c b = ( i >> 3 ) * 255; b 979 libswscale/swscale.c y = av_clip_uint8((RY * r + GY * g + BY * b + ( 33 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); b 980 libswscale/swscale.c u = av_clip_uint8((RU * r + GU * g + BU * b + (257 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); b 981 libswscale/swscale.c v = av_clip_uint8((RV * r + GV * g + BV * b + (257 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); b 989 libswscale/swscale.c c->pal_rgb[i]= r + (g<<8) + (b<<16) + ((unsigned)a<<24); b 995 libswscale/swscale.c c->pal_rgb[i]= a + (r<<8) + (g<<16) + ((unsigned)b<<24); b 1001 libswscale/swscale.c c->pal_rgb[i]= a + (b<<8) + (g<<16) + ((unsigned)r<<24); b 1008 libswscale/swscale.c c->pal_rgb[i]= b + (g<<8) + (r<<16) + ((unsigned)a<<24); b 280 libswscale/swscale.h void sws_convVec(SwsVector *a, SwsVector *b); b 281 libswscale/swscale.h void sws_addVec(SwsVector *a, SwsVector *b); b 282 libswscale/swscale.h void sws_subVec(SwsVector *a, SwsVector *b); b 244 libswscale/utils.c static double getSplineCoeff(double a, double b, double c, double d, b 248 libswscale/utils.c return ((d * dist + c) * dist + b) * dist + a; b 251 libswscale/utils.c b + 2.0 * c + 3.0 * d, b 253 libswscale/utils.c -b - 3.0 * c - 6.0 * d, b 1743 libswscale/utils.c static SwsVector *sws_getConvVec(SwsVector *a, SwsVector *b) b 1745 libswscale/utils.c int length = a->length + b->length - 1; b 1753 libswscale/utils.c for (j = 0; j < b->length; j++) { b 1754 libswscale/utils.c vec->coeff[i + j] += a->coeff[i] * b->coeff[j]; b 1761 libswscale/utils.c static SwsVector *sws_sumVec(SwsVector *a, SwsVector *b) b 1763 libswscale/utils.c int length = FFMAX(a->length, b->length); b 1772 libswscale/utils.c for (i = 0; i < b->length; i++) b 1773 libswscale/utils.c vec->coeff[i + (length - 1) / 2 - (b->length - 1) / 2] += b->coeff[i]; b 1778 libswscale/utils.c static SwsVector *sws_diffVec(SwsVector *a, SwsVector *b) b 1780 libswscale/utils.c int length = FFMAX(a->length, b->length); b 1789 libswscale/utils.c for (i = 0; i < b->length; i++) b 1790 libswscale/utils.c vec->coeff[i + (length - 1) / 2 - (b->length - 1) / 2] -= b->coeff[i]; b 1822 libswscale/utils.c void sws_addVec(SwsVector *a, SwsVector *b) b 1824 libswscale/utils.c SwsVector *sum = sws_sumVec(a, b); b 1831 libswscale/utils.c void sws_subVec(SwsVector *a, SwsVector *b) b 1833 libswscale/utils.c SwsVector *diff = sws_diffVec(a, b); b 1840 libswscale/utils.c void sws_convVec(SwsVector *a, SwsVector *b) b 1842 libswscale/utils.c SwsVector *conv = sws_getConvVec(a, b); b 140 libswscale/x86/hscale_fast_bilinear_simd.c int b = ((xpos + xInc) >> 16) - xx; b 161 libswscale/x86/hscale_fast_bilinear_simd.c ((b + inc) << 2) | b 164 libswscale/x86/hscale_fast_bilinear_simd.c filterCode[fragmentPos + imm8OfPShufW2] = a | (b << 2) | b 540 libswscale/x86/rgb2rgb_template.c const int b = *s++; b 543 libswscale/x86/rgb2rgb_template.c *d++ = (b>>3) | ((g&0xFC)<<3) | ((r&0xF8)<<8); b 599 libswscale/x86/rgb2rgb_template.c const int b = *s++; b 600 libswscale/x86/rgb2rgb_template.c *d++ = (b>>3) | ((g&0xFC)<<3) | ((r&0xF8)<<8); b 654 libswscale/x86/rgb2rgb_template.c const int b = *s++; b 657 libswscale/x86/rgb2rgb_template.c *d++ = (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); b 713 libswscale/x86/rgb2rgb_template.c const int b = *s++; b 714 libswscale/x86/rgb2rgb_template.c *d++ = (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); b 33 libswscale/x86/swscale_template.c #define REAL_MOVNTQ(a,b) "movntq " #a ", " #b " \n\t" b 36 libswscale/x86/swscale_template.c #define REAL_MOVNTQ(a,b) "movq " #a ", " #b " \n\t" b 39 libswscale/x86/swscale_template.c #define MOVNTQ(a,b) REAL_MOVNTQ(a,b) b 316 libswscale/x86/swscale_template.c #define REAL_WRITEBGR32(dst, dstw, index, b, g, r, a, q0, q2, q3, t) \ b 317 libswscale/x86/swscale_template.c "movq "#b", "#q2" \n\t" /* B */\ b 319 libswscale/x86/swscale_template.c "punpcklbw "#g", "#b" \n\t" /* GBGBGBGB 0 */\ b 323 libswscale/x86/swscale_template.c "movq "#b", "#q0" \n\t" /* GBGBGBGB 0 */\ b 326 libswscale/x86/swscale_template.c "punpckhwd "#r", "#b" \n\t" /* ARGBARGB 1 */\ b 331 libswscale/x86/swscale_template.c MOVNTQ( b, 8(dst, index, 4))\ b 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) b 61 libswscale/yuv2rgb.c b = (void *)c->table_bU[U+YUVRGB_TABLE_HEADROOM]; b 65 libswscale/yuv2rgb.c dst[2 * i] = r[Y] + g[Y] + b[Y]; \ b 67 libswscale/yuv2rgb.c dst[2 * i + 1] = r[Y] + g[Y] + b[Y]; b 73 libswscale/yuv2rgb.c dst[6 * i + 2] = b[Y]; \ b 77 libswscale/yuv2rgb.c dst[6 * i + 5] = b[Y]; b 81 libswscale/yuv2rgb.c dst[6 * i + 0] = b[Y]; \ b 85 libswscale/yuv2rgb.c dst[6 * i + 3] = b[Y]; \ b 91 libswscale/yuv2rgb.c dst[2 * i] = r[Y] + g[Y] + b[Y] + (asrc[2 * i] << s); \ b 93 libswscale/yuv2rgb.c dst[2 * i + 1] = r[Y] + g[Y] + b[Y] + (asrc[2 * i + 1] << s); b 99 libswscale/yuv2rgb.c dst[12 * i + 4] = dst[12 * i + 5] = b[Y]; \ b 103 libswscale/yuv2rgb.c dst[12 * i + 10] = dst[12 * i + 11] = b[Y]; b 107 libswscale/yuv2rgb.c dst[12 * i + 0] = dst[12 * i + 1] = b[Y]; \ b 111 libswscale/yuv2rgb.c dst[12 * i + 6] = dst[12 * i + 7] = b[Y]; \ b 131 libswscale/yuv2rgb.c dst_type av_unused *r, *g, *b; \ b 394 libswscale/yuv2rgb.c b[Y + f16[0 + o]]; \ b 398 libswscale/yuv2rgb.c b[Y + f16[1 + o]]; b 424 libswscale/yuv2rgb.c b[Y + e16[0 + o]]; \ b 428 libswscale/yuv2rgb.c b[Y + e16[1 + o]]; b 454 libswscale/yuv2rgb.c b[Y + d16[0 + o]]; \ b 458 libswscale/yuv2rgb.c b[Y + d16[1 + o]]; b 486 libswscale/yuv2rgb.c b[Y + d64[0 + o]]; \ b 490 libswscale/yuv2rgb.c b[Y + d64[1 + o]]; b 538 libswscale/yuv2rgb.c b[Y + d128[0 + o]]; \ b 542 libswscale/yuv2rgb.c b[Y + d128[1 + o]]) << 4; \ b 590 libswscale/yuv2rgb.c b[Y + d128[0 + o]]; \ b 594 libswscale/yuv2rgb.c b[Y + d128[1 + o]]; b 32 tests/tiny_psnr.c #define FFMIN(a, b) ((a) > (b) ? (b) : (a)) b 86 tests/tiny_psnr.c int64_t b = exp16_table[i]; b 87 tests/tiny_psnr.c if (a < (b << 16)) b 90 tests/tiny_psnr.c a = ((a / b) << 16) + (((a % b) << 16) + b / 2) / b; b 102 tests/tiny_psnr.c uint64_t b = ret_sq + (1ULL << (s * 2)) + (ret << s) * 2; b 103 tests/tiny_psnr.c if (b <= a) { b 104 tests/tiny_psnr.c ret_sq = b; b 183 tests/tiny_psnr.c int64_t a, b; b 187 tests/tiny_psnr.c b = get_s16l(buf[1] + j); b 190 tests/tiny_psnr.c b = buf[1][j]; b 192 tests/tiny_psnr.c sse += (a - b) * (a - b); b 193 tests/tiny_psnr.c dist = abs(a - b); b 200 tests/tiny_psnr.c double dist, a, b; b 203 tests/tiny_psnr.c b = get_f64l(buf[1] + j); b 206 tests/tiny_psnr.c b = get_f32l(buf[1] + j); b 208 tests/tiny_psnr.c dist = fabs(a - b); b 209 tests/tiny_psnr.c sse_d += (a - b) * (a - b); b 37 tests/tiny_ssim.c #define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0) b 38 tests/tiny_ssim.c #define FFMIN(a,b) ((a) > (b) ? (b) : (a)) b 60 tests/tiny_ssim.c int b = pix2[x+y*stride2]; b 62 tests/tiny_ssim.c s2 += b; b 64 tests/tiny_ssim.c ss += b*b; b 65 tests/tiny_ssim.c s12 += a*b; b 42 tests/utils.c int r, g, b, r1, g1, b1; b 52 tests/utils.c b = p[2]; b 55 tests/utils.c b1 = b; b 57 tests/utils.c FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; b 60 tests/utils.c b = p[5]; b 63 tests/utils.c b1 += b; b 65 tests/utils.c FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; b 71 tests/utils.c b = p[2]; b 74 tests/utils.c b1 += b; b 76 tests/utils.c FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; b 79 tests/utils.c b = p[5]; b 82 tests/utils.c b1 += b; b 84 tests/utils.c FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; b 160 tests/utils.c static void put_pixel(int x, int y, int r, int g, int b) b 171 tests/utils.c p[2] = b; b 73 tests/videogen.c int r, g, b; b 82 tests/videogen.c int r, g, b, x, y, i, dx, dy, x1, y1; b 93 tests/videogen.c objs[i].b = myrnd(&seed, 256); b 107 tests/videogen.c b = ((x1 * 5) >> FRAC_BITS) & 0xff; b 108 tests/videogen.c put_pixel(x, y, r, g, b); b 118 tests/videogen.c b = myrnd(&seed1, 256); b 119 tests/videogen.c put_pixel(x + NOISE_X, y + NOISE_Y, r, g, b); b 131 tests/videogen.c b = p->b; b 135 tests/videogen.c b += myrnd(&seed1, 50); b 136 tests/videogen.c put_pixel(x + p->x, y + p->y, r, g, b); b 44 tools/qt-faststart.c #define MIN(a,b) ((a) > (b) ? (b) : (a)) b 49 tools/yuvcmp.c uint8_t *b; b 163 tools/yuvcmp.c b = Y[1] + x * 16 + y * 16 * width; b 169 tools/yuvcmp.c a[x + y * width] != b[x + y * width] ? '<' : ' '); b 173 tools/yuvcmp.c printf("%02x%c", b[x + y * width], b 174 tools/yuvcmp.c a[x + y * width] != b[x + y * width] ? '<' : ' ');