b 33 compat/cuda/cuda_runtime.h #define max(a, b) ((a) > (b) ? (a) : (b)) b 34 compat/cuda/cuda_runtime.h #define min(a, b) ((a) < (b) ? (a) : (b)) b 37 compat/cuda/cuda_runtime.h #define atomicAdd(a, b) (__atomic_fetch_add(a, b, __ATOMIC_SEQ_CST)) b 103 compat/cuda/cuda_runtime.h #define make_uchar2(a, b) ((uchar2){.x = a, .y = b}) b 104 compat/cuda/cuda_runtime.h #define make_ushort2(a, b) ((ushort2){.x = a, .y = b}) b 105 compat/cuda/cuda_runtime.h #define make_uchar4(a, b, c, d) ((uchar4){.x = a, .y = b, .z = c, .w = d}) b 106 compat/cuda/cuda_runtime.h #define make_ushort4(a, b, c, d) ((ushort4){.x = a, .y = b, .z = c, .w = d}) b 109 compat/cuda/cuda_runtime.h #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} b 113 compat/cuda/cuda_runtime.h TEX2D(uchar2, make_uchar2(a & 0xFF, b & 0xFF)) b 114 compat/cuda/cuda_runtime.h TEX2D(ushort2, make_ushort2(a & 0xFFFF, b & 0xFFFF)) b 115 compat/cuda/cuda_runtime.h TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) b 116 compat/cuda/cuda_runtime.h TEX2D(ushort4, make_ushort4(a & 0xFFFF, b & 0xFFFF, c & 0xFFFF, d & 0xFFFF)) b 64 compat/w32pthreads.h #define WaitForSingleObject(a, b) WaitForSingleObjectEx(a, b, FALSE) b 1508 fftools/cmdutils.c static int compare_codec_desc(const void *a, const void *b) b 1511 fftools/cmdutils.c const AVCodecDescriptor * const *db = b; b 648 fftools/ffmpeg.c void remove_avoptions(AVDictionary **a, AVDictionary *b) b 652 fftools/ffmpeg.c while ((t = av_dict_get(b, "", t, AV_DICT_IGNORE_SUFFIX))) { b 2942 fftools/ffmpeg.c static int compare_int64(const void *a, const void *b) b 2944 fftools/ffmpeg.c return FFDIFFSIGN(*(const int64_t *)a, *(const int64_t *)b); b 632 fftools/ffmpeg.h void remove_avoptions(AVDictionary **a, AVDictionary *b); b 1061 fftools/ffplay.c static inline int compute_mod(int a, int b) b 1063 fftools/ffplay.c return a < 0 ? a%b + b : a%b; b 1103 fftools/ffplay.c int b = s->sample_array[(idx + 4 * channels) % SAMPLE_ARRAY_SIZE]; b 1107 fftools/ffplay.c if (h < score && (b ^ c) < 0) { b 1190 fftools/ffplay.c int b = (nb_display_channels == 2 ) ? sqrt(w * hypot(data[1][2 * y + 0], data[1][2 * y + 1])) b 1193 fftools/ffplay.c b = FFMIN(b, 255); b 1195 fftools/ffplay.c *pixels = (a << 16) + (b << 8) + ((a+b) >> 1); b 1892 fftools/ffprobe.c size_t l, t, r, b; b 1894 fftools/ffprobe.c &l, &t, &r, &b); b 1898 fftools/ffprobe.c print_int("bound_bottom", b); b 106 libavcodec/a64multienc.c int a, b; b 121 libavcodec/a64multienc.c for(b = 0; b <= distance; b++) { b 122 libavcodec/a64multienc.c dither[c->mc_luma_vals[i] + b] = b * (DITHERSTEPS - 1) / distance; b 54 libavcodec/aac_defines.h #define AAC_MADD28(x, y, a, b) (int)((((int64_t)(x) * (y)) + \ b 55 libavcodec/aac_defines.h ((int64_t)(a) * (b)) + \ b 57 libavcodec/aac_defines.h #define AAC_MADD30(x, y, a, b) (int)((((int64_t)(x) * (y)) + \ b 58 libavcodec/aac_defines.h ((int64_t)(a) * (b)) + \ b 60 libavcodec/aac_defines.h #define AAC_MADD30_V8(x, y, a, b, c, d, e, f) (int)((((int64_t)(x) * (y)) + \ b 61 libavcodec/aac_defines.h ((int64_t)(a) * (b)) + \ b 65 libavcodec/aac_defines.h #define AAC_MSUB30(x, y, a, b) (int)((((int64_t)(x) * (y)) - \ b 66 libavcodec/aac_defines.h ((int64_t)(a) * (b)) + \ b 68 libavcodec/aac_defines.h #define AAC_MSUB30_V8(x, y, a, b, c, d, e, f) (int)((((int64_t)(x) * (y)) + \ b 69 libavcodec/aac_defines.h ((int64_t)(a) * (b)) - \ b 103 libavcodec/aac_defines.h #define AAC_MADD28(x, y, a, b) ((x) * (y) + (a) * (b)) b 104 libavcodec/aac_defines.h #define AAC_MADD30(x, y, a, b) ((x) * (y) + (a) * (b)) b 105 libavcodec/aac_defines.h #define AAC_MADD30_V8(x, y, a, b, c, d, e, f) ((x) * (y) + (a) * (b) + \ b 107 libavcodec/aac_defines.h #define AAC_MSUB30(x, y, a, b) ((x) * (y) - (a) * (b)) b 108 libavcodec/aac_defines.h #define AAC_MSUB30_V8(x, y, a, b, c, d, e, f) ((x) * (y) + (a) * (b) - \ b 487 libavcodec/aaccoder.c int b; b 494 libavcodec/aaccoder.c &b, NULL, 0); b 495 libavcodec/aaccoder.c bits += b; b 395 libavcodec/aaccoder_twoloop.h int b; b 404 libavcodec/aaccoder_twoloop.h &b, &sqenergy, b 406 libavcodec/aaccoder_twoloop.h bits += b; b 476 libavcodec/aaccoder_twoloop.h int b; b 485 libavcodec/aaccoder_twoloop.h &b, &sqenergy, b 487 libavcodec/aaccoder_twoloop.h bits += b; b 632 libavcodec/aaccoder_twoloop.h int b; b 641 libavcodec/aaccoder_twoloop.h &b, &sqenergy, b 643 libavcodec/aaccoder_twoloop.h bits += b; b 669 libavcodec/aaccoder_twoloop.h int b; b 678 libavcodec/aaccoder_twoloop.h &b, &sqenergy, b 680 libavcodec/aaccoder_twoloop.h bits += b; b 272 libavcodec/aacdec.c static inline uint32_t latm_get_value(GetBitContext *b) b 274 libavcodec/aacdec.c int length = get_bits(b, 2); b 276 libavcodec/aacdec.c return get_bits_long(b, (length+1)*8); b 1841 libavcodec/aacdec_template.c uint32_t b; b 1846 libavcodec/aacdec_template.c b = GET_CACHE(re, gb); b 1847 libavcodec/aacdec_template.c b = 31 - av_log2(~b); b 1849 libavcodec/aacdec_template.c if (b > 8) { b 1854 libavcodec/aacdec_template.c SKIP_BITS(re, gb, b + 1); b 1855 libavcodec/aacdec_template.c b += 4; b 1856 libavcodec/aacdec_template.c n = (1 << b) + SHOW_UBITS(re, gb, b); b 1857 libavcodec/aacdec_template.c LAST_SKIP_BITS(re, gb, b); b 188 libavcodec/aacenc_utils.h static av_always_inline float bval2bmax(float b) b 190 libavcodec/aacenc_utils.h return 0.001f + 0.0035f * (b*b*b) / (15.5f*15.5f*15.5f); b 96 libavcodec/aacps.c int b, num = ps->nr_ ## PAR ## _par; \ b 101 libavcodec/aacps.c for (b = 0; b < num; b++) { \ b 102 libavcodec/aacps.c int val = PAR[e_prev][b] + get_vlc2(gb, vlc_table, 9, 3) - OFFSET; \ b 104 libavcodec/aacps.c PAR[e][b] = val; \ b 110 libavcodec/aacps.c for (b = 0; b < num; b++) { \ b 113 libavcodec/aacps.c PAR[e][b] = val; \ b 124 libavcodec/aacps.c READ_PAR_DATA(iid, huff_offset[table_idx], 0, FFABS(ps->iid_par[e][b]) > 7 + 8 * ps->iid_quant) b 125 libavcodec/aacps.c READ_PAR_DATA(icc, huff_offset[table_idx], 0, ps->icc_par[e][b] > 7U) b 251 libavcodec/aacps.c int b; b 265 libavcodec/aacps.c for (b = 0; b < ps->nr_iid_par; b++) { b 266 libavcodec/aacps.c if (FFABS(ps->iid_par[ps->num_env][b]) > 7 + 8 * ps->iid_quant) { b 273 libavcodec/aacps.c for (b = 0; b < ps->nr_iid_par; b++) { b 274 libavcodec/aacps.c if (ps->icc_par[ps->num_env][b] > 7U) { b 466 libavcodec/aacps.c int b; b 468 libavcodec/aacps.c b = 9; b 470 libavcodec/aacps.c b = 4; b 473 libavcodec/aacps.c for (; b >= 0; b--) { b 474 libavcodec/aacps.c par_mapped[2*b+1] = par_mapped[2*b] = par[b]; b 737 libavcodec/aacps.c int b = k_to_i[k]; b 762 libavcodec/aacps.c transient_gain[b], g_decay_slope, nL - n0); b 822 libavcodec/aacps.c int e, b, k; b 893 libavcodec/aacps.c for (b = 0; b < NR_PAR_BANDS[is34]; b++) { b 895 libavcodec/aacps.c h11 = H_LUT[iid_mapped[e][b] + 7 + 23 * ps->iid_quant][icc_mapped[e][b]][0]; b 896 libavcodec/aacps.c h12 = H_LUT[iid_mapped[e][b] + 7 + 23 * ps->iid_quant][icc_mapped[e][b]][1]; b 897 libavcodec/aacps.c h21 = H_LUT[iid_mapped[e][b] + 7 + 23 * ps->iid_quant][icc_mapped[e][b]][2]; b 898 libavcodec/aacps.c h22 = H_LUT[iid_mapped[e][b] + 7 + 23 * ps->iid_quant][icc_mapped[e][b]][3]; b 900 libavcodec/aacps.c if (!PS_BASELINE && ps->enable_ipdopd && b < NR_IPDOPD_BANDS[is34]) { b 905 libavcodec/aacps.c int opd_idx = opd_hist[b] * 8 + opd_mapped[e][b]; b 906 libavcodec/aacps.c int ipd_idx = ipd_hist[b] * 8 + ipd_mapped[e][b]; b 911 libavcodec/aacps.c opd_hist[b] = opd_idx & 0x3F; b 912 libavcodec/aacps.c ipd_hist[b] = ipd_idx & 0x3F; b 924 libavcodec/aacps.c H11[1][e+1][b] = h11i; b 925 libavcodec/aacps.c H12[1][e+1][b] = h12i; b 926 libavcodec/aacps.c H21[1][e+1][b] = h21i; b 927 libavcodec/aacps.c H22[1][e+1][b] = h22i; b 929 libavcodec/aacps.c H11[0][e+1][b] = h11; b 930 libavcodec/aacps.c H12[0][e+1][b] = h12; b 931 libavcodec/aacps.c H21[0][e+1][b] = h21; b 932 libavcodec/aacps.c H22[0][e+1][b] = h22; b 943 libavcodec/aacps.c b = k_to_i[k]; b 944 libavcodec/aacps.c h[0][0] = H11[0][e][b]; b 945 libavcodec/aacps.c h[0][1] = H12[0][e][b]; b 946 libavcodec/aacps.c h[0][2] = H21[0][e][b]; b 947 libavcodec/aacps.c h[0][3] = H22[0][e][b]; b 951 libavcodec/aacps.c h[1][0] = -H11[1][e][b]; b 952 libavcodec/aacps.c h[1][1] = -H12[1][e][b]; b 953 libavcodec/aacps.c h[1][2] = -H21[1][e][b]; b 954 libavcodec/aacps.c h[1][3] = -H22[1][e][b]; b 956 libavcodec/aacps.c h[1][0] = H11[1][e][b]; b 957 libavcodec/aacps.c h[1][1] = H12[1][e][b]; b 958 libavcodec/aacps.c h[1][2] = H21[1][e][b]; b 959 libavcodec/aacps.c h[1][3] = H22[1][e][b]; b 963 libavcodec/aacps.c h_step[0][0] = AAC_MSUB31_V3(H11[0][e+1][b], h[0][0], width); b 964 libavcodec/aacps.c h_step[0][1] = AAC_MSUB31_V3(H12[0][e+1][b], h[0][1], width); b 965 libavcodec/aacps.c h_step[0][2] = AAC_MSUB31_V3(H21[0][e+1][b], h[0][2], width); b 966 libavcodec/aacps.c h_step[0][3] = AAC_MSUB31_V3(H22[0][e+1][b], h[0][3], width); b 968 libavcodec/aacps.c h_step[1][0] = AAC_MSUB31_V3(H11[1][e+1][b], h[1][0], width); b 969 libavcodec/aacps.c h_step[1][1] = AAC_MSUB31_V3(H12[1][e+1][b], h[1][1], width); b 970 libavcodec/aacps.c h_step[1][2] = AAC_MSUB31_V3(H21[1][e+1][b], h[1][2], width); b 971 libavcodec/aacps.c h_step[1][3] = AAC_MSUB31_V3(H22[1][e+1][b], h[1][3], width); b 42 libavcodec/aacps_tablegen_template.c void ARRAY_RENAME(3d_array) (const void *p, int b, int c, int d) b 46 libavcodec/aacps_tablegen_template.c for (i = 0; i < b; i++) { b 54 libavcodec/aacps_tablegen_template.c void ARRAY_RENAME(4d_array) (const void *p, int a, int b, int c, int d) b 60 libavcodec/aacps_tablegen_template.c ARRAY_RENAME(3d_array)(f, b, c, d); b 62 libavcodec/aacps_tablegen_template.c f += b * c * d; b 121 libavcodec/aacsbr_template.c static int qsort_comparison_function_int16(const void *a, const void *b) b 123 libavcodec/aacsbr_template.c return *(const int16_t *)a - *(const int16_t *)b; b 70 libavcodec/ac3.h #define AC3_MUL(a,b) ((((int64_t) (a)) * (b))>>12) b 89 libavcodec/ac3.h #define AC3_MUL(a,b) ((a) * (b)) b 1547 libavcodec/ac3enc.c int b, q; b 1556 libavcodec/ac3enc.c b = s->ref_bap[ch][blk][i]; b 1557 libavcodec/ac3enc.c switch (b) { b 1565 libavcodec/ac3enc.c default: put_sbits(&s->pb, b-1, q); break; b 1578 libavcodec/ac3enc.c static unsigned int mul_poly(unsigned int a, unsigned int b, unsigned int poly) b 1585 libavcodec/ac3enc.c c ^= b; b 1587 libavcodec/ac3enc.c b = b << 1; b 1588 libavcodec/ac3enc.c if (b & (1 << 16)) b 1589 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 574 libavcodec/agm.c uint8_t r = 0, g = 0, b = 0; b 585 libavcodec/agm.c dst[x*3+2] = bytestream2_get_byteu(gbyte) + b; b 586 libavcodec/agm.c b = dst[x*3+2]; b 32 libavcodec/alacdsp.c int32_t a, b; b 35 libavcodec/alacdsp.c b = buffer[1][i]; b 37 libavcodec/alacdsp.c a -= (b * decorr_left_weight) >> decorr_shift; b 38 libavcodec/alacdsp.c b += a; b 40 libavcodec/alacdsp.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 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 537 libavcodec/alsdec.c unsigned int b; b 563 libavcodec/alsdec.c for (b = 0; b < ctx->num_blocks; b++) b 564 libavcodec/alsdec.c div_blocks[b] = ctx->sconf.frame_length >> div_blocks[b]; b 569 libavcodec/alsdec.c for (b = 0; b < ctx->num_blocks; b++) { b 570 libavcodec/alsdec.c if (remaining <= div_blocks[b]) { b 571 libavcodec/alsdec.c div_blocks[b] = remaining; b 572 libavcodec/alsdec.c ctx->num_blocks = b + 1; b 576 libavcodec/alsdec.c remaining -= div_blocks[b]; b 818 libavcodec/alsdec.c unsigned int b = av_clip((av_ceil_log2(bd->block_length) - 3) >> 1, 0, 5); b 834 libavcodec/alsdec.c k [sb] = s[sb] > b ? s[sb] - b : 0; b 1075 libavcodec/alsdec.c static void zero_remaining(unsigned int b, unsigned int b_max, b 1080 libavcodec/alsdec.c while (b < b_max) b 1081 libavcodec/alsdec.c count += div_blocks[b++]; b 1095 libavcodec/alsdec.c unsigned int b; b 1112 libavcodec/alsdec.c for (b = 0; b < ctx->num_blocks; b++) { b 1113 libavcodec/alsdec.c bd.block_length = div_blocks[b]; b 1117 libavcodec/alsdec.c zero_remaining(b, ctx->num_blocks, div_blocks, bd.raw_samples); b 1120 libavcodec/alsdec.c bd.raw_samples += div_blocks[b]; b 1136 libavcodec/alsdec.c unsigned int b; b 1167 libavcodec/alsdec.c for (b = 0; b < ctx->num_blocks; b++) { b 1170 libavcodec/alsdec.c bd[0].block_length = div_blocks[b]; b 1171 libavcodec/alsdec.c bd[1].block_length = div_blocks[b]; b 1188 libavcodec/alsdec.c for (s = 0; s < div_blocks[b]; s++) b 1191 libavcodec/alsdec.c for (s = 0; s < div_blocks[b]; s++) b 1195 libavcodec/alsdec.c offset += div_blocks[b]; b 1209 libavcodec/alsdec.c zero_remaining(b, ctx->num_blocks, div_blocks, bd[0].raw_samples); b 1210 libavcodec/alsdec.c zero_remaining(b, ctx->num_blocks, div_blocks, bd[1].raw_samples); b 1383 libavcodec/alsdec.c static SoftFloat_IEEE754 multiply(SoftFloat_IEEE754 a, SoftFloat_IEEE754 b) { b 1393 libavcodec/alsdec.c sign = a.sign ^ b.sign; b 1396 libavcodec/alsdec.c mantissa_temp = (uint64_t)a.mant * (uint64_t)b.mant; b 1434 libavcodec/alsdec.c return_val |= ((unsigned)av_clip(a.exp + b.exp + bit_count - 47, -126, 127) << 23) & 0x7F800000; b 1686 libavcodec/alsdec.c int b, ret; b 1703 libavcodec/alsdec.c for (b = 0; b < ctx->num_blocks; b++) { b 1704 libavcodec/alsdec.c bd.block_length = div_blocks[b]; b 1756 libavcodec/alsdec.c offset += div_blocks[b]; b 108 libavcodec/ansi.c int r, g, b; b 114 libavcodec/ansi.c for (b = 0; b < 6; b++) b 115 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 59 libavcodec/arm/sbcdsp_init_arm.c #define PERM(a, b, c, d) { \ b 61 libavcodec/arm/sbcdsp_init_arm.c (b * 2) + 1, (b * 2) + 0, \ b 66 libavcodec/arm/sbcdsp_init_arm.c #define PERM(a, b, c, d) { \ b 68 libavcodec/arm/sbcdsp_init_arm.c (b * 2) + 0, (b * 2) + 1, \ b 332 libavcodec/atrac3.c int i, b, c, m; b 352 libavcodec/atrac3.c for (b = 0; b <= num_bands; b++) b 353 libavcodec/atrac3.c band_flags[b] = get_bits1(gb); b 364 libavcodec/atrac3.c for (b = 0; b < (num_bands + 1) * 4; b++) { b 367 libavcodec/atrac3.c if (band_flags[b >> 2] == 0) b 381 libavcodec/atrac3.c cmp->pos = b * 64 + get_bits(gb, 6); b 416 libavcodec/atrac3.c int b, j; b 421 libavcodec/atrac3.c for (b = 0; b <= num_bands; b++) { b 422 libavcodec/atrac3.c gain[b].num_points = get_bits(gb, 3); b 423 libavcodec/atrac3.c level = gain[b].lev_code; b 424 libavcodec/atrac3.c loc = gain[b].loc_code; b 426 libavcodec/atrac3.c for (j = 0; j < gain[b].num_points; j++) { b 435 libavcodec/atrac3.c for (; b < 4 ; b++) b 436 libavcodec/atrac3.c gain[b].num_points = 0; b 53 libavcodec/atrac3plus.c int i, b; b 61 libavcodec/atrac3plus.c for (b = min_len; b <= max_len; b++) { b 64 libavcodec/atrac3plus.c bits[index] = b; b 101 libavcodec/atrac9dec.c static inline int parse_gradient(ATRAC9Context *s, ATRAC9BlockData *b, b 110 libavcodec/atrac9dec.c b->grad_mode = get_bits(gb, 2); b 111 libavcodec/atrac9dec.c if (b->grad_mode) { b 122 libavcodec/atrac9dec.c b->grad_boundary = get_bits(gb, 4); b 127 libavcodec/atrac9dec.c if (b->grad_boundary > b->q_unit_cnt) b 136 libavcodec/atrac9dec.c for (int i = 0; i <= b->q_unit_cnt; i++) b 137 libavcodec/atrac9dec.c b->gradient[i] = grad_value[i >= grad_range[0]]; b 140 libavcodec/atrac9dec.c b->gradient[i] = base + sign*((int)(scale*curve[i - grad_range[0]])); b 145 libavcodec/atrac9dec.c static inline void calc_precision(ATRAC9Context *s, ATRAC9BlockData *b, b 149 libavcodec/atrac9dec.c for (int i = 1; i < b->q_unit_cnt; i++) { b 157 libavcodec/atrac9dec.c if (b->grad_mode) { b 158 libavcodec/atrac9dec.c for (int i = 0; i < b->q_unit_cnt; i++) { b 160 libavcodec/atrac9dec.c c->precision_coarse[i] += c->precision_mask[i] - b->gradient[i]; b 163 libavcodec/atrac9dec.c switch (b->grad_mode) { b 176 libavcodec/atrac9dec.c for (int i = 0; i < b->q_unit_cnt; i++) b 177 libavcodec/atrac9dec.c c->precision_coarse[i] = c->scalefactors[i] - b->gradient[i]; b 181 libavcodec/atrac9dec.c for (int i = 0; i < b->q_unit_cnt; i++) b 184 libavcodec/atrac9dec.c for (int i = 0; i < b->grad_boundary; i++) b 187 libavcodec/atrac9dec.c for (int i = 0; i < b->q_unit_cnt; i++) { b 196 libavcodec/atrac9dec.c static inline int parse_band_ext(ATRAC9Context *s, ATRAC9BlockData *b, b 201 libavcodec/atrac9dec.c if (b->has_band_ext) { b 202 libavcodec/atrac9dec.c if (b->q_unit_cnt < 13 || b->q_unit_cnt > 20) b 204 libavcodec/atrac9dec.c ext_band = at9_tab_band_ext_group[b->q_unit_cnt - 13][2]; b 206 libavcodec/atrac9dec.c b->channel[1].band_ext = get_bits(gb, 2); b 207 libavcodec/atrac9dec.c b->channel[1].band_ext = ext_band > 2 ? b->channel[1].band_ext : 4; b 213 libavcodec/atrac9dec.c b->has_band_ext_data = get_bits1(gb); b 214 libavcodec/atrac9dec.c if (!b->has_band_ext_data) b 217 libavcodec/atrac9dec.c if (!b->has_band_ext) { b 223 libavcodec/atrac9dec.c b->channel[0].band_ext = get_bits(gb, 2); b 224 libavcodec/atrac9dec.c b->channel[0].band_ext = ext_band > 2 ? b->channel[0].band_ext : 4; b 228 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[i]; b 240 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[i]; b 251 libavcodec/atrac9dec.c static inline int read_scalefactors(ATRAC9Context *s, ATRAC9BlockData *b, b 274 libavcodec/atrac9dec.c for (int i = 1; i < b->band_ext_q_unit; i++) { b 279 libavcodec/atrac9dec.c for (int i = 0; i < b->band_ext_q_unit; i++) b 287 libavcodec/atrac9dec.c for (int i = 0; i < b->band_ext_q_unit; i++) b 294 libavcodec/atrac9dec.c channel_idx ? b->channel[0].scalefactors : b 296 libavcodec/atrac9dec.c const int baseline_len = mode == 4 ? b->q_unit_cnt_prev : b 297 libavcodec/atrac9dec.c channel_idx ? b->band_ext_q_unit : b 298 libavcodec/atrac9dec.c b->q_unit_cnt_prev; b 301 libavcodec/atrac9dec.c const int unit_cnt = FFMIN(b->band_ext_q_unit, baseline_len); b 309 libavcodec/atrac9dec.c for (int i = unit_cnt; i < b->band_ext_q_unit; i++) b 315 libavcodec/atrac9dec.c const int *baseline = channel_idx ? b->channel[0].scalefactors : b 317 libavcodec/atrac9dec.c const int baseline_len = channel_idx ? b->band_ext_q_unit : b 318 libavcodec/atrac9dec.c b->q_unit_cnt_prev; b 322 libavcodec/atrac9dec.c const int unit_cnt = FFMIN(b->band_ext_q_unit, baseline_len); b 335 libavcodec/atrac9dec.c for (int i = unit_cnt; i < b->band_ext_q_unit; i++) b 341 libavcodec/atrac9dec.c for (int i = 0; i < b->band_ext_q_unit; i++) b 350 libavcodec/atrac9dec.c static inline void calc_codebook_idx(ATRAC9Context *s, ATRAC9BlockData *b, b 394 libavcodec/atrac9dec.c static inline void read_coeffs_coarse(ATRAC9Context *s, ATRAC9BlockData *b, b 430 libavcodec/atrac9dec.c static inline void read_coeffs_fine(ATRAC9Context *s, ATRAC9BlockData *b, b 448 libavcodec/atrac9dec.c static inline void dequantize(ATRAC9Context *s, ATRAC9BlockData *b, b 468 libavcodec/atrac9dec.c static inline void apply_intensity_stereo(ATRAC9Context *s, ATRAC9BlockData *b, b 471 libavcodec/atrac9dec.c float *src = b->channel[ b->cpe_base_channel].coeffs; b 472 libavcodec/atrac9dec.c float *dst = b->channel[!b->cpe_base_channel].coeffs; b 477 libavcodec/atrac9dec.c if (b->q_unit_cnt <= b->stereo_q_unit) b 480 libavcodec/atrac9dec.c for (int i = b->stereo_q_unit; i < b->q_unit_cnt; i++) { b 481 libavcodec/atrac9dec.c const int sign = b->is_signs[i]; b 489 libavcodec/atrac9dec.c static inline void apply_scalefactors(ATRAC9Context *s, ATRAC9BlockData *b, b 493 libavcodec/atrac9dec.c float *coeffs = b->channel[i].coeffs; b 494 libavcodec/atrac9dec.c for (int j = 0; j < b->q_unit_cnt; j++) { b 497 libavcodec/atrac9dec.c const int scalefactor = b->channel[i].scalefactors[j]; b 532 libavcodec/atrac9dec.c static inline void apply_band_extension(ATRAC9Context *s, ATRAC9BlockData *b, b 536 libavcodec/atrac9dec.c b->q_unit_cnt, b 537 libavcodec/atrac9dec.c at9_tab_band_ext_group[b->q_unit_cnt - 13][0], b 538 libavcodec/atrac9dec.c at9_tab_band_ext_group[b->q_unit_cnt - 13][1], b 550 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[ch]; b 563 libavcodec/atrac9dec.c switch (at9_tab_band_ext_group[b->q_unit_cnt - 13][2]) { b 635 libavcodec/atrac9dec.c ATRAC9BlockData *b, AVFrame *frame, b 643 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[0]; b 645 libavcodec/atrac9dec.c c->q_unit_cnt = b->q_unit_cnt = 2; b 651 libavcodec/atrac9dec.c for (int i = 0; i < b->q_unit_cnt; i++) { b 664 libavcodec/atrac9dec.c dequantize (s, b, c); b 665 libavcodec/atrac9dec.c apply_scalefactors(s, b, 0); b 679 libavcodec/atrac9dec.c b->reuseable = 0; b 680 libavcodec/atrac9dec.c b->band_count = get_bits(gb, 4) + min_band_count; b 681 libavcodec/atrac9dec.c b->q_unit_cnt = at9_tab_band_q_unit_map[b->band_count]; b 683 libavcodec/atrac9dec.c b->band_ext_q_unit = b->stereo_q_unit = b->q_unit_cnt; b 685 libavcodec/atrac9dec.c if (b->band_count > at9_tab_sri_max_bands[s->samplerate_idx]) { b 687 libavcodec/atrac9dec.c b->band_count); b 693 libavcodec/atrac9dec.c if (stereo_band > b->band_count) { b 698 libavcodec/atrac9dec.c b->stereo_q_unit = at9_tab_band_q_unit_map[stereo_band]; b 701 libavcodec/atrac9dec.c b->has_band_ext = get_bits1(gb); b 702 libavcodec/atrac9dec.c if (b->has_band_ext) { b 704 libavcodec/atrac9dec.c if (ext_band < b->band_count) { b 709 libavcodec/atrac9dec.c b->band_ext_q_unit = at9_tab_band_q_unit_map[ext_band]; b 711 libavcodec/atrac9dec.c b->reuseable = 1; b 713 libavcodec/atrac9dec.c if (!b->reuseable) { b 719 libavcodec/atrac9dec.c if (parse_gradient(s, b, gb)) b 723 libavcodec/atrac9dec.c b->cpe_base_channel = 0; b 725 libavcodec/atrac9dec.c b->cpe_base_channel = get_bits1(gb); b 727 libavcodec/atrac9dec.c for (int i = b->stereo_q_unit; i < b->q_unit_cnt; i++) b 728 libavcodec/atrac9dec.c b->is_signs[i] = 1 - 2*get_bits1(gb); b 730 libavcodec/atrac9dec.c for (int i = 0; i < FF_ARRAY_ELEMS(b->is_signs); i++) b 731 libavcodec/atrac9dec.c b->is_signs[i] = 1; b 736 libavcodec/atrac9dec.c if (parse_band_ext(s, b, gb, stereo)) b 741 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[i]; b 742 libavcodec/atrac9dec.c c->q_unit_cnt = i == b->cpe_base_channel ? b->q_unit_cnt : b 743 libavcodec/atrac9dec.c b->stereo_q_unit; b 744 libavcodec/atrac9dec.c if (read_scalefactors(s, b, c, gb, i, first_in_pkt)) b 747 libavcodec/atrac9dec.c calc_precision (s, b, c); b 748 libavcodec/atrac9dec.c calc_codebook_idx (s, b, c); b 749 libavcodec/atrac9dec.c read_coeffs_coarse(s, b, c, gb); b 750 libavcodec/atrac9dec.c read_coeffs_fine (s, b, c, gb); b 751 libavcodec/atrac9dec.c dequantize (s, b, c); b 754 libavcodec/atrac9dec.c b->q_unit_cnt_prev = b->has_band_ext ? b->band_ext_q_unit : b->q_unit_cnt; b 756 libavcodec/atrac9dec.c apply_intensity_stereo(s, b, stereo); b 757 libavcodec/atrac9dec.c apply_scalefactors (s, b, stereo); b 759 libavcodec/atrac9dec.c if (b->has_band_ext && b->has_band_ext_data) b 760 libavcodec/atrac9dec.c apply_band_extension (s, b, stereo); b 764 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[i]; b 814 libavcodec/atrac9dec.c ATRAC9BlockData *b = &s->block[j]; b 817 libavcodec/atrac9dec.c ATRAC9ChannelData *c = &b->channel[i]; b 123 libavcodec/audiotoolboxdec.c static int ffat_compare_channel_descriptions(const void* a, const void* b) b 126 libavcodec/audiotoolboxdec.c const AudioChannelDescription* db = 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 319 libavcodec/bink.c #define CHECK_READ_VAL(gb, b, t) \ b 320 libavcodec/bink.c if (!b->cur_dec || (b->cur_dec > b->cur_ptr)) \ b 322 libavcodec/bink.c t = get_bits(gb, b->len); \ b 324 libavcodec/bink.c b->cur_dec = NULL; \ b 328 libavcodec/bink.c static int read_runs(AVCodecContext *avctx, GetBitContext *gb, Bundle *b) b 333 libavcodec/bink.c CHECK_READ_VAL(gb, b, t); b 334 libavcodec/bink.c dec_end = b->cur_dec + t; b 335 libavcodec/bink.c if (dec_end > b->data_end) { b 343 libavcodec/bink.c memset(b->cur_dec, v, t); b 344 libavcodec/bink.c b->cur_dec += t; b 346 libavcodec/bink.c while (b->cur_dec < dec_end) b 347 libavcodec/bink.c *b->cur_dec++ = GET_HUFF(gb, b->tree); b 352 libavcodec/bink.c static int read_motion_values(AVCodecContext *avctx, GetBitContext *gb, Bundle *b) b 357 libavcodec/bink.c CHECK_READ_VAL(gb, b, t); b 358 libavcodec/bink.c dec_end = b->cur_dec + t; b 359 libavcodec/bink.c if (dec_end > b->data_end) { b 371 libavcodec/bink.c memset(b->cur_dec, v, t); b 372 libavcodec/bink.c b->cur_dec += t; b 374 libavcodec/bink.c while (b->cur_dec < dec_end) { b 375 libavcodec/bink.c v = GET_HUFF(gb, b->tree); b 380 libavcodec/bink.c *b->cur_dec++ = v; b 388 libavcodec/bink.c static int read_block_types(AVCodecContext *avctx, GetBitContext *gb, Bundle *b) b 395 libavcodec/bink.c CHECK_READ_VAL(gb, b, t); b 399 libavcodec/bink.c b->cur_dec = NULL; b 403 libavcodec/bink.c dec_end = b->cur_dec + t; b 404 libavcodec/bink.c if (dec_end > b->data_end) { b 412 libavcodec/bink.c memset(b->cur_dec, v, t); b 413 libavcodec/bink.c b->cur_dec += t; b 415 libavcodec/bink.c while (b->cur_dec < dec_end) { b 416 libavcodec/bink.c v = GET_HUFF(gb, b->tree); b 419 libavcodec/bink.c *b->cur_dec++ = v; b 423 libavcodec/bink.c if (dec_end - b->cur_dec < run) b 425 libavcodec/bink.c memset(b->cur_dec, last, run); b 426 libavcodec/bink.c b->cur_dec += run; b 433 libavcodec/bink.c static int read_patterns(AVCodecContext *avctx, GetBitContext *gb, Bundle *b) b 438 libavcodec/bink.c CHECK_READ_VAL(gb, b, t); b 439 libavcodec/bink.c dec_end = b->cur_dec + t; b 440 libavcodec/bink.c if (dec_end > b->data_end) { b 444 libavcodec/bink.c while (b->cur_dec < dec_end) { b 447 libavcodec/bink.c v = GET_HUFF(gb, b->tree); b 448 libavcodec/bink.c v |= GET_HUFF(gb, b->tree) << 4; b 449 libavcodec/bink.c *b->cur_dec++ = v; b 455 libavcodec/bink.c static int read_colors(GetBitContext *gb, Bundle *b, BinkContext *c) b 460 libavcodec/bink.c CHECK_READ_VAL(gb, b, t); b 461 libavcodec/bink.c dec_end = b->cur_dec + t; b 462 libavcodec/bink.c if (dec_end > b->data_end) { b 470 libavcodec/bink.c v = GET_HUFF(gb, b->tree); b 477 libavcodec/bink.c memset(b->cur_dec, v, t); b 478 libavcodec/bink.c b->cur_dec += t; b 480 libavcodec/bink.c while (b->cur_dec < dec_end) { b 484 libavcodec/bink.c v = GET_HUFF(gb, b->tree); b 491 libavcodec/bink.c *b->cur_dec++ = v; b 500 libavcodec/bink.c static int read_dcs(AVCodecContext *avctx, GetBitContext *gb, Bundle *b, b 504 libavcodec/bink.c int16_t *dst = (int16_t*)b->cur_dec; b 505 libavcodec/bink.c int16_t *dst_end = (int16_t*)b->data_end; b 507 libavcodec/bink.c CHECK_READ_VAL(gb, b, len); b 544 libavcodec/bink.c b->cur_dec = (uint8_t*)dst; b 586 libavcodec/bink.c Bundle *b = &c->bundle[bundle_num]; b 589 libavcodec/bink.c CHECK_READ_VAL(gb, b, len); b 590 libavcodec/bink.c if (b->data_end - b->cur_dec < len * (1 + (bits > 8))) b 595 libavcodec/bink.c *b->cur_dec++ = get_bits(gb, bits); b 598 libavcodec/bink.c *b->cur_dec++ = get_bits(gb, bits) - mask; b 601 libavcodec/bink.c int16_t *dst = (int16_t*)b->cur_dec; b 610 libavcodec/bink.c b->cur_dec = (uint8_t*)dst; b 102 libavcodec/bit_depth_template.c #define FUNC3(a, b, c) a ## _ ## b ## c b 103 libavcodec/bit_depth_template.c #define FUNC2(a, b, c) FUNC3(a, b, c) b 106 libavcodec/bit_depth_template.c #define FUNC4(a, b, c) a ## _int ## b ## _ ## c ## bit b 107 libavcodec/bit_depth_template.c #define FUNC5(a, b, c) FUNC4(a, b, c) b 138 libavcodec/bitstream.c static int compare_vlcspec(const void *a, const void *b) b 140 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 359 libavcodec/bytestream.h static av_always_inline unsigned int bytestream_get_buffer(const uint8_t **b, b 363 libavcodec/bytestream.h memcpy(dst, *b, size); b 364 libavcodec/bytestream.h (*b) += size; b 368 libavcodec/bytestream.h static av_always_inline void bytestream_put_buffer(uint8_t **b, b 372 libavcodec/bytestream.h memcpy(*b, src, size); b 373 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 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 515 libavcodec/cavsdsp.c #define op_put1(a, b) a = cm[((b)+4)>>3] b 516 libavcodec/cavsdsp.c #define op_put2(a, b) a = cm[((b)+64)>>7] b 517 libavcodec/cavsdsp.c #define op_put3(a, b) a = cm[((b)+32)>>6] b 518 libavcodec/cavsdsp.c #define op_put4(a, b) a = cm[((b)+512)>>10] b 519 libavcodec/cavsdsp.c #define op_avg1(a, b) a = ((a)+cm[((b)+4)>>3] +1)>>1 b 520 libavcodec/cavsdsp.c #define op_avg2(a, b) a = ((a)+cm[((b)+64)>>7] +1)>>1 b 521 libavcodec/cavsdsp.c #define op_avg3(a, b) a = ((a)+cm[((b)+32)>>6] +1)>>1 b 522 libavcodec/cavsdsp.c #define op_avg4(a, b) a = ((a)+cm[((b)+512)>>10]+1)>>1 b 514 libavcodec/cbs_av1.c unsigned int a, unsigned int b) b 519 libavcodec/cbs_av1.c diff = a - b; b 1590 libavcodec/cbs_av1_syntax_template.c size_t i, b; b 1600 libavcodec/cbs_av1_syntax_template.c b = FFMIN(priv->frame_header_size - i, 8); b 1601 libavcodec/cbs_av1_syntax_template.c val = get_bits(&fh, b); b 1602 libavcodec/cbs_av1_syntax_template.c xf(b, frame_header_copy[i], b 177 libavcodec/cbs_vp9.c int position, b; b 191 libavcodec/cbs_vp9.c for (b = 0; b < width; b += 8) b 192 libavcodec/cbs_vp9.c value |= get_bits(gbc, 8) << b; b 197 libavcodec/cbs_vp9.c for (b = 0; b < width; b += 8) b 199 libavcodec/cbs_vp9.c bits[b + i] = value >> (b + i) & 1 ? '1' : '0'; b 200 libavcodec/cbs_vp9.c bits[b] = 0; b 214 libavcodec/cbs_vp9.c int b; b 224 libavcodec/cbs_vp9.c for (b = 0; b < width; b += 8) b 226 libavcodec/cbs_vp9.c bits[b + i] = value >> (b + i) & 1 ? '1' : '0'; b 227 libavcodec/cbs_vp9.c bits[b] = 0; b 233 libavcodec/cbs_vp9.c for (b = 0; b < width; b += 8) b 234 libavcodec/cbs_vp9.c put_bits(pbc, 8, value >> b & 0xff); b 112 libavcodec/cdgraphics.c uint8_t r, g, b; b 122 libavcodec/cdgraphics.c b = ((color ) & 0x000F) * 17; b 123 libavcodec/cdgraphics.c palette[i + array_offset] = 0xFFU << 24 | r << 16 | g << 8 | b; b 130 libavcodec/cdgraphics.c static int cdg_tile_block(CDGraphicsContext *cc, uint8_t *data, int b) b 155 libavcodec/cdgraphics.c if (b) b 377 libavcodec/cdtoons.c unsigned r, g, b; b 380 libavcodec/cdtoons.c b = *(palette_data + 4); b 381 libavcodec/cdtoons.c c->pal[i] = (0xFFU << 24) | (r << 16) | (g << 8) | b; b 74 libavcodec/cdxl.c unsigned b = (rgb & 0xF) * 0x11; b 75 libavcodec/cdxl.c AV_WN32(&new_palette[i], (0xFFU << 24) | (r << 16) | (g << 8) | b); b 156 libavcodec/cdxl.c uint32_t new_palette[16], r, g, b; b 169 libavcodec/cdxl.c b = new_palette[0] & 0xFF; b 178 libavcodec/cdxl.c b = new_palette[index] & 0xFF; b 181 libavcodec/cdxl.c b = index * 0x11; b 190 libavcodec/cdxl.c AV_WL24(out + x * 3, r | g | b); b 199 libavcodec/cdxl.c uint32_t new_palette[64], r, g, b; b 212 libavcodec/cdxl.c b = new_palette[0] & 0xFF; b 221 libavcodec/cdxl.c b = new_palette[index] & 0xFF; b 224 libavcodec/cdxl.c b = (index << 2) | (b & 3); b 233 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 72 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 159 libavcodec/cfhd.c uint16_t *b = (uint16_t *)(frame->data[0] + frame->linesize[0] + 2); b 170 libavcodec/cfhd.c gd = b[x]; b 186 libavcodec/cfhd.c b[x] = B; b 192 libavcodec/cfhd.c b += linesize; 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 1018 libavcodec/cinepakenc.c int32_t r, g, b, rr, gg, bb; b 1024 libavcodec/cinepakenc.c r = g = b = 0; b 1034 libavcodec/cinepakenc.c b += bb; b 1049 libavcodec/cinepakenc.c rr = (-299683 * r - 599156 * g + 898839 * b) >> 23; b 1057 libavcodec/cinepakenc.c rr = (748893 * r - 599156 * g - 149737 * b) >> 23; b 1029 libavcodec/cook.c #define PRINT(a, b) ff_dlog(q->avctx, " %s = %d\n", a, b); b 120 libavcodec/dca_xll.c DCAXllBand *b; b 278 libavcodec/dca_xll.c for (band = 0, b = c->bands; band < c->nfreqbands; band++, b++) { b 280 libavcodec/dca_xll.c if ((b->decor_enabled = get_bits1(&s->gb)) && c->nchannels > 1) { b 285 libavcodec/dca_xll.c b->orig_order[i] = get_bits(&s->gb, ch_nbits); b 286 libavcodec/dca_xll.c if (b->orig_order[i] >= c->nchannels) { b 294 libavcodec/dca_xll.c b->decor_coeff[i] = get_bits1(&s->gb) ? get_linear(&s->gb, 7) : 0; b 297 libavcodec/dca_xll.c b->orig_order[i] = i; b 299 libavcodec/dca_xll.c b->decor_coeff[i] = 0; b 303 libavcodec/dca_xll.c b->highest_pred_order = 0; b 305 libavcodec/dca_xll.c b->adapt_pred_order[i] = get_bits(&s->gb, 4); b 306 libavcodec/dca_xll.c if (b->adapt_pred_order[i] > b->highest_pred_order) b 307 libavcodec/dca_xll.c b->highest_pred_order = b->adapt_pred_order[i]; b 309 libavcodec/dca_xll.c if (b->highest_pred_order > s->nsegsamples) { b 316 libavcodec/dca_xll.c b->fixed_pred_order[i] = b->adapt_pred_order[i] ? 0 : get_bits(&s->gb, 2); b 320 libavcodec/dca_xll.c for (j = 0; j < b->adapt_pred_order[i]; j++) { b 327 libavcodec/dca_xll.c b->adapt_refl_coeff[i][j] = -(int)ff_dca_xll_refl_coeff[-k]; b 329 libavcodec/dca_xll.c b->adapt_refl_coeff[i][j] = (int)ff_dca_xll_refl_coeff[ k]; b 334 libavcodec/dca_xll.c b->dmix_embedded = c->dmix_embedded && (band == 0 || get_bits1(&s->gb)); b 339 libavcodec/dca_xll.c b->lsb_section_size = get_bits_long(&s->gb, s->seg_size_nbits); b 340 libavcodec/dca_xll.c if (b->lsb_section_size < 0 || b->lsb_section_size > s->frame_size) { b 346 libavcodec/dca_xll.c if (b->lsb_section_size && (s->band_crc_present > 2 || b 348 libavcodec/dca_xll.c b->lsb_section_size += 2; b 352 libavcodec/dca_xll.c b->nscalablelsbs[i] = get_bits(&s->gb, 4); b 353 libavcodec/dca_xll.c if (b->nscalablelsbs[i] && !b->lsb_section_size) { b 359 libavcodec/dca_xll.c b->lsb_section_size = 0; b 361 libavcodec/dca_xll.c b->nscalablelsbs[i] = 0; b 368 libavcodec/dca_xll.c b->bit_width_adjust[i] = get_bits(&s->gb, 4); b 371 libavcodec/dca_xll.c b->bit_width_adjust[i] = 0; b 444 libavcodec/dca_xll.c DCAXllBand *b = &c->bands[band]; b 483 libavcodec/dca_xll.c c->nsamples_part_a[i] = b->adapt_pred_order[i]; b 485 libavcodec/dca_xll.c c->nsamples_part_a[i] = b->highest_pred_order; b 509 libavcodec/dca_xll.c part_a = b->msb_sample_buffer[i] + seg * s->nsegsamples; b 573 libavcodec/dca_xll.c if (b->lsb_section_size) { b 575 libavcodec/dca_xll.c if (ff_dca_seek_bits(&s->gb, band_data_end - b->lsb_section_size * 8)) { b 582 libavcodec/dca_xll.c if (b->nscalablelsbs[i]) { b 584 libavcodec/dca_xll.c b->lsb_sample_buffer[i] + seg * s->nsegsamples, b 585 libavcodec/dca_xll.c s->nsegsamples, b->nscalablelsbs[i]); b 601 libavcodec/dca_xll.c DCAXllBand *b = &c->bands[band]; b 613 libavcodec/dca_xll.c memset(b->msb_sample_buffer[i] + offset, 0, nsamples * sizeof(int32_t)); b 614 libavcodec/dca_xll.c if (b->lsb_section_size) b 615 libavcodec/dca_xll.c memset(b->lsb_sample_buffer[i] + offset, 0, nsamples * sizeof(int32_t)); b 622 libavcodec/dca_xll.c memset(b->nscalablelsbs, 0, sizeof(b->nscalablelsbs)); b 623 libavcodec/dca_xll.c memset(b->bit_width_adjust, 0, sizeof(b->bit_width_adjust)); b 629 libavcodec/dca_xll.c DCAXllBand *b = &c->bands[band]; b 635 libavcodec/dca_xll.c int32_t *buf = b->msb_sample_buffer[i]; b 636 libavcodec/dca_xll.c int order = b->adapt_pred_order[i]; b 641 libavcodec/dca_xll.c int rc = b->adapt_refl_coeff[i][j]; b 659 libavcodec/dca_xll.c for (j = 0; j < b->fixed_pred_order[i]; j++) b 666 libavcodec/dca_xll.c if (b->decor_enabled) { b 670 libavcodec/dca_xll.c int coeff = b->decor_coeff[i]; b 672 libavcodec/dca_xll.c s->dcadsp->decor(b->msb_sample_buffer[i * 2 + 1], b 673 libavcodec/dca_xll.c b->msb_sample_buffer[i * 2 ], b 680 libavcodec/dca_xll.c tmp[i] = b->msb_sample_buffer[i]; b 683 libavcodec/dca_xll.c b->msb_sample_buffer[b->orig_order[i]] = tmp[i]; b 689 libavcodec/dca_xll.c s->output_samples[c->ch_remap[i]] = b->msb_sample_buffer[i]; b 709 libavcodec/dca_xll.c DCAXllBand *b = &c->bands[band]; b 715 libavcodec/dca_xll.c int32_t *msb = b->msb_sample_buffer[ch]; b 716 libavcodec/dca_xll.c if (b->nscalablelsbs[ch]) { b 717 libavcodec/dca_xll.c int32_t *lsb = b->lsb_sample_buffer[ch]; b 718 libavcodec/dca_xll.c int adj = b->bit_width_adjust[ch]; b 71 libavcodec/dcadsp.c float b = 0; b 75 libavcodec/dcadsp.c b += filter_coeff[255 - j * ncoeffs - k] * lfe_samples[-k]; b 79 libavcodec/dcadsp.c pcm_samples[factor / 2 + j] = b; b 107 libavcodec/dcadsp.c float b = 0.75f * src[i] + 0.25f * prev; b 110 libavcodec/dcadsp.c *dst++ = b; b 205 libavcodec/dcadsp.c int64_t b = 0; b 209 libavcodec/dcadsp.c b += (int64_t)filter_coeff[255 - j * 8 - k] * lfe_samples[-k]; b 213 libavcodec/dcadsp.c pcm_samples[32 + j] = clip23(norm23(b)); b 229 libavcodec/dcadsp.c int64_t b = INT64_C(6291137) * src[i] + INT64_C(2097471) * prev; b 232 libavcodec/dcadsp.c *dst++ = clip23(norm23(b)); b 411 libavcodec/dcadsp.c float b = src[-3] * SW1 - src[-2] * SW2; b 415 libavcodec/dcadsp.c output[i][0] = C1 * b - C2 * c + C4 * a - C3 * d; b 416 libavcodec/dcadsp.c output[i][1] = C1 * d - C2 * a - C4 * b - C3 * c; b 417 libavcodec/dcadsp.c output[i][2] = C3 * b + C2 * d - C4 * c + C1 * a; b 418 libavcodec/dcadsp.c output[i][3] = C3 * a - C2 * b + C4 * d - C1 * c; b 424 libavcodec/dcadsp.c float b = output[i+1][0] * AL1; b 425 libavcodec/dcadsp.c output[i ][3] += b - a; b 426 libavcodec/dcadsp.c output[i+1][0] -= b + a; b 428 libavcodec/dcadsp.c b = output[i+1][1] * AL2; b 429 libavcodec/dcadsp.c output[i ][2] += b - a; b 430 libavcodec/dcadsp.c output[i+1][1] -= b + a; b 410 libavcodec/dcaenc.c static int32_t add_cb(DCAEncContext *c, int32_t a, int32_t b) b 412 libavcodec/dcaenc.c if (a < b) b 413 libavcodec/dcaenc.c FFSWAP(int32_t, a, b); b 415 libavcodec/dcaenc.c if (a - b >= 256) b 417 libavcodec/dcaenc.c return a + c->cb_to_add[a - b]; b 1272 libavcodec/dcahuff.c #define DCA_INIT_VLC(vlc, a, b, c, d) \ b 1276 libavcodec/dcahuff.c init_vlc(&vlc, a, b, c, 1, 1, d, 2, 2, INIT_VLC_USE_NEW_STATIC); \ b 35 libavcodec/dcamath.h static inline int32_t mul__(int32_t a, int32_t b, int bits) b 37 libavcodec/dcamath.h return norm__((int64_t)a * b, bits); b 46 libavcodec/dcamath.h static inline int32_t mul15(int32_t a, int32_t b) { return mul__(a, b, 15); } b 47 libavcodec/dcamath.h static inline int32_t mul16(int32_t a, int32_t b) { return mul__(a, b, 16); } b 48 libavcodec/dcamath.h static inline int32_t mul17(int32_t a, int32_t b) { return mul__(a, b, 17); } b 49 libavcodec/dcamath.h static inline int32_t mul22(int32_t a, int32_t b) { return mul__(a, b, 22); } b 50 libavcodec/dcamath.h static inline int32_t mul23(int32_t a, int32_t b) { return mul__(a, b, 23); } b 51 libavcodec/dcamath.h static inline int32_t mul31(int32_t a, int32_t b) { return mul__(a, b, 31); } b 52 libavcodec/dcamath.h static inline int32_t mul32(int32_t a, int32_t b) { return mul__(a, b, 32); } b 90 libavcodec/dct32_template.c #define BF(a, b, c, s)\ b 92 libavcodec/dct32_template.c tmp0 = val##a + val##b;\ b 93 libavcodec/dct32_template.c tmp1 = val##a - val##b;\ b 95 libavcodec/dct32_template.c val##b = MULH3(tmp1, c, 1<<(s));\ b 98 libavcodec/dct32_template.c #define BF0(a, b, c, s)\ b 100 libavcodec/dct32_template.c tmp0 = tab[a] + tab[b];\ b 101 libavcodec/dct32_template.c tmp1 = tab[a] - tab[b];\ b 103 libavcodec/dct32_template.c val##b = MULH3(tmp1, c, 1<<(s));\ b 106 libavcodec/dct32_template.c #define BF1(a, b, c, d)\ b 108 libavcodec/dct32_template.c BF(a, b, COS4_0, 1);\ b 113 libavcodec/dct32_template.c #define BF2(a, b, c, d)\ b 115 libavcodec/dct32_template.c BF(a, b, COS4_0, 1);\ b 119 libavcodec/dct32_template.c val##c += val##b;\ b 120 libavcodec/dct32_template.c val##b += val##d;\ b 123 libavcodec/dct32_template.c #define ADD(a, b) val##a += val##b b 122 libavcodec/dds.c int size, bpp, r, g, b, a; b 154 libavcodec/dds.c b = bytestream2_get_le32(gbc); // bbitmask b 164 libavcodec/dds.c "r 0x%x g 0x%x b 0x%x a 0x%x\n", av_fourcc2str(fourcc), bpp, r, g, b, a); b 355 libavcodec/dds.c if (bpp == 4 && r == 0 && g == 0 && b == 0 && a == 0) b 358 libavcodec/dds.c else if (bpp == 8 && r == 0xff && g == 0 && b == 0 && a == 0) b 360 libavcodec/dds.c else if (bpp == 8 && r == 0 && g == 0 && b == 0 && a == 0xff) b 363 libavcodec/dds.c else if (bpp == 16 && r == 0xff && g == 0 && b == 0 && a == 0xff00) b 365 libavcodec/dds.c else if (bpp == 16 && r == 0xff00 && g == 0 && b == 0 && a == 0xff) { b 369 libavcodec/dds.c else if (bpp == 16 && r == 0xffff && g == 0 && b == 0 && a == 0) b 371 libavcodec/dds.c else if (bpp == 16 && r == 0x7c00 && g == 0x3e0 && b == 0x1f && a == 0) b 373 libavcodec/dds.c else if (bpp == 16 && r == 0x7c00 && g == 0x3e0 && b == 0x1f && a == 0x8000) b 375 libavcodec/dds.c else if (bpp == 16 && r == 0xf800 && g == 0x7e0 && b == 0x1f && a == 0) b 378 libavcodec/dds.c else if (bpp == 24 && r == 0xff0000 && g == 0xff00 && b == 0xff && a == 0) b 381 libavcodec/dds.c else if (bpp == 32 && r == 0xff0000 && g == 0xff00 && b == 0xff && a == 0) b 383 libavcodec/dds.c else if (bpp == 32 && r == 0xff && g == 0xff00 && b == 0xff0000 && a == 0) b 385 libavcodec/dds.c else if (bpp == 32 && r == 0xff0000 && g == 0xff00 && b == 0xff && a == 0xff000000) b 387 libavcodec/dds.c else if (bpp == 32 && r == 0xff && g == 0xff00 && b == 0xff0000 && a == 0xff000000) b 392 libavcodec/dds.c "[bpp %d r 0x%x g 0x%x b 0x%x a 0x%x].\n", bpp, r, g, b, a); b 498 libavcodec/dds.c int b = src[2]; b 503 libavcodec/dds.c src[2] = b * a / 255; b 33 libavcodec/dirac_dwt.h uint8_t *b[MAX_DWT_SUPPORT]; b 52 libavcodec/dirac_dwt.h typedef void (*vertical_compose_9tap)(uint8_t *dst, uint8_t *b[8], int width); b 69 libavcodec/dirac_dwt.h void (*horizontal_compose)(uint8_t *b, uint8_t *tmp, int width); b 69 libavcodec/dirac_dwt_template.c TYPE *b = (TYPE *)_b; b 72 libavcodec/dirac_dwt_template.c temp[0] = COMPOSE_53iL0(b[w2], b[0], b[w2]); b 74 libavcodec/dirac_dwt_template.c temp[x ] = COMPOSE_53iL0 (b[x+w2-1], b[x ], b[x+w2]); b 75 libavcodec/dirac_dwt_template.c temp[x+w2-1] = COMPOSE_DIRAC53iH0(temp[x-1], b[x+w2-1], temp[x]); b 77 libavcodec/dirac_dwt_template.c temp[w-1] = COMPOSE_DIRAC53iH0(temp[w2-1], b[w-1], temp[w2-1]); b 79 libavcodec/dirac_dwt_template.c RENAME(interleave)(b, temp, temp+w2, w2, 1, 1); b 86 libavcodec/dirac_dwt_template.c TYPE *b = (TYPE *)_b; b 89 libavcodec/dirac_dwt_template.c tmp[0] = COMPOSE_53iL0(b[w2], b[0], b[w2]); b 91 libavcodec/dirac_dwt_template.c tmp[x] = COMPOSE_53iL0(b[x+w2-1], b[x], b[x+w2]); b 98 libavcodec/dirac_dwt_template.c b[2*x ] = ((int)(tmp[x] + 1U))>>1; b 99 libavcodec/dirac_dwt_template.c b[2*x+1] = ((int)(COMPOSE_DD97iH0(tmp[x-1], tmp[x], b[x+w2], tmp[x+1], tmp[x+2]) + 1U))>>1; b 107 libavcodec/dirac_dwt_template.c TYPE *b = (TYPE *)_b; b 110 libavcodec/dirac_dwt_template.c tmp[0] = COMPOSE_DD137iL0(b[w2], b[w2], b[0], b[w2 ], b[w2+1]); b 111 libavcodec/dirac_dwt_template.c tmp[1] = COMPOSE_DD137iL0(b[w2], b[w2], b[1], b[w2+1], b[w2+2]); b 113 libavcodec/dirac_dwt_template.c tmp[x] = COMPOSE_DD137iL0(b[x+w2-2], b[x+w2-1], b[x], b[x+w2], b[x+w2+1]); b 114 libavcodec/dirac_dwt_template.c tmp[w2-1] = COMPOSE_DD137iL0(b[w-3], b[w-2], b[w2-1], b[w-1], b[w-1]); b 121 libavcodec/dirac_dwt_template.c b[2*x ] = ((int)(tmp[x] + 1U))>>1; b 122 libavcodec/dirac_dwt_template.c b[2*x+1] = ((int)(COMPOSE_DD97iH0(tmp[x-1], tmp[x], b[x+w2], tmp[x+1], tmp[x+2]) + 1U))>>1; b 126 libavcodec/dirac_dwt_template.c static av_always_inline void RENAME(horizontal_compose_haari)(TYPE *b, TYPE *temp, b 133 libavcodec/dirac_dwt_template.c temp[x ] = COMPOSE_HAARiL0(b[x ], b[x+w2]); b 134 libavcodec/dirac_dwt_template.c temp[x+w2] = COMPOSE_HAARiH0(b[x+w2], temp[x]); b 137 libavcodec/dirac_dwt_template.c RENAME(interleave)(b, temp, temp+w2, w2, shift, shift); b 142 libavcodec/dirac_dwt_template.c TYPE *b = (TYPE *)_b; b 144 libavcodec/dirac_dwt_template.c RENAME(horizontal_compose_haari)(b, temp, w, 0); b 149 libavcodec/dirac_dwt_template.c TYPE *b = (TYPE *)_b; b 151 libavcodec/dirac_dwt_template.c RENAME(horizontal_compose_haari)(b, temp, w, 1); b 159 libavcodec/dirac_dwt_template.c TYPE *b = (TYPE *)_b; b 164 libavcodec/dirac_dwt_template.c v[i] = b[av_clip(x-3+i, 0, w2-1)]; b 165 libavcodec/dirac_dwt_template.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 171 libavcodec/dirac_dwt_template.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 174 libavcodec/dirac_dwt_template.c RENAME(interleave)(b, tmp+w2, tmp, w2, 0, 0); b 181 libavcodec/dirac_dwt_template.c TYPE *b = (TYPE *)_b; b 184 libavcodec/dirac_dwt_template.c temp[0] = COMPOSE_DAUB97iL1(b[w2], b[0], b[w2]); b 186 libavcodec/dirac_dwt_template.c temp[x ] = COMPOSE_DAUB97iL1(b[x+w2-1], b[x ], b[x+w2]); b 187 libavcodec/dirac_dwt_template.c temp[x+w2-1] = COMPOSE_DAUB97iH1(temp[x-1], b[x+w2-1], temp[x]); b 189 libavcodec/dirac_dwt_template.c temp[w-1] = COMPOSE_DAUB97iH1(temp[w2-1], b[w-1], temp[w2-1]); b 193 libavcodec/dirac_dwt_template.c b[0] = ~((~b0) >> 1); b 197 libavcodec/dirac_dwt_template.c b[2*x-1] = ~((~b1) >> 1); b 198 libavcodec/dirac_dwt_template.c b[2*x ] = ~((~b2) >> 1); b 201 libavcodec/dirac_dwt_template.c b[w-1] = ~((~COMPOSE_DAUB97iH0(b2, temp[w-1], b2)) >> 1); b 346 libavcodec/dirac_dwt_template.c uint8_t *b[8]; b 348 libavcodec/dirac_dwt_template.c b[i] = cs->b[i]; b 349 libavcodec/dirac_dwt_template.c b[6] = d->buffer + av_clip(y+5, 0, height-2)*stride; b 350 libavcodec/dirac_dwt_template.c b[7] = d->buffer + av_clip(y+6, 1, height-1)*stride; b 352 libavcodec/dirac_dwt_template.c if(y+5<(unsigned)height) vertical_compose_l0( b[5], b[6], b[7], width); b 353 libavcodec/dirac_dwt_template.c if(y+1<(unsigned)height) vertical_compose_h0(b[0], b[2], b[3], b[4], b[6], width); b 355 libavcodec/dirac_dwt_template.c if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width); b 356 libavcodec/dirac_dwt_template.c if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width); b 359 libavcodec/dirac_dwt_template.c cs->b[i] = b[i+2]; b 370 libavcodec/dirac_dwt_template.c uint8_t *b[4] = { cs->b[0], cs->b[1] }; b 371 libavcodec/dirac_dwt_template.c b[2] = d->buffer + avpriv_mirror(y+1, height-1)*stride; b 372 libavcodec/dirac_dwt_template.c b[3] = d->buffer + avpriv_mirror(y+2, height-1)*stride; b 374 libavcodec/dirac_dwt_template.c if(y+1<(unsigned)height) vertical_compose_l0(b[1], b[2], b[3], width); b 375 libavcodec/dirac_dwt_template.c if(y+0<(unsigned)height) vertical_compose_h0(b[0], b[1], b[2], width); b 377 libavcodec/dirac_dwt_template.c if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width); b 378 libavcodec/dirac_dwt_template.c if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width); b 380 libavcodec/dirac_dwt_template.c cs->b[0] = b[2]; b 381 libavcodec/dirac_dwt_template.c cs->b[1] = b[3]; b 392 libavcodec/dirac_dwt_template.c uint8_t *b[10]; b 394 libavcodec/dirac_dwt_template.c b[i] = cs->b[i]; b 395 libavcodec/dirac_dwt_template.c b[8] = d->buffer + av_clip(y+7, 0, height-2)*stride; b 396 libavcodec/dirac_dwt_template.c b[9] = d->buffer + av_clip(y+8, 1, height-1)*stride; b 398 libavcodec/dirac_dwt_template.c if(y+5<(unsigned)height) vertical_compose_l0(b[3], b[5], b[6], b[7], b[9], width); b 399 libavcodec/dirac_dwt_template.c if(y+1<(unsigned)height) vertical_compose_h0(b[0], b[2], b[3], b[4], b[6], width); b 401 libavcodec/dirac_dwt_template.c if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width); b 402 libavcodec/dirac_dwt_template.c if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width); b 405 libavcodec/dirac_dwt_template.c cs->b[i] = b[i+2]; b 431 libavcodec/dirac_dwt_template.c uint8_t *b[8]; b 435 libavcodec/dirac_dwt_template.c b[i] = d->buffer + av_clip((y-7 + 2*i), 0, height-2)*stride; b 436 libavcodec/dirac_dwt_template.c vertical_compose_h0(d->buffer + y*stride, b, width); b 441 libavcodec/dirac_dwt_template.c b[i] = d->buffer + av_clip((y-7 + 2*i), 1, height-1)*stride; b 442 libavcodec/dirac_dwt_template.c vertical_compose_l0(d->buffer + y*stride, b, width); b 460 libavcodec/dirac_dwt_template.c uint8_t *b[6]; b 462 libavcodec/dirac_dwt_template.c b[i] = cs->b[i]; b 463 libavcodec/dirac_dwt_template.c b[4] = d->buffer + avpriv_mirror(y+3, height-1)*stride; b 464 libavcodec/dirac_dwt_template.c b[5] = d->buffer + avpriv_mirror(y+4, height-1)*stride; b 466 libavcodec/dirac_dwt_template.c if(y+3<(unsigned)height) vertical_compose_l1(b[3], b[4], b[5], width); b 467 libavcodec/dirac_dwt_template.c if(y+2<(unsigned)height) vertical_compose_h1(b[2], b[3], b[4], width); b 468 libavcodec/dirac_dwt_template.c if(y+1<(unsigned)height) vertical_compose_l0(b[1], b[2], b[3], width); b 469 libavcodec/dirac_dwt_template.c if(y+0<(unsigned)height) vertical_compose_h0(b[0], b[1], b[2], width); b 471 libavcodec/dirac_dwt_template.c if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width); b 472 libavcodec/dirac_dwt_template.c if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width); b 475 libavcodec/dirac_dwt_template.c cs->b[i] = b[i+2]; b 481 libavcodec/dirac_dwt_template.c cs->b[0] = buffer + avpriv_mirror(-3-1, height-1)*stride; b 482 libavcodec/dirac_dwt_template.c cs->b[1] = buffer + avpriv_mirror(-3 , height-1)*stride; b 483 libavcodec/dirac_dwt_template.c cs->b[2] = buffer + avpriv_mirror(-3+1, height-1)*stride; b 484 libavcodec/dirac_dwt_template.c cs->b[3] = buffer + avpriv_mirror(-3+2, height-1)*stride; b 490 libavcodec/dirac_dwt_template.c cs->b[0] = buffer + avpriv_mirror(-1-1, height-1)*stride; b 491 libavcodec/dirac_dwt_template.c cs->b[1] = buffer + avpriv_mirror(-1 , height-1)*stride; b 497 libavcodec/dirac_dwt_template.c cs->b[0] = buffer + av_clip(-5-1, 0, height-2)*stride; b 498 libavcodec/dirac_dwt_template.c cs->b[1] = buffer + av_clip(-5 , 1, height-1)*stride; b 499 libavcodec/dirac_dwt_template.c cs->b[2] = buffer + av_clip(-5+1, 0, height-2)*stride; b 500 libavcodec/dirac_dwt_template.c cs->b[3] = buffer + av_clip(-5+2, 1, height-1)*stride; b 501 libavcodec/dirac_dwt_template.c cs->b[4] = buffer + av_clip(-5+3, 0, height-2)*stride; b 502 libavcodec/dirac_dwt_template.c cs->b[5] = buffer + av_clip(-5+4, 1, height-1)*stride; b 508 libavcodec/dirac_dwt_template.c cs->b[0] = buffer + av_clip(-5-1, 0, height-2)*stride; b 509 libavcodec/dirac_dwt_template.c cs->b[1] = buffer + av_clip(-5 , 1, height-1)*stride; b 510 libavcodec/dirac_dwt_template.c cs->b[2] = buffer + av_clip(-5+1, 0, height-2)*stride; b 511 libavcodec/dirac_dwt_template.c cs->b[3] = buffer + av_clip(-5+2, 1, height-1)*stride; b 512 libavcodec/dirac_dwt_template.c cs->b[4] = buffer + av_clip(-5+3, 0, height-2)*stride; b 513 libavcodec/dirac_dwt_template.c cs->b[5] = buffer + av_clip(-5+4, 1, height-1)*stride; b 514 libavcodec/dirac_dwt_template.c cs->b[6] = buffer + av_clip(-5+5, 0, height-2)*stride; b 515 libavcodec/dirac_dwt_template.c cs->b[7] = buffer + av_clip(-5+6, 1, height-1)*stride; b 72 libavcodec/diracdec.c #define DIVRNDUP(a, b) (((a) + (b) - 1) / (b)) b 452 libavcodec/diracdec.c SubBand *b, type *buf, int x, int y) \ b 456 libavcodec/diracdec.c const int mstride = -(b->stride >> (1+b->pshift)); \ b 457 libavcodec/diracdec.c if (b->parent) { \ b 458 libavcodec/diracdec.c const type *pbuf = (type *)b->parent->ibuf; \ b 459 libavcodec/diracdec.c const int stride = b->parent->stride >> (1+b->parent->pshift); \ b 462 libavcodec/diracdec.c if (b->orientation == subband_hl) \ b 466 libavcodec/diracdec.c if (b->orientation == subband_lh) \ b 487 libavcodec/diracdec.c static inline int codeblock(DiracContext *s, SubBand *b, b 513 libavcodec/diracdec.c if (quant > INT_MAX - b->quant || b->quant + quant < 0) { b 517 libavcodec/diracdec.c b->quant += quant; b 520 libavcodec/diracdec.c if (b->quant > (DIRAC_MAX_QUANT_INDEX - 1)) { b 521 libavcodec/diracdec.c av_log(s->avctx, AV_LOG_ERROR, "Unsupported quant %d\n", b->quant); b 522 libavcodec/diracdec.c b->quant = 0; b 526 libavcodec/diracdec.c qfactor = ff_dirac_qscale_tab[b->quant]; b 529 libavcodec/diracdec.c qoffset = ff_dirac_qoffset_intra_tab[b->quant] + 2; b 531 libavcodec/diracdec.c qoffset = ff_dirac_qoffset_inter_tab[b->quant] + 2; b 533 libavcodec/diracdec.c buf = b->ibuf + top * b->stride; b 539 libavcodec/diracdec.c if (b->pshift) { b 540 libavcodec/diracdec.c coeff_unpack_arith_10(c, qfactor, qoffset, b, (int32_t*)(buf)+x, x, y); b 542 libavcodec/diracdec.c coeff_unpack_arith_8(c, qfactor, qoffset, b, (int16_t*)(buf)+x, x, y); b 545 libavcodec/diracdec.c buf += b->stride; b 553 libavcodec/diracdec.c if (b->pshift) { b 559 libavcodec/diracdec.c buf += b->stride; b 570 libavcodec/diracdec.c static inline void intra_dc_prediction_##n(SubBand *b) \ b 572 libavcodec/diracdec.c type *buf = (type*)b->ibuf; \ b 575 libavcodec/diracdec.c for (x = 1; x < b->width; x++) \ b 577 libavcodec/diracdec.c buf += (b->stride >> (1+b->pshift)); \ b 579 libavcodec/diracdec.c for (y = 1; y < b->height; y++) { \ b 580 libavcodec/diracdec.c buf[0] += buf[-(b->stride >> (1+b->pshift))]; \ b 582 libavcodec/diracdec.c for (x = 1; x < b->width; x++) { \ b 583 libavcodec/diracdec.c int pred = buf[x - 1] + buf[x - (b->stride >> (1+b->pshift))] + buf[x - (b->stride >> (1+b->pshift))-1]; \ b 586 libavcodec/diracdec.c buf += (b->stride >> (1+b->pshift)); \ b 597 libavcodec/diracdec.c static av_always_inline int decode_subband_internal(DiracContext *s, SubBand *b, int is_arith) b 602 libavcodec/diracdec.c int cb_width = s->codeblock[b->level + (b->orientation != subband_ll)].width; b 603 libavcodec/diracdec.c int cb_height = s->codeblock[b->level + (b->orientation != subband_ll)].height; b 607 libavcodec/diracdec.c if (!b->length) b 610 libavcodec/diracdec.c init_get_bits8(&gb, b->coeff_data, b->length); b 613 libavcodec/diracdec.c ff_dirac_init_arith_decoder(&c, &gb, b->length); b 617 libavcodec/diracdec.c bottom = (b->height * (cb_y+1LL)) / cb_height; b 620 libavcodec/diracdec.c right = (b->width * (cb_x+1LL)) / cb_width; b 621 libavcodec/diracdec.c ret = codeblock(s, b, &gb, &c, left, right, top, bottom, blockcnt_one, is_arith); b 629 libavcodec/diracdec.c if (b->orientation == subband_ll && s->num_refs == 0) { b 631 libavcodec/diracdec.c intra_dc_prediction_10(b); b 633 libavcodec/diracdec.c intra_dc_prediction_8(b); b 639 libavcodec/diracdec.c static int decode_subband_arith(AVCodecContext *avctx, void *b) b 642 libavcodec/diracdec.c return decode_subband_internal(s, b, 1); b 648 libavcodec/diracdec.c SubBand **b = arg; b 649 libavcodec/diracdec.c return decode_subband_internal(s, *b, 0); b 669 libavcodec/diracdec.c SubBand *b = &s->plane[comp].band[level][orientation]; b 670 libavcodec/diracdec.c bands[num_bands++] = b; b 674 libavcodec/diracdec.c b->length = get_interleaved_ue_golomb(&s->gb); b 675 libavcodec/diracdec.c if (b->length) { b 676 libavcodec/diracdec.c b->quant = get_interleaved_ue_golomb(&s->gb); b 677 libavcodec/diracdec.c if (b->quant > (DIRAC_MAX_QUANT_INDEX - 1)) { b 678 libavcodec/diracdec.c av_log(s->avctx, AV_LOG_ERROR, "Unsupported quant %d\n", b->quant); b 679 libavcodec/diracdec.c b->quant = 0; b 683 libavcodec/diracdec.c b->coeff_data = s->gb.buffer + get_bits_count(&s->gb)/8; b 684 libavcodec/diracdec.c if (b->length > FFMAX(get_bits_left(&s->gb)/8, 0)) { b 685 libavcodec/diracdec.c b->length = FFMAX(get_bits_left(&s->gb)/8, 0); b 688 libavcodec/diracdec.c skip_bits_long(&s->gb, b->length*8); b 826 libavcodec/diracdec.c SubBand *b = &s->plane[p].band[level][3]; /* orientation doens't matter */ b 827 libavcodec/diracdec.c o->top = b->height * y / s->num_y; b 828 libavcodec/diracdec.c o->left = b->width * x / s->num_x; b 829 libavcodec/diracdec.c o->tot_h = ((b->width * (x + 1)) / s->num_x) - o->left; b 830 libavcodec/diracdec.c o->tot_v = ((b->height * (y + 1)) / s->num_y) - o->top; b 1065 libavcodec/diracdec.c SubBand *b = &p->band[level][orientation]; b 1067 libavcodec/diracdec.c b->pshift = s->pshift; b 1068 libavcodec/diracdec.c b->ibuf = p->idwt.buf; b 1069 libavcodec/diracdec.c b->level = level; b 1070 libavcodec/diracdec.c b->stride = p->idwt.stride << (s->wavelet_depth - level); b 1071 libavcodec/diracdec.c b->width = w; b 1072 libavcodec/diracdec.c b->height = h; b 1073 libavcodec/diracdec.c b->orientation = orientation; b 1076 libavcodec/diracdec.c b->ibuf += w << (1+b->pshift); b 1078 libavcodec/diracdec.c b->ibuf += (b->stride>>1); b 1081 libavcodec/diracdec.c b->parent = &p->band[level-1][orientation]; b 1430 libavcodec/diracdec.c int *b = s->globalmc[ref].pan_tilt; b 1434 libavcodec/diracdec.c int64_t mx = m * (int64_t)((A[0][0] * (int64_t)x + A[0][1]*(int64_t)y) + (1LL<<ez) * b[0]); b 1435 libavcodec/diracdec.c int64_t my = m * (int64_t)((A[1][0] * (int64_t)x + A[1][1]*(int64_t)y) + (1LL<<ez) * b[1]); b 193 libavcodec/dolby_e.c static inline int log_add(int a, int b) b 195 libavcodec/dolby_e.c int c = FFABS(a - b) >> 1; b 196 libavcodec/dolby_e.c return FFMAX(a, b) + log_add_tab[FFMIN(c, 211)]; b 390 libavcodec/dolby_e.c float b = mantissa_tab3[size2][idx]; b 392 libavcodec/dolby_e.c mnt[k] = ((value + 1) * a - b) * exp; b 394 libavcodec/dolby_e.c mnt[k] = (value * a + b) * exp; b 557 libavcodec/dolby_e.c float b = gain_tab[end ] * (1.0f / (FRAME_SAMPLES - 1)); b 561 libavcodec/dolby_e.c output[i] *= a * (FRAME_SAMPLES - i - 1) + b * i; b 78 libavcodec/dsd.c uint8_t b = buf[(pos - (CTABLES*2 - 1) + i) & FIFOMASK]; b 79 libavcodec/dsd.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) ((int)((((a) * (1 << 15)) + (b) * (unsigned)(c)) + 0x4000) >> 15) b 61 libavcodec/dvaudiodec.c const unsigned b = 3 * a; b 63 libavcodec/dvaudiodec.c s->shuffle[i] = 80 * ((21 * (i % 3) + 9 * (i / 3) + ((i / a) % 3)) % b) + b 64 libavcodec/dvaudiodec.c (2 + s->is_12bit) * (i / b) + 8; b 361 libavcodec/dvbsub.c int a, r, g, b; b 366 libavcodec/dvbsub.c b = (x >> 0) & 0xff; b 368 libavcodec/dvbsub.c *q++ = RGB_TO_Y_CCIR(r, g, b); b 369 libavcodec/dvbsub.c *q++ = RGB_TO_V_CCIR(r, g, b, 0); b 370 libavcodec/dvbsub.c *q++ = RGB_TO_U_CCIR(r, g, b, 0); b 39 libavcodec/dvbsubdec.c #define RGBA(r,g,b,a) (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)) b 259 libavcodec/dvbsubdec.c int i, r, g, b, a = 0; b 296 libavcodec/dvbsubdec.c b = (i & 4) ? 255 : 0; b 300 libavcodec/dvbsubdec.c b = (i & 4) ? 127 : 0; b 302 libavcodec/dvbsubdec.c default_clut.clut16[i] = RGBA(r, g, b, 255); b 310 libavcodec/dvbsubdec.c b = (i & 4) ? 255 : 0; b 317 libavcodec/dvbsubdec.c b = ((i & 4) ? 85 : 0) + ((i & 0x40) ? 170 : 0); b 323 libavcodec/dvbsubdec.c b = ((i & 4) ? 85 : 0) + ((i & 0x40) ? 170 : 0); b 329 libavcodec/dvbsubdec.c b = 127 + ((i & 4) ? 43 : 0) + ((i & 0x40) ? 85 : 0); b 335 libavcodec/dvbsubdec.c b = ((i & 4) ? 43 : 0) + ((i & 0x40) ? 85 : 0); b 340 libavcodec/dvbsubdec.c default_clut.clut256[i] = RGBA(r, g, b, a); b 1056 libavcodec/dvbsubdec.c int r, g, b, r_add, g_add, b_add; b 1122 libavcodec/dvbsubdec.c YUV_TO_RGB2_CCIR(r, g, b, y); b 1124 libavcodec/dvbsubdec.c ff_dlog(avctx, "clut %d := (%d,%d,%d,%d)\n", entry_id, r, g, b, alpha); b 1132 libavcodec/dvbsubdec.c clut->clut4[entry_id] = RGBA(r,g,b,255 - alpha); b 1134 libavcodec/dvbsubdec.c clut->clut16[entry_id] = RGBA(r,g,b,255 - alpha); b 1136 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++ = ((unsigned)*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] * 17U) << 24); b 633 libavcodec/dvdsubdec.c uint8_t r, g, b, yuv[65], *buf; b 671 libavcodec/dvdsubdec.c YUV_TO_RGB2_CCIR(r, g, b, y); b 672 libavcodec/dvdsubdec.c ctx->palette[i] = (r << 16) + (g << 8) + b; b 98 libavcodec/dvdsubenc.c static int color_distance(uint32_t a, uint32_t b) b 105 libavcodec/dvdsubenc.c alpha_b * (int)((b >> i) & 0xFF); b 108 libavcodec/dvdsubenc.c alpha_b = b >> 28; b 566 libavcodec/dvenc.c static int dv100_actual_quantize(EncBlockInfo *b, int qlevel) b 573 libavcodec/dvenc.c if (b->area_q[0] == qno && b->cno == cno) b 574 libavcodec/dvenc.c return b->bit_size[0]; b 579 libavcodec/dvenc.c b->area_q[0] = qno; b 580 libavcodec/dvenc.c b->cno = cno; b 583 libavcodec/dvenc.c b->bit_size[0] = 4; b 589 libavcodec/dvenc.c int ac = dv100_quantize(b->save[k], qsinv) >> cno; b 593 libavcodec/dvenc.c b->mb[k] = ac; b 594 libavcodec/dvenc.c b->bit_size[0] += dv_rl2vlc_size(k - prev - 1, ac); b 595 libavcodec/dvenc.c b->next[prev] = k; b 599 libavcodec/dvenc.c b->next[prev] = k; b 601 libavcodec/dvenc.c return b->bit_size[0]; b 606 libavcodec/dvenc.c EncBlockInfo *b; b 664 libavcodec/dvenc.c b = &blks[8*i]; b 665 libavcodec/dvenc.c for (j = 0; j < 8; j++, b++) { b 670 libavcodec/dvenc.c size_cache[8*i+j][qlevels[i]] = dv100_actual_quantize(b, qlevels[i]); b 715 libavcodec/dvenc.c b = &blks[8*i]; b 716 libavcodec/dvenc.c for (j = 0; j < 8; j++, b++) { b 719 libavcodec/dvenc.c size_cache[8*i+j][qlevels[i]] = dv100_actual_quantize(b, qlevels[i]); b 737 libavcodec/dvenc.c b = &blks[8*i]; b 739 libavcodec/dvenc.c for (j = 0; j < 8; j++, b++) { b 741 libavcodec/dvenc.c size[i] += dv100_actual_quantize(b, qlevels[i]); b 750 libavcodec/dvenc.c EncBlockInfo *b; b 758 libavcodec/dvenc.c b = blks; b 765 libavcodec/dvenc.c for (j = 0; j < 6; j++, b++) { b 767 libavcodec/dvenc.c if (b->area_q[a] != ff_dv_quant_shifts[qnos[i] + ff_dv_quant_offset[b->cno]][a]) { b 768 libavcodec/dvenc.c b->bit_size[a] = 1; // 4 areas 4 bits for EOB :) b 769 libavcodec/dvenc.c b->area_q[a]++; b 770 libavcodec/dvenc.c prev = b->prev[a]; b 771 libavcodec/dvenc.c av_assert2(b->next[prev] >= mb_area_start[a + 1] || b->mb[prev]); b 772 libavcodec/dvenc.c for (k = b->next[prev]; k < mb_area_start[a + 1]; k = b->next[k]) { b 773 libavcodec/dvenc.c b->mb[k] >>= 1; b 774 libavcodec/dvenc.c if (b->mb[k]) { b 775 libavcodec/dvenc.c b->bit_size[a] += dv_rl2vlc_size(k - prev - 1, b->mb[k]); b 778 libavcodec/dvenc.c if (b->next[k] >= mb_area_start[a + 1] && b->next[k] < 64) { b 779 libavcodec/dvenc.c for (a2 = a + 1; b->next[k] >= mb_area_start[a2 + 1]; a2++) b 780 libavcodec/dvenc.c b->prev[a2] = prev; b 782 libavcodec/dvenc.c av_assert2(b->mb[b->next[k]]); b 783 libavcodec/dvenc.c b->bit_size[a2] += dv_rl2vlc_size(b->next[k] - prev - 1, b->mb[b->next[k]]) - b 784 libavcodec/dvenc.c dv_rl2vlc_size(b->next[k] - k - 1, b->mb[b->next[k]]); b 785 libavcodec/dvenc.c av_assert2(b->prev[a2] == k && (a2 + 1 >= 4 || b->prev[a2 + 1] != k)); b 786 libavcodec/dvenc.c b->prev[a2] = prev; b 788 libavcodec/dvenc.c b->next[prev] = b->next[k]; b 791 libavcodec/dvenc.c b->prev[a + 1] = prev; b 793 libavcodec/dvenc.c size[i] += b->bit_size[a]; b 802 libavcodec/dvenc.c b = blks; b 804 libavcodec/dvenc.c for (j = 0; j < 6 * 5; j++, b++) { b 805 libavcodec/dvenc.c prev = b->prev[0]; b 806 libavcodec/dvenc.c for (k = b->next[prev]; k < 64; k = b->next[k]) { b 807 libavcodec/dvenc.c if (b->mb[k] < a && b->mb[k] > -a) { b 808 libavcodec/dvenc.c b->next[prev] = b->next[k]; b 810 libavcodec/dvenc.c size[0] += dv_rl2vlc_size(k - prev - 1, b->mb[k]); b 909 libavcodec/dvenc.c uint8_t *b = scratch; b 912 libavcodec/dvenc.c b[0] = c_ptr[0]; b 913 libavcodec/dvenc.c b[1] = c_ptr[1]; b 914 libavcodec/dvenc.c b[2] = c_ptr[2]; b 915 libavcodec/dvenc.c b[3] = c_ptr[3]; b 916 libavcodec/dvenc.c b[4] = d[0]; b 917 libavcodec/dvenc.c b[5] = d[1]; b 918 libavcodec/dvenc.c b[6] = d[2]; b 919 libavcodec/dvenc.c b[7] = d[3]; b 921 libavcodec/dvenc.c b += 16; b 334 libavcodec/dxtory.c int r, g, b; b 341 libavcodec/dxtory.c b = decode_sym_565(gb, lru[0], 5); b 346 libavcodec/dxtory.c dst[x * 3 + 2] = (b << 3) | (b >> 2); b 264 libavcodec/eac3dec.c int b; b 270 libavcodec/eac3dec.c b = 1 << (23 - log_gain); b 272 libavcodec/eac3dec.c b = ff_eac3_gaq_remap_2_4_b[hebap-8][log_gain-1] * (1 << 8); b 273 libavcodec/eac3dec.c mant += ((ff_eac3_gaq_remap_2_4_a[hebap-8][log_gain-1] * (int64_t)mant) >> 15) + b; b 193 libavcodec/eatgq.c const int b = (11 * (100 - quant)) / 100 + 4; b 196 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 271 libavcodec/error_resilience.c int a, b, c, d; b 274 libavcodec/error_resilience.c b = dst[offset + 8 + y * stride] - dst[offset + 7 + y * stride]; b 277 libavcodec/error_resilience.c d = FFABS(b) - ((FFABS(a) + FFABS(c) + 1) >> 1); b 279 libavcodec/error_resilience.c if (b < 0) b 343 libavcodec/error_resilience.c int a, b, c, d; b 346 libavcodec/error_resilience.c b = dst[offset + x + 8 * stride] - dst[offset + x + 7 * stride]; b 349 libavcodec/error_resilience.c d = FFABS(b) - ((FFABS(a) + FFABS(c) + 1) >> 1); b 351 libavcodec/error_resilience.c if (b < 0) b 349 libavcodec/evrcdec.c float a[FILTER_ORDER / 2 + 1], b[FILTER_ORDER / 2 + 1]; b 360 libavcodec/evrcdec.c b[0] = k < 2 ? k < 1 ? 0.25 : -0.25 : 0; b 364 libavcodec/evrcdec.c b[i + 1] = b[i] - 2 * lsp[i * 2 + 1] * b1[i] + b2[i]; b 368 libavcodec/evrcdec.c b1[i] = b[i]; b 372 libavcodec/evrcdec.c ilpc[k - 1] = 2.0 * (a[FILTER_ORDER / 2] + b[FILTER_ORDER / 2]); b 584 libavcodec/exr.c static inline void wdec14(uint16_t l, uint16_t h, uint16_t *a, uint16_t *b) b 594 libavcodec/exr.c *b = bs; b 601 libavcodec/exr.c static inline void wdec16(uint16_t l, uint16_t h, uint16_t *a, uint16_t *b) b 607 libavcodec/exr.c *b = bb; b 859 libavcodec/exr.c static void unpack_14(const uint8_t b[14], uint16_t s[16]) b 861 libavcodec/exr.c unsigned short shift = (b[ 2] >> 2) & 15; b 865 libavcodec/exr.c s[ 0] = (b[0] << 8) | b[1]; b 867 libavcodec/exr.c s[ 4] = s[ 0] + ((((b[ 2] << 4) | (b[ 3] >> 4)) & 0x3f) << shift) - bias; b 868 libavcodec/exr.c s[ 8] = s[ 4] + ((((b[ 3] << 2) | (b[ 4] >> 6)) & 0x3f) << shift) - bias; b 869 libavcodec/exr.c s[12] = s[ 8] + ((b[ 4] & 0x3f) << shift) - bias; b 871 libavcodec/exr.c s[ 1] = s[ 0] + ((b[ 5] >> 2) << shift) - bias; b 872 libavcodec/exr.c s[ 5] = s[ 4] + ((((b[ 5] << 4) | (b[ 6] >> 4)) & 0x3f) << shift) - bias; b 873 libavcodec/exr.c s[ 9] = s[ 8] + ((((b[ 6] << 2) | (b[ 7] >> 6)) & 0x3f) << shift) - bias; b 874 libavcodec/exr.c s[13] = s[12] + ((b[ 7] & 0x3f) << shift) - bias; b 876 libavcodec/exr.c s[ 2] = s[ 1] + ((b[ 8] >> 2) << shift) - bias; b 877 libavcodec/exr.c s[ 6] = s[ 5] + ((((b[ 8] << 4) | (b[ 9] >> 4)) & 0x3f) << shift) - bias; b 878 libavcodec/exr.c s[10] = s[ 9] + ((((b[ 9] << 2) | (b[10] >> 6)) & 0x3f) << shift) - bias; b 879 libavcodec/exr.c s[14] = s[13] + ((b[10] & 0x3f) << shift) - bias; b 881 libavcodec/exr.c s[ 3] = s[ 2] + ((b[11] >> 2) << shift) - bias; b 882 libavcodec/exr.c s[ 7] = s[ 6] + ((((b[11] << 4) | (b[12] >> 4)) & 0x3f) << shift) - bias; b 883 libavcodec/exr.c s[11] = s[10] + ((((b[12] << 2) | (b[13] >> 6)) & 0x3f) << shift) - bias; b 884 libavcodec/exr.c s[15] = s[14] + ((b[13] & 0x3f) << shift) - bias; b 894 libavcodec/exr.c static void unpack_3(const uint8_t b[3], uint16_t s[16]) b 898 libavcodec/exr.c s[0] = (b[0] << 8) | b[1]; 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 165 libavcodec/ffv1dec_template.c int b = sample[1][1][x]; b 170 libavcodec/ffv1dec_template.c b -= offset; b 172 libavcodec/ffv1dec_template.c g -= (b * s->slice_rct_by_coef + r * s->slice_rct_ry_coef) >> 2; b 173 libavcodec/ffv1dec_template.c b += g; b 178 libavcodec/ffv1dec_template.c *((uint32_t*)(src[0] + x*4 + stride[0]*y)) = b + ((unsigned)g<<8) + ((unsigned)r<<16) + ((unsigned)a<<24); b 181 libavcodec/ffv1dec_template.c *((uint16_t*)(src[1] + x*2 + stride[1]*y)) = b; b 186 libavcodec/ffv1dec_template.c *((uint16_t*)(src[0] + x*2 + stride[0]*y)) = b; b 846 libavcodec/ffv1enc.c double a=0, b=0; b 850 libavcodec/ffv1enc.c if (s->rc_stat2[i][j][k][0] + s->rc_stat2[i][j][k][1] > 200 && j || a+b > 200) { b 851 libavcodec/ffv1enc.c if (a+b) b 852 libavcodec/ffv1enc.c p = 256.0 * b / (a + b); b 854 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; b 857 libavcodec/ffv1enc.c a=b=0; b 860 libavcodec/ffv1enc.c b += s->rc_stat2[i][j][k][1]; b 861 libavcodec/ffv1enc.c if (a+b) { b 862 libavcodec/ffv1enc.c p = 256.0 * b / (a + b); b 865 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; b 993 libavcodec/ffv1enc.c int b, g, r; b 997 libavcodec/ffv1enc.c b = v & 0xFF; b 1001 libavcodec/ffv1enc.c b = *((const uint16_t*)(src[0] + x*2 + stride[0]*y)); b 1008 libavcodec/ffv1enc.c ab = b - lastb; b 1028 libavcodec/ffv1enc.c lastb = b; b 149 libavcodec/ffv1enc_template.c int b, g, r, av_uninit(a); b 152 libavcodec/ffv1enc_template.c b = v & 0xFF; b 160 libavcodec/ffv1enc_template.c b = p[2]; b 165 libavcodec/ffv1enc_template.c b = *((const uint16_t *)(src[1] + x*2 + stride[1]*y)); b 170 libavcodec/ffv1enc_template.c b = *((const uint16_t *)(src[0] + x*2 + stride[0]*y)); b 176 libavcodec/ffv1enc_template.c b -= g; b 178 libavcodec/ffv1enc_template.c g += (b * s->slice_rct_by_coef + r * s->slice_rct_ry_coef) >> 2; b 179 libavcodec/ffv1enc_template.c b += offset; b 184 libavcodec/ffv1enc_template.c sample[1][0][x] = b; b 161 libavcodec/ffwavesynth.c static uint64_t frac64(uint64_t a, uint64_t b) b 166 libavcodec/ffwavesynth.c if (b < (uint64_t)1 << 32) { /* b small, use two 32-bits steps */ b 168 libavcodec/ffwavesynth.c return ((a / b) << 32) | ((a % b) << 32) / b; b 170 libavcodec/ffwavesynth.c if (b < (uint64_t)1 << 48) { /* b medium, use four 16-bits steps */ b 173 libavcodec/ffwavesynth.c r = (r << 16) | (a / b); b 174 libavcodec/ffwavesynth.c a %= b; b 179 libavcodec/ffwavesynth.c if (a >= (uint64_t)1 << 63 || a << 1 >= b) { b 181 libavcodec/ffwavesynth.c a = (a << 1) - b; b 286 libavcodec/flacdec.c unsigned av_uninit(a), av_uninit(b), av_uninit(c), av_uninit(d); b 301 libavcodec/flacdec.c b = a - decoded[pred_order-2]; b 303 libavcodec/flacdec.c c = b - decoded[pred_order-2] + decoded[pred_order-3]; b 316 libavcodec/flacdec.c decoded[i] = a += b += decoded[i]; b 320 libavcodec/flacdec.c decoded[i] = a += b += c += decoded[i]; b 324 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 unsigned b = in[1][i]; b 72 libavcodec/flacdsp_template.c S(samples, 1, i) = (a - b) << shift; b 84 libavcodec/flacdsp_template.c unsigned 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 788 libavcodec/flacenc.c int b = smp[i ] - smp[i-1]; b 789 libavcodec/flacenc.c res[i] = b - a; b 791 libavcodec/flacenc.c res[i+1] = a - b; b 797 libavcodec/flacenc.c int b = smp[i ] - smp[i-1]; b 798 libavcodec/flacenc.c int d = b - a; b 801 libavcodec/flacenc.c c = a - b; b 809 libavcodec/flacenc.c int b = smp[i ] - smp[i-1]; b 810 libavcodec/flacenc.c int d = b - a; b 814 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 415 libavcodec/flashsv2enc.c #define ABSDIFF(a,b) (abs((int)(a)-(int)(b))) b 470 libavcodec/flashsv2enc.c int r, g, b; b 474 libavcodec/flashsv2enc.c for (b = 4; b < 256; b += 8) { b 475 libavcodec/flashsv2enc.c bgr = b | (g << 8) | (r << 16); b 476 libavcodec/flashsv2enc.c c15 = (b >> 3) | ((g & 0xf8) << 2) | ((r & 0xf8) << 7); b 536 libavcodec/flashsv2enc.c static int encode_15_7(Palette * palette, Block * b, const uint8_t * src, b 540 libavcodec/flashsv2enc.c uint8_t *ptr = b->enc; b 541 libavcodec/flashsv2enc.c for (i = 0; i < b->start; i++) b 542 libavcodec/flashsv2enc.c ptr += encode_15_7_sl(palette, ptr, src + i * stride, b->width, dist); b 543 libavcodec/flashsv2enc.c b->sl_begin = ptr; b 544 libavcodec/flashsv2enc.c for (; i < b->start + b->len; i++) b 545 libavcodec/flashsv2enc.c ptr += encode_15_7_sl(palette, ptr, src + i * stride, b->width, dist); b 546 libavcodec/flashsv2enc.c b->sl_end = ptr; b 547 libavcodec/flashsv2enc.c for (; i < b->height; i++) b 548 libavcodec/flashsv2enc.c ptr += encode_15_7_sl(palette, ptr, src + i * stride, b->width, dist); b 549 libavcodec/flashsv2enc.c b->enc_size = ptr - b->enc; b 550 libavcodec/flashsv2enc.c return b->enc_size; b 553 libavcodec/flashsv2enc.c static int encode_block(FlashSV2Context *s, Palette * palette, Block * b, b 557 libavcodec/flashsv2enc.c unsigned buf_size = b->width * b->height * 6; b 561 libavcodec/flashsv2enc.c if (b->flags & COLORSPACE_15_7) { b 562 libavcodec/flashsv2enc.c encode_15_7(palette, b, src, stride, dist); b 564 libavcodec/flashsv2enc.c encode_bgr(b, src, stride); b 567 libavcodec/flashsv2enc.c if (b->len > 0) { b 568 libavcodec/flashsv2enc.c b->data_size = buf_size; b 569 libavcodec/flashsv2enc.c res = encode_zlib(b, b->data, &b->data_size, comp); b 574 libavcodec/flashsv2enc.c res = encode_zlibprime(b, prev, buf, &buf_size, comp); b 578 libavcodec/flashsv2enc.c if (buf_size < b->data_size) { b 579 libavcodec/flashsv2enc.c b->data_size = buf_size; b 580 libavcodec/flashsv2enc.c memcpy(b->data, buf, buf_size); b 581 libavcodec/flashsv2enc.c b->flags |= ZLIB_PRIME_COMPRESS_PREVIOUS; b 585 libavcodec/flashsv2enc.c b->data_size = 0; b 590 libavcodec/flashsv2enc.c static int compare_sl(FlashSV2Context * s, Block * b, const uint8_t * src, b 593 libavcodec/flashsv2enc.c if (memcmp(src, frame, b->width * 3) != 0) { b 594 libavcodec/flashsv2enc.c b->dirty = 1; b 595 libavcodec/flashsv2enc.c memcpy(frame, src, b->width * 3); b 600 libavcodec/flashsv2enc.c if (memcmp(src, key, b->width * 3) != 0) { b 601 libavcodec/flashsv2enc.c if (b->len == 0) b 602 libavcodec/flashsv2enc.c b->start = y; b 603 libavcodec/flashsv2enc.c b->len = y + 1 - b->start; b 612 libavcodec/flashsv2enc.c Block *b; b 616 libavcodec/flashsv2enc.c b = s->frame_blocks + col + rsl / s->block_height * s->cols; b 619 libavcodec/flashsv2enc.c compare_sl(s, b, src + possl, s->current_frame + pos, b 633 libavcodec/flashsv2enc.c Block *b, *prev; b 636 libavcodec/flashsv2enc.c b = s->frame_blocks + (row * s->cols + col); b 638 libavcodec/flashsv2enc.c b->flags = s->use15_7 ? COLORSPACE_15_7 : 0; b 640 libavcodec/flashsv2enc.c b->start = 0; b 641 libavcodec/flashsv2enc.c b->len = b->height; b 642 libavcodec/flashsv2enc.c } else if (!b->dirty) { b 643 libavcodec/flashsv2enc.c b->start = 0; b 644 libavcodec/flashsv2enc.c b->len = 0; b 645 libavcodec/flashsv2enc.c b->data_size = 0; b 647 libavcodec/flashsv2enc.c } else if (b->start != 0 || b->len != b->height) { b 648 libavcodec/flashsv2enc.c b->flags |= HAS_DIFF_BLOCKS; b 651 libavcodec/flashsv2enc.c res = encode_block(s, &s->palette, b, prev, data, s->image_width * 3, s->comp, s->dist, keyframe); b 653 libavcodec/flashsv2enc.c if (b->dirty) b 655 libavcodec/flashsv2enc.c s->comp_size += b->data_size; b 656 libavcodec/flashsv2enc.c s->uncomp_size += b->enc_size; b 673 libavcodec/flashsv2enc.c Block *b; b 676 libavcodec/flashsv2enc.c b = s->frame_blocks + row * s->cols + col; b 677 libavcodec/flashsv2enc.c len = write_block(b, buf + buf_pos, buf_size - buf_pos); b 678 libavcodec/flashsv2enc.c b->start = b->len = b->dirty = 0; b 173 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 54 libavcodec/g723_1.c int ff_g723_1_dot_product(const int16_t *a, const int16_t *b, int length) b 56 libavcodec/g723_1.c int sum = ff_dot_product(a, b, length); b 57 libavcodec/g723_1.h #define MULL2(a, b) \ b 58 libavcodec/g723_1.h ((((a) >> 16) * (b) * 2) + (((a) & 0xffff) * (b) >> 15)) b 180 libavcodec/g723_1.h int ff_g723_1_dot_product(const int16_t *a, const int16_t *b, int length); b 84 libavcodec/g726.c int b[6]; /**< sixth order predictor coeffs */ b 218 libavcodec/g726.c c->b[i] = 0; b 229 libavcodec/g726.c c->b[i] += 128*dq0*sgn(-c->dq[i].sign) - (c->b[i]>>8); b 266 libavcodec/g726.c c->se += mult(i2f(c->b[i] >> 2, &f), &c->dq[i]); b 265 libavcodec/gdv.c int b = bytestream2_get_byte(gb); b 266 libavcodec/gdv.c int len = (b & 0xF) + 3; b 267 libavcodec/gdv.c int top = (b >> 4) & 0xF; b 302 libavcodec/gdv.c int b = bytestream2_get_byte(gb); b 303 libavcodec/gdv.c int len = (b & 0xF) + 3; b 304 libavcodec/gdv.c int top = b >> 4; b 309 libavcodec/gdv.c int b = bytestream2_get_byte(gb); b 310 libavcodec/gdv.c if (b == 0) { b 313 libavcodec/gdv.c if (b != 0xFF) { b 314 libavcodec/gdv.c len = b; b 320 libavcodec/gdv.c int b = bytestream2_get_byte(gb); b 321 libavcodec/gdv.c int len = (b & 0x3) + 2; b 322 libavcodec/gdv.c int off = -(b >> 2) - 1; b 346 libavcodec/gdv.c int b = read_bits32(&bits, gb, 1); b 347 libavcodec/gdv.c if (b == 0) { b 369 libavcodec/gdv.c int b = read_bits32(&bits, gb, 1); b 372 libavcodec/gdv.c if (b == 0) { b 410 libavcodec/gdv.c int b = bytestream2_get_byte(gb); b 411 libavcodec/gdv.c int off = ((b & 0x7F)) + 1; b 412 libavcodec/gdv.c int len = ((b & 0x80) == 0) ? 2 : 3; b 420 libavcodec/gdv.c int q, b = bytestream2_get_byte(gb); b 421 libavcodec/gdv.c if ((b & 0xC0) == 0xC0) { b 422 libavcodec/gdv.c len = ((b & 0x3F)) + 8; b 427 libavcodec/gdv.c if ((b & 0x80) == 0) { b 428 libavcodec/gdv.c len = ((b >> 4)) + 6; b 429 libavcodec/gdv.c ofs1 = (b & 0xF); b 431 libavcodec/gdv.c len = ((b & 0x3F)) + 14; b 437 libavcodec/gdv.c int ofs1, b = bytestream2_get_byte(gb); b 439 libavcodec/gdv.c if ((b >> 4) == 0xF) { b 442 libavcodec/gdv.c len = (b >> 4) + 6; b 444 libavcodec/gdv.c ofs1 = (b & 0xF); b 496 libavcodec/gdv.c unsigned b = bytestream2_get_byte(gb); b 497 libavcodec/gdv.c gdv->pal[i] = 0xFFU << 24 | r << 18 | g << 10 | b << 2; b 42 libavcodec/gsmdec_template.c static inline int gsm_mult(int a, int b) b 44 libavcodec/gsmdec_template.c return (int)(a * (SUINT)b + (1 << 14)) >> 15; b 365 libavcodec/h264_direct.c int a, b; b 384 libavcodec/h264_direct.c b = 0; b 388 libavcodec/h264_direct.c b = mv[1]; b 392 libavcodec/h264_direct.c b = mv[1]; b 395 libavcodec/h264_direct.c fill_rectangle(&sl->mv_cache[1][scan8[i8 * 4]], 2, 2, 8, b, 4); b 402 libavcodec/h264_direct.c int a, b; b 414 libavcodec/h264_direct.c a = b = 0; b 418 libavcodec/h264_direct.c b = mv[1]; b 421 libavcodec/h264_direct.c b = mv[1]; b 424 libavcodec/h264_direct.c fill_rectangle(&sl->mv_cache[1][scan8[0]], 4, 4, 8, b, 4); b 104 libavcodec/h264_loopfilter.c unsigned int qp, int a, int b, b 109 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 126 libavcodec/h264_loopfilter.c unsigned int qp, int a, int b, b 131 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 149 libavcodec/h264_loopfilter.c int qp, int a, int b, b 154 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 173 libavcodec/h264_loopfilter.c int b, int intra) b 177 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 194 libavcodec/h264_loopfilter.c unsigned int qp, int a, int b, b 199 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 216 libavcodec/h264_loopfilter.c unsigned int qp, int a, int b, b 221 libavcodec/h264_loopfilter.c const int beta = beta_table[qp + b]; b 256 libavcodec/h264_loopfilter.c int b = 52 + sl->slice_beta_offset - qp_bd_offset; b 275 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*0<<pixel_shift], linesize, bS4, qp0, a, b, h, 1); b 277 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*2<<pixel_shift], linesize, bS3, qp, a, b, h, 0); b 279 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*0*linesize], linesize, bSH, qp1, a, b, h, 1); b 281 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*2*linesize], linesize, bS3, qp, a, b, h, 0); b 283 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*1<<pixel_shift], linesize, bS3, qp, a, b, h, 0); b 284 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*2<<pixel_shift], linesize, bS3, qp, a, b, h, 0); b 285 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*3<<pixel_shift], linesize, bS3, qp, a, b, h, 0); b 287 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*0*linesize], linesize, bSH, qp1, a, b, h, 1); b 289 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*1*linesize], linesize, bS3, qp, a, b, h, 0); b 290 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*2*linesize], linesize, bS3, qp, a, b, h, 0); b 291 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[4*3*linesize], linesize, bS3, qp, a, b, h, 0); b 296 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cb[4*0<<pixel_shift], linesize, bS4, qpc0, a, b, h, 1); b 297 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cr[4*0<<pixel_shift], linesize, bS4, qpc0, a, b, h, 1); b 300 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cb[4*2<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 301 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cr[4*2<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 303 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*0*linesize], linesize, bSH, qpc1, a, b, h, 1 ); b 304 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*0*linesize], linesize, bSH, qpc1, a, b, h, 1 ); b 306 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*2*linesize], linesize, bS3, qpc, a, b, h, 0); b 307 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*2*linesize], linesize, bS3, qpc, a, b, h, 0); b 309 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cb[4*1<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 310 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cr[4*1<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 311 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cb[4*2<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 312 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cr[4*2<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 313 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cb[4*3<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 314 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_cr[4*3<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); b 316 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*0*linesize], linesize, bSH, qpc1, a, b, h, 1); b 317 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*0*linesize], linesize, bSH, qpc1, a, b, h, 1); b 319 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*1*linesize], linesize, bS3, qpc, a, b, h, 0); b 320 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*1*linesize], linesize, bS3, qpc, a, b, h, 0); b 321 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*2*linesize], linesize, bS3, qpc, a, b, h, 0); b 322 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*2*linesize], linesize, bS3, qpc, a, b, h, 0); b 323 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cb[4*3*linesize], linesize, bS3, qpc, a, b, h, 0); b 324 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_cr[4*3*linesize], linesize, bS3, qpc, a, b, h, 0); b 328 libavcodec/h264_loopfilter.c filter_mb_edgecv(&img_cb[2*0<<pixel_shift], uvlinesize, bS4, qpc0, a, b, h, 1); b 329 libavcodec/h264_loopfilter.c filter_mb_edgecv(&img_cr[2*0<<pixel_shift], uvlinesize, bS4, qpc0, a, b, h, 1); b 331 libavcodec/h264_loopfilter.c filter_mb_edgecv(&img_cb[2*2<<pixel_shift], uvlinesize, bS3, qpc, a, b, h, 0); b 332 libavcodec/h264_loopfilter.c filter_mb_edgecv(&img_cr[2*2<<pixel_shift], uvlinesize, bS3, qpc, a, b, h, 0); b 334 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[4*0*uvlinesize], uvlinesize, bSH, qpc1, a, b, h, 1); b 335 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[4*0*uvlinesize], uvlinesize, bSH, qpc1, a, b, h, 1); b 337 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[4*1*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 338 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[4*1*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 339 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[4*2*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 340 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[4*2*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 341 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[4*3*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 342 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[4*3*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 345 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cb[2*0<<pixel_shift], uvlinesize, bS4, qpc0, a, b, h, 1); b 346 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cr[2*0<<pixel_shift], uvlinesize, bS4, qpc0, a, b, h, 1); b 348 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cb[2*2<<pixel_shift], uvlinesize, bS3, qpc, a, b, h, 0); b 349 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cr[2*2<<pixel_shift], uvlinesize, bS3, qpc, a, b, h, 0); b 351 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cb[2*0*uvlinesize], uvlinesize, bSH, qpc1, a, b, h, 1); b 352 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cr[2*0*uvlinesize], uvlinesize, bSH, qpc1, a, b, h, 1); b 354 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cb[2*2*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 355 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cr[2*2*uvlinesize], uvlinesize, bS3, qpc, a, b, h, 0); b 383 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 386 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 387 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 389 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 390 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 475 libavcodec/h264_loopfilter.c int first_vertical_edge_done, int a, int b, b 532 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[j*linesize], tmp_linesize, bS, qp, a, b, h, 0 ); b 537 libavcodec/h264_loopfilter.c filter_mb_edgeh (&img_cb[j*uvlinesize], tmp_uvlinesize, bS, chroma_qp_avg[0], a, b, h, 0); b 538 libavcodec/h264_loopfilter.c filter_mb_edgeh (&img_cr[j*uvlinesize], tmp_uvlinesize, bS, chroma_qp_avg[1], a, b, h, 0); b 540 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[j*uvlinesize], tmp_uvlinesize, bS, chroma_qp_avg[0], a, b, h, 0); b 541 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[j*uvlinesize], tmp_uvlinesize, bS, chroma_qp_avg[1], a, b, h, 0); b 601 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[0], linesize, bS, qp, a, b, h, 1 ); b 604 libavcodec/h264_loopfilter.c filter_mb_edgev ( &img_cb[0], uvlinesize, bS, chroma_qp_avg[0], a, b, h, 1); b 605 libavcodec/h264_loopfilter.c filter_mb_edgev ( &img_cr[0], uvlinesize, bS, chroma_qp_avg[1], a, b, h, 1); b 607 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cb[0], uvlinesize, bS, chroma_qp_avg[0], a, b, h, 1); b 608 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cr[0], uvlinesize, bS, chroma_qp_avg[1], a, b, h, 1); b 612 libavcodec/h264_loopfilter.c filter_mb_edgeh( &img_y[0], linesize, bS, qp, a, b, h, 1 ); b 615 libavcodec/h264_loopfilter.c filter_mb_edgeh ( &img_cb[0], uvlinesize, bS, chroma_qp_avg[0], a, b, h, 1); b 616 libavcodec/h264_loopfilter.c filter_mb_edgeh ( &img_cr[0], uvlinesize, bS, chroma_qp_avg[1], a, b, h, 1); b 618 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cb[0], uvlinesize, bS, chroma_qp_avg[0], a, b, h, 1); b 619 libavcodec/h264_loopfilter.c filter_mb_edgech( &img_cr[0], uvlinesize, bS, chroma_qp_avg[1], a, b, h, 1); b 684 libavcodec/h264_loopfilter.c filter_mb_edgev( &img_y[4*edge << h->pixel_shift], linesize, bS, qp, a, b, h, 0 ); b 687 libavcodec/h264_loopfilter.c filter_mb_edgev ( &img_cb[4*edge << h->pixel_shift], uvlinesize, bS, sl->chroma_qp[0], a, b, h, 0); b 688 libavcodec/h264_loopfilter.c filter_mb_edgev ( &img_cr[4*edge << h->pixel_shift], uvlinesize, bS, sl->chroma_qp[1], a, b, h, 0); b 690 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cb[2*edge << h->pixel_shift], uvlinesize, bS, sl->chroma_qp[0], a, b, h, 0); b 691 libavcodec/h264_loopfilter.c filter_mb_edgecv( &img_cr[2*edge << h->pixel_shift], uvlinesize, bS, sl->chroma_qp[1], a, b, h, 0); b 697 libavcodec/h264_loopfilter.c filter_mb_edgeh(&img_y[4*edge*linesize], linesize, bS, qp, a, b, h, 0); b 699 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[4*edge*uvlinesize], uvlinesize, bS, sl->chroma_qp[0], a, b, h, 0); b 700 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[4*edge*uvlinesize], uvlinesize, bS, sl->chroma_qp[1], a, b, h, 0); b 703 libavcodec/h264_loopfilter.c filter_mb_edgeh(&img_y[4*edge*linesize], linesize, bS, qp, a, b, h, 0); b 706 libavcodec/h264_loopfilter.c filter_mb_edgeh (&img_cb[4*edge*uvlinesize], uvlinesize, bS, sl->chroma_qp[0], a, b, h, 0); b 707 libavcodec/h264_loopfilter.c filter_mb_edgeh (&img_cr[4*edge*uvlinesize], uvlinesize, bS, sl->chroma_qp[1], a, b, h, 0); b 709 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cb[2*edge*uvlinesize], uvlinesize, bS, sl->chroma_qp[0], a, b, h, 0); b 710 libavcodec/h264_loopfilter.c filter_mb_edgech(&img_cr[2*edge*uvlinesize], uvlinesize, bS, sl->chroma_qp[1], a, b, h, 0); b 730 libavcodec/h264_loopfilter.c int b = 52 + sl->slice_beta_offset - qp_bd_offset; b 797 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_y , linesize, bS , 1, qp [0], a, b, 1 ); b 798 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_y + 8* linesize, linesize, bS+4, 1, qp [1], a, b, 1 ); b 801 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cb, uvlinesize, bS , 1, bqp[0], a, b, 1 ); b 802 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cb + 8*uvlinesize, uvlinesize, bS+4, 1, bqp[1], a, b, 1 ); b 803 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cr, uvlinesize, bS , 1, rqp[0], a, b, 1 ); b 804 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cr + 8*uvlinesize, uvlinesize, bS+4, 1, rqp[1], a, b, 1 ); b 806 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv(h, img_cb, uvlinesize, bS , 1, bqp[0], a, b, 1); b 807 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv(h, img_cb + 8*uvlinesize, uvlinesize, bS+4, 1, bqp[1], a, b, 1); b 808 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv(h, img_cr, uvlinesize, bS , 1, rqp[0], a, b, 1); b 809 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv(h, img_cr + 8*uvlinesize, uvlinesize, bS+4, 1, rqp[1], a, b, 1); b 811 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cb, uvlinesize, bS , 1, bqp[0], a, b, 1 ); b 812 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cb + 4*uvlinesize, uvlinesize, bS+4, 1, bqp[1], a, b, 1 ); b 813 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cr, uvlinesize, bS , 1, rqp[0], a, b, 1 ); b 814 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cr + 4*uvlinesize, uvlinesize, bS+4, 1, rqp[1], a, b, 1 ); b 818 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_y , 2* linesize, bS , 2, qp [0], a, b, 1 ); b 819 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_y + linesize, 2* linesize, bS+1, 2, qp [1], a, b, 1 ); b 822 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cb, 2*uvlinesize, bS , 2, bqp[0], a, b, 1 ); b 823 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cb + uvlinesize, 2*uvlinesize, bS+1, 2, bqp[1], a, b, 1 ); b 824 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cr, 2*uvlinesize, bS , 2, rqp[0], a, b, 1 ); b 825 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgev ( h, img_cr + uvlinesize, 2*uvlinesize, bS+1, 2, rqp[1], a, b, 1 ); b 827 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cb, 2*uvlinesize, bS , 2, bqp[0], a, b, 1 ); b 828 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cb + uvlinesize, 2*uvlinesize, bS+1, 2, bqp[1], a, b, 1 ); b 829 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cr, 2*uvlinesize, bS , 2, rqp[0], a, b, 1 ); b 830 libavcodec/h264_loopfilter.c filter_mb_mbaff_edgecv( h, img_cr + uvlinesize, 2*uvlinesize, bS+1, 2, rqp[1], a, b, 1 ); b 842 libavcodec/h264_loopfilter.c dir ? 0 : first_vertical_edge_done, a, b, b 846 libavcodec/h264_loopfilter.c filter_mb_dir(h, sl, 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 847 libavcodec/h264_loopfilter.c filter_mb_dir(h, sl, mb_x, mb_y, img_y, img_cb, img_cr, linesize, uvlinesize, mb_xy, mb_type, mvy_limit, 0, a, b, chroma, 1); b 545 libavcodec/h264_mb.c #define XCHG(a, b, xchg) \ b 548 libavcodec/h264_mb.c AV_SWAP64(b + 0, a + 0); \ b 549 libavcodec/h264_mb.c AV_SWAP64(b + 8, a + 8); \ b 551 libavcodec/h264_mb.c AV_COPY128(b, a); \ b 554 libavcodec/h264_mb.c AV_SWAP64(b, a); \ b 556 libavcodec/h264_mb.c AV_COPY64(b, a); b 273 libavcodec/h264_slice.c #define IN_RANGE(a, b, size) (((void*)(a) >= (void*)(b)) && ((void*)(a) < (void*)((b) + (size)))) b 204 libavcodec/h264chroma_template.c #define op_avg(a, b) a = (((a)+(((b) + 32)>>6)+1)>>1) b 205 libavcodec/h264chroma_template.c #define op_put(a, b) a = (((b) + 32)>>6) b 836 libavcodec/h264dec.c AVVideoBlockParams *b = av_video_enc_params_block(par, block_idx); b 838 libavcodec/h264dec.c b->src_x = x * 16; b 839 libavcodec/h264dec.c b->src_y = y * 16; b 840 libavcodec/h264dec.c b->w = 16; b 841 libavcodec/h264dec.c b->h = 16; b 843 libavcodec/h264dec.c b->delta_qp = p->qscale_table[mb_xy] - par->qp; b 666 libavcodec/h264dec.h static av_always_inline uint32_t pack16to32(unsigned a, unsigned b) b 669 libavcodec/h264dec.h return (b & 0xFFFF) + (a << 16); b 671 libavcodec/h264dec.h return (a & 0xFFFF) + (b << 16); b 675 libavcodec/h264dec.h static av_always_inline uint16_t pack8to16(unsigned a, unsigned b) b 678 libavcodec/h264dec.h return (b & 0xFF) + (a << 8); b 680 libavcodec/h264dec.h return (a & 0xFF) + (b << 8); b 307 libavcodec/h264idct_template.c SUINT 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]= (int)((e+b)*qmul) >> 7; b 323 libavcodec/h264idct_template.c block[stride*1 + xStride*1]= (int)((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 99 libavcodec/hcadec.c static inline unsigned ceil2(unsigned a, unsigned b) b 101 libavcodec/hcadec.c return (b > 0) ? (a / b + ((a % b) ? 1 : 0)) : 0; b 110 libavcodec/hcadec.c unsigned b, chunk; b 196 libavcodec/hcadec.c b = avctx->channels / c->track_count; b 197 libavcodec/hcadec.c if (c->stereo_band_count && b > 1) { b 200 libavcodec/hcadec.c for (int i = 0; i < c->track_count; i++, x+=b) { b 201 libavcodec/hcadec.c switch (b) { b 279 libavcodec/hevc_mvs.c #define COMPARE_MV_REFIDX(a, b) \ b 280 libavcodec/hevc_mvs.c compare_mv_ref_idx(TAB_MVF_PU(a), TAB_MVF_PU(b)) b 322 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 33 libavcodec/hq_hqadsp.c #define IDCTMUL(a, b) ((int)((a) * (unsigned)(b)) >> 16) 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 160 libavcodec/huffyuvdec.c int i, b, g, r, code; b 171 libavcodec/huffyuvdec.c for (b = -16; b < 16; b++) { b 172 libavcodec/huffyuvdec.c int len1 = s->len[p1][b & 255]; b 176 libavcodec/huffyuvdec.c code = (s->bits[p0][g & 255] << len1) + s->bits[p1][b & 255]; b 186 libavcodec/huffyuvdec.c map[i][B] = g + b; b 190 libavcodec/huffyuvdec.c map[i][G] = b; b 35 libavcodec/huffyuvdsp.c long b = *(long*)(dst+i); b 36 libavcodec/huffyuvdsp.c *(long*)(dst+i) = ((a&pw_lsb) + (b&pw_lsb)) ^ ((a^b)&pw_msb); b 63 libavcodec/huffyuvdsp.c uint8_t r = left[R], g = left[G], b = left[B], a = left[A]; b 66 libavcodec/huffyuvdsp.c b += src[4 * i + B]; b 71 libavcodec/huffyuvdsp.c dst[4 * i + B] = b; b 77 libavcodec/huffyuvdsp.c left[B] = b; b 88 libavcodec/huffyuvenc.c int r, g, b, a; b 92 libavcodec/huffyuvenc.c b = *blue; b 102 libavcodec/huffyuvenc.c dst[i * 4 + B] = bt - b; b 106 libavcodec/huffyuvenc.c b = bt; b 123 libavcodec/huffyuvenc.c int r, g, b; b 126 libavcodec/huffyuvenc.c b = *blue; b 133 libavcodec/huffyuvenc.c dst[i * 3 + 2] = bt - b; b 136 libavcodec/huffyuvenc.c b = bt; b 713 libavcodec/huffyuvenc.c int b =(s->temp[0][planes == 3 ? 3 * i + 2 : 4 * i + B] - g) & 0xFF;\ b 718 libavcodec/huffyuvenc.c s->stats[0][b]++; \ b 726 libavcodec/huffyuvenc.c put_bits(&s->pb, s->len[0][b], s->bits[0][b]); \ b 45 libavcodec/huffyuvencdsp.c long b = *(long*)(src2+i); b 46 libavcodec/huffyuvencdsp.c *(long*)(dst+i) = ((a|pw_msb) - (b&pw_lsb)) ^ ((a^b^pw_msb)&pw_msb); b 938 libavcodec/iff.c int kludge_j, b, g, r, d; b 970 libavcodec/iff.c for (b = 0; b < cols; b++) { b 1013 libavcodec/iff.c for (b = 0; b < bytes; b++) { b 73 libavcodec/ilbcdec.c #define SPL_MUL_16_16(a, b) ((int32_t) (((int16_t)(a)) * ((int16_t)(b)))) b 74 libavcodec/ilbcdec.c #define SPL_MUL_16_16_RSFT(a, b, c) (SPL_MUL_16_16(a, b) >> (c)) b 241 libavcodec/indeo3data.h #define PD(a,b) (((a) * (1 << 8)) + (b)) b 243 libavcodec/indeo3data.h #define PD(a,b) (((b) * (1 << 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) * (1 << 24)) + ((a) * (1 << 16)) + ((b) * (1 << 8)) + (b)) b 290 libavcodec/indeo3data.h #define PD(a,b) (((b) * (1 << 24)) + ((b) * (1 << 16)) + ((a) * (1 << 8)) + (a)) b 212 libavcodec/internal.h int ff_match_2uint16(const uint16_t (*tab)[2], int size, int a, int b); b 125 libavcodec/interplayacm.c int b, middle = 1 << (ind - 1); b 128 libavcodec/interplayacm.c b = get_bits(gb, ind); b 129 libavcodec/interplayacm.c set_pos(s, i, col, b - middle); b 137 libavcodec/interplayacm.c unsigned i, b; b 140 libavcodec/interplayacm.c b = get_bits1(gb); b 141 libavcodec/interplayacm.c if (b == 0) { b 148 libavcodec/interplayacm.c b = get_bits1(gb); b 149 libavcodec/interplayacm.c if (b == 0) { b 153 libavcodec/interplayacm.c b = get_bits1(gb); b 154 libavcodec/interplayacm.c set_pos(s, i, col, map_1bit[b]); b 162 libavcodec/interplayacm.c unsigned i, b; b 165 libavcodec/interplayacm.c b = get_bits1(gb); b 166 libavcodec/interplayacm.c if (b == 0) { b 171 libavcodec/interplayacm.c b = get_bits1(gb); b 172 libavcodec/interplayacm.c set_pos(s, i, col, map_1bit[b]); b 180 libavcodec/interplayacm.c unsigned i, b; b 183 libavcodec/interplayacm.c b = get_bits1(gb); b 184 libavcodec/interplayacm.c if (b == 0) { b 191 libavcodec/interplayacm.c b = get_bits1(gb); b 192 libavcodec/interplayacm.c if (b == 0) { b 197 libavcodec/interplayacm.c b = get_bits(gb, 2); b 198 libavcodec/interplayacm.c set_pos(s, i, col, map_2bit_near[b]); b 206 libavcodec/interplayacm.c unsigned i, b; b 209 libavcodec/interplayacm.c b = get_bits1(gb); b 210 libavcodec/interplayacm.c if (b == 0) { b 215 libavcodec/interplayacm.c b = get_bits(gb, 2); b 216 libavcodec/interplayacm.c set_pos(s, i, col, map_2bit_near[b]); b 224 libavcodec/interplayacm.c unsigned i, b; b 227 libavcodec/interplayacm.c b = get_bits1(gb); b 228 libavcodec/interplayacm.c if (b == 0) { b 236 libavcodec/interplayacm.c b = get_bits1(gb); b 237 libavcodec/interplayacm.c if (b == 0) { b 242 libavcodec/interplayacm.c b = get_bits1(gb); b 243 libavcodec/interplayacm.c if (b == 0) { b 244 libavcodec/interplayacm.c b = get_bits1(gb); b 245 libavcodec/interplayacm.c set_pos(s, i, col, map_1bit[b]); b 249 libavcodec/interplayacm.c b = get_bits(gb, 2); b 250 libavcodec/interplayacm.c set_pos(s, i, col, map_2bit_far[b]); b 258 libavcodec/interplayacm.c unsigned i, b; b 261 libavcodec/interplayacm.c b = get_bits1(gb); b 262 libavcodec/interplayacm.c if (b == 0) { b 267 libavcodec/interplayacm.c b = get_bits1(gb); b 268 libavcodec/interplayacm.c if (b == 0) { b 269 libavcodec/interplayacm.c b = get_bits1(gb); b 270 libavcodec/interplayacm.c set_pos(s, i, col, map_1bit[b]); b 274 libavcodec/interplayacm.c b = get_bits(gb, 2); b 275 libavcodec/interplayacm.c set_pos(s, i, col, map_2bit_far[b]); b 283 libavcodec/interplayacm.c unsigned i, b; b 286 libavcodec/interplayacm.c b = get_bits1(gb); b 287 libavcodec/interplayacm.c if (b == 0) { b 295 libavcodec/interplayacm.c b = get_bits1(gb); b 296 libavcodec/interplayacm.c if (b == 0) { b 301 libavcodec/interplayacm.c b = get_bits(gb, 3); b 302 libavcodec/interplayacm.c set_pos(s, i, col, map_3bit[b]); b 310 libavcodec/interplayacm.c unsigned i, b; b 313 libavcodec/interplayacm.c b = get_bits1(gb); b 314 libavcodec/interplayacm.c if (b == 0) { b 319 libavcodec/interplayacm.c b = get_bits(gb, 3); b 320 libavcodec/interplayacm.c set_pos(s, i, col, map_3bit[b]); b 328 libavcodec/interplayacm.c unsigned i, b; b 333 libavcodec/interplayacm.c b = get_bits(gb, 5); b 334 libavcodec/interplayacm.c if (b > 26) { b 335 libavcodec/interplayacm.c av_log(NULL, AV_LOG_ERROR, "Too large b = %d > 26\n", b); b 339 libavcodec/interplayacm.c n1 = (mul_3x3[b] & 0x0F) - 1; b 340 libavcodec/interplayacm.c n2 = ((mul_3x3[b] >> 4) & 0x0F) - 1; b 341 libavcodec/interplayacm.c n3 = ((mul_3x3[b] >> 8) & 0x0F) - 1; b 357 libavcodec/interplayacm.c unsigned i, b; b 362 libavcodec/interplayacm.c b = get_bits(gb, 7); b 363 libavcodec/interplayacm.c if (b > 124) { b 364 libavcodec/interplayacm.c av_log(NULL, AV_LOG_ERROR, "Too large b = %d > 124\n", b); b 368 libavcodec/interplayacm.c n1 = (mul_3x5[b] & 0x0F) - 2; b 369 libavcodec/interplayacm.c n2 = ((mul_3x5[b] >> 4) & 0x0F) - 2; b 370 libavcodec/interplayacm.c n3 = ((mul_3x5[b] >> 8) & 0x0F) - 2; b 386 libavcodec/interplayacm.c unsigned i, b; b 390 libavcodec/interplayacm.c b = get_bits(gb, 7); b 391 libavcodec/interplayacm.c if (b > 120) { b 392 libavcodec/interplayacm.c av_log(NULL, AV_LOG_ERROR, "Too large b = %d > 120\n", b); b 396 libavcodec/interplayacm.c n1 = (mul_2x11[b] & 0x0F) - 5; b 397 libavcodec/interplayacm.c n2 = ((mul_2x11[b] >> 4) & 0x0F) - 5; b 408 libavcodec/intrax8.c int a, b, c, i; b 433 libavcodec/intrax8.c b = w->prediction_table[2 * w->mb_x + !(w->mb_y & 1)]; // block[x ][y - 1] b 437 libavcodec/intrax8.c w->est_run = FFMIN(b, a); b 446 libavcodec/intrax8.c b &= 3; b 449 libavcodec/intrax8.c i = (0xFFEAF4C4 >> (2 * b + 8 * a)) & 3; b 283 libavcodec/ivi.c int p, b, t; b 287 libavcodec/ivi.c for (b = 0; b < planes[p].num_bands; b++) { b 288 libavcodec/ivi.c av_freep(&planes[p].bands[b].bufs[0]); b 289 libavcodec/ivi.c av_freep(&planes[p].bands[b].bufs[1]); b 290 libavcodec/ivi.c av_freep(&planes[p].bands[b].bufs[2]); b 291 libavcodec/ivi.c av_freep(&planes[p].bands[b].bufs[3]); b 293 libavcodec/ivi.c if (planes[p].bands[b].blk_vlc.cust_tab.table) b 294 libavcodec/ivi.c ff_free_vlc(&planes[p].bands[b].blk_vlc.cust_tab); b 295 libavcodec/ivi.c for (t = 0; t < planes[p].bands[b].num_tiles; t++) b 296 libavcodec/ivi.c av_freep(&planes[p].bands[b].tiles[t].mbs); b 297 libavcodec/ivi.c av_freep(&planes[p].bands[b].tiles); b 307 libavcodec/ivi.c int p, b; b 348 libavcodec/ivi.c for (b = 0; b < planes[p].num_bands; b++) { b 349 libavcodec/ivi.c band = &planes[p].bands[b]; /* select appropriate plane/band */ b 351 libavcodec/ivi.c band->band_num = b; b 370 libavcodec/ivi.c int p, int b, int t_height, int t_width) b 393 libavcodec/ivi.c if (p || b) { b 411 libavcodec/ivi.c int p, b, x_tiles, y_tiles, t_width, t_height, ret; b 429 libavcodec/ivi.c for (b = 0; b < planes[p].num_bands; b++) { b 430 libavcodec/ivi.c band = &planes[p].bands[b]; b 451 libavcodec/ivi.c p, b, t_height, t_width); b 1086 libavcodec/ivi.c int result, p, b; b 1129 libavcodec/ivi.c for (b = 0; b < ctx->planes[p].num_bands; b++) { b 1130 libavcodec/ivi.c result = decode_band(ctx, &ctx->planes[p].bands[b], avctx); b 1133 libavcodec/ivi.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 217 libavcodec/jpeg2000.h static inline int ff_jpeg2000_ceildivpow2(int a, int b) b 219 libavcodec/jpeg2000.h return -((-(int64_t)a) >> b); b 222 libavcodec/jpeg2000.h static inline int ff_jpeg2000_ceildiv(int a, int b) b 224 libavcodec/jpeg2000.h return (a + (int64_t)b - 1) / b; b 2262 libavcodec/jpeg2000dec.c uint32_t r, g, b; b 2276 libavcodec/jpeg2000dec.c b = bytestream2_get_byteu(&s->g) << 8 - colour_depth[2]; b 2277 libavcodec/jpeg2000dec.c b |= b >> colour_depth[2]; b 2279 libavcodec/jpeg2000dec.c b = bytestream2_get_be16u(&s->g) >> colour_depth[2] - 8; b 2281 libavcodec/jpeg2000dec.c s->palette[i] = 0xffu << 24 | r << 16 | g << 8 | b; b 541 libavcodec/jpeg2000dwt.c b[2][2]; b 548 libavcodec/jpeg2000dwt.c b[i][j] = border[i][j]; b 550 libavcodec/jpeg2000dwt.c maxlen = FFMAX(b[0][1] - b[0][0], b 551 libavcodec/jpeg2000dwt.c b[1][1] - b[1][0]); b 554 libavcodec/jpeg2000dwt.c s->linelen[lev][i] = b[i][1] - b[i][0]; b 555 libavcodec/jpeg2000dwt.c s->mod[lev][i] = b[i][0] & 1; b 557 libavcodec/jpeg2000dwt.c b[i][j] = (b[i][j] + 1) >> 1; b 502 libavcodec/jpeglsdec.c int b = src[x+0] + ((454 * (src[x+1]-128) + 574) >> 8); b 505 libavcodec/jpeglsdec.c src[x+2] = av_clip_uint8(b); b 36 libavcodec/libzvbi-teletextdec.c #define RGBA(r,g,b,a) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) b 237 libavcodec/libzvbi-teletextdec.c int b = VBI_B(page->color_map[ci]); b 238 libavcodec/libzvbi-teletextdec.c av_bprintf(buf, "{\\%s&H%02X%02X%02X&}", type, b, g, r); b 491 libavcodec/libzvbi-teletextdec.c int r, g, b, a; b 495 libavcodec/libzvbi-teletextdec.c b = VBI_B(page->color_map[ci]); b 497 libavcodec/libzvbi-teletextdec.c ((uint32_t *)sub_rect->data[1])[ci] = RGBA(r, g, b, a); b 498 libavcodec/libzvbi-teletextdec.c ((uint32_t *)sub_rect->data[1])[ci + VBI_NB_COLORS] = RGBA(r, g, b, ctx->opacity); b 121 libavcodec/loco.c int a, b, c; b 124 libavcodec/loco.c b = data[-1]; b 127 libavcodec/loco.c return mid_pred(a, a + b - c, b); b 34 libavcodec/lossless_videodsp.c long b = *(long *) (dst + i); b 35 libavcodec/lossless_videodsp.c *(long *) (dst + i) = ((a & pb_7f) + (b & pb_7f)) ^ ((a ^ b) & pb_80); b 48 libavcodec/lossless_videoencdsp.c long b = *(long *) (src2 + i); b 49 libavcodec/lossless_videoencdsp.c *(long *) (dst + i) = ((a | pb_80) - (b & pb_7f)) ^ b 50 libavcodec/lossless_videoencdsp.c ((a ^ b ^ pb_80) & pb_80); b 177 libavcodec/lpc.c const double a = 0.5f, b = 1.0f - a; b 181 libavcodec/lpc.c double weight = a - b*cos((2*M_PI*i)/(len - 1)); b 197 libavcodec/lpc.h LPC_TYPE b = lpc_last[i-1-j]; b 198 libavcodec/lpc.h lpc[ j] = f + (LPC_TYPE_U)AAC_MUL26(r, b); b 199 libavcodec/lpc.h lpc[i-1-j] = b + (LPC_TYPE_U)AAC_MUL26(r, f); b 77 libavcodec/magicyuv.c static int huff_cmp_len(const void *a, const void *b) b 79 libavcodec/magicyuv.c const HuffEntry *aa = a, *bb = b; b 83 libavcodec/magicyuv.c static int huff_cmp_len10(const void *a, const void *b) b 85 libavcodec/magicyuv.c const HuffEntry *aa = a, *bb = b; b 89 libavcodec/magicyuv.c static int huff_cmp_len12(const void *a, const void *b) b 91 libavcodec/magicyuv.c const HuffEntry *aa = a, *bb = b; b 328 libavcodec/magicyuv.c uint16_t *b = (uint16_t *)p->data[2] + j * s->slice_height * p->linesize[2] / 2; b 332 libavcodec/magicyuv.c b[k] = (b[k] + g[k]) & max; b 335 libavcodec/magicyuv.c b += p->linesize[0] / 2; b 460 libavcodec/magicyuv.c uint8_t *b = p->data[0] + j * s->slice_height * p->linesize[0]; b 465 libavcodec/magicyuv.c s->llviddsp.add_bytes(b, g, width); b 467 libavcodec/magicyuv.c b += p->linesize[0]; b 483 libavcodec/magicyuv.c int b = get_bits(gbit, 1); b 485 libavcodec/magicyuv.c int l = get_bitsz(gbit, b * 8) + 1; b 248 libavcodec/magicyuvenc.c static int magy_huff_cmp_len(const void *a, const void *b) b 250 libavcodec/magicyuvenc.c const HuffEntry *aa = a, *bb = b; b 254 libavcodec/magicyuvenc.c static int huff_cmp_sym(const void *a, const void *b) b 256 libavcodec/magicyuvenc.c const HuffEntry *aa = a, *bb = b; b 296 libavcodec/magicyuvenc.c static int compare_by_prob(const void *a, const void *b) b 299 libavcodec/magicyuvenc.c PTable b_val = *(PTable *)b; b 471 libavcodec/magicyuvenc.c uint8_t *r, *g, *b; b 475 libavcodec/magicyuvenc.c b = p->data[1]; b 479 libavcodec/magicyuvenc.c s->llvidencdsp.diff_bytes(b, b, g, width); b 482 libavcodec/magicyuvenc.c b += p->linesize[1]; b 54 libavcodec/mathops.h # define MUL64(a,b) ((int64_t)(a) * (int64_t)(b)) b 58 libavcodec/mathops.h # define MULL(a,b,s) (MUL64(a, b) >> (s)) b 62 libavcodec/mathops.h static av_always_inline int MULH(int a, int b){ b 63 libavcodec/mathops.h return MUL64(a, b) >> 32; b 68 libavcodec/mathops.h static av_always_inline unsigned UMULH(unsigned a, unsigned b){ b 69 libavcodec/mathops.h return ((uint64_t)(a) * (uint64_t)(b))>>32; b 74 libavcodec/mathops.h # define MAC64(d, a, b) ((d) += MUL64(a, b)) b 78 libavcodec/mathops.h # define MLS64(d, a, b) ((d) -= MUL64(a, b)) b 98 libavcodec/mathops.h static inline av_const int mid_pred(int a, int b, int c) b 100 libavcodec/mathops.h if(a>b){ b 101 libavcodec/mathops.h if(c>b){ b 102 libavcodec/mathops.h if(c>a) b=a; b 103 libavcodec/mathops.h else b=c; b 106 libavcodec/mathops.h if(b>c){ b 107 libavcodec/mathops.h if(c>a) b=c; b 108 libavcodec/mathops.h else b=a; b 111 libavcodec/mathops.h return b; b 117 libavcodec/mathops.h static inline av_const int median4(int a, int b, int c, int d) b 119 libavcodec/mathops.h if (a < b) { b 120 libavcodec/mathops.h if (c < d) return (FFMIN(b, d) + FFMAX(a, c)) / 2; b 121 libavcodec/mathops.h else return (FFMIN(b, c) + FFMAX(a, d)) / 2; b 123 libavcodec/mathops.h if (c < d) return (FFMIN(a, d) + FFMAX(b, c)) / 2; b 124 libavcodec/mathops.h else return (FFMIN(a, c) + FFMAX(b, d)) / 2; b 146 libavcodec/mathops.h #define COPY3_IF_LT(x, y, a, b, c, d)\ b 149 libavcodec/mathops.h (a) = (b);\ b 171 libavcodec/mathops.h # define PACK_2U8(a,b) (((a) << 8) | (b)) b 174 libavcodec/mathops.h # define PACK_4U8(a,b,c,d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d)) b 177 libavcodec/mathops.h # define PACK_2U16(a,b) (((a) << 16) | (b)) b 181 libavcodec/mathops.h # define PACK_2U8(a,b) (((b) << 8) | (a)) b 184 libavcodec/mathops.h # define PACK_4U8(a,b,c,d) (((d) << 24) | ((c) << 16) | ((b) << 8) | (a)) b 187 libavcodec/mathops.h # define PACK_2U16(a,b) (((b) << 16) | (a)) b 192 libavcodec/mathops.h # define PACK_2S8(a,b) PACK_2U8((a)&255, (b)&255) b 195 libavcodec/mathops.h # define PACK_4S8(a,b,c,d) PACK_4U8((a)&255, (b)&255, (c)&255, (d)&255) b 198 libavcodec/mathops.h # define PACK_2S16(a,b) PACK_2U16((a)&0xffff, (b)&0xffff) b 202 libavcodec/mathops.h # define FASTDIV(a,b) ((uint32_t)((((uint64_t)a) * ff_inverse[b]) >> 32)) b 209 libavcodec/mathops.h unsigned int b; b 212 libavcodec/mathops.h else if (a < (1 << 12)) b = ff_sqrt_tab[a >> 4] >> 2; b 214 libavcodec/mathops.h else if (a < (1 << 14)) b = ff_sqrt_tab[a >> 6] >> 1; b 215 libavcodec/mathops.h else if (a < (1 << 16)) b = ff_sqrt_tab[a >> 8] ; b 220 libavcodec/mathops.h b = ff_sqrt_tab[c >> (s + 8)]; b 221 libavcodec/mathops.h b = FASTDIV(c,b) + (b << s); b 224 libavcodec/mathops.h return b - (a < b * b); b 238 libavcodec/mathops.h } b; b 239 libavcodec/mathops.h b.u8 = a; b 240 libavcodec/mathops.h return b.s8; b 41 libavcodec/mdct15.c #define CMUL3(c, a, b) CMUL((c).re, (c).im, (a).re, (a).im, (b).re, (b).im) b 145 libavcodec/me_cmp.c #define avg2(a, b) (((a) + (b) + 1) >> 1) b 146 libavcodec/me_cmp.c #define avg4(a, b, c, d) (((a) + (b) + (c) + (d) + 2) >> 2) b 468 libavcodec/me_cmp.c static int zero_cmp(MpegEncContext *s, uint8_t *a, uint8_t *b, b 545 libavcodec/me_cmp.c int a, b; \ b 547 libavcodec/me_cmp.c b = y; \ b 548 libavcodec/me_cmp.c x = a + b; \ b 549 libavcodec/me_cmp.c y = a - b; \ b 79 libavcodec/mips/aacpsy_mips.h float a, b, c, d; b 105 libavcodec/mips/aacpsy_mips.h : [a]"=&f"(a), [b]"=&f"(b), b 71 libavcodec/mips/celp_filters_mips.c float a,b,c; b 76 libavcodec/mips/celp_filters_mips.c b = filter_coeffs[1]; b 78 libavcodec/mips/celp_filters_mips.c b -= filter_coeffs[0] * filter_coeffs[0]; b 80 libavcodec/mips/celp_filters_mips.c c -= filter_coeffs[0] * b; b 158 libavcodec/mips/celp_filters_mips.c : [a]"f"(a), [b]"f"(b), [c]"f"(c) b 60 libavcodec/mips/celp_math_mips.c static float ff_dot_productf_mips(const float* a, const float* b, b 78 libavcodec/mips/celp_math_mips.c : [sum] "=&f" (sum), [a] "+r" (a), [b] "+r" (b) b 1120 libavcodec/mips/h264dsp_mmi.c int a,b,c,d; b 1124 libavcodec/mips/h264dsp_mmi.c b = block[32] - block[48]; b 1127 libavcodec/mips/h264dsp_mmi.c block[16]= ((d+b)*qmul) >> 7; b 1129 libavcodec/mips/h264dsp_mmi.c block[48]= ((d-b)*qmul) >> 7; b 107 libavcodec/mips/h264qpel_mmi.c #define op2_avg(a, b) a = (((a)+CLIP(((b) + 512)>>10)+1)>>1) b 108 libavcodec/mips/h264qpel_mmi.c #define op2_put(a, b) a = CLIP(((b) + 512)>>10) b 2090 libavcodec/mips/h264qpel_mmi.c const uint8_t *src8, ptrdiff_t dstStride, ptrdiff_t src8Stride, int b) b 2138 libavcodec/mips/h264qpel_mmi.c } while (b -= 2); b 2142 libavcodec/mips/h264qpel_mmi.c const uint8_t *src8, ptrdiff_t dstStride, ptrdiff_t src8Stride, int b) b 2144 libavcodec/mips/h264qpel_mmi.c avg_pixels8_l2_shift5_mmi(dst, src16, src8, dstStride, src8Stride, b); b 2146 libavcodec/mips/h264qpel_mmi.c src8Stride, b); b 807 libavcodec/mips/hpeldsp_mmi.c const uint32_t b = AV_RN32(pixels + 1); b 809 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL) + b 812 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 818 libavcodec/mips/hpeldsp_mmi.c uint32_t b = AV_RN32(pixels + 1); b 820 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL); b 822 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 827 libavcodec/mips/hpeldsp_mmi.c b = AV_RN32(pixels + 1); b 829 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL) + b 832 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 936 libavcodec/mips/hpeldsp_mmi.c const uint32_t b = AV_RN32(pixels + 1); b 938 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL) + b 941 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 947 libavcodec/mips/hpeldsp_mmi.c uint32_t b = AV_RN32(pixels + 1); b 949 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL); b 951 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 956 libavcodec/mips/hpeldsp_mmi.c b = AV_RN32(pixels + 1); b 958 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL) + b 961 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 985 libavcodec/mips/hpeldsp_mmi.c const uint32_t b = AV_RN32(pixels + 1); b 987 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL) + b 990 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 996 libavcodec/mips/hpeldsp_mmi.c uint32_t b = AV_RN32(pixels + 1); b 998 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL); b 1000 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 1005 libavcodec/mips/hpeldsp_mmi.c b = AV_RN32(pixels + 1); b 1007 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL) + b 1010 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 1026 libavcodec/mips/hpeldsp_mmi.c const uint32_t b = AV_RN32(pixels + 1); b 1028 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL) + b 1031 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 1037 libavcodec/mips/hpeldsp_mmi.c uint32_t b = AV_RN32(pixels + 1); b 1039 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL); b 1041 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 1046 libavcodec/mips/hpeldsp_mmi.c b = AV_RN32(pixels + 1); b 1048 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL) + b 1051 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 1077 libavcodec/mips/hpeldsp_mmi.c const uint32_t b = AV_RN32(pixels + 1); b 1079 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL) + b 1082 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 1088 libavcodec/mips/hpeldsp_mmi.c uint32_t b = AV_RN32(pixels + 1); b 1090 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL); b 1092 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 1097 libavcodec/mips/hpeldsp_mmi.c b = AV_RN32(pixels + 1); b 1099 libavcodec/mips/hpeldsp_mmi.c (b & 0x03030303UL) + b 1102 libavcodec/mips/hpeldsp_mmi.c ((b & 0xFCFCFCFCUL) >> 2); b 34 libavcodec/mips/mathops.h static inline av_const int MULH(int a, int b) b 41 libavcodec/mips/mathops.h : "r"(a),"r"(b) b 47 libavcodec/mips/mathops.h static inline av_const int mid_pred(int a, int b, int c) b 49 libavcodec/mips/mathops.h int t = b; b 58 libavcodec/mips/mathops.h : "r"(b),"r"(c) b 1380 libavcodec/mips/vc1dsp_mmi.c int a, b, c, d; b 1385 libavcodec/mips/vc1dsp_mmi.c b = src[-1]; b 1389 libavcodec/mips/vc1dsp_mmi.c d2 = (a - d + b - c + 4 - rnd) >> 3; b 1392 libavcodec/mips/vc1dsp_mmi.c src[-1] = av_clip_uint8(b - d2); b 1403 libavcodec/mips/vc1dsp_mmi.c int a, b, c, d; b 1409 libavcodec/mips/vc1dsp_mmi.c b = left[7]; b 1413 libavcodec/mips/vc1dsp_mmi.c d2 = a - d + b - c; b 1416 libavcodec/mips/vc1dsp_mmi.c left[7] = ((b << 3) - d2 + rnd2) >> 3; b 1433 libavcodec/mips/vc1dsp_mmi.c int a, b, c, d; b 1438 libavcodec/mips/vc1dsp_mmi.c b = src[-stride]; b 1442 libavcodec/mips/vc1dsp_mmi.c d2 = (a - d + b - c + 4 - rnd) >> 3; b 1445 libavcodec/mips/vc1dsp_mmi.c src[-stride] = av_clip_uint8(b - d2); b 1456 libavcodec/mips/vc1dsp_mmi.c int a, b, c, d; b 1461 libavcodec/mips/vc1dsp_mmi.c b = top[56]; b 1465 libavcodec/mips/vc1dsp_mmi.c d2 = a - d + b - c; b 1468 libavcodec/mips/vc1dsp_mmi.c top[56] = ((b << 3) - d2 + rnd2) >> 3; b 2139 libavcodec/mips/vc1dsp_mmi.c #define DECLARE_FUNCTION(a, b) \ b 2140 libavcodec/mips/vc1dsp_mmi.c void ff_put_vc1_mspel_mc ## a ## b ## _mmi(uint8_t *dst, \ b 2145 libavcodec/mips/vc1dsp_mmi.c put_vc1_mspel_mc(dst, src, stride, a, b, rnd); \ b 2147 libavcodec/mips/vc1dsp_mmi.c void ff_avg_vc1_mspel_mc ## a ## b ## _mmi(uint8_t *dst, \ b 2152 libavcodec/mips/vc1dsp_mmi.c avg_vc1_mspel_mc(dst, src, stride, a, b, rnd); \ b 2154 libavcodec/mips/vc1dsp_mmi.c void ff_put_vc1_mspel_mc ## a ## b ## _16_mmi(uint8_t *dst, \ b 2159 libavcodec/mips/vc1dsp_mmi.c put_vc1_mspel_mc_16(dst, src, stride, a, b, rnd); \ b 2161 libavcodec/mips/vc1dsp_mmi.c void ff_avg_vc1_mspel_mc ## a ## b ## _16_mmi(uint8_t *dst, \ b 2166 libavcodec/mips/vc1dsp_mmi.c avg_vc1_mspel_mc_16(dst, src, stride, a, b, rnd); \ b 759 libavcodec/mips/vp3dsp_idct_mmi.c uint32_t a, b; b 762 libavcodec/mips/vp3dsp_idct_mmi.c b = AV_RN32(&src2[i * stride]); b 763 libavcodec/mips/vp3dsp_idct_mmi.c AV_WN32A(&dst[i * stride], no_rnd_avg32(a, b)); b 765 libavcodec/mips/vp3dsp_idct_mmi.c b = AV_RN32(&src2[i * stride + 4]); b 766 libavcodec/mips/vp3dsp_idct_mmi.c AV_WN32A(&dst[i * stride + 4], no_rnd_avg32(a, b)); b 588 libavcodec/mips/vp3dsp_idct_msa.c uint32_t a, b; b 591 libavcodec/mips/vp3dsp_idct_msa.c b = AV_RN32(&src2[i * stride]); b 592 libavcodec/mips/vp3dsp_idct_msa.c AV_WN32A(&dst[i * stride], no_rnd_avg32(a, b)); b 594 libavcodec/mips/vp3dsp_idct_msa.c b = AV_RN32(&src2[i * stride + 4]); b 595 libavcodec/mips/vp3dsp_idct_msa.c AV_WN32A(&dst[i * stride + 4], no_rnd_avg32(a, b)); b 2848 libavcodec/mips/vp8dsp_mmi.c int a = 8 - mx, b = mx; b 2901 libavcodec/mips/vp8dsp_mmi.c [a]"+&f"(a), [b]"+&f"(b) b 2908 libavcodec/mips/vp8dsp_mmi.c int a = 8 - mx, b = mx; b 2913 libavcodec/mips/vp8dsp_mmi.c dst[x] = (a * src[x] + b * src[x + 1] + 4) >> 3; b 2998 libavcodec/mips/vp8dsp_mmi.c int a = 8 - mx, b = mx; b 3006 libavcodec/mips/vp8dsp_mmi.c tmp[x] = (a * src[x] + b * src[x + 1] + 4) >> 3; b 3026 libavcodec/mips/vp8dsp_mmi.c int a = 8 - mx, b = mx; b 3063 libavcodec/mips/vp8dsp_mmi.c [a]"+&f"(a), [b]"+&f"(b) b 3070 libavcodec/mips/vp8dsp_mmi.c int a = 8 - mx, b = mx; b 3075 libavcodec/mips/vp8dsp_mmi.c dst[x] = (a * src[x] + b * src[x + 1] + 4) >> 3; b 3154 libavcodec/mips/vp8dsp_mmi.c int a = 8 - mx, b = mx; b 3162 libavcodec/mips/vp8dsp_mmi.c tmp[x] = (a * src[x] + b * src[x + 1] + 4) >> 3; b 3182 libavcodec/mips/vp8dsp_mmi.c int a = 8 - mx, b = mx; b 3216 libavcodec/mips/vp8dsp_mmi.c [a]"+&f"(a), [b]"+&f"(b) b 3223 libavcodec/mips/vp8dsp_mmi.c int a = 8 - mx, b = mx; b 3228 libavcodec/mips/vp8dsp_mmi.c dst[x] = (a * src[x] + b * src[x + 1] + 4) >> 3; b 3304 libavcodec/mips/vp8dsp_mmi.c int a = 8 - mx, b = mx; b 3312 libavcodec/mips/vp8dsp_mmi.c tmp[x] = (a * src[x] + b * src[x + 1] + 4) >> 3; b 37 libavcodec/mips/wmv2dsp_mmi.c static void wmv2_idct_row_mmi(short * b) b 43 libavcodec/mips/wmv2dsp_mmi.c a0 = W0 * b[0] + W0 * b[4]; b 44 libavcodec/mips/wmv2dsp_mmi.c a1 = W1 * b[1] + W7 * b[7]; b 45 libavcodec/mips/wmv2dsp_mmi.c a2 = W2 * b[2] + W6 * b[6]; b 46 libavcodec/mips/wmv2dsp_mmi.c a3 = W3 * b[5] - W5 * b[3]; b 47 libavcodec/mips/wmv2dsp_mmi.c a4 = W0 * b[0] - W0 * b[4]; b 48 libavcodec/mips/wmv2dsp_mmi.c a5 = W5 * b[5] + W3 * b[3]; b 49 libavcodec/mips/wmv2dsp_mmi.c a6 = W6 * b[2] - W2 * b[6]; b 50 libavcodec/mips/wmv2dsp_mmi.c a7 = W7 * b[1] - W1 * b[7]; b 57 libavcodec/mips/wmv2dsp_mmi.c b[0] = (a0 + a2 + a1 + a5 + 128) >> 8; b 58 libavcodec/mips/wmv2dsp_mmi.c b[1] = (a4 + a6 + s1 + 128) >> 8; b 59 libavcodec/mips/wmv2dsp_mmi.c b[2] = (a4 - a6 + s2 + 128) >> 8; b 60 libavcodec/mips/wmv2dsp_mmi.c b[3] = (a0 - a2 + a7 + a3 + 128) >> 8; b 61 libavcodec/mips/wmv2dsp_mmi.c b[4] = (a0 - a2 - a7 - a3 + 128) >> 8; b 62 libavcodec/mips/wmv2dsp_mmi.c b[5] = (a4 - a6 - s2 + 128) >> 8; b 63 libavcodec/mips/wmv2dsp_mmi.c b[6] = (a4 + a6 - s1 + 128) >> 8; b 64 libavcodec/mips/wmv2dsp_mmi.c b[7] = (a0 + a2 - a1 - a5 + 128) >> 8; b 67 libavcodec/mips/wmv2dsp_mmi.c static void wmv2_idct_col_mmi(short * b) b 73 libavcodec/mips/wmv2dsp_mmi.c a0 = (W0 * b[ 0] + W0 * b[32] ) >> 3; b 74 libavcodec/mips/wmv2dsp_mmi.c a1 = (W1 * b[ 8] + W7 * b[56] + 4) >> 3; b 75 libavcodec/mips/wmv2dsp_mmi.c a2 = (W2 * b[16] + W6 * b[48] + 4) >> 3; b 76 libavcodec/mips/wmv2dsp_mmi.c a3 = (W3 * b[40] - W5 * b[24] + 4) >> 3; b 77 libavcodec/mips/wmv2dsp_mmi.c a4 = (W0 * b[ 0] - W0 * b[32] ) >> 3; b 78 libavcodec/mips/wmv2dsp_mmi.c a5 = (W5 * b[40] + W3 * b[24] + 4) >> 3; b 79 libavcodec/mips/wmv2dsp_mmi.c a6 = (W6 * b[16] - W2 * b[48] + 4) >> 3; b 80 libavcodec/mips/wmv2dsp_mmi.c a7 = (W7 * b[ 8] - W1 * b[56] + 4) >> 3; b 87 libavcodec/mips/wmv2dsp_mmi.c b[ 0] = (a0 + a2 + a1 + a5 + 8192) >> 14; b 88 libavcodec/mips/wmv2dsp_mmi.c b[ 8] = (a4 + a6 + s1 + 8192) >> 14; b 89 libavcodec/mips/wmv2dsp_mmi.c b[16] = (a4 - a6 + s2 + 8192) >> 14; b 90 libavcodec/mips/wmv2dsp_mmi.c b[24] = (a0 - a2 + a7 + a3 + 8192) >> 14; b 92 libavcodec/mips/wmv2dsp_mmi.c b[32] = (a0 - a2 - a7 - a3 + 8192) >> 14; b 93 libavcodec/mips/wmv2dsp_mmi.c b[40] = (a4 - a6 - s2 + 8192) >> 14; b 94 libavcodec/mips/wmv2dsp_mmi.c b[48] = (a4 + a6 - s1 + 8192) >> 14; b 95 libavcodec/mips/wmv2dsp_mmi.c b[56] = (a0 + a2 - a1 - a5 + 8192) >> 14; b 2267 libavcodec/mjpegdec.c int t = 0, b = 0; b 2286 libavcodec/mjpegdec.c while (b < t) { b 2287 libavcodec/mjpegdec.c uint8_t x = src[b++]; b 2289 libavcodec/mjpegdec.c if (x == 0xFF && b < t) { b 2290 libavcodec/mjpegdec.c x = src[b++]; b 2732 libavcodec/mjpegdec.c int b = dst[2][j] * k; b 2734 libavcodec/mjpegdec.c dst[1][j] = b*257 >> 16; b 2755 libavcodec/mjpegdec.c int b = (128 - dst[2][j]) * k; b 2758 libavcodec/mjpegdec.c dst[2][j] = (b*257 >> 16) + 128; b 38 libavcodec/mjpegenc_huffman.c static int compare_by_prob(const void *a, const void *b) b 41 libavcodec/mjpegenc_huffman.c PTable b_val = *(PTable *) b; b 52 libavcodec/mjpegenc_huffman.c static int compare_by_length(const void *a, const void *b) b 55 libavcodec/mjpegenc_huffman.c HuffTable b_val = *(HuffTable *) b; b 72 libavcodec/motion_est.c static int minima_cmp(const void *a, const void *b){ b 74 libavcodec/motion_est.c const Minima *db = (const Minima *) b; b 297 libavcodec/motion_est.c static int zero_cmp(MpegEncContext *s, uint8_t *a, uint8_t *b, b 303 libavcodec/motion_est.c static void zero_hpel(uint8_t *a, const uint8_t *b, ptrdiff_t stride, int h){ b 428 libavcodec/motion_est.c const int b= score_map[(index+(1<<ME_MAP_SHIFT))&(ME_MAP_SIZE-1)]; b 437 libavcodec/motion_est.c if(t<=b){ b 441 libavcodec/motion_est.c if(t+r<=b+l){ b 451 libavcodec/motion_est.c if(t+l<=b+r){ b 462 libavcodec/motion_est.c if(t+l<=b+r){ b 472 libavcodec/motion_est.c if(t+r<=b+l){ b 1331 libavcodec/motion_est.c #define CHECK_BIDIR2(a,b,c,d)\ b 1332 libavcodec/motion_est.c CHECK_BIDIR(a,b,c,d)\ b 1333 libavcodec/motion_est.c CHECK_BIDIR(-(a),-(b),-(c),-(d)) b 1352 libavcodec/motion_est.c int b= (ymax - FFMAX(fy,by))|(FFMIN(fy,by) - ymin); b 1353 libavcodec/motion_est.c if((a|b) < 0) b 1371 libavcodec/motion_est.c int b= FFMIN(ymax - FFMAX(fy,by), FFMIN(fy,by) - ymin); b 1372 libavcodec/motion_est.c borderdist= FFMIN(a,b); b 92 libavcodec/motion_est_template.c const int b= score_map[(index+(1<<ME_MAP_SHIFT))&(ME_MAP_SIZE-1)] b 107 libavcodec/motion_est_template.c if(t<=b){ b 111 libavcodec/motion_est_template.c if(t+r<=b+l){ b 119 libavcodec/motion_est_template.c if(t+l<=b+r){ b 128 libavcodec/motion_est_template.c if(t+l<=b+r){ b 136 libavcodec/motion_est_template.c if(t+r<=b+l){ b 253 libavcodec/motion_est_template.c const int b= score_map[(index+(1<<ME_MAP_SHIFT) )&(ME_MAP_SIZE-1)]; b 270 libavcodec/motion_est_template.c const int64_t b2= nx*nx*(br + bl - 2*b) + 4*nx*(br-bl) + 32*b; b 298 libavcodec/motion_est_template.c const int cy = 4*(b - t); b 299 libavcodec/motion_est_template.c const int cy2= b + t - 2*c; b 312 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 205 libavcodec/mpeg4video.h int a, b, c, wrap, pred, scale, ret; b 223 libavcodec/mpeg4video.h b = dc_val[-1 - wrap]; b 230 libavcodec/mpeg4video.h b = c = 1024; b 232 libavcodec/mpeg4video.h b = a = 1024; b 236 libavcodec/mpeg4video.h b = 1024; b 239 libavcodec/mpeg4video.h if (abs(a - b) < abs(b - c)) { b 28 libavcodec/mpegaudiodec_fixed.c #define SHR(a,b) (((int)(a))>>(b)) b 29 libavcodec/mpegaudiodec_float.c #define SHR(a,b) ((a)*(1.0f/(1<<(b)))) b 577 libavcodec/mpegaudiodec_template.c int scale, qindex, bits, steps, k, l, m, b; b 659 libavcodec/mpegaudiodec_template.c b = bit_alloc[ch][i]; b 660 libavcodec/mpegaudiodec_template.c if (b) { b 662 libavcodec/mpegaudiodec_template.c qindex = alloc_table[j+b]; b 696 libavcodec/mpegaudiodec_template.c b = bit_alloc[0][i]; b 697 libavcodec/mpegaudiodec_template.c if (b) { b 701 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) (((int)(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 3758 libavcodec/mpegvideo_enc.c int a,b; b 3760 libavcodec/mpegvideo_enc.c b= ff_get_best_fcode(s, s->p_field_mv_table[1][1], CANDIDATE_MB_TYPE_INTER_I); b 3761 libavcodec/mpegvideo_enc.c s->f_code= FFMAX3(s->f_code, a, b); b 3777 libavcodec/mpegvideo_enc.c int a, b; b 3780 libavcodec/mpegvideo_enc.c b = ff_get_best_fcode(s, s->b_bidir_forw_mv_table, CANDIDATE_MB_TYPE_BIDIR); b 3781 libavcodec/mpegvideo_enc.c s->f_code = FFMAX(a, b); b 3784 libavcodec/mpegvideo_enc.c b = ff_get_best_fcode(s, s->b_bidir_back_mv_table, CANDIDATE_MB_TYPE_BIDIR); b 3785 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 38 libavcodec/mpegvideoencdsp.c int b = rem[i] + ((basis[i] * scale + b 42 libavcodec/mpegvideoencdsp.c b >>= RECON_SHIFT; b 43 libavcodec/mpegvideoencdsp.c av_assert2(-512 < b && b < 512); b 45 libavcodec/mpegvideoencdsp.c sum += (w * b) * (w * b) >> 4; b 155 libavcodec/msmpeg4.c int xy, wrap, pred, a, b, c; b 164 libavcodec/msmpeg4.c b = s->coded_block[xy - 1 - wrap]; b 167 libavcodec/msmpeg4.c if (b == c) { b 196 libavcodec/msmpeg4.c int a, b, c, wrap, pred, scale; b 213 libavcodec/msmpeg4.c b = dc_val[ - 1 - wrap]; b 217 libavcodec/msmpeg4.c b=c=1024; b 239 libavcodec/msmpeg4.c : "+b" (a), "+c" (b), "+D" (c) b 247 libavcodec/msmpeg4.c b = (b + (8 >> 1)) / 8; b 251 libavcodec/msmpeg4.c b = FASTDIV((b + (scale >> 1)), scale); b 269 libavcodec/msmpeg4.c if (abs(a - b) < abs(b - c)) { b 315 libavcodec/msmpeg4.c if (abs(a - b) < abs(b - c)) { b 324 libavcodec/msmpeg4.c if (abs(a - b) <= abs(b - c)) { b 125 libavcodec/mss1.c int i, ncol, r, g, b; b 135 libavcodec/mss1.c b = arith_get_bits(acoder, 8); b 136 libavcodec/mss1.c *pal++ = (0xFFU << 24) | (r << 16) | (g << 8) | b; b 186 libavcodec/mss2.c #define READ_PAIR(a, b) \ b 190 libavcodec/mss2.c b = (t & 0xF) << 8; \ b 191 libavcodec/mss2.c b |= bytestream2_get_byte(gB); \ b 209 libavcodec/mss2.c int b = bytestream2_get_byte(gB); b 210 libavcodec/mss2.c if (b < 128) b 211 libavcodec/mss2.c last_symbol = b << 8 | bytestream2_get_byte(gB); b 212 libavcodec/mss2.c else if (b > 129) { b 214 libavcodec/mss2.c while (b-- > 130) { b 227 libavcodec/mss2.c last_symbol = 127 - b; b 336 libavcodec/mss2.c int b = get_vlc2(gb, vlc.table, 9, 3); b 337 libavcodec/mss2.c if (b < 256) b 338 libavcodec/mss2.c last_symbol = b; b 339 libavcodec/mss2.c else if (b < 268) { b 340 libavcodec/mss2.c b -= 256; b 341 libavcodec/mss2.c if (b == 11) b 342 libavcodec/mss2.c b = get_bits(gb, 4) + 10; b 344 libavcodec/mss2.c if (!b) b 347 libavcodec/mss2.c repeat = get_bits(gb, b); b 349 libavcodec/mss2.c repeat += (1 << b) - 1; b 358 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 447 libavcodec/mv30.c for (int b = 0; b < 6; b++) { b 450 libavcodec/mv30.c ret = decode_intra_block(avctx, mode, &gbyte, s->intraq_tab[b >= 4], b 451 libavcodec/mv30.c s->block[b], b 452 libavcodec/mv30.c pfill[(b >= 4) + (b >= 5)], b 453 libavcodec/mv30.c dst[b], linesize[b]); b 563 libavcodec/mv30.c for (int b = 0; b < 6; b++) b 564 libavcodec/mv30.c copy_block8(dst[b], src[b], linesize[b], in_linesize[b], 8); b 566 libavcodec/mv30.c for (int b = 0; b < 6; b++) { b 569 libavcodec/mv30.c ret = decode_inter_block(avctx, mode, &gbyte, s->interq_tab[b >= 4], b 570 libavcodec/mv30.c s->block[b], b 571 libavcodec/mv30.c pfill[(b >= 4) + (b >= 5)], b 572 libavcodec/mv30.c dst[b], linesize[b], b 573 libavcodec/mv30.c src[b], in_linesize[b]); b 579 libavcodec/mv30.c for (int b = 0; b < 6; b++) { b 582 libavcodec/mv30.c ret = decode_intra_block(avctx, mode, &gbyte, s->intraq_tab[b >= 4], b 583 libavcodec/mv30.c s->block[b], b 584 libavcodec/mv30.c pfill[(b >= 4) + (b >= 5)], b 585 libavcodec/mv30.c dst[b], linesize[b]); b 96 libavcodec/nellymoser.c int b = buf[i]-off; b 97 libavcodec/nellymoser.c b = ((b>>(shift-1))+1)>>1; b 98 libavcodec/nellymoser.c ret += av_clip(b, 0, NELLY_BIT_CAP); b 90 libavcodec/on2avc.c int w, b, band_off = 0; b 103 libavcodec/on2avc.c for (b = 0; b < c->num_bands; b++) b 141 libavcodec/on2avc.c int w, w2, b, scale, first = 1; b 152 libavcodec/on2avc.c for (b = 0; b < c->num_bands; b++) { b 158 libavcodec/on2avc.c if (c->band_type[w2 * c->num_bands + b]) { b 256 libavcodec/on2avc.c int w, b, band_idx; b 268 libavcodec/on2avc.c for (b = 0; b < c->num_bands; b++) { b 269 libavcodec/on2avc.c int band_size = c->band_start[b + 1] - c->band_start[b]; b 270 libavcodec/on2avc.c int band_type = c->band_type[band_idx + b]; b 278 libavcodec/on2avc.c c->band_scales[band_idx + b]); b 281 libavcodec/on2avc.c c->band_scales[band_idx + b]); b 292 libavcodec/on2avc.c int w, b, i; b 298 libavcodec/on2avc.c for (b = 0; b < c->num_bands; b++) { b 299 libavcodec/on2avc.c if (c->ms_info[band_off + b]) { b 300 libavcodec/on2avc.c for (i = c->band_start[b]; i < c->band_start[b + 1]; i++) { b 306 libavcodec/on2avc.c ch0 += c->band_start[b + 1] - c->band_start[b]; b 307 libavcodec/on2avc.c ch1 += c->band_start[b + 1] - c->band_start[b]; b 469 libavcodec/opus.c int b = 0; b 477 libavcodec/opus.c b = av_clip_uintp2(FFMIN(f->remaining2 + 1, f->pulses[i] + curr_balance), 14); b 527 libavcodec/opus.c cm[0] = f->pvq->quant_band(f->pvq, f, rc, i, X, NULL, band_size, b >> 1, b 532 libavcodec/opus.c cm[1] = f->pvq->quant_band(f->pvq, f, rc, i, Y, NULL, band_size, b >> 1, b 537 libavcodec/opus.c cm[0] = f->pvq->quant_band(f->pvq, f, rc, i, X, Y, band_size, b >> 0, b 549 libavcodec/opus.c update_lowband = (b > band_size << 3); b 50 libavcodec/opus.h #define ROUND_MULL(a,b,s) (((MUL64(a, b) >> ((s) - 1)) + 1) >> 1) b 51 libavcodec/opus.h #define ROUND_MUL16(a,b) ((MUL16(a, b) + 16384) >> 15) b 239 libavcodec/opus_pvq.c static inline int celt_compute_qn(int N, int b, int offset, int pulse_cap, b 250 libavcodec/opus_pvq.c qb = FFMIN3(b - pulse_cap - (4 << 3), (b + N2 * offset) / N2, 8 << 3); b 484 libavcodec/opus_pvq.c float *Y, int N, int b, b 572 libavcodec/opus_pvq.c if (!stereo && duration >= 0 && b > cache[cache[0]] + 12 && N > 2) { b 597 libavcodec/opus_pvq.c celt_compute_qn(N, b, offset, pulse_cap, stereo); b 638 libavcodec/opus_pvq.c if (b > 2 << 3 && f->remaining2 > 2 << 3) { b 644 libavcodec/opus_pvq.c inv = (b > 2 << 3 && f->remaining2 > 2 << 3) ? ff_opus_rc_dec_log(rc, 2) : 0; b 650 libavcodec/opus_pvq.c b -= qalloc; b 682 libavcodec/opus_pvq.c mbits = b; b 737 libavcodec/opus_pvq.c mbits = av_clip((b - delta) / 2, 0, b); b 738 libavcodec/opus_pvq.c sbits = b - mbits; b 788 libavcodec/opus_pvq.c uint32_t q = celt_bits2pulses(cache, b); b 880 libavcodec/opus_pvq.c return quant_band_template(pvq, f, rc, band, X, Y, N, b, blocks, lowband, duration, b 890 libavcodec/opus_pvq.c return quant_band_template(pvq, f, rc, band, X, Y, N, b, blocks, lowband, duration, b 30 libavcodec/opus_pvq.h float *Y, int N, int b, uint32_t blocks, \ b 77 libavcodec/opus_rc.c static av_always_inline void opus_rc_enc_update(OpusRangeCoder *rc, uint32_t b, uint32_t p, b 80 libavcodec/opus_rc.c uint32_t rscaled, cnd = !!b; b 85 libavcodec/opus_rc.c rc->value += cnd*(rc->range - rscaled*(p_tot - b)); b 86 libavcodec/opus_rc.c rc->range = (!cnd)*(rc->range - rscaled*(p_tot - p)) + cnd*rscaled*(p - b); b 228 libavcodec/opus_rc.c const uint32_t a = val <= k0, b = 2*a + 1; b 230 libavcodec/opus_rc.c val = b*(val + k0) - 3*a*k0; b 231 libavcodec/opus_rc.c opus_rc_enc_update(rc, val, val + b, (k0 << 1) - 1, 0); b 444 libavcodec/opus_silk.c int a, b, c, d; b 452 libavcodec/opus_silk.c for (b = 0; b < 2; b++) { b 453 libavcodec/opus_silk.c silk_count_children(rc, 1, branch[1][b], branch[2]); b 125 libavcodec/opusenc.c CeltBlock *b = &f->block[ch]; b 128 libavcodec/opusenc.c memcpy(b->overlap, input, bps*cur->nb_samples); b 140 libavcodec/opusenc.c CeltBlock *b = &f->block[ch]; b 145 libavcodec/opusenc.c memcpy(&b->samples[sf*subframesize], input, len); b 146 libavcodec/opusenc.c memset(&b->samples[cur->nb_samples], 0, left); b 163 libavcodec/opusenc.c CeltBlock *b = &f->block[ch]; b 164 libavcodec/opusenc.c float m = b->emph_coeff; b 166 libavcodec/opusenc.c float sample = b->overlap[i]; b 167 libavcodec/opusenc.c b->overlap[i] = sample - m; b 170 libavcodec/opusenc.c b->emph_coeff = m; b 176 libavcodec/opusenc.c CeltBlock *b = &f->block[ch]; b 177 libavcodec/opusenc.c float m = b->emph_coeff; b 179 libavcodec/opusenc.c float sample = b->samples[sf*subframesize + i]; b 180 libavcodec/opusenc.c b->samples[sf*subframesize + i] = sample - m; b 184 libavcodec/opusenc.c b->emph_coeff = m; b 196 libavcodec/opusenc.c CeltBlock *b = &f->block[ch]; b 197 libavcodec/opusenc.c float *src1 = b->overlap; b 199 libavcodec/opusenc.c float *src2 = &b->samples[CELT_OVERLAP*t]; b 204 libavcodec/opusenc.c s->mdct[0]->mdct(s->mdct[0], b->coeffs + t, win, f->blocks); b 212 libavcodec/opusenc.c CeltBlock *b = &f->block[ch]; b 215 libavcodec/opusenc.c s->dsp->vector_fmul(temp, b->overlap, ff_celt_window, 128); b 219 libavcodec/opusenc.c memcpy(&win[lap_dst + CELT_OVERLAP], b->samples, rwin*sizeof(float)); b 222 libavcodec/opusenc.c s->dsp->vector_fmul_reverse(temp, b->samples + rwin, b 226 libavcodec/opusenc.c s->mdct[f->size]->mdct(s->mdct[f->size], b->coeffs, win, 1); b 31 libavcodec/opusenc_psy.c int i, b = 0; b 49 libavcodec/opusenc_psy.c b = av_clip_uintp2(FFMIN(f->remaining2 + 1, f->pulses[band] + curr_balance), 14); b 53 libavcodec/opusenc_psy.c pvq->quant_band(pvq, f, rc, band, X, NULL, band_size, b / 2, f->blocks, NULL, b 56 libavcodec/opusenc_psy.c pvq->quant_band(pvq, f, rc, band, Y, NULL, band_size, b / 2, f->blocks, NULL, b 59 libavcodec/opusenc_psy.c pvq->quant_band(pvq, f, rc, band, X, Y, band_size, b, f->blocks, NULL, f->size, b 29 libavcodec/opusenc_utils.h float b[2]; b 58 libavcodec/opusenc_utils.h s->b[0] = 2.0f * s->a[0] * (1.0f/k2 - 1.0f); b 59 libavcodec/opusenc_utils.h s->b[1] = 1.0f - (s->a[0] + s->a[1] + s->a[2] + s->b[0]); b 63 libavcodec/opusenc_utils.h s->b[0] *= -1; b 83 libavcodec/opusenc_utils.h s->y[0] = s->a[0]*s->x[0] + s->a[1]*s->x[1] + s->a[2]*s->x[2] + s->b[0]*s->y[1] + s->b[1]*s->y[2]; b 321 libavcodec/pafvideo.c unsigned r, g, b; b 327 libavcodec/pafvideo.c b = bytestream2_get_byteu(&c->gb); b 328 libavcodec/pafvideo.c b = b << 2 | b >> 4; b 329 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) (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)) b 336 libavcodec/pgssubdec.c int r, g, b, r_add, g_add, b_add; b 367 libavcodec/pgssubdec.c YUV_TO_RGB2_CCIR(r, g, b, y); b 369 libavcodec/pgssubdec.c ff_dlog(avctx, "Color %d := (%d,%d,%d,%d)\n", color_id, r, g, b, alpha); b 372 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 323 libavcodec/pixlet.c int32_t b = bytestream2_get_be32(&ctx->gb); b 343 libavcodec/pixlet.c c, (b >= FFABS(a)) ? b : a, d, b 121 libavcodec/pngdec.c int x, mask, dsp_mask, j, src_x, b, bpp; b 134 libavcodec/pngdec.c b = (src[src_x >> 3] >> (7 - (src_x & 7))) & 1; b 136 libavcodec/pngdec.c dst[x >> 3] |= b << (7 - j); b 148 libavcodec/pngdec.c b = (src[src_x >> 2] >> (6 - 2*(src_x & 3))) & 3; b 150 libavcodec/pngdec.c dst[x >> 2] |= b << (6 - j2); b 162 libavcodec/pngdec.c b = (src[src_x >> 1] >> (4 - 4*(src_x & 1))) & 15; b 164 libavcodec/pngdec.c dst[x >> 1] |= b << (4 - j2); b 192 libavcodec/pngdec.c int a, b, c, p, pa, pb, pc; b 195 libavcodec/pngdec.c b = top[i]; b 198 libavcodec/pngdec.c p = b - c; b 208 libavcodec/pngdec.c p = b; b 221 libavcodec/pngdec.c b = dst[2]; \ b 231 libavcodec/pngdec.c dst[i + 2] = b = op(b, src[i + 2], last[i + 2]); \ b 256 libavcodec/pngdec.c int i, p, r, g, b, a; b 787 libavcodec/pngdec.c int n, i, r, g, b; b 796 libavcodec/pngdec.c b = bytestream2_get_byte(&s->gb); b 797 libavcodec/pngdec.c s->palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | b; b 1119 libavcodec/pngdec.c size_t b; b 1163 libavcodec/pngdec.c for (b = 0; b < s->bpp - 1; ++b) { b 1165 libavcodec/pngdec.c output[b] = 0; b 1167 libavcodec/pngdec.c output[b] = FAST_DIV255(foreground_alpha * foreground[b] + (255 - foreground_alpha) * background[b]); b 1169 libavcodec/pngdec.c output[b] = (255 * foreground_alpha * foreground[b] + (255 - foreground_alpha) * background_alpha * background[b]) / (255 * output_alpha); b 1172 libavcodec/pngdec.c output[b] = output_alpha; b 1616 libavcodec/pngdec.c for (int b = 0; b < nb_blocks; b++) { b 1630 libavcodec/pngdec.c bytestream2_seek(gb, 2 + b * 12, SEEK_SET); 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 86 libavcodec/pngenc.c int x, mask, dst_x, j, b, bpp; b 99 libavcodec/pngenc.c b = (src[x >> 3] >> (7 - j)) & 1; b 100 libavcodec/pngenc.c dst[dst_x >> 3] |= b << (7 - (dst_x & 7)); b 126 libavcodec/pngenc.c int a, b, c, p, pa, pb, pc; b 129 libavcodec/pngenc.c b = top[i]; b 132 libavcodec/pngenc.c p = b - c; b 142 libavcodec/pngenc.c p = b; b 263 libavcodec/pnmdec.c float *r, *g, *b; b 267 libavcodec/pnmdec.c b = (float *)p->data[1]; b 272 libavcodec/pnmdec.c b[j] = av_int2float(AV_RL32(s->bytestream+8)) * scale; b 278 libavcodec/pnmdec.c b += p->linesize[1] / 4; b 281 libavcodec/pnmdec.c float *r, *g, *b; b 285 libavcodec/pnmdec.c b = (float *)p->data[1]; b 290 libavcodec/pnmdec.c b[j] = av_int2float(AV_RB32(s->bytestream+8)) * scale; b 296 libavcodec/pnmdec.c b += p->linesize[1] / 4; b 216 libavcodec/ppc/fdctdsp.c #define MERGE_S16(hl, a, b) vec_merge ## hl(vs16(a), vs16(b)) b 281 libavcodec/ppc/fdctdsp.c b ## n ## 1 = ((vector float) vec_unpackl(vs16(b ## n ## 0))); \ b 282 libavcodec/ppc/fdctdsp.c b ## n ## 0 = ((vector float) vec_unpackh(vs16(b ## n ## 0))); \ b 283 libavcodec/ppc/fdctdsp.c b ## n ## 1 = vec_ctf(vs32(b ## n ## 1), 0); \ b 284 libavcodec/ppc/fdctdsp.c b ## n ## 0 = vec_ctf(vs32(b ## n ## 0), 0) b 310 libavcodec/ppc/fdctdsp.c #define CTFX(x, b) \ b 311 libavcodec/ppc/fdctdsp.c b ## 0 = ((vector float) vec_unpackh(vs16(x))); \ b 312 libavcodec/ppc/fdctdsp.c b ## 1 = ((vector float) vec_unpackl(vs16(x))); \ b 313 libavcodec/ppc/fdctdsp.c b ## 0 = vec_ctf(vs32(b ## 0), 0); \ b 314 libavcodec/ppc/fdctdsp.c b ## 1 = vec_ctf(vs32(b ## 1), 0) b 433 libavcodec/ppc/fdctdsp.c b ## n ## 0 = vec_round(b ## n ## 0); \ b 434 libavcodec/ppc/fdctdsp.c b ## n ## 1 = vec_round(b ## n ## 1); \ b 435 libavcodec/ppc/fdctdsp.c b ## n ## 0 = ((vector float) vec_cts(b ## n ## 0, 0)); \ b 436 libavcodec/ppc/fdctdsp.c b ## n ## 1 = ((vector float) vec_cts(b ## n ## 1, 0)); \ b 437 libavcodec/ppc/fdctdsp.c b ## n ## 0 = ((vector float) vec_pack(vs32(b ## n ## 0), \ b 438 libavcodec/ppc/fdctdsp.c vs32(b ## n ## 1))); \ b 439 libavcodec/ppc/fdctdsp.c vec_st(vs16(b ## n ## 0), 0, bp) b 63 libavcodec/ppc/fft_init.c vec_f cos,sin,cos0,sin0,cos1,sin1,re,im,r0,i0,r1,i1,a,b,c,d; b 66 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 67 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 68 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 79 libavcodec/ppc/fft_init.c b = vec_perm(r##p, i##p, vcprm(1,s1,1,s1));\ b 83 libavcodec/ppc/fft_init.c STORE2(b, revtabk[ p*2-3]);\ b 110 libavcodec/ppc/fft_init.c vec_f cos,sin,re,im,a,b,c,d; b 119 libavcodec/ppc/fft_init.c CMULB(a,b,j); b 123 libavcodec/ppc/fft_init.c pout[2*k] = vec_perm(c, b, vcprm(0,s3,1,s2)); b 124 libavcodec/ppc/fft_init.c pout[2*k+1] = vec_perm(c, b, vcprm(2,s1,3,s0)); b 144 libavcodec/ppc/fft_init.c vec_u32 b = p1[-k-1]; b 146 libavcodec/ppc/fft_init.c p1[k] = vec_perm(b, b, vcprm(3,2,1,0)); b 261 libavcodec/ppc/fft_vsx.h vec_f a, b, c, d; b 264 libavcodec/ppc/fft_vsx.h b = vec_ld(byte_2complex, &(out[0])); b 266 libavcodec/ppc/fft_vsx.h c = vec_perm(a, b, vcprm(0,1,s2,s1)); b 267 libavcodec/ppc/fft_vsx.h d = vec_perm(a, b, vcprm(2,3,s0,s3)); b 269 libavcodec/ppc/fft_vsx.h b = vec_sub(c, d); b 271 libavcodec/ppc/fft_vsx.h c = vec_perm(a, b, vcprm(0,1,s0,s1)); b 272 libavcodec/ppc/fft_vsx.h d = vec_perm(a, b, vcprm(2,3,s3,s2)); b 275 libavcodec/ppc/fft_vsx.h b = vec_sub(c, d); b 277 libavcodec/ppc/fft_vsx.h vec_st(b, byte_2complex, &(out[0])); b 503 libavcodec/ppc/fft_vsx.h vec_f a, b, c, d; b 506 libavcodec/ppc/fft_vsx.h b = vec_ld(byte_2complex, &(out[0])); b 508 libavcodec/ppc/fft_vsx.h c = vec_perm(a, b, vcprm(0,1,s2,s1)); b 509 libavcodec/ppc/fft_vsx.h d = vec_perm(a, b, vcprm(2,3,s0,s3)); b 511 libavcodec/ppc/fft_vsx.h b = vec_sub(c, d); b 513 libavcodec/ppc/fft_vsx.h c = vec_perm(a,b, vcprm(0,s0,1,s1)); b 514 libavcodec/ppc/fft_vsx.h d = vec_perm(a, b, vcprm(2,s3,3,s2)); b 517 libavcodec/ppc/fft_vsx.h b = vec_sub(c, d); b 519 libavcodec/ppc/fft_vsx.h c = vec_perm(a, b, vcprm(0,1,s0,s1)); b 520 libavcodec/ppc/fft_vsx.h d = vec_perm(a, b, vcprm(2,3,s2,s3)); b 75 libavcodec/ppc/h264chroma_template.c #define GET_VSRC1(vs0, off, b, perm0, s){ \ b 79 libavcodec/ppc/h264chroma_template.c vsrcDuc = vec_ld(off + b, s); \ b 85 libavcodec/ppc/h264chroma_template.c #define GET_VSRC(vs0, vs1, off, b, perm0, perm1, s){ \ b 89 libavcodec/ppc/h264chroma_template.c vsrcDuc = vec_ld(off + b, s); \ b 102 libavcodec/ppc/h264chroma_template.c #define GET_VSRC1(vs0, off, b, perm0, s){ \ b 105 libavcodec/ppc/h264chroma_template.c #define GET_VSRC(vs0, vs1, off, b, perm0, perm1, s){ \ b 217 libavcodec/ppc/h264qpel.c vec_u8 a, b, d, mask_; b 225 libavcodec/ppc/h264qpel.c b = load_with_perm_vec(i * 16, src2, mask_); b 226 libavcodec/ppc/h264qpel.c d = vec_avg(a, b); b 257 libavcodec/ppc/h264qpel.c vec_u8 a, b, d, mask_; b 266 libavcodec/ppc/h264qpel.c b = load_with_perm_vec(i * 16, src2, mask_); b 267 libavcodec/ppc/h264qpel.c d = vec_avg(a, b); b 99 libavcodec/ppc/hevcdsp.c #define FUNC(a, b) FUNCDECL(a, b) b 68 libavcodec/ppc/hpeldsp_altivec.c #define op_avg(a,b) a = ( ((a)|(b)) - ((((a)^(b))&0xFEFEFEFEUL)>>1) ) b 31 libavcodec/ppc/lossless_audiodsp_altivec.c #define GET_T(tt0,tt1,src,a,b){ \ b 33 libavcodec/ppc/lossless_audiodsp_altivec.c tt0 = vec_perm(b, a, align); \ b 34 libavcodec/ppc/lossless_audiodsp_altivec.c b = vec_ld(32, src); \ b 35 libavcodec/ppc/lossless_audiodsp_altivec.c tt1 = vec_perm(a, b, align); \ b 38 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 67 libavcodec/ppc/vp8dsp_altivec.c b = vec_ld((offset)-is6tap-1+15, src); \ b 68 libavcodec/ppc/vp8dsp_altivec.c pixh = vec_perm(a, b, permh##offset); \ b 69 libavcodec/ppc/vp8dsp_altivec.c pixl = vec_perm(a, b, perml##offset) b 71 libavcodec/ppc/vp8dsp_altivec.c #define GET_OUTER(offset) outer = vec_perm(a, b, perm_6tap##offset) b 105 libavcodec/ppc/vp8dsp_altivec.c vec_u8 b; b 51 libavcodec/prosumer.c uint32_t a, b, c; b 57 libavcodec/prosumer.c b = lut[2 * idx]; b 62 libavcodec/prosumer.c if ((b & 0xFF00u) != 0x8000u || (b & 0xFFu)) { b 63 libavcodec/prosumer.c if ((b & 0xFF00u) != 0x8000u) { b 64 libavcodec/prosumer.c bytestream2_put_le16(pb, b); b 67 libavcodec/prosumer.c for (int i = 0; i < (b & 0xFFu); i++) b 70 libavcodec/prosumer.c c = b >> 16; b 98 libavcodec/prosumer.c b = lut[2 * idx]; b 99 libavcodec/prosumer.c if (!b) b 126 libavcodec/prosumer.c b = PAIR(4, a) >> 16; b 284 libavcodec/prosumer.c uint32_t b, h = idx << (32 - shift); b 288 libavcodec/prosumer.c b = 4 * TB(i); b 289 libavcodec/prosumer.c if (shift >= b && ((h & (0xFFF00000u << (12 - b))) >> 20) == table[2 * i + 1]) { b 293 libavcodec/prosumer.c *e0 = (*e0 & 0xFFFFFFu) | (((12 + b - shift) | (0x40u<<j)) << 22); b 296 libavcodec/prosumer.c shift -= b; b 297 libavcodec/prosumer.c h <<= b; b 312 libavcodec/prosumer.c uint32_t b = TB(i>>1); b 315 libavcodec/prosumer.c c = (b << 16) | table[i-1]; b 316 libavcodec/prosumer.c d = 4 * (3 - b); b 473 libavcodec/psd.c int b = src[2][x] * k; b 475 libavcodec/psd.c dst[1][x] = b * 257 >> 16; b 499 libavcodec/psd.c int64_t b = AV_RB16(&src[2][x * 2]) * k; b 501 libavcodec/psd.c AV_WB16(&dst[1][x * 2], b * 65537 >> 32); b 1259 libavcodec/qdm2.c GetBitContext *gb, int b) b 1319 libavcodec/qdm2.c exp = qdm2_get_vlc(gb, (b ? &fft_level_exp_vlc : &fft_level_exp_alt_vlc), 0, 2); b 257 libavcodec/qdmc.c GetByteContext b; b 266 libavcodec/qdmc.c bytestream2_init(&b, avctx->extradata, avctx->extradata_size); b 268 libavcodec/qdmc.c while (bytestream2_get_bytes_left(&b) > 8) { b 269 libavcodec/qdmc.c if (bytestream2_peek_be64(&b) == (((uint64_t)MKBETAG('f','r','m','a') << 32) | b 272 libavcodec/qdmc.c bytestream2_skipu(&b, 1); b 274 libavcodec/qdmc.c bytestream2_skipu(&b, 8); b 276 libavcodec/qdmc.c if (bytestream2_get_bytes_left(&b) < 36) { b 278 libavcodec/qdmc.c bytestream2_get_bytes_left(&b)); b 282 libavcodec/qdmc.c size = bytestream2_get_be32u(&b); b 283 libavcodec/qdmc.c if (size > bytestream2_get_bytes_left(&b)) { b 285 libavcodec/qdmc.c bytestream2_get_bytes_left(&b), size); b 289 libavcodec/qdmc.c if (bytestream2_get_be32u(&b) != MKBETAG('Q','D','C','A')) { b 293 libavcodec/qdmc.c bytestream2_skipu(&b, 4); b 295 libavcodec/qdmc.c avctx->channels = s->nb_channels = bytestream2_get_be32u(&b); b 303 libavcodec/qdmc.c avctx->sample_rate = bytestream2_get_be32u(&b); b 304 libavcodec/qdmc.c avctx->bit_rate = bytestream2_get_be32u(&b); b 305 libavcodec/qdmc.c bytestream2_skipu(&b, 4); b 306 libavcodec/qdmc.c fft_size = bytestream2_get_be32u(&b); b 308 libavcodec/qdmc.c s->checksum_size = bytestream2_get_be32u(&b); b 53 libavcodec/qdrw.c uint8_t r, g, b; b 67 libavcodec/qdrw.c b = bytestream2_get_byte(gbc); b 69 libavcodec/qdrw.c pal[pixmap ? i : 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 303 libavcodec/qtrle.c uint8_t b; b 323 libavcodec/qtrle.c b = bytestream2_get_byte(&s->g); b 329 libavcodec/qtrle.c rgb[pixel_ptr + 2] = b; b 70 libavcodec/r210dec.c uint16_t r, g, b; b 77 libavcodec/r210dec.c b = pixel & 0x3ff; b 83 libavcodec/r210dec.c b = (pixel >> 20) & 0x3ff; b 85 libavcodec/r210dec.c b = (pixel >> 2) & 0x3ff; b 91 libavcodec/r210dec.c *dstb++ = b; b 65 libavcodec/r210enc.c unsigned b = *srcb++; b 67 libavcodec/r210enc.c pixel = (r << 20) | (g << 10) | b; b 69 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] = (int)((bp2[j] - ((int)(refl[i+1] * (unsigned)bp2[i-j]) >> 12)) * (unsigned)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 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 515 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 375 libavcodec/rv40dsp.c #define op_avg(a, b) a = (((a)+((b)>>6)+1)>>1) b 376 libavcodec/rv40dsp.c #define op_put(a, b) a = ((b)>>6) b 426 libavcodec/rv40dsp.c #define CLIP_SYMM(a, b) av_clip(a, -(b), b) b 269 libavcodec/scpr.c static int decode_units(SCPRContext *s, uint32_t *r, uint32_t *g, uint32_t *b, b 287 libavcodec/scpr.c ret = decode_unit(s, &s->pixel_model[2][*cx + *cx1], 400, b); b 292 libavcodec/scpr.c *cx = *b >> cxshift; b 303 libavcodec/scpr.c uint32_t clr = 0, r, g, b, backstep = linesize - avctx->width; b 311 libavcodec/scpr.c ret = decode_units(s, &r, &g, &b, &cx, &cx1); b 321 libavcodec/scpr.c clr = (b << 16) + (g << 8) + r; b 345 libavcodec/scpr.c ret = decode_units(s, &r, &g, &b, &cx, &cx1); b 349 libavcodec/scpr.c clr = (b << 16) + (g << 8) + r; b 460 libavcodec/scpr.c uint32_t r, g, b, clr, ptype = 0; b 467 libavcodec/scpr.c ret = decode_units(s, &r, &g, &b, &cx, &cx1); b 471 libavcodec/scpr.c clr = (b << 16) + (g << 8) + r; b 544 libavcodec/scpr.c int r, g, b; b 548 libavcodec/scpr.c b = (value >> 10) & 31; b 549 libavcodec/scpr.c clr = (r << 16) + (g << 8) + b; b 85 libavcodec/scpr.h uint32_t r, g, b; b 164 libavcodec/scpr.h b = odst[off1 + 2] + b 167 libavcodec/scpr.h clr = ((b & 0xFF) << 16) + ((g & 0xFF) << 8) + (r & 0xFF); b 230 libavcodec/scpr.h uint32_t r, g, b; b 318 libavcodec/scpr.h b = odst[((*by - 1) * linesize + *bx) * 4 + 2] + b 321 libavcodec/scpr.h clr = ((b & 0xFF) << 16) + ((g & 0xFF) << 8) + (r & 0xFF); b 38 libavcodec/scpr3.c uint32_t a = 0, b = 4096 / nsym, c = b - (b >> 1); b 43 libavcodec/scpr3.c freqs[d] = b; b 46 libavcodec/scpr3.c for (int q = a + 128 - 1 >> 7, f = (a + b - 1 >> 7) + 1; q < f; q++) b 49 libavcodec/scpr3.c a += b; b 99 libavcodec/scpr3.c static int decode3(GetByteContext *gb, RangeCoder *rc, uint32_t a, uint32_t b) b 101 libavcodec/scpr3.c uint32_t code = a * (rc->code >> 12) + (rc->code & 0xFFF) - b; b 115 libavcodec/scpr3.c for (int b = 0; b < m->size; b++) { b 116 libavcodec/scpr3.c m->freqs[b] -= m->freqs[b] >> 1; b 117 libavcodec/scpr3.c a += m->freqs[b]; b 148 libavcodec/scpr3.c uint16_t *a, uint16_t *b, uint32_t *c, int max) b 167 libavcodec/scpr3.c *b = rccode << d; b 178 libavcodec/scpr3.c *b = e << d; b 197 libavcodec/scpr3.c *b = rccode << d; b 265 libavcodec/scpr3.c int b, c, e, g; b 268 libavcodec/scpr3.c for (a = 1 << (0 < m->fshift ? m->fshift - 1 : 0), b = 0; b < 256; b++) b 269 libavcodec/scpr3.c cnts[b] = a; b 271 libavcodec/scpr3.c for (a = 0, b = m->size; a < b; a++) b 274 libavcodec/scpr3.c for (b = a = 0; b < 256; b++) { b 275 libavcodec/scpr3.c freqs[2 * b] = cnts[b]; b 276 libavcodec/scpr3.c freqs[2 * b + 1] = a; b 277 libavcodec/scpr3.c a += cnts[b]; b 284 libavcodec/scpr3.c for (b = 0, c = m->size; b < c; b++) { b 285 libavcodec/scpr3.c m->cnts[b] -= m->cnts[b] >> 1; b 286 libavcodec/scpr3.c a = a + m->cnts[b]; b 287 libavcodec/scpr3.c e = m->symbols[b]; b 289 libavcodec/scpr3.c m->freqs[2 * b] = freqs[2 * e]; b 290 libavcodec/scpr3.c m->freqs[2 * b + 1] = g; b 397 libavcodec/scpr3.c int b, len, d, e, g; b 399 libavcodec/scpr3.c b = 25 << m->fshift; b 401 libavcodec/scpr3.c m->cnts[a] += b; b 402 libavcodec/scpr3.c m->cnts[len] += b; b 416 libavcodec/scpr3.c if (m->cnts[len] + b > 4096) b 421 libavcodec/scpr3.c uint16_t *a, uint16_t *b) b 434 libavcodec/scpr3.c *b = p; b 460 libavcodec/scpr3.c *b = f; b 485 libavcodec/scpr3.c int i, b; b 489 libavcodec/scpr3.c b = m->size; b 490 libavcodec/scpr3.c for (i = 0; i < b; i++) b 492 libavcodec/scpr3.c n.symbols[b] = val; b 755 libavcodec/scpr3.c uint32_t r, y, a, b, e, g, q; b 770 libavcodec/scpr3.c b = freqs2[r]; b 791 libavcodec/scpr3.c decode3(gb, rc, a, b); b 804 libavcodec/scpr3.c for (int b = 0; b < m->size; b++) b 805 libavcodec/scpr3.c a += m->freqs[b]; b 843 libavcodec/scpr3.c uint16_t a = 0, b = 0; b 876 libavcodec/scpr3.c if (!decode_adaptive45(m, code, value, &a, &b, ¶m, 4)) b 878 libavcodec/scpr3.c decode3(gb, rc, a, b); b 882 libavcodec/scpr3.c if (!decode_adaptive45(m, code, value, &a, &b, &m->cntsum, 16)) b 884 libavcodec/scpr3.c decode3(gb, rc, a, b); b 888 libavcodec/scpr3.c if (!decode_adaptive6(m, code, value, &a, &b)) { b 893 libavcodec/scpr3.c decode3(gb, rc, a, b); b 953 libavcodec/scpr3.c uint32_t clr = 0, lx, ly, ptype, r, g, b; b 960 libavcodec/scpr3.c ret = decode_units3(s, &r, &g, &b, &cx, &cx1); b 973 libavcodec/scpr3.c clr = (b << 16) + (g << 8) + r; b 1001 libavcodec/scpr3.c ret = decode_units3(s, &r, &g, &b, &cx, &cx1); b 1004 libavcodec/scpr3.c clr = (b << 16) + (g << 8) + r; b 1137 libavcodec/scpr3.c int i, a, b, c, j, by = y * 16, bx = x * 16; b 1145 libavcodec/scpr3.c b = 2048; b 1147 libavcodec/scpr3.c b = 0; b 1149 libavcodec/scpr3.c code = a + ((s->rc.code >> 1) & 0xFFFFF800) - b; b 1185 libavcodec/scpr3.c uint32_t clr, ptype = 0, r, g, b; b 1196 libavcodec/scpr3.c ret = decode_units3(s, &r, &g, &b, &cx, &cx1); b 1200 libavcodec/scpr3.c clr = (b << 16) + (g << 8) + r; b 1289 libavcodec/sheervideo.c int r, g, b, a; b 1294 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1299 libavcodec/sheervideo.c dst_b[x] = pred[2] = (r + g + b + pred[2]) & 0x3ff; b 1332 libavcodec/sheervideo.c int r, g, b, a; b 1337 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1342 libavcodec/sheervideo.c dst_b[x] = pred[2] = (r + g + b + pred[2]) & 0x3ff; b 1361 libavcodec/sheervideo.c int r, g, b, a; b 1377 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1382 libavcodec/sheervideo.c dst_b[x] = pred_L[2] = (r + g + b + ((3 * (pred_T[2] + pred_L[2]) - 2 * pred_TL[2]) >> 2)) & 0x3ff; b 1419 libavcodec/sheervideo.c int r, g, b; b 1423 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1427 libavcodec/sheervideo.c dst_b[x] = pred[2] = (r + g + b + pred[2]) & 0x3ff; b 1457 libavcodec/sheervideo.c int r, g, b; b 1461 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1465 libavcodec/sheervideo.c dst_b[x] = pred[2] = (r + g + b + pred[2]) & 0x3ff; b 1482 libavcodec/sheervideo.c int r, g, b; b 1495 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1499 libavcodec/sheervideo.c dst_b[x] = pred_L[2] = (r + g + b + ((3 * (pred_T[2] + pred_L[2]) - 2 * pred_TL[2]) >> 2)) & 0x3ff; b 1531 libavcodec/sheervideo.c int a, r, g, b; b 1536 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1541 libavcodec/sheervideo.c dst[4 * x + 3] = pred[3] = (r + g + b + pred[3]) & 0xff; b 1556 libavcodec/sheervideo.c int a, r, g, b; b 1567 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1572 libavcodec/sheervideo.c dst[4 * x + 3] = pred_L[3] = (r + g + b + pred_L[3]) & 0xff; b 1597 libavcodec/sheervideo.c int a, r, g, b; b 1602 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1607 libavcodec/sheervideo.c dst[4 * x + 3] = pred[3] = (r + g + b + pred[3]) & 0xff; b 1622 libavcodec/sheervideo.c int a, r, g, b; b 1638 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1643 libavcodec/sheervideo.c dst[4 * x + 3] = pred_L[3] = (r + g + b + ((3 * (pred_T[3] + pred_L[3]) - 2 * pred_TL[3]) >> 2)) & 0xff; b 1672 libavcodec/sheervideo.c int r, g, b; b 1676 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1680 libavcodec/sheervideo.c dst[4 * x + 2] = pred[2] = (r + g + b + pred[2]) & 0xff; b 1694 libavcodec/sheervideo.c int r, g, b; b 1703 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1707 libavcodec/sheervideo.c dst[4 * x + 2] = pred_L[2] = (r + g + b + pred_L[2]) & 0xff; b 1731 libavcodec/sheervideo.c int r, g, b; b 1735 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1739 libavcodec/sheervideo.c dst[4 * x + 2] = pred[2] = (r + g + b + pred[2]) & 0xff; b 1753 libavcodec/sheervideo.c int r, g, b; b 1766 libavcodec/sheervideo.c b = get_vlc2(gb, s->vlc[1].table, s->vlc[1].bits, 2); b 1770 libavcodec/sheervideo.c dst[4 * x + 2] = pred_L[2] = (r + g + b + ((3 * (pred_T[2] + pred_L[2]) - 2 * pred_TL[2]) >> 2)) & 0xff; b 62 libavcodec/simple_idct_template.c #define MUL(a, b) MUL16(a, b) b 63 libavcodec/simple_idct_template.c #define MAC(a, b, c) MAC16(a, b, c) b 104 libavcodec/simple_idct_template.c #define MUL(a, b) ((int)((SUINT)(a) * (b))) b 105 libavcodec/simple_idct_template.c #define MAC(a, b, c) ((a) += (SUINT)(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 270 libavcodec/snow.h static av_always_inline int same_block(BlockNode *a, BlockNode *b){ b 271 libavcodec/snow.h if((a->type&BLOCK_INTRA) && (b->type&BLOCK_INTRA)){ b 272 libavcodec/snow.h return !((a->color[0] - b->color[0]) | (a->color[1] - b->color[1]) | (a->color[2] - b->color[2])); b 274 libavcodec/snow.h return !((a->mx - b->mx) | (a->my - b->my) | (a->ref - b->ref) | ((a->type ^ b->type)&BLOCK_INTRA)); b 603 libavcodec/snow.h static inline void unpack_coeffs(SnowContext *s, SubBand *b, SubBand * parent, int orientation){ b 604 libavcodec/snow.h const int w= b->width; b 605 libavcodec/snow.h const int h= b->height; b 609 libavcodec/snow.h x_and_coeff *xc= b->x_coeff; b 615 libavcodec/snow.h runs= get_symbol2(&s->c, b->state[30], 0); b 616 libavcodec/snow.h if(runs-- > 0) run= get_symbol2(&s->c, b->state[1], 3); b 651 libavcodec/snow.h v=get_rac(&s->c, &b->state[0][context]); b 653 libavcodec/snow.h v= 2*(get_symbol2(&s->c, b->state[context + 2], context-4) + 1); b 654 libavcodec/snow.h v+=get_rac(&s->c, &b->state[0][16 + 1 + 3 + ff_quant3bA[l&0xFF] + 3*ff_quant3bA[t&0xFF]]); b 664 libavcodec/snow.h if(runs-- > 0) run= get_symbol2(&s->c, b->state[1], 3); b 666 libavcodec/snow.h v= 2*(get_symbol2(&s->c, b->state[0 + 2], 0-4) + 1); b 667 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 60 libavcodec/snow_dwt.h void (*horizontal_compose97i)(IDWTELEM *b, IDWTELEM *temp, int width); b 105 libavcodec/snow_dwt.h void ff_snow_horizontal_compose97i(IDWTELEM *b, IDWTELEM *temp, int width); b 117 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 118 libavcodec/snowdec.c const int w= b->width; b 120 libavcodec/snowdec.c const int qlog= av_clip(s->qlog + (int64_t)b->qlog, 0, QROOT*16); b 125 libavcodec/snowdec.c if(b->ibuf == s->spatial_idwt_buffer || s->qlog == LOSSLESS_QLOG){ b 138 libavcodec/snowdec.c IDWTELEM * line = slice_buffer_get_line(sb, y * b->stride_line + b->buf_y_offset) + b->buf_x_offset; b 139 libavcodec/snowdec.c memset(line, 0, b->width*sizeof(IDWTELEM)); b 140 libavcodec/snowdec.c v = b->x_coeff[new_index].coeff; b 141 libavcodec/snowdec.c x = b->x_coeff[new_index++].x; b 147 libavcodec/snowdec.c v = b->x_coeff[new_index].coeff; b 148 libavcodec/snowdec.c x = b->x_coeff[new_index++].x; b 225 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 226 libavcodec/snowdec.c const int w= b->width; b 227 libavcodec/snowdec.c const int qlog= av_clip(s->qlog + (int64_t)b->qlog, 0, QROOT*16); b 236 libavcodec/snowdec.c IDWTELEM * line = slice_buffer_get_line(sb, (y * b->stride_line) + b->buf_y_offset) + b->buf_x_offset; b 248 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 249 libavcodec/snowdec.c const int w= b->width; b 256 libavcodec/snowdec.c line = slice_buffer_get_line(sb, ((start_y - 1) * b->stride_line) + b->buf_y_offset) + b->buf_x_offset; b 261 libavcodec/snowdec.c line = slice_buffer_get_line(sb, (y * b->stride_line) + b->buf_y_offset) + b->buf_x_offset; b 534 libavcodec/snowdec.c SubBand *b= &p->band[level][orientation]; b 535 libavcodec/snowdec.c unpack_coeffs(s, b, b->parent, orientation); b 562 libavcodec/snowdec.c SubBand *b= &p->band[level][orientation]; b 574 libavcodec/snowdec.c start_y = FFMIN(b->height, start_y); b 575 libavcodec/snowdec.c end_y = FFMIN(b->height, end_y); b 580 libavcodec/snowdec.c int correlate_end_y = FFMIN(b->height, end_y + 1); b 581 libavcodec/snowdec.c int correlate_start_y = FFMIN(b->height, (start_y ? start_y + 1 : 0)); b 587 libavcodec/snowdec.c decode_subband_slice_buffered(s, b, &s->sb, start_y, end_y, decode_state[level][orientation]); b 462 libavcodec/snowenc.c BlockNode *b= &s->block[index]; b 472 libavcodec/snowenc.c int mx_context= av_log2(2*FFABS(left->mx - top->mx)) + 16*!!b->ref; b 473 libavcodec/snowenc.c int my_context= av_log2(2*FFABS(left->my - top->my)) + 16*!!b->ref; b 482 libavcodec/snowenc.c if(same_block(b,b+1) && same_block(b,b+w) && same_block(b,b+w+1)){ b 493 libavcodec/snowenc.c if(b->type & BLOCK_INTRA){ b 496 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[32], b->color[0]-pl , 1); b 498 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[64], b->color[1]-pcb, 1); b 499 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[96], b->color[2]-pcr, 1); b 501 libavcodec/snowenc.c set_blocks(s, level, x, y, b->color[0], b->color[1], b->color[2], pmx, pmy, 0, BLOCK_INTRA); b 503 libavcodec/snowenc.c pred_mv(s, &pmx, &pmy, b->ref, left, top, tr); b 506 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[128 + 1024 + 32*ref_context], b->ref, 0); b 507 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[128 + 32*mx_context], b->mx - pmx, 1); b 508 libavcodec/snowenc.c put_symbol(&s->c, &s->block_state[128 + 32*my_context], b->my - pmy, 1); b 509 libavcodec/snowenc.c set_blocks(s, level, x, y, pl, pcb, pcr, b->mx, b->my, b->ref, 0); b 528 libavcodec/snowenc.c BlockNode *b= &s->block[index]; b 529 libavcodec/snowenc.c BlockNode backup= *b; b 535 libavcodec/snowenc.c b->type|= BLOCK_INTRA; b 536 libavcodec/snowenc.c b->color[plane_index]= 0; b 566 libavcodec/snowenc.c *b= backup; b 575 libavcodec/snowenc.c const BlockNode *b = &s->block[index]; b 595 libavcodec/snowenc.c if(b->type & BLOCK_INTRA){ b 596 libavcodec/snowenc.c return 3+2*( av_log2(2*FFABS(left->color[0] - b->color[0])) b 597 libavcodec/snowenc.c + av_log2(2*FFABS(left->color[1] - b->color[1])) b 598 libavcodec/snowenc.c + av_log2(2*FFABS(left->color[2] - b->color[2]))); b 600 libavcodec/snowenc.c pred_mv(s, &dmx, &dmy, b->ref, left, top, tr); b 601 libavcodec/snowenc.c dmx-= b->mx; b 602 libavcodec/snowenc.c dmy-= b->my; b 605 libavcodec/snowenc.c + av_log2(2*b->ref)); b 761 libavcodec/snowenc.c BlockNode *b= &s->block[mb_x+mb_y*b_stride]; b 762 libavcodec/snowenc.c int merged= same_block(b,b+1) && same_block(b,b+b_stride) && same_block(b,b+b_stride+1); b 779 libavcodec/snowenc.c static int encode_subband_c0run(SnowContext *s, SubBand *b, const IDWTELEM *src, const IDWTELEM *parent, int stride, int orientation){ b 780 libavcodec/snowenc.c const int w= b->width; b 781 libavcodec/snowenc.c const int h= b->height; b 815 libavcodec/snowenc.c if(px<b->parent->width && py<b->parent->height) b 833 libavcodec/snowenc.c put_symbol2(&s->c, b->state[30], max_index, 0); b 835 libavcodec/snowenc.c put_symbol2(&s->c, b->state[1], run, 3); b 866 libavcodec/snowenc.c if(px<b->parent->width && py<b->parent->height) b 872 libavcodec/snowenc.c put_rac(&s->c, &b->state[0][context], !!v); b 878 libavcodec/snowenc.c put_symbol2(&s->c, b->state[1], run, 3); b 890 libavcodec/snowenc.c put_symbol2(&s->c, b->state[context + 2], FFABS(v)-1, context-4); b 891 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 899 libavcodec/snowenc.c static int encode_subband(SnowContext *s, SubBand *b, const IDWTELEM *src, const IDWTELEM *parent, int stride, int orientation){ b 902 libavcodec/snowenc.c return encode_subband_c0run(s, b, src, parent, stride, orientation); b 1191 libavcodec/snowenc.c BlockNode *b[4]; b 1193 libavcodec/snowenc.c b[0]= &s->block[index]; b 1194 libavcodec/snowenc.c b[1]= b[0]+1; b 1195 libavcodec/snowenc.c b[2]= b[0]+b_stride; b 1196 libavcodec/snowenc.c b[3]= b[2]+1; b 1197 libavcodec/snowenc.c if(same_block(b[0], b[1]) && b 1198 libavcodec/snowenc.c same_block(b[0], b[2]) && b 1199 libavcodec/snowenc.c same_block(b[0], b[3])) b 1210 libavcodec/snowenc.c (b[0]->mx + b[1]->mx + b[2]->mx + b[3]->mx + 2) >> 2, b 1211 libavcodec/snowenc.c (b[0]->my + b[1]->my + b[2]->my + b[3]->my + 2) >> 2, 0, &best_rd); b 1214 libavcodec/snowenc.c if(!(b[i]->type&BLOCK_INTRA)) b 1215 libavcodec/snowenc.c check_4block_inter(s, mb_x, mb_y, b[i]->mx, b[i]->my, b[i]->ref, &best_rd); b 1247 libavcodec/snowenc.c static void quantize(SnowContext *s, SubBand *b, IDWTELEM *dst, DWTELEM *src, int stride, int bias){ b 1248 libavcodec/snowenc.c const int w= b->width; b 1249 libavcodec/snowenc.c const int h= b->height; b 1250 libavcodec/snowenc.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); b 1308 libavcodec/snowenc.c static void dequantize(SnowContext *s, SubBand *b, IDWTELEM *src, int stride){ b 1309 libavcodec/snowenc.c const int w= b->width; b 1310 libavcodec/snowenc.c const int h= b->height; b 1311 libavcodec/snowenc.c const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); b 1330 libavcodec/snowenc.c static void decorrelate(SnowContext *s, SubBand *b, IDWTELEM *src, int stride, int inverse, int use_median){ b 1331 libavcodec/snowenc.c const int w= b->width; b 1332 libavcodec/snowenc.c const int h= b->height; b 1354 libavcodec/snowenc.c static void correlate(SnowContext *s, SubBand *b, IDWTELEM *src, int stride, int inverse, int use_median){ b 1355 libavcodec/snowenc.c const int w= b->width; b 1356 libavcodec/snowenc.c const int h= b->height; b 1499 libavcodec/snowenc.c SubBand *b= &s->plane[0].band[level][orientation]; b 1500 libavcodec/snowenc.c IDWTELEM *buf= b->ibuf; b 1501 libavcodec/snowenc.c const int w= b->width; b 1502 libavcodec/snowenc.c const int h= b->height; b 1503 libavcodec/snowenc.c const int stride= b->stride; b 1504 libavcodec/snowenc.c const int qlog= av_clip(2*QROOT + b->qlog, 0, QROOT*16); b 1511 libavcodec/snowenc.c buf[x+y*stride]= b->buf[x+y*stride]; b 1513 libavcodec/snowenc.c decorrelate(s, b, buf, stride, 1, 0); b 1548 libavcodec/snowenc.c SubBand *b= &p->band[level][orientation]; b 1549 libavcodec/snowenc.c IDWTELEM *ibuf= b->ibuf; b 1553 libavcodec/snowenc.c ibuf[b->width/2 + b->height/2*b->stride]= 256*16; b 1562 libavcodec/snowenc.c b->qlog= (int)(QROOT * log2(352256.0/sqrt(error)) + 0.5); b 1813 libavcodec/snowenc.c SubBand *b= &p->band[level][orientation]; b 1815 libavcodec/snowenc.c quantize(s, b, b->ibuf, b->buf, b->stride, s->qbias); b 1817 libavcodec/snowenc.c decorrelate(s, b, b->ibuf, b->stride, pic->pict_type == AV_PICTURE_TYPE_P, 0); b 1819 libavcodec/snowenc.c encode_subband(s, b, b->ibuf, b->parent ? b->parent->ibuf : NULL, b->stride, orientation); b 1820 libavcodec/snowenc.c av_assert0(b->parent==NULL || b->parent->stride == b->stride*2); b 1822 libavcodec/snowenc.c correlate(s, b, b->ibuf, b->stride, 1, 0); b 1828 libavcodec/snowenc.c SubBand *b= &p->band[level][orientation]; b 1830 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 39 libavcodec/synth_filter.c float b = synth_buf2[i + 16]; b 44 libavcodec/synth_filter.c b += window[i + j + 16] * ( synth_buf[ i + j ]); b 50 libavcodec/synth_filter.c b += window[i + j + 16] * ( synth_buf[ i + j - 512]); b 55 libavcodec/synth_filter.c out[i + 16] = b * scale; b 75 libavcodec/synth_filter.c float b = synth_buf2[i + 32]; b 80 libavcodec/synth_filter.c b += window[i + j + 32] * ( synth_buf[ i + j ]); b 86 libavcodec/synth_filter.c b += window[i + j + 32] * ( synth_buf[ i + j - 1024]); b 91 libavcodec/synth_filter.c out[i + 32] = b * scale; b 111 libavcodec/synth_filter.c int64_t b = synth_buf2[i + 16] * (INT64_C(1) << 21); b 116 libavcodec/synth_filter.c b += (int64_t)window[i + j + 16] * synth_buf[15 - i + j ]; b 122 libavcodec/synth_filter.c b += (int64_t)window[i + j + 16] * synth_buf[15 - i + j - 512]; b 127 libavcodec/synth_filter.c out[i + 16] = clip23(norm21(b)); b 147 libavcodec/synth_filter.c int64_t b = synth_buf2[i + 32] * (INT64_C(1) << 20); b 152 libavcodec/synth_filter.c b += (int64_t)window[i + j + 32] * synth_buf[31 - i + j ]; b 158 libavcodec/synth_filter.c b += (int64_t)window[i + j + 32] * synth_buf[31 - i + j - 1024]; b 163 libavcodec/synth_filter.c out[i + 32] = clip23(norm20(b)); b 32 libavcodec/tableprint_vlc.h #define av_malloc_array(a, b) NULL b 613 libavcodec/takdec.c int32_t b = p2[i]; b 614 libavcodec/takdec.c p1[i] = a + b; b 622 libavcodec/takdec.c int32_t b = p2[i]; b 623 libavcodec/takdec.c p1[i] = a + b; b 32 libavcodec/takdsp.c int32_t b = p2[i]; b 33 libavcodec/takdsp.c p2[i] = a + b; b 43 libavcodec/takdsp.c int32_t b = p2[i]; b 44 libavcodec/takdsp.c p1[i] = b - a; b 54 libavcodec/takdsp.c int32_t b = p2[i]; b 55 libavcodec/takdsp.c a -= b >> 1; b 57 libavcodec/takdsp.c p2[i] = a + b; b 67 libavcodec/takdsp.c int32_t b = p2[i]; b 68 libavcodec/takdsp.c b = dfactor * (b >> dshift) + 128 >> 8 << dshift; b 69 libavcodec/takdsp.c p1[i] = b - a; b 28 libavcodec/tests/cabac.c static inline void put_cabac_bit(CABACContext *c, int b){ b 29 libavcodec/tests/cabac.c put_bits(&c->pb, 1, b); b 31 libavcodec/tests/cabac.c put_bits(&c->pb, 1, 1-b); b 116 libavcodec/tests/cabac.c uint8_t b[9*SIZE]; b 123 libavcodec/tests/cabac.c ff_init_cabac_encoder(&c, b, SIZE); b 139 libavcodec/tests/cabac.c b[i++] = av_lfg_get(&prng); b 140 libavcodec/tests/cabac.c b[i ] = av_lfg_get(&prng); b 142 libavcodec/tests/cabac.c ff_init_cabac_decoder(&c, b, SIZE); b 59 libavcodec/tests/fft.c #define MUL16(a, b) ((a) * (b)) b 32 libavcodec/tests/rangecoder.c uint8_t b[9 * SIZE] = {0}; b 41 libavcodec/tests/rangecoder.c ff_init_range_encoder(&c, b, SIZE); b 54 libavcodec/tests/rangecoder.c ff_init_range_decoder(&c, b, version ? SIZE : actual_length); b 35 libavcodec/texturedsp.c #define RGBA(r, g, b, a) (((uint8_t)(r) << 0) | \ b 37 libavcodec/texturedsp.c ((uint8_t)(b) << 16) | \ b 175 libavcodec/texturedsp.c int b = src[2]; b 180 libavcodec/texturedsp.c src[2] = (uint8_t) b * a / 255; b 352 libavcodec/texturedsp.c int b = src[2]; b 355 libavcodec/texturedsp.c int s = scaled ? (b >> 3) + 1 : 1; b 363 libavcodec/texturedsp.c src[3] = scaled ? 255 : b; b 566 libavcodec/texturedsp.c int b = 127; b 570 libavcodec/texturedsp.c b = lrint(sqrtf(d)); b 574 libavcodec/texturedsp.c p[2] = b; b 143 libavcodec/texturedspenc.c #define mul8(a, b) (((a) * (b) + 128 + (((a) * (b) + 128) >> 8)) >> 8) b 146 libavcodec/texturedspenc.c #define rgb2rgb565(r, g, b) \ b 147 libavcodec/texturedspenc.c ((mul8(r, 31) << 11) | (mul8(g, 63) << 5) | (mul8(b, 31) << 0)) b 150 libavcodec/texturedspenc.c #define lerp13(a, b) ((2 * (a) + (b)) / 3) b 277 libavcodec/texturedspenc.c int b = block[x * 4 + stride * y + 2] - mu[2]; b 281 libavcodec/texturedspenc.c cov[2] += r * b; b 283 libavcodec/texturedspenc.c cov[4] += g * b; b 284 libavcodec/texturedspenc.c cov[5] += b * b; b 299 libavcodec/texturedspenc.c float b = vfr * covf[2] + vfg * covf[4] + vfb * covf[5]; b 303 libavcodec/texturedspenc.c vfb = b; b 369 libavcodec/texturedspenc.c int r = 8, g = 8, b = 8; b 374 libavcodec/texturedspenc.c b += block[2 + x * 4 + y * stride]; b 380 libavcodec/texturedspenc.c b >>= 4; b 382 libavcodec/texturedspenc.c max16 = (match5[r][0] << 11) | (match6[g][0] << 5) | match5[b][0]; b 383 libavcodec/texturedspenc.c min16 = (match5[r][1] << 11) | (match6[g][1] << 5) | match5[b][1]; b 397 libavcodec/texturedspenc.c int b = block[2 + x * 4 + y * stride]; b 402 libavcodec/texturedspenc.c at1_b += w1 * b; b 405 libavcodec/texturedspenc.c at2_b += b; b 463 libavcodec/texturedspenc.c int b = block[2]; b 465 libavcodec/texturedspenc.c max16 = (match5[r][0] << 11) | (match6[g][0] << 5) | match5[b][0]; b 466 libavcodec/texturedspenc.c min16 = (match5[r][1] << 11) | (match6[g][1] << 5) | match5[b][1]; b 583 libavcodec/texturedspenc.c int b = pixel[2]; b 584 libavcodec/texturedspenc.c int t = (2 + r + b) >> 2; b 586 libavcodec/texturedspenc.c dst[0] = av_clip_uint8(128 + ((r - b + 1) >> 1)); /* Co */ 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 2077 libavcodec/tiff.c int b = (255 - src[x * j + 2]) * k; b 2080 libavcodec/tiff.c dst[4 * j + 2] = b * 257 >> 16; b 2095 libavcodec/tiff.c uint64_t b = (65535 - AV_RB16(dst + 8 * j + 4)) * k; b 2098 libavcodec/tiff.c AV_WB16(dst + 8 * j + 4, b * 65537 >> 32); 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) * 2; b 101 libavcodec/tscc2.c #define COL_OP(a, b) a = (b) b 102 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 1796 libavcodec/utils.c int ff_match_2uint16(const uint16_t(*tab)[2], int size, int a, int b) b 1799 libavcodec/utils.c for (i = 0; i < size && !(tab[i][0] == a && tab[i][1] == b); i++) ; b 37 libavcodec/utvideo.c int ff_ut_huff_cmp_len(const void *a, const void *b) b 39 libavcodec/utvideo.c const HuffEntry *aa = a, *bb = b; b 43 libavcodec/utvideo.c int ff_ut10_huff_cmp_len(const void *a, const void *b) b 45 libavcodec/utvideo.c const HuffEntry *aa = a, *bb = b; b 101 libavcodec/utvideo.h int ff_ut_huff_cmp_len(const void *a, const void *b); b 102 libavcodec/utvideo.h int ff_ut10_huff_cmp_len(const void *a, const void *b); b 33 libavcodec/utvideodsp.c uint8_t r, g, b; b 40 libavcodec/utvideodsp.c b = src_b[i]; b 42 libavcodec/utvideodsp.c src_b[i] = b + g - 0x80; b 58 libavcodec/utvideodsp.c int r, g, b; b 65 libavcodec/utvideodsp.c b = src_b[i]; b 67 libavcodec/utvideodsp.c src_b[i] = (b + g - 0x200) & 0x3FF; b 41 libavcodec/utvideoenc.c static int huff_cmp_sym(const void *a, const void *b) b 43 libavcodec/utvideoenc.c const HuffEntry *aa = a, *bb = b; b 26 libavcodec/v210_template.c #define WRITE_PIXELS(a, b, c, depth) \ b 29 libavcodec/v210_template.c val |= (CLIP(*b++, depth) << (20-depth)) | \ b 33 libavcodec/v210dec.c #define READ_PIXELS(a, b, c) \ b 37 libavcodec/v210dec.c *b++ = (val >> 10) & 0x3FF; \ b 95 libavcodec/vb.c int x, y, a, b; b 156 libavcodec/vb.c b = bytestream2_get_byte(&g); b 159 libavcodec/vb.c cur[x + y*width] = (pattern & 1) ? b : a; b 342 libavcodec/vc1_block.c int a, b, c, wrap, pred, scale; b 362 libavcodec/vc1_block.c b = dc_val[ - 1 - wrap]; b 368 libavcodec/vc1_block.c b = a = dcpred[scale]; b 370 libavcodec/vc1_block.c b = c = dcpred[scale]; b 374 libavcodec/vc1_block.c b = a = 0; b 376 libavcodec/vc1_block.c b = c = 0; b 379 libavcodec/vc1_block.c if (abs(a - b) <= abs(b - c)) { b 408 libavcodec/vc1_block.c int a, b, c, wrap, pred; b 427 libavcodec/vc1_block.c b = dc_val[ - 1 - wrap]; b 448 libavcodec/vc1_block.c b = (int)((unsigned)b * s->y_dc_scale_table[q2] * ff_vc1_dqscale[dqscale_index] + 0x20000) >> 18; b 451 libavcodec/vc1_block.c if (c_avail && (!a_avail || abs(a - b) <= abs(b - c))) { b 478 libavcodec/vc1_block.c int xy, wrap, pred, a, b, c; b 487 libavcodec/vc1_block.c b = s->coded_block[xy - 1 - wrap]; b 490 libavcodec/vc1_block.c if (b == c) { b 152 libavcodec/vc1_parser.c uint8_t b; b 155 libavcodec/vc1_parser.c b = buf[i++]; b 156 libavcodec/vc1_parser.c unesc_buffer[unesc_index++] = b; b 158 libavcodec/vc1_parser.c search_state = b ? NO_MATCH : search_state + 1; b 160 libavcodec/vc1_parser.c if (b == 1) b 162 libavcodec/vc1_parser.c else if (b > 1) { b 163 libavcodec/vc1_parser.c if (b == 3) b 194 libavcodec/vc1_parser.c b = buf[i++]; b 196 libavcodec/vc1_parser.c search_state = b ? NO_MATCH : TWO_ZEROS; b 198 libavcodec/vc1_parser.c if (b >= 1) b 199 libavcodec/vc1_parser.c search_state = b == 1 ? ONE : NO_MATCH; b 212 libavcodec/vc1_parser.c vpc->prev_start_code = b; b 216 libavcodec/vc1_parser.c if (!pic_found && (b == (VC1_CODE_FRAME & 0xFF) || b == (VC1_CODE_FIELD & 0xFF))) { b 219 libavcodec/vc1_parser.c else if (pic_found && b != (VC1_CODE_FIELD & 0xFF) && b != (VC1_CODE_SLICE & 0xFF)) { b 221 libavcodec/vc1_parser.c pic_found = b == (VC1_CODE_FRAME & 0xFF); b 40 libavcodec/vc1dsp.c int a, b, c, d; b 45 libavcodec/vc1dsp.c b = src[-stride]; b 49 libavcodec/vc1dsp.c d2 = (a - d + b - c + 4 - rnd) >> 3; b 52 libavcodec/vc1dsp.c src[-stride] = av_clip_uint8(b - d2); b 64 libavcodec/vc1dsp.c int a, b, c, d; b 69 libavcodec/vc1dsp.c b = src[-1]; b 73 libavcodec/vc1dsp.c d2 = (a - d + b - c + 4 - rnd) >> 3; b 76 libavcodec/vc1dsp.c src[-1] = av_clip_uint8(b - d2); b 87 libavcodec/vc1dsp.c int a, b, c, d; b 92 libavcodec/vc1dsp.c b = top[56]; b 96 libavcodec/vc1dsp.c d2 = a - d + b - c; b 99 libavcodec/vc1dsp.c top[56] = ((b * 8) - d2 + rnd2) >> 3; b 113 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 * 8) - d2 + rnd2) >> 3; b 728 libavcodec/vc1dsp.c #define op_put(a, b) (a) = av_clip_uint8(b) b 729 libavcodec/vc1dsp.c #define op_avg(a, b) (a) = ((a) + av_clip_uint8(b) + 1) >> 1 b 730 libavcodec/vc1dsp.c #define op4_avg(a, b) (a) = rnd_avg32(a, b) b 731 libavcodec/vc1dsp.c #define op4_put(a, b) (a) = (b) b 738 libavcodec/vc1dsp.c #define PUT_VC1_MSPEL(a, b) \ b 739 libavcodec/vc1dsp.c static void put_vc1_mspel_mc ## a ## b ## _c(uint8_t *dst, \ b 743 libavcodec/vc1dsp.c put_vc1_mspel_mc(dst, src, stride, a, b, rnd); \ b 745 libavcodec/vc1dsp.c static void avg_vc1_mspel_mc ## a ## b ## _c(uint8_t *dst, \ b 749 libavcodec/vc1dsp.c avg_vc1_mspel_mc(dst, src, stride, a, b, rnd); \ b 751 libavcodec/vc1dsp.c static void put_vc1_mspel_mc ## a ## b ## _16_c(uint8_t *dst, \ b 755 libavcodec/vc1dsp.c put_vc1_mspel_mc_16(dst, src, stride, a, b, rnd); \ b 757 libavcodec/vc1dsp.c static void avg_vc1_mspel_mc ## a ## b ## _16_c(uint8_t *dst, \ b 761 libavcodec/vc1dsp.c avg_vc1_mspel_mc_16(dst, src, stride, a, b, rnd); \ b 833 libavcodec/vc1dsp.c #define avg2(a, b) (((a) + (b) + 1) >> 1) b 889 libavcodec/vc1dsp.c int b = src[(offset >> 16) + 1]; b 890 libavcodec/vc1dsp.c *dst++ = a + ((b - a) * (offset & 0xFFFF) >> 16); b 37 libavcodec/vc1dsp.h void (*vc1_inv_trans_8x8)(int16_t *b); b 33 libavcodec/vc2enc.c #define SSIZE_ROUND(b) (FFALIGN((b), s->size_scaler) + 4 + s->prefix_bytes) b 528 libavcodec/vc2enc.c SubBand *b, int quant) b 532 libavcodec/vc2enc.c const int left = b->width * (sx+0) / s->num_x; b 533 libavcodec/vc2enc.c const int right = b->width * (sx+1) / s->num_x; b 534 libavcodec/vc2enc.c const int top = b->height * (sy+0) / s->num_y; b 535 libavcodec/vc2enc.c const int bottom = b->height * (sy+1) / s->num_y; b 537 libavcodec/vc2enc.c dwtcoef *coeff = b->buf + top * b->stride; b 549 libavcodec/vc2enc.c coeff += b->stride; b 576 libavcodec/vc2enc.c SubBand *b = &s->plane[p].band[level][orientation]; b 583 libavcodec/vc2enc.c const int left = b->width * slice->x / s->num_x; b 584 libavcodec/vc2enc.c const int right = b->width *(slice->x+1) / s->num_x; b 585 libavcodec/vc2enc.c const int top = b->height * slice->y / s->num_y; b 586 libavcodec/vc2enc.c const int bottom = b->height *(slice->y+1) / s->num_y; b 588 libavcodec/vc2enc.c dwtcoef *buf = b->buf + top * b->stride; b 596 libavcodec/vc2enc.c buf += b->stride; b 889 libavcodec/vc2enc.c const SubBand *b = &p->band[level][0]; b 891 libavcodec/vc2enc.c b->width, b->height); b 1024 libavcodec/vc2enc.c SubBand *b; b 1142 libavcodec/vc2enc.c b = &p->band[level][o]; b 1143 libavcodec/vc2enc.c b->width = w; b 1144 libavcodec/vc2enc.c b->height = h; b 1145 libavcodec/vc2enc.c b->stride = p->coef_stride; b 1146 libavcodec/vc2enc.c shift = (o > 1)*b->height*b->stride + (o & 1)*b->width; b 1147 libavcodec/vc2enc.c b->buf = p->coef_buf + shift; b 499 libavcodec/videotoolbox.c uint8_t b; b 502 libavcodec/videotoolbox.c b = (length >> (i * 7)) & 0x7F; b 504 libavcodec/videotoolbox.c b |= 0x80; b 506 libavcodec/videotoolbox.c bytestream2_put_byteu(pb, b); b 57 libavcodec/vlc.h #define INIT_VLC_SPARSE_STATIC(vlc, bits, a, b, c, d, e, f, g, h, i, j, static_size) \ b 62 libavcodec/vlc.h ff_init_vlc_sparse(vlc, bits, a, b, c, d, e, f, g, h, i, j, \ b 66 libavcodec/vlc.h #define INIT_LE_VLC_SPARSE_STATIC(vlc, bits, a, b, c, d, e, f, g, h, i, j, static_size) \ b 71 libavcodec/vlc.h ff_init_vlc_sparse(vlc, bits, a, b, c, d, e, f, g, h, i, j, \ b 75 libavcodec/vlc.h #define INIT_VLC_STATIC(vlc, bits, a, b, c, d, e, f, g, static_size) \ b 76 libavcodec/vlc.h INIT_VLC_SPARSE_STATIC(vlc, bits, a, b, c, d, e, f, g, NULL, 0, 0, static_size) b 78 libavcodec/vlc.h #define INIT_LE_VLC_STATIC(vlc, bits, a, b, c, d, e, f, g, static_size) \ b 79 libavcodec/vlc.h INIT_LE_VLC_SPARSE_STATIC(vlc, bits, a, b, c, d, e, f, g, NULL, 0, 0, static_size) b 123 libavcodec/vmdaudio.c uint8_t b = *buf++; b 124 libavcodec/vmdaudio.c if (b & 0x80) b 125 libavcodec/vmdaudio.c predictor[ch] -= vmdaudio_table[b & 0x7F]; b 127 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 45 libavcodec/vp3dsp.c #define M(a, b) ((int)((SUINT)(a) * (b)) >> 16) b 434 libavcodec/vp3dsp.c uint32_t a, b; b 437 libavcodec/vp3dsp.c b = AV_RN32(&src2[i * stride]); b 438 libavcodec/vp3dsp.c AV_WN32A(&dst[i * stride], no_rnd_avg32(a, b)); b 440 libavcodec/vp3dsp.c b = AV_RN32(&src2[i * stride + 4]); b 441 libavcodec/vp3dsp.c AV_WN32A(&dst[i * stride + 4], no_rnd_avg32(a, b)); b 38 libavcodec/vp3dsp.h const uint8_t *b, b 188 libavcodec/vp5.c int b, i, cg, idx, ctx, ctx_last; b 196 libavcodec/vp5.c for (b=0; b<6; b++) { b 199 libavcodec/vp5.c if (b > 3) pt = 1; b 201 libavcodec/vp5.c ctx = 6*s->coeff_ctx[ff_vp56_b6to4[b]][0] b 202 libavcodec/vp5.c + s->above_blocks[s->above_block_idx[b]].not_null_dc; b 211 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx] = 4; b 220 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx] = 3; b 223 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx] = 2; b 230 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx] = 1; b 237 libavcodec/vp5.c s->block_coeff[b][permute[coeff_idx]] = coeff; b 242 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx] = 0; b 249 libavcodec/vp5.c ctx = s->coeff_ctx[ff_vp56_b6to4[b]][coeff_idx]; b 254 libavcodec/vp5.c ctx_last = FFMIN(s->coeff_ctx_last[ff_vp56_b6to4[b]], 24); b 255 libavcodec/vp5.c s->coeff_ctx_last[ff_vp56_b6to4[b]] = coeff_idx; b 258 libavcodec/vp5.c s->coeff_ctx[ff_vp56_b6to4[b]][i] = 5; b 259 libavcodec/vp5.c s->above_blocks[s->above_block_idx[b]].not_null_dc = s->coeff_ctx[ff_vp56_b6to4[b]][0]; b 260 libavcodec/vp5.c s->idct_selector[b] = 63; b 168 libavcodec/vp56.c int b; b 171 libavcodec/vp56.c for (b=0; b<4; b++) { b 172 libavcodec/vp56.c type[b] = vp56_rac_gets(&s->c, 2); b 173 libavcodec/vp56.c if (type[b]) b 174 libavcodec/vp56.c type[b]++; /* only returns 0, 2, 3 or 4 (all INTER_PF) */ b 178 libavcodec/vp56.c for (b=0; b<4; b++) { b 179 libavcodec/vp56.c switch (type[b]) { b 181 libavcodec/vp56.c s->mv[b] = (VP56mv) {0,0}; b 184 libavcodec/vp56.c s->parse_vector_adjustment(s, &s->mv[b]); b 187 libavcodec/vp56.c s->mv[b] = s->vector_candidate[0]; b 190 libavcodec/vp56.c s->mv[b] = s->vector_candidate[1]; b 193 libavcodec/vp56.c mv.x += s->mv[b].x; b 194 libavcodec/vp56.c mv.y += s->mv[b].y; b 208 libavcodec/vp56.c int ctx, b; b 256 libavcodec/vp56.c for (b=0; b<6; b++) b 257 libavcodec/vp56.c s->mv[b] = *mv; b 265 libavcodec/vp56.c int b; b 275 libavcodec/vp56.c for (b=0; b<6; b++) b 276 libavcodec/vp56.c s->mv[b] = *mv; b 284 libavcodec/vp56.c int b; b 286 libavcodec/vp56.c for (b=0; b<6; b++) { b 287 libavcodec/vp56.c VP56RefDc *ab = &s->above_blocks[s->above_block_idx[b]]; b 288 libavcodec/vp56.c VP56RefDc *lb = &s->left_block[ff_vp56_b6to4[b]]; b 308 libavcodec/vp56.c dc = s->prev_dc[ff_vp56_b2p[b]][ref_frame]; b 312 libavcodec/vp56.c s->block_coeff[b][idx] += dc; b 313 libavcodec/vp56.c s->prev_dc[ff_vp56_b2p[b]][ref_frame] = s->block_coeff[b][idx]; b 314 libavcodec/vp56.c ab->dc_coeff = s->block_coeff[b][idx]; b 316 libavcodec/vp56.c lb->dc_coeff = s->block_coeff[b][idx]; b 318 libavcodec/vp56.c s->block_coeff[b][idx] *= s->dequant_dc; b 338 libavcodec/vp56.c static void vp56_mc(VP56Context *s, int b, int plane, uint8_t *src, b 341 libavcodec/vp56.c uint8_t *dst = s->frames[VP56_FRAME_CURRENT]->data[plane] + s->block_offset[b]; b 345 libavcodec/vp56.c int mask = s->vp56_coord_div[b] - 1; b 355 libavcodec/vp56.c dx = s->mv[b].x / s->vp56_coord_div[b]; b 356 libavcodec/vp56.c dy = s->mv[b].y / s->vp56_coord_div[b]; b 358 libavcodec/vp56.c if (b >= 4) { b 368 libavcodec/vp56.c src + s->block_offset[b] + (dy-2)*stride + (dx-2), b 379 libavcodec/vp56.c src + s->block_offset[b] + (dy-2)*stride + (dx-2), b 385 libavcodec/vp56.c src_offset = s->block_offset[b] + dy*stride + dx; b 391 libavcodec/vp56.c if (s->mv[b].x & mask) b 392 libavcodec/vp56.c overlap_offset += (s->mv[b].x > 0) ? 1 : -1; b 393 libavcodec/vp56.c if (s->mv[b].y & mask) b 394 libavcodec/vp56.c overlap_offset += (s->mv[b].y > 0) ? stride : -stride; b 399 libavcodec/vp56.c stride, s->mv[b], mask, s->filter_selection, b<4); b 429 libavcodec/vp56.c int b, ab, b_max, plane, off; b 445 libavcodec/vp56.c for (b=0; b<b_max; b++) { b 446 libavcodec/vp56.c plane = ff_vp56_b2p[b+ab]; b 447 libavcodec/vp56.c vp56_idct_put(s, frame_current->data[plane] + s->block_offset[b], b 448 libavcodec/vp56.c s->stride[plane], s->block_coeff[b], s->idct_selector[b]); b 454 libavcodec/vp56.c for (b=0; b<b_max; b++) { b 455 libavcodec/vp56.c plane = ff_vp56_b2p[b+ab]; b 456 libavcodec/vp56.c off = s->block_offset[b]; b 461 libavcodec/vp56.c s->stride[plane], s->block_coeff[b], s->idct_selector[b]); b 472 libavcodec/vp56.c for (b=0; b<b_max; b++) { b 473 libavcodec/vp56.c int x_off = b==1 || b==3 ? 8 : 0; b 474 libavcodec/vp56.c int y_off = b==2 || b==3 ? 8 : 0; b 475 libavcodec/vp56.c plane = ff_vp56_b2p[b+ab]; b 476 libavcodec/vp56.c vp56_mc(s, b, plane, frame_ref->data[plane], s->stride[plane], b 478 libavcodec/vp56.c vp56_idct_add(s, frame_current->data[plane] + s->block_offset[b], b 479 libavcodec/vp56.c s->stride[plane], s->block_coeff[b], s->idct_selector[b]); b 256 libavcodec/vp6.c const Node *a = va, *b = vb; b 257 libavcodec/vp6.c return (a->count - b->count)*16 + (b->sym - a->sym); b 264 libavcodec/vp6.c int a, b, i; b 270 libavcodec/vp6.c b = tmp[i].count * (255 - coeff_model[i]) >> 8; b 272 libavcodec/vp6.c nodes[map[2*i+1]].count = b + !b; b 411 libavcodec/vp6.c int b, cg, idx; b 414 libavcodec/vp6.c for (b=0; b<6; b++) { b 416 libavcodec/vp6.c if (b > 3) pt = 1; b 452 libavcodec/vp6.c s->block_coeff[b][permute[idx]] = coeff2; b 461 libavcodec/vp6.c s->idct_selector[b] = model->coeff_index_to_idct_selector[FFMIN(coeff_idx, 63)]; b 473 libavcodec/vp6.c int b, i, cg, idx, ctx; b 481 libavcodec/vp6.c for (b=0; b<6; b++) { b 485 libavcodec/vp6.c if (b > 3) pt = 1; b 487 libavcodec/vp6.c ctx = s->left_block[ff_vp56_b6to4[b]].not_null_dc b 488 libavcodec/vp6.c + s->above_blocks[s->above_block_idx[b]].not_null_dc; b 518 libavcodec/vp6.c s->block_coeff[b][permute[idx]] = coeff; b 541 libavcodec/vp6.c s->left_block[ff_vp56_b6to4[b]].not_null_dc = b 542 libavcodec/vp6.c s->above_blocks[s->above_block_idx[b]].not_null_dc = !!s->block_coeff[b][0]; b 543 libavcodec/vp6.c s->idct_selector[b] = model->coeff_index_to_idct_selector[FFMIN(coeff_idx, 63)]; b 1376 libavcodec/vp8.c int b = vp56_rac_get_prob(&c, token_prob[9 + a]); b 1377 libavcodec/vp8.c int cat = (a << 1) + b; b 1562 libavcodec/vp8.c #define XCHG(a, b, xchg) \ b 1565 libavcodec/vp8.c AV_SWAP64(b, a); \ b 1567 libavcodec/vp8.c AV_COPY64(b, a); \ b 590 libavcodec/vp8dsp.c int a = 8 - mx, b = mx; \ b 594 libavcodec/vp8dsp.c dst[x] = (a * src[x] + b * src[x + 1] + 4) >> 3; \ b 620 libavcodec/vp8dsp.c int a = 8 - mx, b = mx; \ b 627 libavcodec/vp8dsp.c tmp[x] = (a * src[x] + b * src[x + 1] + 4) >> 3; \ b 1171 libavcodec/vp9.c VP9Block *b = td->b; b 1178 libavcodec/vp9.c av_assert2(b->bl == BL_8X8); b 1179 libavcodec/vp9.c ff_vp9_decode_block(td, row, col, lflvl, yoff, uvoff, b->bl, b->bp); b 1180 libavcodec/vp9.c } else if (td->b->bl == bl) { b 1181 libavcodec/vp9.c ff_vp9_decode_block(td, row, col, lflvl, yoff, uvoff, b->bl, b->bp); b 1182 libavcodec/vp9.c if (b->bp == PARTITION_H && row + hbs < s->rows) { b 1185 libavcodec/vp9.c ff_vp9_decode_block(td, row + hbs, col, lflvl, yoff, uvoff, b->bl, b->bp); b 1186 libavcodec/vp9.c } else if (b->bp == PARTITION_V && col + hbs < s->cols) { b 1189 libavcodec/vp9.c ff_vp9_decode_block(td, row, col + hbs, lflvl, yoff, uvoff, b->bl, b->bp); b 1529 libavcodec/vp9.c AVVideoBlockParams *b = av_video_enc_params_block(par, block++); b 1534 libavcodec/vp9.c b->src_x = col * 8; b 1535 libavcodec/vp9.c b->src_y = row * 8; b 1536 libavcodec/vp9.c b->w = 1 << (3 + td->block_structure[block_tile].block_size_idx_x); b 1537 libavcodec/vp9.c b->h = 1 << (3 + td->block_structure[block_tile].block_size_idx_y); b 1540 libavcodec/vp9.c b->delta_qp = s->s.h.segmentation.feat[seg_id].q_val; b 1542 libavcodec/vp9.c b->delta_qp -= par->qp; b 1690 libavcodec/vp9.c s->td[i].b = s->td[i].b_base; b 24 libavcodec/vp9_mc_template.c #define ROUNDED_DIV_MVx2(a, b) \ b 25 libavcodec/vp9_mc_template.c (VP56mv) { .x = ROUNDED_DIV(a.x + b.x, 2), .y = ROUNDED_DIV(a.y + b.y, 2) } b 26 libavcodec/vp9_mc_template.c #define ROUNDED_DIV_MVx4(a, b, c, d) \ b 27 libavcodec/vp9_mc_template.c (VP56mv) { .x = ROUNDED_DIV(a.x + b.x + c.x + d.x, 4), \ b 28 libavcodec/vp9_mc_template.c .y = ROUNDED_DIV(a.y + b.y + c.y + d.y, 4) } b 37 libavcodec/vp9_mc_template.c VP9Block *b = td->b; b 39 libavcodec/vp9_mc_template.c ThreadFrame *tref1 = &s->s.refs[s->s.h.refidx[b->ref[0]]], *tref2; b 45 libavcodec/vp9_mc_template.c if (b->comp) { b 46 libavcodec/vp9_mc_template.c tref2 = &s->s.refs[s->s.h.refidx[b->ref[1]]]; b 53 libavcodec/vp9_mc_template.c if (b->bs > BS_8x8) { b 57 libavcodec/vp9_mc_template.c if (b->bs == BS_8x4) { b 58 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[3][b->filter][0], td->dst[0], ls_y, b 60 libavcodec/vp9_mc_template.c row << 3, col << 3, &b->mv[0][0],,,,, 8, 4, w1, h1, 0); b 61 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[3][b->filter][0], b 64 libavcodec/vp9_mc_template.c (row << 3) + 4, col << 3, &b->mv[2][0],,,,, 8, 4, w1, h1, 0); b 68 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[0][0], b->mv[2][0]); b 69 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][0], b 76 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][0], b 81 libavcodec/vp9_mc_template.c &b->mv[0][0],,,,, 8 >> s->ss_h, 4, w1, h1, 0); b 86 libavcodec/vp9_mc_template.c uvmv = b->mv[2][0]; b 88 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[0][0], b->mv[2][0]); b 90 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][0], b 98 libavcodec/vp9_mc_template.c if (b->comp) { b 99 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[3][b->filter][1], td->dst[0], ls_y, b 101 libavcodec/vp9_mc_template.c row << 3, col << 3, &b->mv[0][1],,,,, 8, 4, w2, h2, 1); b 102 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[3][b->filter][1], b 105 libavcodec/vp9_mc_template.c (row << 3) + 4, col << 3, &b->mv[2][1],,,,, 8, 4, w2, h2, 1); b 109 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[0][1], b->mv[2][1]); b 110 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][1], b 117 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][1], b 122 libavcodec/vp9_mc_template.c &b->mv[0][1],,,,, 8 >> s->ss_h, 4, w2, h2, 1); b 127 libavcodec/vp9_mc_template.c uvmv = b->mv[2][1]; b 129 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[0][1], b->mv[2][1]); b 131 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][1], b 139 libavcodec/vp9_mc_template.c } else if (b->bs == BS_4x8) { b 140 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], td->dst[0], ls_y, b 142 libavcodec/vp9_mc_template.c row << 3, col << 3, &b->mv[0][0],,,,, 4, 8, w1, h1, 0); b 143 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], td->dst[0] + 4 * bytesperpixel, ls_y, b 145 libavcodec/vp9_mc_template.c row << 3, (col << 3) + 4, &b->mv[1][0],,,,, 4, 8, w1, h1, 0); b 149 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[0][0], b->mv[1][0]); b 150 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 157 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 162 libavcodec/vp9_mc_template.c &b->mv[0][0],,,,, 4, 8 >> s->ss_v, w1, h1, 0); b 163 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 169 libavcodec/vp9_mc_template.c &b->mv[1][0],,,,, 4, 8 >> s->ss_v, w1, h1, 0); b 172 libavcodec/vp9_mc_template.c if (b->comp) { b 173 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], td->dst[0], ls_y, b 175 libavcodec/vp9_mc_template.c row << 3, col << 3, &b->mv[0][1],,,,, 4, 8, w2, h2, 1); b 176 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], td->dst[0] + 4 * bytesperpixel, ls_y, b 178 libavcodec/vp9_mc_template.c row << 3, (col << 3) + 4, &b->mv[1][1],,,,, 4, 8, w2, h2, 1); b 182 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[0][1], b->mv[1][1]); b 183 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 190 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 195 libavcodec/vp9_mc_template.c &b->mv[0][1],,,,, 4, 8 >> s->ss_v, w2, h2, 1); b 196 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 202 libavcodec/vp9_mc_template.c &b->mv[1][1],,,,, 4, 8 >> s->ss_v, w2, h2, 1); b 209 libavcodec/vp9_mc_template.c av_assert2(b->bs == BS_4x4); b 214 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], td->dst[0], ls_y, b 216 libavcodec/vp9_mc_template.c row << 3, col << 3, &b->mv[0][0], b 218 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], td->dst[0] + 4 * bytesperpixel, ls_y, b 220 libavcodec/vp9_mc_template.c row << 3, (col << 3) + 4, &b->mv[1][0], b 222 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], b 225 libavcodec/vp9_mc_template.c (row << 3) + 4, col << 3, &b->mv[2][0], b 227 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], b 230 libavcodec/vp9_mc_template.c (row << 3) + 4, (col << 3) + 4, &b->mv[3][0], b 236 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx4(b->mv[0][0], b->mv[1][0], b 237 libavcodec/vp9_mc_template.c b->mv[2][0], b->mv[3][0]); b 238 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 245 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[0][0], b->mv[2][0]); b 246 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 252 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[1][0], b->mv[3][0]); b 253 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 264 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[0][0], b->mv[1][0]); b 265 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 274 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[1][0], b->mv[2][0]); b 275 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 282 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 287 libavcodec/vp9_mc_template.c &b->mv[0][0], 0, 0, 8, 8, 4, 4, w1, h1, 0); b 288 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 294 libavcodec/vp9_mc_template.c &b->mv[1][0], 4, 0, 8, 8, 4, 4, w1, h1, 0); b 295 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 300 libavcodec/vp9_mc_template.c &b->mv[2][0], 0, 4, 8, 8, 4, 4, w1, h1, 0); b 301 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], b 307 libavcodec/vp9_mc_template.c &b->mv[3][0], 4, 4, 8, 8, 4, 4, w1, h1, 0); b 311 libavcodec/vp9_mc_template.c if (b->comp) { b 312 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], td->dst[0], ls_y, b 314 libavcodec/vp9_mc_template.c row << 3, col << 3, &b->mv[0][1], 0, 0, 8, 8, 4, 4, w2, h2, 1); b 315 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], td->dst[0] + 4 * bytesperpixel, ls_y, b 317 libavcodec/vp9_mc_template.c row << 3, (col << 3) + 4, &b->mv[1][1], 4, 0, 8, 8, 4, 4, w2, h2, 1); b 318 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], b 321 libavcodec/vp9_mc_template.c (row << 3) + 4, col << 3, &b->mv[2][1], 0, 4, 8, 8, 4, 4, w2, h2, 1); b 322 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], b 325 libavcodec/vp9_mc_template.c (row << 3) + 4, (col << 3) + 4, &b->mv[3][1], 4, 4, 8, 8, 4, 4, w2, h2, 1); b 330 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx4(b->mv[0][1], b->mv[1][1], b 331 libavcodec/vp9_mc_template.c b->mv[2][1], b->mv[3][1]); b 332 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 339 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[0][1], b->mv[2][1]); b 340 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 346 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[1][1], b->mv[3][1]); b 347 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 358 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[0][1], b->mv[1][1]); b 359 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 368 libavcodec/vp9_mc_template.c uvmv = ROUNDED_DIV_MVx2(b->mv[1][1], b->mv[2][1]); b 369 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 376 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 381 libavcodec/vp9_mc_template.c &b->mv[0][1], 0, 0, 8, 8, 4, 4, w2, h2, 1); b 382 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 388 libavcodec/vp9_mc_template.c &b->mv[1][1], 4, 0, 8, 8, 4, 4, w2, h2, 1); b 389 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 394 libavcodec/vp9_mc_template.c &b->mv[2][1], 0, 4, 8, 8, 4, 4, w2, h2, 1); b 395 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], b 401 libavcodec/vp9_mc_template.c &b->mv[3][1], 4, 4, 8, 8, 4, 4, w2, h2, 1); b 407 libavcodec/vp9_mc_template.c int bwl = bwlog_tab[0][b->bs]; b 408 libavcodec/vp9_mc_template.c int bw = ff_vp9_bwh_tab[0][b->bs][0] * 4; b 409 libavcodec/vp9_mc_template.c int bh = ff_vp9_bwh_tab[0][b->bs][1] * 4; b 410 libavcodec/vp9_mc_template.c int uvbw = ff_vp9_bwh_tab[s->ss_h][b->bs][0] * 4; b 411 libavcodec/vp9_mc_template.c int uvbh = ff_vp9_bwh_tab[s->ss_v][b->bs][1] * 4; b 413 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[bwl][b->filter][0], td->dst[0], ls_y, b 415 libavcodec/vp9_mc_template.c row << 3, col << 3, &b->mv[0][0], 0, 0, bw, bh, bw, bh, w1, h1, 0); b 418 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[bwl + s->ss_h][b->filter][0], b 423 libavcodec/vp9_mc_template.c &b->mv[0][0], 0, 0, uvbw, uvbh, uvbw, uvbh, w1, h1, 0); b 425 libavcodec/vp9_mc_template.c if (b->comp) { b 426 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[bwl][b->filter][1], td->dst[0], ls_y, b 428 libavcodec/vp9_mc_template.c row << 3, col << 3, &b->mv[0][1], 0, 0, bw, bh, bw, bh, w2, h2, 1); b 431 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[bwl + s->ss_h][b->filter][1], b 436 libavcodec/vp9_mc_template.c &b->mv[0][1], 0, 0, uvbw, uvbh, uvbw, uvbh, w2, h2, 1); b 93 libavcodec/vp9block.c VP9Block *b = td->b; b 95 libavcodec/vp9block.c enum TxfmMode max_tx = max_tx_for_bl_bp[b->bs]; b 96 libavcodec/vp9block.c int bw4 = ff_vp9_bwh_tab[1][b->bs][0], w4 = FFMIN(s->cols - col, bw4); b 97 libavcodec/vp9block.c int bh4 = ff_vp9_bwh_tab[1][b->bs][1], h4 = FFMIN(s->rows - row, bh4), y; b 102 libavcodec/vp9block.c b->seg_id = 0; b 104 libavcodec/vp9block.c b->seg_id = !s->s.h.segmentation.update_map ? 0 : b 123 libavcodec/vp9block.c b->seg_id = pred; b 125 libavcodec/vp9block.c b->seg_id = 0; b 131 libavcodec/vp9block.c b->seg_id = vp8_rac_get_tree(td->c, ff_vp9_segmentation_tree, b 140 libavcodec/vp9block.c bw4, bh4, 8 * s->sb_cols, b->seg_id); b 143 libavcodec/vp9block.c b->skip = s->s.h.segmentation.enabled && b 144 libavcodec/vp9block.c s->s.h.segmentation.feat[b->seg_id].skip_enabled; b 145 libavcodec/vp9block.c if (!b->skip) { b 147 libavcodec/vp9block.c b->skip = vp56_rac_get_prob(td->c, s->prob.p.skip[c]); b 148 libavcodec/vp9block.c td->counts.skip[c][b->skip]++; b 152 libavcodec/vp9block.c b->intra = 1; b 153 libavcodec/vp9block.c } else if (s->s.h.segmentation.enabled && s->s.h.segmentation.feat[b->seg_id].ref_enabled) { b 154 libavcodec/vp9block.c b->intra = !s->s.h.segmentation.feat[b->seg_id].ref_val; b 167 libavcodec/vp9block.c b->intra = !bit; b 170 libavcodec/vp9block.c if ((b->intra || !b->skip) && s->s.h.txfmmode == TX_SWITCHABLE) { b 190 libavcodec/vp9block.c b->tx = vp56_rac_get_prob(td->c, s->prob.p.tx32p[c][0]); b 191 libavcodec/vp9block.c if (b->tx) { b 192 libavcodec/vp9block.c b->tx += vp56_rac_get_prob(td->c, s->prob.p.tx32p[c][1]); b 193 libavcodec/vp9block.c if (b->tx == 2) b 194 libavcodec/vp9block.c b->tx += vp56_rac_get_prob(td->c, s->prob.p.tx32p[c][2]); b 196 libavcodec/vp9block.c td->counts.tx32p[c][b->tx]++; b 199 libavcodec/vp9block.c b->tx = vp56_rac_get_prob(td->c, s->prob.p.tx16p[c][0]); b 200 libavcodec/vp9block.c if (b->tx) b 201 libavcodec/vp9block.c b->tx += vp56_rac_get_prob(td->c, s->prob.p.tx16p[c][1]); b 202 libavcodec/vp9block.c td->counts.tx16p[c][b->tx]++; b 205 libavcodec/vp9block.c b->tx = vp56_rac_get_prob(td->c, s->prob.p.tx8p[c]); b 206 libavcodec/vp9block.c td->counts.tx8p[c][b->tx]++; b 209 libavcodec/vp9block.c b->tx = TX_4X4; b 213 libavcodec/vp9block.c b->tx = FFMIN(max_tx, s->s.h.txfmmode); b 220 libavcodec/vp9block.c b->comp = 0; b 221 libavcodec/vp9block.c if (b->bs > BS_8x8) { b 225 libavcodec/vp9block.c b->mode[0] = b 228 libavcodec/vp9block.c if (b->bs != BS_8x4) { b 229 libavcodec/vp9block.c b->mode[1] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, b 230 libavcodec/vp9block.c ff_vp9_default_kf_ymode_probs[a[1]][b->mode[0]]); b 232 libavcodec/vp9block.c a[1] = b->mode[1]; b 236 libavcodec/vp9block.c b->mode[1] = b->mode[0]; b 238 libavcodec/vp9block.c if (b->bs != BS_4x8) { b 239 libavcodec/vp9block.c b->mode[2] = b 242 libavcodec/vp9block.c if (b->bs != BS_8x4) { b 243 libavcodec/vp9block.c b->mode[3] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, b 244 libavcodec/vp9block.c ff_vp9_default_kf_ymode_probs[a[1]][b->mode[2]]); b 246 libavcodec/vp9block.c a[1] = b->mode[3]; b 250 libavcodec/vp9block.c b->mode[3] = b->mode[2]; b 253 libavcodec/vp9block.c b->mode[2] = b->mode[0]; b 256 libavcodec/vp9block.c b->mode[3] = b->mode[1]; b 259 libavcodec/vp9block.c b->mode[0] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, b 261 libavcodec/vp9block.c b->mode[3] = b 262 libavcodec/vp9block.c b->mode[2] = b 263 libavcodec/vp9block.c b->mode[1] = b->mode[0]; b 265 libavcodec/vp9block.c memset(a, b->mode[0], ff_vp9_bwh_tab[0][b->bs][0]); b 266 libavcodec/vp9block.c memset(l, b->mode[0], ff_vp9_bwh_tab[0][b->bs][1]); b 268 libavcodec/vp9block.c b->uvmode = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, b 269 libavcodec/vp9block.c ff_vp9_default_kf_uvmode_probs[b->mode[3]]); b 270 libavcodec/vp9block.c } else if (b->intra) { b 271 libavcodec/vp9block.c b->comp = 0; b 272 libavcodec/vp9block.c if (b->bs > BS_8x8) { b 273 libavcodec/vp9block.c b->mode[0] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, b 275 libavcodec/vp9block.c td->counts.y_mode[0][b->mode[0]]++; b 276 libavcodec/vp9block.c if (b->bs != BS_8x4) { b 277 libavcodec/vp9block.c b->mode[1] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, b 279 libavcodec/vp9block.c td->counts.y_mode[0][b->mode[1]]++; b 281 libavcodec/vp9block.c b->mode[1] = b->mode[0]; b 283 libavcodec/vp9block.c if (b->bs != BS_4x8) { b 284 libavcodec/vp9block.c b->mode[2] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, b 286 libavcodec/vp9block.c td->counts.y_mode[0][b->mode[2]]++; b 287 libavcodec/vp9block.c if (b->bs != BS_8x4) { b 288 libavcodec/vp9block.c b->mode[3] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, b 290 libavcodec/vp9block.c td->counts.y_mode[0][b->mode[3]]++; b 292 libavcodec/vp9block.c b->mode[3] = b->mode[2]; b 295 libavcodec/vp9block.c b->mode[2] = b->mode[0]; b 296 libavcodec/vp9block.c b->mode[3] = b->mode[1]; b 302 libavcodec/vp9block.c int sz = size_group[b->bs]; b 304 libavcodec/vp9block.c b->mode[0] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, b 306 libavcodec/vp9block.c b->mode[1] = b 307 libavcodec/vp9block.c b->mode[2] = b 308 libavcodec/vp9block.c b->mode[3] = b->mode[0]; b 309 libavcodec/vp9block.c td->counts.y_mode[sz][b->mode[3]]++; b 311 libavcodec/vp9block.c b->uvmode = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, b 312 libavcodec/vp9block.c s->prob.p.uv_mode[b->mode[3]]); b 313 libavcodec/vp9block.c td->counts.uv_mode[b->mode[3]][b->uvmode]++; b 332 libavcodec/vp9block.c if (s->s.h.segmentation.enabled && s->s.h.segmentation.feat[b->seg_id].ref_enabled) { b 333 libavcodec/vp9block.c av_assert2(s->s.h.segmentation.feat[b->seg_id].ref_val != 0); b 334 libavcodec/vp9block.c b->comp = 0; b 335 libavcodec/vp9block.c b->ref[0] = s->s.h.segmentation.feat[b->seg_id].ref_val - 1; b 339 libavcodec/vp9block.c b->comp = s->s.h.comppredmode == PRED_COMPREF; b 370 libavcodec/vp9block.c b->comp = vp56_rac_get_prob(td->c, s->prob.p.comp[c]); b 371 libavcodec/vp9block.c td->counts.comp[c][b->comp]++; b 377 libavcodec/vp9block.c if (b->comp) { /* two references */ b 380 libavcodec/vp9block.c b->ref[fix_idx] = s->s.h.fixcompref; b 443 libavcodec/vp9block.c b->ref[var_idx] = s->s.h.varcompref[bit]; b 485 libavcodec/vp9block.c b->ref[0] = 0; b 571 libavcodec/vp9block.c b->ref[0] = 1 + bit; b 576 libavcodec/vp9block.c if (b->bs <= BS_8x8) { b 577 libavcodec/vp9block.c if (s->s.h.segmentation.enabled && s->s.h.segmentation.feat[b->seg_id].skip_enabled) { b 578 libavcodec/vp9block.c b->mode[0] = b 579 libavcodec/vp9block.c b->mode[1] = b 580 libavcodec/vp9block.c b->mode[2] = b 581 libavcodec/vp9block.c b->mode[3] = ZEROMV; b 589 libavcodec/vp9block.c int c = inter_mode_ctx_lut[s->above_mode_ctx[col + off[b->bs]]] b 590 libavcodec/vp9block.c [td->left_mode_ctx[row7 + off[b->bs]]]; b 592 libavcodec/vp9block.c b->mode[0] = vp8_rac_get_tree(td->c, ff_vp9_inter_mode_tree, b 594 libavcodec/vp9block.c b->mode[1] = b 595 libavcodec/vp9block.c b->mode[2] = b 596 libavcodec/vp9block.c b->mode[3] = b->mode[0]; b 597 libavcodec/vp9block.c td->counts.mv_mode[c][b->mode[0] - 10]++; b 620 libavcodec/vp9block.c b->filter = ff_vp9_filter_lut[filter_id]; b 622 libavcodec/vp9block.c b->filter = s->s.h.filtermode; b 625 libavcodec/vp9block.c if (b->bs > BS_8x8) { b 628 libavcodec/vp9block.c b->mode[0] = vp8_rac_get_tree(td->c, ff_vp9_inter_mode_tree, b 630 libavcodec/vp9block.c td->counts.mv_mode[c][b->mode[0] - 10]++; b 631 libavcodec/vp9block.c ff_vp9_fill_mv(td, b->mv[0], b->mode[0], 0); b 633 libavcodec/vp9block.c if (b->bs != BS_8x4) { b 634 libavcodec/vp9block.c b->mode[1] = vp8_rac_get_tree(td->c, ff_vp9_inter_mode_tree, b 636 libavcodec/vp9block.c td->counts.mv_mode[c][b->mode[1] - 10]++; b 637 libavcodec/vp9block.c ff_vp9_fill_mv(td, b->mv[1], b->mode[1], 1); b 639 libavcodec/vp9block.c b->mode[1] = b->mode[0]; b 640 libavcodec/vp9block.c AV_COPY32(&b->mv[1][0], &b->mv[0][0]); b 641 libavcodec/vp9block.c AV_COPY32(&b->mv[1][1], &b->mv[0][1]); b 644 libavcodec/vp9block.c if (b->bs != BS_4x8) { b 645 libavcodec/vp9block.c b->mode[2] = vp8_rac_get_tree(td->c, ff_vp9_inter_mode_tree, b 647 libavcodec/vp9block.c td->counts.mv_mode[c][b->mode[2] - 10]++; b 648 libavcodec/vp9block.c ff_vp9_fill_mv(td, b->mv[2], b->mode[2], 2); b 650 libavcodec/vp9block.c if (b->bs != BS_8x4) { b 651 libavcodec/vp9block.c b->mode[3] = vp8_rac_get_tree(td->c, ff_vp9_inter_mode_tree, b 653 libavcodec/vp9block.c td->counts.mv_mode[c][b->mode[3] - 10]++; b 654 libavcodec/vp9block.c ff_vp9_fill_mv(td, b->mv[3], b->mode[3], 3); b 656 libavcodec/vp9block.c b->mode[3] = b->mode[2]; b 657 libavcodec/vp9block.c AV_COPY32(&b->mv[3][0], &b->mv[2][0]); b 658 libavcodec/vp9block.c AV_COPY32(&b->mv[3][1], &b->mv[2][1]); b 661 libavcodec/vp9block.c b->mode[2] = b->mode[0]; b 662 libavcodec/vp9block.c AV_COPY32(&b->mv[2][0], &b->mv[0][0]); b 663 libavcodec/vp9block.c AV_COPY32(&b->mv[2][1], &b->mv[0][1]); b 664 libavcodec/vp9block.c b->mode[3] = b->mode[1]; b 665 libavcodec/vp9block.c AV_COPY32(&b->mv[3][0], &b->mv[1][0]); b 666 libavcodec/vp9block.c AV_COPY32(&b->mv[3][1], &b->mv[1][1]); b 669 libavcodec/vp9block.c ff_vp9_fill_mv(td, b->mv[0], b->mode[0], -1); b 670 libavcodec/vp9block.c AV_COPY32(&b->mv[1][0], &b->mv[0][0]); b 671 libavcodec/vp9block.c AV_COPY32(&b->mv[2][0], &b->mv[0][0]); b 672 libavcodec/vp9block.c AV_COPY32(&b->mv[3][0], &b->mv[0][0]); b 673 libavcodec/vp9block.c AV_COPY32(&b->mv[1][1], &b->mv[0][1]); b 674 libavcodec/vp9block.c AV_COPY32(&b->mv[2][1], &b->mv[0][1]); b 675 libavcodec/vp9block.c AV_COPY32(&b->mv[3][1], &b->mv[0][1]); b 678 libavcodec/vp9block.c vref = b->ref[b->comp ? s->s.h.signbias[s->s.h.varcompref[0]] : 0]; b 718 libavcodec/vp9block.c switch (ff_vp9_bwh_tab[1][b->bs][0]) { b 721 libavcodec/vp9block.c SPLAT_CTX(perf->dir##_skip_ctx[off], b->skip, n); \ b 722 libavcodec/vp9block.c SPLAT_CTX(perf->dir##_txfm_ctx[off], b->tx, n); \ b 723 libavcodec/vp9block.c SPLAT_CTX(perf->dir##_partition_ctx[off], dir##_ctx[b->bs], n); \ b 725 libavcodec/vp9block.c SPLAT_CTX(perf->dir##_intra_ctx[off], b->intra, n); \ b 726 libavcodec/vp9block.c SPLAT_CTX(perf->dir##_comp_ctx[off], b->comp, n); \ b 727 libavcodec/vp9block.c SPLAT_CTX(perf->dir##_mode_ctx[off], b->mode[3], n); \ b 728 libavcodec/vp9block.c if (!b->intra) { \ b 741 libavcodec/vp9block.c switch (ff_vp9_bwh_tab[1][b->bs][1]) { b 751 libavcodec/vp9block.c if (b->bs > BS_8x8) { b 752 libavcodec/vp9block.c int mv0 = AV_RN32A(&b->mv[3][0]), mv1 = AV_RN32A(&b->mv[3][1]); b 754 libavcodec/vp9block.c AV_COPY32(&td->left_mv_ctx[row7 * 2 + 0][0], &b->mv[1][0]); b 755 libavcodec/vp9block.c AV_COPY32(&td->left_mv_ctx[row7 * 2 + 0][1], &b->mv[1][1]); b 758 libavcodec/vp9block.c AV_COPY32(&s->above_mv_ctx[col * 2 + 0][0], &b->mv[2][0]); b 759 libavcodec/vp9block.c AV_COPY32(&s->above_mv_ctx[col * 2 + 0][1], &b->mv[2][1]); b 763 libavcodec/vp9block.c int n, mv0 = AV_RN32A(&b->mv[3][0]), mv1 = AV_RN32A(&b->mv[3][1]); b 781 libavcodec/vp9block.c if (b->intra) { b 786 libavcodec/vp9block.c } else if (b->comp) { b 788 libavcodec/vp9block.c mv[x].ref[0] = b->ref[0]; b 789 libavcodec/vp9block.c mv[x].ref[1] = b->ref[1]; b 790 libavcodec/vp9block.c AV_COPY32(&mv[x].mv[0], &b->mv[3][0]); b 791 libavcodec/vp9block.c AV_COPY32(&mv[x].mv[1], &b->mv[3][1]); b 795 libavcodec/vp9block.c mv[x].ref[0] = b->ref[0]; b 797 libavcodec/vp9block.c AV_COPY32(&mv[x].mv[0], &b->mv[3][0]); b 967 libavcodec/vp9block.c VP9Block *b = td->b; b 969 libavcodec/vp9block.c uint8_t (*p)[6][11] = s->prob.coef[b->tx][0 /* y */][!b->intra]; b 970 libavcodec/vp9block.c unsigned (*c)[6][3] = td->counts.coef[b->tx][0 /* y */][!b->intra]; b 971 libavcodec/vp9block.c unsigned (*e)[6][2] = td->counts.eob[b->tx][0 /* y */][!b->intra]; b 972 libavcodec/vp9block.c int w4 = ff_vp9_bwh_tab[1][b->bs][0] << 1, h4 = ff_vp9_bwh_tab[1][b->bs][1] << 1; b 976 libavcodec/vp9block.c int16_t (*qmul)[2] = s->s.h.segmentation.feat[b->seg_id].qmul; b 977 libavcodec/vp9block.c int tx = 4 * s->s.h.lossless + b->tx; b 980 libavcodec/vp9block.c const int16_t *uvscan = ff_vp9_scans[b->uvtx][DCT_DCT]; b 981 libavcodec/vp9block.c const int16_t (*uvnb)[2] = ff_vp9_scans_nb[b->uvtx][DCT_DCT]; b 990 libavcodec/vp9block.c const int16_t *y_band_counts = band_counts[b->tx]; b 991 libavcodec/vp9block.c const int16_t *uv_band_counts = band_counts[b->uvtx]; b 1007 libavcodec/vp9block.c enum TxfmType txtp = ff_vp9_intra_txfm_type[b->mode[mode_index]]; \ b 1058 libavcodec/vp9block.c switch (b->tx) { b 1060 libavcodec/vp9block.c DECODE_Y_COEF_LOOP(1, b->bs > BS_8x8 ? n : 0,); b 1096 libavcodec/vp9block.c p = s->prob.coef[b->uvtx][1 /* uv */][!b->intra]; b 1097 libavcodec/vp9block.c c = td->counts.coef[b->uvtx][1 /* uv */][!b->intra]; b 1098 libavcodec/vp9block.c e = td->counts.eob[b->uvtx][1 /* uv */][!b->intra]; b 1106 libavcodec/vp9block.c switch (b->uvtx) { b 1268 libavcodec/vp9block.c VP9Block *b = td->b; b 1286 libavcodec/vp9block.c b->bs = bs; b 1287 libavcodec/vp9block.c b->bl = bl; b 1288 libavcodec/vp9block.c b->bp = bp; b 1290 libavcodec/vp9block.c b->uvtx = b->tx - ((s->ss_h && w4 * 2 == (1 << b->tx)) || b 1291 libavcodec/vp9block.c (s->ss_v && h4 * 2 == (1 << b->tx))); b 1301 libavcodec/vp9block.c if (!b->skip) { b 1309 libavcodec/vp9block.c if (!has_coeffs && b->bs <= BS_8x8 && !b->intra) { b 1310 libavcodec/vp9block.c b->skip = 1; b 1352 libavcodec/vp9block.c s->td[0].b++; b 1387 libavcodec/vp9block.c if (b->intra) { b 1434 libavcodec/vp9block.c (lvl = s->s.h.segmentation.feat[b->seg_id].lflvl[b->intra ? 0 : b->ref[0] + 1] b 1435 libavcodec/vp9block.c [b->mode[3] != ZEROMV]) > 0) { b 1437 libavcodec/vp9block.c int skip_inter = !b->intra && b->skip, col7 = td->col7, row7 = td->row7; b 1440 libavcodec/vp9block.c mask_edges(lflvl->mask[0], 0, 0, row7, col7, x_end, y_end, 0, 0, b->tx, skip_inter); b 1445 libavcodec/vp9block.c b->uvtx, skip_inter); b 1449 libavcodec/vp9block.c s->td[0].b++; b 172 libavcodec/vp9dec.h VP9Block *b_base, *b; b 2228 libavcodec/vp9dsp_template.c #define bilinf_fn_1d(a, b, c, d) b 2229 libavcodec/vp9dsp_template.c #define bilinf_fn_2d(a, b) b 2477 libavcodec/vp9dsp_template.c #define scaled_bilinf_fn(a, b) b 2517 libavcodec/vp9dsp_template.c #define init_scaled(a,b,c,d) init_scaled_bd_aware(a,b,c,d) b 69 libavcodec/vp9mvs.c VP9Block *b = td->b; b 71 libavcodec/vp9mvs.c const int8_t (*p)[2] = mv_ref_blk_off[b->bs]; b 92 libavcodec/vp9mvs.c RETURN_DIRECT_MV(b->mv[0][z]); b 94 libavcodec/vp9mvs.c RETURN_DIRECT_MV(b->mv[2][z]); b 95 libavcodec/vp9mvs.c RETURN_DIRECT_MV(b->mv[1][z]); b 96 libavcodec/vp9mvs.c RETURN_DIRECT_MV(b->mv[0][z]); b 294 libavcodec/vp9mvs.c VP9Block *b = td->b; b 302 libavcodec/vp9mvs.c find_ref_mvs(td, &mv[0], b->ref[0], 0, mode == NEARMV, b 332 libavcodec/vp9mvs.c if (b->comp) { b 334 libavcodec/vp9mvs.c find_ref_mvs(td, &mv[1], b->ref[1], 1, mode == NEARMV, b 222 libavcodec/vp9recon.c VP9Block *b = td->b; b 224 libavcodec/vp9recon.c int w4 = ff_vp9_bwh_tab[1][b->bs][0] << 1, step1d = 1 << b->tx, n; b 225 libavcodec/vp9recon.c int h4 = ff_vp9_bwh_tab[1][b->bs][1] << 1, x, y, step = 1 << (b->tx * 2); b 228 libavcodec/vp9recon.c int tx = 4 * s->s.h.lossless + b->tx, uvtx = b->uvtx + 4 * s->s.h.lossless; b 229 libavcodec/vp9recon.c int uvstep1d = 1 << b->uvtx, p; b 238 libavcodec/vp9recon.c int mode = b->mode[b->bs > BS_8x8 && b->tx == TX_4X4 ? b 242 libavcodec/vp9recon.c int eob = b->skip ? 0 : b->tx > TX_8X8 ? AV_RN16A(&td->eob[n]) : td->eob[n]; b 247 libavcodec/vp9recon.c col, x, w4, row, y, b->tx, 0, 0, 0, bytesperpixel); b 248 libavcodec/vp9recon.c s->dsp.intra_pred[b->tx][mode](ptr, td->y_stride, l, a); b 261 libavcodec/vp9recon.c step = 1 << (b->uvtx * 2); b 269 libavcodec/vp9recon.c int mode = b->uvmode; b 271 libavcodec/vp9recon.c int eob = b->skip ? 0 : b->uvtx > TX_8X8 ? AV_RN16A(&td->uveob[p][n]) : td->uveob[p][n]; b 276 libavcodec/vp9recon.c b->uvtx, p + 1, s->ss_h, s->ss_v, bytesperpixel); b 277 libavcodec/vp9recon.c s->dsp.intra_pred[b->uvtx][mode](ptr, td->uv_stride, l, a); b 548 libavcodec/vp9recon.c s->mvscale[b->ref[i]], s->mvstep[b->ref[i]]) b 553 libavcodec/vp9recon.c s->mvscale[b->ref[i]], s->mvstep[b->ref[i]]) b 572 libavcodec/vp9recon.c VP9Block *b = td->b; b 575 libavcodec/vp9recon.c if (s->mvscale[b->ref[0]][0] == REF_INVALID_SCALE || b 576 libavcodec/vp9recon.c (b->comp && s->mvscale[b->ref[1]][0] == REF_INVALID_SCALE)) { b 585 libavcodec/vp9recon.c if (s->mvscale[b->ref[0]][0] || (b->comp && s->mvscale[b->ref[1]][0])) { b 599 libavcodec/vp9recon.c if (!b->skip) { b 602 libavcodec/vp9recon.c int w4 = ff_vp9_bwh_tab[1][b->bs][0] << 1, step1d = 1 << b->tx, n; b 603 libavcodec/vp9recon.c int h4 = ff_vp9_bwh_tab[1][b->bs][1] << 1, x, y, step = 1 << (b->tx * 2); b 606 libavcodec/vp9recon.c int tx = 4 * s->s.h.lossless + b->tx, uvtx = b->uvtx + 4 * s->s.h.lossless; b 607 libavcodec/vp9recon.c int uvstep1d = 1 << b->uvtx, p; b 615 libavcodec/vp9recon.c int eob = b->tx > TX_8X8 ? AV_RN16A(&td->eob[n]) : td->eob[n]; b 627 libavcodec/vp9recon.c step = 1 << (b->uvtx * 2); b 634 libavcodec/vp9recon.c int eob = b->uvtx > TX_8X8 ? AV_RN16A(&td->uveob[p][n]) : td->uveob[p][n]; b 328 libavcodec/vqavideo.c unsigned char r, g, b; b 426 libavcodec/vqavideo.c b = bytestream2_get_byteu(&s->gb) * 4; b 427 libavcodec/vqavideo.c s->palette[i] = 0xFFU << 24 | r << 16 | g << 8 | b; b 907 libavcodec/webp.c static av_always_inline uint8_t clamp_add_subtract_half(int a, int b, int c) b 909 libavcodec/webp.c int d = a + b >> 1; b 198 libavcodec/wma.c int a, b, pos, lpos, k, block_len, i, j, n; b 212 libavcodec/wma.c b = avctx->sample_rate; b 213 libavcodec/wma.c pos = ((block_len * 2 * a) + (b >> 1)) / b; b 246 libavcodec/wma.c b = avctx->sample_rate; b 247 libavcodec/wma.c pos = ((block_len * 2 * a) + (b << 1)) / (4 * b); b 143 libavcodec/wmadec.c float a, b; b 151 libavcodec/wmadec.c b = s->lsp_pow_m_table2[m]; b 152 libavcodec/wmadec.c return s->lsp_pow_e_table[e] * (a + b * t.f); b 157 libavcodec/wmadec.c float wdel, a, b; b 172 libavcodec/wmadec.c b = 1.0; b 177 libavcodec/wmadec.c s->lsp_pow_m_table1[i] = 2 * a - b; b 178 libavcodec/wmadec.c s->lsp_pow_m_table2[i] = b - a; b 179 libavcodec/wmadec.c b = a; b 381 libavcodec/wmaenc.c float a, b; b 386 libavcodec/wmaenc.c b = s->coefs[1][i] * 0.5; b 387 libavcodec/wmaenc.c s->coefs[0][i] = a + b; b 388 libavcodec/wmaenc.c s->coefs[1][i] = a - b; b 257 libavcodec/wmaprodec.c #define PRINT(a, b) av_log(s->avctx, AV_LOG_DEBUG, " %s = %d\n", a, b); b 258 libavcodec/wmaprodec.c #define PRINT_HEX(a, b) av_log(s->avctx, AV_LOG_DEBUG, " %s = %"PRIx32"\n", a, b); b 523 libavcodec/wmaprodec.c int b; b 524 libavcodec/wmaprodec.c for (b = 0; b < s->num_sfb[i]; b++) { b 526 libavcodec/wmaprodec.c int offset = ((s->sfb_offsets[i][b] b 527 libavcodec/wmaprodec.c + s->sfb_offsets[i][b + 1] - 1) << i) >> 1; b 534 libavcodec/wmaprodec.c s->sf_offsets[i][x][b] = v; b 1025 libavcodec/wmaprodec.c int b; b 1026 libavcodec/wmaprodec.c for (b = 0; b < s->num_bands; b++) b 1027 libavcodec/wmaprodec.c s->channel[c].scale_factors[b] = b 1375 libavcodec/wmaprodec.c int b; b 1382 libavcodec/wmaprodec.c for (b = 0; b < s->num_bands; b++) { b 1383 libavcodec/wmaprodec.c const int end = FFMIN(s->cur_sfb_offsets[b+1], s->subframe_len); b 1388 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 318 libavcodec/x86/cavsdsp.c #define PUT_OP(a,b,temp, size) "mov" #size " " #a ", " #b " \n\t" b 319 libavcodec/x86/cavsdsp.c #define AVG_3DNOW_OP(a,b,temp, size) \ b 320 libavcodec/x86/cavsdsp.c "mov" #size " " #b ", " #temp " \n\t"\ b 322 libavcodec/x86/cavsdsp.c "mov" #size " " #a ", " #b " \n\t" b 323 libavcodec/x86/cavsdsp.c #define AVG_MMXEXT_OP(a, b, temp, size) \ b 324 libavcodec/x86/cavsdsp.c "mov" #size " " #b ", " #temp " \n\t"\ b 326 libavcodec/x86/cavsdsp.c "mov" #size " " #a ", " #b " \n\t" b 33 libavcodec/x86/dirac_dwt_init.c void ff_horizontal_compose_haar0i##ext(int16_t *b, int16_t *tmp, int w);\ b 34 libavcodec/x86/dirac_dwt_init.c void ff_horizontal_compose_haar1i##ext(int16_t *b, int16_t *tmp, int w);\ b 110 libavcodec/x86/dirac_dwt_init.c int16_t *b = (int16_t *)_b; \ b 113 libavcodec/x86/dirac_dwt_init.c ff_horizontal_compose_haar0i##ext(b, tmp, w);\ b 116 libavcodec/x86/dirac_dwt_init.c b[2*x ] = tmp[x];\ b 117 libavcodec/x86/dirac_dwt_init.c b[2*x+1] = COMPOSE_HAARiH0(b[x+w2], tmp[x]);\ b 124 libavcodec/x86/dirac_dwt_init.c int16_t *b = (int16_t *)_b; \ b 127 libavcodec/x86/dirac_dwt_init.c ff_horizontal_compose_haar1i##ext(b, tmp, w);\ b 130 libavcodec/x86/dirac_dwt_init.c b[2*x ] = (tmp[x] + 1)>>1;\ b 131 libavcodec/x86/dirac_dwt_init.c b[2*x+1] = (COMPOSE_HAARiH0(b[x+w2], tmp[x]) + 1)>>1;\ b 149 libavcodec/x86/dirac_dwt_init.c int16_t *b = (int16_t *)_b; b 152 libavcodec/x86/dirac_dwt_init.c ff_horizontal_compose_dd97i_ssse3(b, tmp, w); b 155 libavcodec/x86/dirac_dwt_init.c b[2*x ] = (tmp[x] + 1)>>1; b 156 libavcodec/x86/dirac_dwt_init.c b[2*x+1] = (COMPOSE_DD97iH0(tmp[x-1], tmp[x], b[x+w2], tmp[x+1], tmp[x+2]) + 1)>>1; b 98 libavcodec/x86/hpeldsp_init.c #define PAVGBP(a, b, c, d, e, f) PAVGBP_MMX_NO_RND(a, b, c, d, e, f) b 99 libavcodec/x86/hpeldsp_init.c #define PAVGB(a, b, c, e) PAVGB_MMX_NO_RND(a, b, c, e) b 124 libavcodec/x86/hpeldsp_init.c #define PAVGBP(a, b, c, d, e, f) PAVGBP_MMX(a, b, c, d, e, f) b 125 libavcodec/x86/hpeldsp_init.c #define PAVGB(a, b, c, e) PAVGB_MMX(a, b, c, e) b 35 libavcodec/x86/mathops.h static av_always_inline av_const int MULL(int a, int b, unsigned shift) b 42 libavcodec/x86/mathops.h :"a"(a), "rm"(b), "ci"((uint8_t)shift) b 48 libavcodec/x86/mathops.h static av_always_inline av_const int MULH(int a, int b) b 54 libavcodec/x86/mathops.h :"a"(a), "rm"(b) b 60 libavcodec/x86/mathops.h static av_always_inline av_const int64_t MUL64(int a, int b) b 66 libavcodec/x86/mathops.h :"a"(a), "rm"(b) b 76 libavcodec/x86/mathops.h static inline av_const int mid_pred(int a, int b, int c) b 78 libavcodec/x86/mathops.h int i=b; b 88 libavcodec/x86/mathops.h :"r"(b), "r"(c) b 94 libavcodec/x86/mathops.h #define COPY3_IF_LT(x, y, a, b, c, d)\ b 101 libavcodec/x86/mathops.h : "r" (y), "r" (b), "r" (d)\ b 78 libavcodec/x86/mpegaudiodsp.c #define MULT(a, b) \ b 83 libavcodec/x86/mpegaudiodsp.c "mulps " #b "(%2,%0), %%xmm2 \n\t" \ b 47 libavcodec/x86/mpegvideoenc_template.c #define PMAXW(a,b) "pmaxsw "a", "b" \n\t" b 48 libavcodec/x86/mpegvideoenc_template.c #define PMAX(a,b) \ b 49 libavcodec/x86/mpegvideoenc_template.c "movhlps "a", "b" \n\t"\ b 50 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a)\ b 51 libavcodec/x86/mpegvideoenc_template.c "pshuflw $0x0E, "a", "b" \n\t"\ b 52 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a)\ b 53 libavcodec/x86/mpegvideoenc_template.c "pshuflw $0x01, "a", "b" \n\t"\ b 54 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a) b 61 libavcodec/x86/mpegvideoenc_template.c #define PMAXW(a,b) "pmaxsw "a", "b" \n\t" b 62 libavcodec/x86/mpegvideoenc_template.c #define PMAX(a,b) \ b 63 libavcodec/x86/mpegvideoenc_template.c "pshufw $0x0E, "a", "b" \n\t"\ b 64 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a)\ b 65 libavcodec/x86/mpegvideoenc_template.c "pshufw $0x01, "a", "b" \n\t"\ b 66 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a) b 71 libavcodec/x86/mpegvideoenc_template.c #define PMAXW(a,b) \ b 72 libavcodec/x86/mpegvideoenc_template.c "psubusw "a", "b" \n\t"\ b 73 libavcodec/x86/mpegvideoenc_template.c "paddw "a", "b" \n\t" b 74 libavcodec/x86/mpegvideoenc_template.c #define PMAX(a,b) \ b 75 libavcodec/x86/mpegvideoenc_template.c "movq "a", "b" \n\t"\ b 77 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a)\ b 78 libavcodec/x86/mpegvideoenc_template.c "movq "a", "b" \n\t"\ b 80 libavcodec/x86/mpegvideoenc_template.c PMAXW(b, a) b 86 libavcodec/x86/mpegvideoenc_template.c #define SAVE_SIGN(a,b) \ b 87 libavcodec/x86/mpegvideoenc_template.c "movdqa "b", "a" \n\t"\ b 88 libavcodec/x86/mpegvideoenc_template.c "pabsw "b", "b" \n\t" b 89 libavcodec/x86/mpegvideoenc_template.c #define RESTORE_SIGN(a,b) \ b 90 libavcodec/x86/mpegvideoenc_template.c "psignw "a", "b" \n\t" b 92 libavcodec/x86/mpegvideoenc_template.c #define SAVE_SIGN(a,b) \ b 94 libavcodec/x86/mpegvideoenc_template.c "pcmpgtw "b", "a" \n\t" /* block[i] <= 0 ? 0xFF : 0x00 */\ b 95 libavcodec/x86/mpegvideoenc_template.c "pxor "a", "b" \n\t"\ b 96 libavcodec/x86/mpegvideoenc_template.c "psubw "a", "b" \n\t" /* ABS(block[i]) */ b 97 libavcodec/x86/mpegvideoenc_template.c #define RESTORE_SIGN(a,b) \ b 98 libavcodec/x86/mpegvideoenc_template.c "pxor "a", "b" \n\t"\ b 99 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 390 libavcodec/x86/vc1dsp_mmx.c #define DECLARE_FUNCTION(a, b) \ b 391 libavcodec/x86/vc1dsp_mmx.c static void put_vc1_mspel_mc ## a ## b ## _mmx(uint8_t *dst, \ b 396 libavcodec/x86/vc1dsp_mmx.c put_vc1_mspel_mc(dst, src, stride, a, b, rnd); \ b 398 libavcodec/x86/vc1dsp_mmx.c static void avg_vc1_mspel_mc ## a ## b ## _mmxext(uint8_t *dst, \ b 403 libavcodec/x86/vc1dsp_mmx.c avg_vc1_mspel_mc(dst, src, stride, a, b, rnd); \ b 405 libavcodec/x86/vc1dsp_mmx.c static void put_vc1_mspel_mc ## a ## b ## _16_mmx(uint8_t *dst, \ b 410 libavcodec/x86/vc1dsp_mmx.c put_vc1_mspel_mc_16(dst, src, stride, a, b, rnd); \ b 412 libavcodec/x86/vc1dsp_mmx.c static void avg_vc1_mspel_mc ## a ## b ## _16_mmxext(uint8_t *dst, \ b 417 libavcodec/x86/vc1dsp_mmx.c avg_vc1_mspel_mc_16(dst, src, stride, a, b, rnd); \ b 43 libavcodec/x86/vp3dsp_init.c const uint8_t *b, ptrdiff_t stride, b 29 libavcodec/x86/vp9dsp_init.h #define cat(a, bpp, b) a##bpp##b b 462 libavcodec/xan.c static inline unsigned mul(unsigned a, unsigned b) b 464 libavcodec/xan.c return (a * b) >> 16; b 584 libavcodec/xan.c int b = gamma_corr(bytestream2_get_byteu(&ctx)); b 588 libavcodec/xan.c int b = gamma_lookup[bytestream2_get_byteu(&ctx)]; b 590 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 69 libavcodec/xface.h void ff_big_add(BigInt *b, uint8_t a); b 75 libavcodec/xface.h void ff_big_div(BigInt *b, uint8_t a, uint8_t *r); b 80 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 127 libavcodec/xfaceenc.c static void push_integer(BigInt *b, const ProbRange *prange) b 131 libavcodec/xfaceenc.c ff_big_div(b, prange->range, &r); b 132 libavcodec/xfaceenc.c ff_big_mul(b, 0); b 133 libavcodec/xfaceenc.c ff_big_add(b, r + prange->offset); b 142 libavcodec/xfaceenc.c BigInt b = {0}; b 186 libavcodec/xfaceenc.c push_integer(&b, &pq.prob_ranges[--pq.prob_ranges_idx]); b 190 libavcodec/xfaceenc.c av_assert0(b.nb_words < XFACE_MAX_WORDS); b 191 libavcodec/xfaceenc.c while (b.nb_words) { b 193 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 371 libavdevice/xcbgrab.c int r, g, b, a; b 375 libavdevice/xcbgrab.c b = (*cursor >> 16) & 0xff; b 384 libavdevice/xcbgrab.c image[2] = b; b 388 libavdevice/xcbgrab.c image[2] = BLEND(b, image[2], a); b 140 libavfilter/af_acrossover.c static void set_lp(BiquadContext *b, double fc, double q, double sr) b 148 libavfilter/af_acrossover.c b->a0 = (1. - cs) * 0.5 * inv; b 149 libavfilter/af_acrossover.c b->a1 = (1. - cs) * inv; b 150 libavfilter/af_acrossover.c b->a2 = b->a0; b 151 libavfilter/af_acrossover.c b->b1 = -2. * cs * inv; b 152 libavfilter/af_acrossover.c b->b2 = (1. - alpha) * inv; b 155 libavfilter/af_acrossover.c static void set_hp(BiquadContext *b, double fc, double q, double sr) b 163 libavfilter/af_acrossover.c b->a0 = inv * (1. + cs) / 2.; b 164 libavfilter/af_acrossover.c b->a1 = -2. * b->a0; b 165 libavfilter/af_acrossover.c b->a2 = b->a0; b 166 libavfilter/af_acrossover.c b->b1 = -2. * cs * inv; b 167 libavfilter/af_acrossover.c b->b2 = (1. - alpha) * inv; b 248 libavfilter/af_acrossover.c static double biquad_process(BiquadContext *b, double in) b 250 libavfilter/af_acrossover.c double out = in * b->a0 + b->i1 * b->a1 + b->i2 * b->a2 - b->o1 * b->b1 - b->o2 * b->b2; b 252 libavfilter/af_acrossover.c b->i2 = b->i1; b 253 libavfilter/af_acrossover.c b->o2 = b->o1; b 254 libavfilter/af_acrossover.c b->i1 = in; b 255 libavfilter/af_acrossover.c b->o1 = out; b 186 libavfilter/af_aecho.c #define MOD(a, b) (((a) >= (b)) ? (a) - (b) : (a)) b 170 libavfilter/af_afftdn.c double b, double c) b 176 libavfilter/af_afftdn.c d2 = b / s->band_centre[band]; b 283 libavfilter/af_afftdn.c static double limit_gain(double a, double b) b 286 libavfilter/af_afftdn.c return (b * a - 1.0) / (b + a - 2.0); b 288 libavfilter/af_afftdn.c return (b * a - 2.0 * a + 1.0) / (b - a); b 37 libavfilter/af_aiir.c int a, b; b 42 libavfilter/af_aiir.c double b[3]; b 138 libavfilter/af_aiir.c const double *b = s->iir[ch].ab[1]; \ b 152 libavfilter/af_aiir.c sample += b[x] * ic[x]; \ b 199 libavfilter/af_aiir.c const double b0 = iir->biquads[i].b[0]; \ b 200 libavfilter/af_aiir.c const double b1 = iir->biquads[i].b[1]; \ b 201 libavfilter/af_aiir.c const double b2 = iir->biquads[i].b[2]; \ b 516 libavfilter/af_aiir.c double b[6] = { 0 }; b 542 libavfilter/af_aiir.c outmost_pole.b = i; b 547 libavfilter/af_aiir.c av_log(ctx, AV_LOG_VERBOSE, "outmost_pole is %d.%d\n", outmost_pole.a, outmost_pole.b); b 549 libavfilter/af_aiir.c if (outmost_pole.a < 0 || outmost_pole.b < 0) b 572 libavfilter/af_aiir.c nearest_zero.b = i; b 577 libavfilter/af_aiir.c av_log(ctx, AV_LOG_VERBOSE, "nearest_zero is %d.%d\n", nearest_zero.a, nearest_zero.b); b 579 libavfilter/af_aiir.c if (nearest_zero.a < 0 || nearest_zero.b < 0) b 588 libavfilter/af_aiir.c if (nearest_zero.a == nearest_zero.b && outmost_pole.a == outmost_pole.b) { b 595 libavfilter/af_aiir.c poles[2] = iir->ab[0][2 * outmost_pole.b ]; b 596 libavfilter/af_aiir.c poles[3] = iir->ab[0][2 * outmost_pole.b + 1]; b 598 libavfilter/af_aiir.c zeros[2] = iir->ab[1][2 * nearest_zero.b ]; b 599 libavfilter/af_aiir.c zeros[3] = iir->ab[1][2 * nearest_zero.b + 1]; b 602 libavfilter/af_aiir.c ret = expand(ctx, zeros, 2, b); b 611 libavfilter/af_aiir.c iir->ab[0][2 * outmost_pole.b] = iir->ab[0][2 * outmost_pole.b + 1] = NAN; b 613 libavfilter/af_aiir.c iir->ab[1][2 * nearest_zero.b] = iir->ab[1][2 * nearest_zero.b + 1] = NAN; b 618 libavfilter/af_aiir.c iir->biquads[current_biquad].b[0] = b[4] / a[4]; b 619 libavfilter/af_aiir.c iir->biquads[current_biquad].b[1] = b[2] / a[4]; b 620 libavfilter/af_aiir.c iir->biquads[current_biquad].b[2] = b[0] / a[4]; b 623 libavfilter/af_aiir.c fabs(iir->biquads[current_biquad].b[0] + b 624 libavfilter/af_aiir.c iir->biquads[current_biquad].b[1] + b 625 libavfilter/af_aiir.c iir->biquads[current_biquad].b[2]) > 1e-6) { b 629 libavfilter/af_aiir.c (iir->biquads[current_biquad].b[0] + b 630 libavfilter/af_aiir.c iir->biquads[current_biquad].b[1] + b 631 libavfilter/af_aiir.c iir->biquads[current_biquad].b[2]); b 635 libavfilter/af_aiir.c iir->biquads[current_biquad].b[0] *= factor; b 636 libavfilter/af_aiir.c iir->biquads[current_biquad].b[1] *= factor; b 637 libavfilter/af_aiir.c iir->biquads[current_biquad].b[2] *= factor; b 640 libavfilter/af_aiir.c iir->biquads[current_biquad].b[0] *= (current_biquad ? 1.0 : iir->g); b 641 libavfilter/af_aiir.c iir->biquads[current_biquad].b[1] *= (current_biquad ? 1.0 : iir->g); b 642 libavfilter/af_aiir.c iir->biquads[current_biquad].b[2] *= (current_biquad ? 1.0 : iir->g); b 648 libavfilter/af_aiir.c iir->biquads[current_biquad].b[0], b 649 libavfilter/af_aiir.c iir->biquads[current_biquad].b[1], b 650 libavfilter/af_aiir.c iir->biquads[current_biquad].b[2]); b 820 libavfilter/af_aiir.c const double *b, const double *a, b 837 libavfilter/af_aiir.c realp += cos(-x * w) * b[x]; b 838 libavfilter/af_aiir.c imagp += sin(-x * w) * b[x]; b 857 libavfilter/af_aiir.c p *= distance(cos(w), b[2 * x], sin(w), b[2 * x + 1]); b 858 libavfilter/af_aiir.c acc -= atan2(sin(w) - b[2 * x + 1], cos(w) - b[2 * x]); b 886 libavfilter/af_aiir.c const double *b = s->iir[ch].ab[0]; b 893 libavfilter/af_aiir.c get_response(ch, s->format, w, b, a, nb_b, nb_a, &m, &p); b 352 libavfilter/af_anequalizer.c double g0, double si, double b, b 356 libavfilter/af_anequalizer.c S->b0 = (tetta_b*tetta_b*(b*b+g0*g0*c*c) + 2*g0*b*si*tetta_b*tetta_b + g0*g0)/D; b 357 libavfilter/af_anequalizer.c S->b1 = 2*c0*(tetta_b*tetta_b*(b*b+g0*g0*c*c) - g0*g0)/D; b 358 libavfilter/af_anequalizer.c S->b2 = (tetta_b*tetta_b*(b*b+g0*g0*c*c) - 2*g0*b*si*tetta_b + g0*g0)/D; b 368 libavfilter/af_anequalizer.c S->b0 = ((b*b + g0*g0*c*c)*tetta_b*tetta_b + 2*g0*b*si*tetta_b + g0*g0)/D; b 369 libavfilter/af_anequalizer.c S->b1 = -4*c0*(g0*g0 + g0*b*si*tetta_b)/D; b 370 libavfilter/af_anequalizer.c S->b2 = 2*(g0*g0*(1 + 2*c0*c0) - (b*b + g0*g0*c*c)*tetta_b*tetta_b)/D; b 371 libavfilter/af_anequalizer.c S->b3 = -4*c0*(g0*g0 - g0*b*si*tetta_b)/D; b 372 libavfilter/af_anequalizer.c S->b4 = ((b*b + g0*g0*c*c)*tetta_b*tetta_b - 2*g0*b*si*tetta_b + g0*g0)/D; b 386 libavfilter/af_anequalizer.c double a, b, c0, g0, alfa, beta, tetta_b; b 409 libavfilter/af_anequalizer.c b = 0.5 * (beta - g0*g0*(1/beta)); b 419 libavfilter/af_anequalizer.c chebyshev1_fo_section(&f->section[i - 1], a, ci, tetta_b, g0, si, b, Di, c0); b 425 libavfilter/af_anequalizer.c double g, double si, double b, b 429 libavfilter/af_anequalizer.c S->b0 = (g*g*tetta_b*tetta_b + 2*tetta_b*g*b*si + b*b + g*g*c*c)/D; b 430 libavfilter/af_anequalizer.c S->b1 = 2*c0*(g*g*tetta_b*tetta_b - b*b - g*g*c*c)/D; b 431 libavfilter/af_anequalizer.c S->b2 = (g*g*tetta_b*tetta_b - 2*tetta_b*g*b*si + b*b + g*g*c*c)/D; b 441 libavfilter/af_anequalizer.c S->b0 = (g*g*tetta_b*tetta_b + 2*g*b*si*tetta_b + b*b + g*g*c*c)/D; b 442 libavfilter/af_anequalizer.c S->b1 = -4*c0*(b*b + g*g*c*c + g*b*si*tetta_b)/D; b 443 libavfilter/af_anequalizer.c S->b2 = 2*((b*b + g*g*c*c)*(1 + 2*c0*c0) - g*g*tetta_b*tetta_b)/D; b 444 libavfilter/af_anequalizer.c S->b3 = -4*c0*(b*b + g*g*c*c - g*b*si*tetta_b)/D; b 445 libavfilter/af_anequalizer.c S->b4 = (g*g*tetta_b*tetta_b - 2*g*b*si*tetta_b + b*b + g*g*c*c)/D; b 459 libavfilter/af_anequalizer.c double a, b, c0, tetta_b; b 482 libavfilter/af_anequalizer.c b = (ew - g*g/ew)/2.0; b 492 libavfilter/af_anequalizer.c chebyshev2_fo_section(&f->section[i - 1], a, ci, tetta_b, g, si, b, Di, c0); b 135 libavfilter/af_anlms.c float sum, output, e, norm, b; b 146 libavfilter/af_anlms.c b = mu * e / norm; b 152 libavfilter/af_anlms.c s->fdsp->vector_fmac_scalar(coeffs, tmp, b, s->kernel_size); b 119 libavfilter/af_aphaser.c #define MOD(a, b) (((a) >= (b)) ? (a) - (b) : (a)) b 379 libavfilter/af_arnndn.c const float *b, const float *a, int N) b 386 libavfilter/af_arnndn.c mem[0] = mem[1] + (b[0]*xi - a[0]*yi); b 387 libavfilter/af_arnndn.c mem[1] = (b[1]*xi - a[1]*yi); b 974 libavfilter/af_arnndn.c float a, b, c; b 977 libavfilter/af_arnndn.c b = xcorr[best_pitch[0]]; b 979 libavfilter/af_arnndn.c if (c - a > .7f * (b - a)) b 981 libavfilter/af_arnndn.c else if (a - c > .7f * (b-c)) b 468 libavfilter/af_atempo.c uint8_t *b = atempo->buffer; b 469 libavfilter/af_atempo.c memcpy(b, src, nb * atempo->stride); b 508 libavfilter/af_atempo.c const uint8_t *a, *b; b 556 libavfilter/af_atempo.c b = atempo->buffer; b 570 libavfilter/af_atempo.c memcpy(dst, b + i1 * atempo->stride, n1 * atempo->stride); b 730 libavfilter/af_atempo.c const scalar_type *bbb = (const scalar_type *)b; \ b 787 libavfilter/af_atempo.c const uint8_t *b = frag->data + ib * atempo->stride; b 238 libavfilter/af_chorus.c #define MOD(a, b) (((a) >= (b)) ? (a) - (b) : (a)) b 47 libavfilter/af_compand.c double a, b; b 170 libavfilter/af_compand.c out_log = cs->y + in_log * (cs->a * in_log + cs->b); b 219 libavfilter/af_compand.c #define MOD(a, b) (((a) >= (b)) ? (a) - (b) : (a)) b 472 libavfilter/af_compand.c L(4).b = (L(2).y - L(4).y) / (L(2).x - L(4).x); b 475 libavfilter/af_compand.c L(2).b = (L(0).y - L(2).y) / (L(0).x - L(2).x); b 500 libavfilter/af_compand.c L(3).b = out1 / in1 - L(3).a * in1; b 495 libavfilter/af_firequalizer.c double a, b, c, d; b 524 libavfilter/af_firequalizer.c b = 3 * res[1].gain - m1 - 2 * c - 3 * d; b 525 libavfilter/af_firequalizer.c a = res[1].gain - b - c - d; b 531 libavfilter/af_firequalizer.c return a * x3 + b * x2 + c * x + d; b 184 libavfilter/af_flanger.c double a, b; b 189 libavfilter/af_flanger.c b = delayed_1 * 2 - delayed_2 *.5; b 190 libavfilter/af_flanger.c delayed = delayed_0 + (a * frac_delay + b) * frac_delay; b 42 libavfilter/af_mcompand.c double a, b; b 193 libavfilter/af_mcompand.c out_log = cs->y + in_log * (cs->a * in_log + cs->b); b 261 libavfilter/af_mcompand.c L(4).b = (L(2).y - L(4).y) / (L(2).x - L(4).x); b 264 libavfilter/af_mcompand.c L(2).b = (L(0).y - L(2).y) / (L(0).x - L(2).x); b 289 libavfilter/af_mcompand.c L(3).b = out1 / in1 - L(3).a * in1; b 622 libavfilter/af_mcompand.c CompBand *b = &s->bands[band]; b 624 libavfilter/af_mcompand.c if (b->topfreq) { b 625 libavfilter/af_mcompand.c crossover(ch, &b->filter, (double *)abuf->extended_data[ch], b 634 libavfilter/af_mcompand.c mcompand_channel(s, b, (double *)bbuf->extended_data[ch], (double *)abuf->extended_data[ch], out->nb_samples, ch); b 156 libavfilter/avf_abitscope.c int ch, i, j, b; b 182 libavfilter/avf_abitscope.c for (b = 0; b < 16; b++) { b 184 libavfilter/avf_abitscope.c uint8_t *dst = outpicref->data[0] + (b * h + j) * outpicref->linesize[0] + w * ch * 4; b 185 libavfilter/avf_abitscope.c int ww = (s->counter[16 - b - 1] / (float)insamples->nb_samples) * (w - 1); b 205 libavfilter/avf_abitscope.c for (b = 0; b < 32; b++) { b 207 libavfilter/avf_abitscope.c uint8_t *dst = outpicref->data[0] + (b * h + j) * outpicref->linesize[0] + w * ch * 4; b 208 libavfilter/avf_abitscope.c int ww = (s->counter[32 - b - 1] / (float)insamples->nb_samples) * (w - 1); b 275 libavfilter/avf_showcqt.c FFTComplex l, r, a = {0,0}, b = {0,0}; b 283 libavfilter/avf_showcqt.c b.re += u * src[j].re; b 284 libavfilter/avf_showcqt.c b.im += u * src[j].im; b 288 libavfilter/avf_showcqt.c l.re = a.re + b.re; b 289 libavfilter/avf_showcqt.c l.im = a.im - b.im; b 290 libavfilter/avf_showcqt.c r.re = b.im + a.im; b 291 libavfilter/avf_showcqt.c r.im = b.re - a.re; b 489 libavfilter/avf_showcqt.c uint8_t r = (color >> 16) & 0xFF, g = (color >> 8) & 0xFF, b = color & 0xFF; b 495 libavfilter/avf_showcqt.c data[linesize * y + 4 * x + 2] = b; b 739 libavfilter/avf_showcqt.c c[x].rgb.b = 255.0f * calculate_gamma(FFMIN(1.0f, cscheme[2] * v[x].re + cscheme[5] * v[x].im), g); b 747 libavfilter/avf_showcqt.c float r, g, b; b 750 libavfilter/avf_showcqt.c b = calculate_gamma(FFMIN(1.0f, cscheme[2] * v[x].re + cscheme[5] * v[x].im), gamma); b 751 libavfilter/avf_showcqt.c c[x].yuv.y = cm[0][0] * r + cm[0][1] * g + cm[0][2] * b; b 752 libavfilter/avf_showcqt.c c[x].yuv.u = cm[1][0] * r + cm[1][1] * g + cm[1][2] * b; b 753 libavfilter/avf_showcqt.c c[x].yuv.v = cm[2][0] * r + cm[2][1] * g + cm[2][2] * b; b 778 libavfilter/avf_showcqt.c *lp++ = lrintf(mul * c[x].rgb.b); b 874 libavfilter/avf_showcqt.c *lp++ = lrintf(c[x].rgb.b); b 883 libavfilter/avf_showcqt.c *lp++ = lrintf(a * lpa[2] + (1.0f - a) * c[x].rgb.b); b 934 libavfilter/avf_showcqt.c float b = 1.0f - a0 - a1; \ b 935 libavfilter/avf_showcqt.c *lpu = lrintf(a0 * lpau[0] + a1 * lpau[1] + b * (c.yuv.u + 128.0f)); \ b 936 libavfilter/avf_showcqt.c *lpv = lrintf(a0 * lpav[0] + a1 * lpav[1] + b * (c.yuv.v + 128.0f)); \ b 954 libavfilter/avf_showcqt.c float b = 1.0f - a0 - a1 - a2 - a3; \ b 956 libavfilter/avf_showcqt.c + b * (c.yuv.u + 128.0f)); \ b 958 libavfilter/avf_showcqt.c + b * (c.yuv.v + 128.0f)); \ b 1060 libavfilter/avf_showcqt.c *lp++ = lrintf(c[x].rgb.b); b 34 libavfilter/avf_showcqt.h float r, g, b; b 399 libavfilter/avf_showfreqs.c #define M(a, b) (sqrt((a) * (a) + (b) * (b))) b 395 libavfilter/avf_showspectrum.c float theta, phi, psi, a, b, S, c; b 435 libavfilter/avf_showspectrum.c b = S * g[n].re + c * g[n].im; b 437 libavfilter/avf_showspectrum.c g[n].im = b; b 450 libavfilter/avf_showspectrum.c b = S * h[n].re + c * h[n].im; b 453 libavfilter/avf_showspectrum.c g[n].im = b / L; b 464 libavfilter/avf_showspectrum.c b = S * g[k].re + c * g[k].im; b 466 libavfilter/avf_showspectrum.c s->fft_data[ch][k].im = b; b 640 libavfilter/avf_showspectrum.c const float b = logf(max / min) / (max - min); b 641 libavfilter/avf_showspectrum.c const float a = max / expf(max * b); b 643 libavfilter/avf_showspectrum.c return expf(value * b) * a; b 665 libavfilter/avf_showspectrum.c const float b = logf(max / min) / (max - min); b 666 libavfilter/avf_showspectrum.c const float a = max / expf(max * b); b 668 libavfilter/avf_showspectrum.c return logf(value / a) / b; b 42 libavfilter/avf_showvolume.c int b; b 77 libavfilter/avf_showvolume.c { "b", "set border width", OFFSET(b), AV_OPT_TYPE_INT, {.i64=1}, 0, 5, FLAGS }, b 205 libavfilter/avf_showvolume.c outlink->w = s->h * inlink->channels + (inlink->channels - 1) * s->b; b 208 libavfilter/avf_showvolume.c outlink->h = s->h * inlink->channels + (inlink->channels - 1) * s->b; b 306 libavfilter/avf_showvolume.c uint8_t *dst = s->out->data[0] + max_draw * s->out->linesize[0] + channel * (s->b + s->h) * 4; b 312 libavfilter/avf_showvolume.c uint8_t *dst = s->out->data[0] + (channel * s->h + channel * s->b + k) * s->out->linesize[0]; b 369 libavfilter/avf_showvolume.c uint8_t *dst = s->out->data[0] + j * s->out->linesize[0] + c * (s->b + s->h) * 4; b 381 libavfilter/avf_showvolume.c drawtext(s->out, c * (s->h + s->b) + (s->h - 10) / 2, outlink->h - 35, channel_name, 1); b 404 libavfilter/avf_showvolume.c uint8_t *dst = s->out->data[0] + (c * s->h + c * s->b + j) * s->out->linesize[0]; b 417 libavfilter/avf_showvolume.c drawtext(s->out, 2, c * (s->h + s->b) + (s->h - 8) / 2, channel_name, 0); b 440 libavfilter/avf_showvolume.c drawtext(out, c * (s->h + s->b) + (s->h - 8) / 2, 2, buf, 1); b 443 libavfilter/avf_showvolume.c drawtext(out, FFMAX(0, s->w - 8 * (int)strlen(buf)), c * (s->h + s->b) + (s->h - 8) / 2, buf, 0); b 393 libavfilter/avfiltergraph.c AVFilterFormats *a, *b, *ret; b 397 libavfilter/avfiltergraph.c b = clone_filter_formats(b_arg); b 399 libavfilter/avfiltergraph.c if (!a || !b) { b 402 libavfilter/avfiltergraph.c if (b) b 403 libavfilter/avfiltergraph.c av_freep(&b->formats); b 406 libavfilter/avfiltergraph.c av_freep(&b); b 412 libavfilter/avfiltergraph.c ret = ff_merge_samplerates(a, b); b 414 libavfilter/avfiltergraph.c ret = ff_merge_formats(a, b, type); b 424 libavfilter/avfiltergraph.c if (b) b 425 libavfilter/avfiltergraph.c av_freep(&b->formats); b 427 libavfilter/avfiltergraph.c av_freep(&b); b 28 libavfilter/colorspacedsp_template.c #define avg(a,b,c,d) (a) b 31 libavfilter/colorspacedsp_template.c #define avg(a,b,c,d) (((a) + (b) + 1) >> 1) b 34 libavfilter/colorspacedsp_template.c #define avg(a,b,c,d) (((a) + (b) + (c) + (d) + 2) >> 2) b 40 libavfilter/colorspacedsp_template.c #define fn3(a,b,c) a##_##c##p##b##_c b 41 libavfilter/colorspacedsp_template.c #define fn2(a,b,c) fn3(a,b,c) b 36 libavfilter/colorspacedsp_yuv2yuv_template.c #define fn3(a,b,c,d) a##_##d##p##b##to##c##_c b 37 libavfilter/colorspacedsp_yuv2yuv_template.c #define fn2(a,b,c,d) fn3(a,b,c,d) b 82 libavfilter/ebur128.c double b[5]; b 135 libavfilter/ebur128.c st->d->b[0] = pb[0] * rb[0]; b 136 libavfilter/ebur128.c st->d->b[1] = pb[0] * rb[1] + pb[1] * rb[0]; b 137 libavfilter/ebur128.c st->d->b[2] = pb[0] * rb[2] + pb[1] * rb[1] + pb[2] * rb[0]; b 138 libavfilter/ebur128.c st->d->b[3] = pb[1] * rb[2] + pb[2] * rb[1]; b 139 libavfilter/ebur128.c st->d->b[4] = pb[2] * rb[2]; b 348 libavfilter/ebur128.c st->d->b[0] * st->d->v[ci][0] \ b 349 libavfilter/ebur128.c + st->d->b[1] * st->d->v[ci][1] \ b 350 libavfilter/ebur128.c + st->d->b[2] * st->d->v[ci][2] \ b 351 libavfilter/ebur128.c + st->d->b[3] * st->d->v[ci][3] \ b 352 libavfilter/ebur128.c + st->d->b[4] * st->d->v[ci][4]; \ b 394 libavfilter/f_sendcmd.c static int cmp_intervals(const void *a, const void *b) b 397 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 248 libavfilter/formats.h AVFilterFormats *ff_merge_formats(AVFilterFormats *a, AVFilterFormats *b, b 65 libavfilter/framequeue.c FFFrameBucket *b; b 89 libavfilter/framequeue.c b = bucket(fq, fq->queued); b 90 libavfilter/framequeue.c b->frame = frame; b 100 libavfilter/framequeue.c FFFrameBucket *b; b 104 libavfilter/framequeue.c b = bucket(fq, 0); b 109 libavfilter/framequeue.c fq->total_samples_tail += b->frame->nb_samples; b 112 libavfilter/framequeue.c return b->frame; b 117 libavfilter/framequeue.c FFFrameBucket *b; b 121 libavfilter/framequeue.c b = bucket(fq, idx); b 123 libavfilter/framequeue.c return b->frame; b 128 libavfilter/framequeue.c FFFrameBucket *b; b 134 libavfilter/framequeue.c b = bucket(fq, 0); b 135 libavfilter/framequeue.c av_assert1(samples < b->frame->nb_samples); b 136 libavfilter/framequeue.c planar = av_sample_fmt_is_planar(b->frame->format); b 137 libavfilter/framequeue.c planes = planar ? b->frame->channels : 1; b 138 libavfilter/framequeue.c bytes = samples * av_get_bytes_per_sample(b->frame->format); b 140 libavfilter/framequeue.c bytes *= b->frame->channels; b 141 libavfilter/framequeue.c if (b->frame->pts != AV_NOPTS_VALUE) b 142 libavfilter/framequeue.c b->frame->pts += av_rescale_q(samples, av_make_q(1, b->frame->sample_rate), time_base); b 143 libavfilter/framequeue.c b->frame->nb_samples -= samples; b 144 libavfilter/framequeue.c b->frame->linesize[0] -= bytes; b 146 libavfilter/framequeue.c b->frame->extended_data[i] += bytes; b 148 libavfilter/framequeue.c b->frame->data[i] = b->frame->extended_data[i]; b 45 libavfilter/median_template.c #define fn3(a,b) a##_##b b 46 libavfilter/median_template.c #define fn2(a,b) fn3(a,b) b 116 libavfilter/median_template.c int sum = 0, k, b; b 148 libavfilter/median_template.c for (b = 0; b < BINS; b++) { b 149 libavfilter/median_template.c sum += segment[b]; b 151 libavfilter/median_template.c dst[j] = BINS * k + b; b 155 libavfilter/median_template.c av_assert0(b < BINS); b 23 libavfilter/opencl/colorspace_common.cl #define chroma_sample(a,b,c,d) (((a) + (c)) * 0.5f) b 25 libavfilter/opencl/colorspace_common.cl #define chroma_sample(a,b,c,d) (a) b 27 libavfilter/opencl/colorspace_common.cl #define chroma_sample(a,b,c,d) (((a) + (b)) * 0.5f) b 29 libavfilter/opencl/colorspace_common.cl #define chroma_sample(a,b,c,d) (c) b 31 libavfilter/opencl/colorspace_common.cl #define chroma_sample(a,b,c,d) (((c) + (d)) * 0.5f) b 33 libavfilter/opencl/colorspace_common.cl #define chroma_sample(a,b,c,d) (((a) + (b) + (c) + (d)) * 0.25f) b 50 libavfilter/opencl/colorspace_common.cl float3 get_chroma_sample(float3 a, float3 b, float3 c, float3 d) { b 51 libavfilter/opencl/colorspace_common.cl return chroma_sample(a, b, c, d); b 57 libavfilter/opencl/colorspace_common.cl float b = max(ST2084_C2 - ST2084_C3 * p, 1e-6f); b 58 libavfilter/opencl/colorspace_common.cl float c = powr(a / b, 1.0f / ST2084_M1); b 69 libavfilter/opencl/colorspace_common.cl float b = exp((x - HLG_C) / HLG_A) + HLG_B; b 70 libavfilter/opencl/colorspace_common.cl return x < 0.5f ? a : b; b 76 libavfilter/opencl/colorspace_common.cl float b = HLG_A * log(x - HLG_B) + HLG_C; b 77 libavfilter/opencl/colorspace_common.cl return x <= 1.0f ? a : b; b 121 libavfilter/opencl/colorspace_common.cl float b = y * rgb_matrix[6] + u * rgb_matrix[7] + v * rgb_matrix[8]; b 122 libavfilter/opencl/colorspace_common.cl return (float3)(r, g, b); b 130 libavfilter/opencl/colorspace_common.cl float b = linearize(rgb.z); b 131 libavfilter/opencl/colorspace_common.cl return (float3)(r, g, b); b 137 libavfilter/opencl/colorspace_common.cl float3 rgb2yuv(float r, float g, float b) { b 138 libavfilter/opencl/colorspace_common.cl float y = r*yuv_matrix[0] + g*yuv_matrix[1] + b*yuv_matrix[2]; b 139 libavfilter/opencl/colorspace_common.cl float u = r*yuv_matrix[3] + g*yuv_matrix[4] + b*yuv_matrix[5]; b 140 libavfilter/opencl/colorspace_common.cl float v = r*yuv_matrix[6] + g*yuv_matrix[7] + b*yuv_matrix[8]; b 151 libavfilter/opencl/colorspace_common.cl float rgb2y(float r, float g, float b) { b 152 libavfilter/opencl/colorspace_common.cl float y = r*yuv_matrix[0] + g*yuv_matrix[1] + b*yuv_matrix[2]; b 161 libavfilter/opencl/colorspace_common.cl float b = delinearize(c.z); b 162 libavfilter/opencl/colorspace_common.cl return rgb2yuv(r, g, b); b 172 libavfilter/opencl/colorspace_common.cl float b = delinearize(c.z); b 173 libavfilter/opencl/colorspace_common.cl return rgb2y(r, g, b); b 183 libavfilter/opencl/colorspace_common.cl float r = c.x, g = c.y, b = c.z; b 184 libavfilter/opencl/colorspace_common.cl float rr = rgb2rgb[0] * r + rgb2rgb[1] * g + rgb2rgb[2] * b; b 185 libavfilter/opencl/colorspace_common.cl float gg = rgb2rgb[3] * r + rgb2rgb[4] * g + rgb2rgb[5] * b; b 186 libavfilter/opencl/colorspace_common.cl float bb = rgb2rgb[6] * r + rgb2rgb[7] * g + rgb2rgb[8] * b; b 307 libavfilter/opencl/deshake.cl float a = 0, b = 0, c = 0, bb1 = 0, bb2 = 0; b 327 libavfilter/opencl/deshake.cl b += gxy; b 335 libavfilter/opencl/deshake.cl float det = a * c - b * b; b 342 libavfilter/opencl/deshake.cl feature_tmp.x = (float)(feature.x + (c * scale * bb1) - (b * scale * bb2)); b 343 libavfilter/opencl/deshake.cl feature_tmp.y = (float)(feature.y - (b * scale * bb1) + (a * scale * bb2)); b 78 libavfilter/opencl/nlmeans.cl uint4 a = 0, b = 0, c = 0, d = 0; b 90 libavfilter/opencl/nlmeans.cl b = integral_img[(y + p) * width + x - p]; b 95 libavfilter/opencl/nlmeans.cl float4 patch_diff = convert_float4(d + a - c - b); b 36 libavfilter/opencl/tonemap.cl float a = 0.15f, b = 0.50f, c = 0.10f, d = 0.20f, e = 0.02f, f = 0.30f; b 37 libavfilter/opencl/tonemap.cl return (in * (in * a + b * c) + d * e) / (in * (in * a + b) + d * f) - e / f; b 68 libavfilter/opencl/tonemap.cl float a, b; b 74 libavfilter/opencl/tonemap.cl b = (j * j - 2.0f * j * peak + peak) / max(peak - 1.0f, 1e-6f); b 76 libavfilter/opencl/tonemap.cl return (b * b + 2.0f * b * j + j * j) / (b - a) * (s + a) / (s + b); b 37 libavfilter/phase_template.c #define fn3(a,b) a##_##b b 38 libavfilter/phase_template.c #define fn2(a,b) fn3(a,b) b 49 libavfilter/phase_template.c #define DIFF(a, as, b, bs) ((t) = ((*(a) - (b)[bs]) << 2) + (a)[(as) << 1] - (b)[-(bs)], (t) * (t)) b 187 libavfilter/signature_lookup.c FineSignature *b[COARSE_SIZE]; b 194 libavfilter/signature_lookup.c FineSignature *b; b 222 libavfilter/signature_lookup.c pairs[i].b[0] = s; b 224 libavfilter/signature_lookup.c pairs[i].b[pairs[i].size] = s; b 244 libavfilter/signature_lookup.c if (pairs[i].b[j] != pairs[k].b[l]) { b 255 libavfilter/signature_lookup.c hspace[framerate-1][offset+HOUGH_MAX_OFFSET].b = pairs[i].b[j]; b 261 libavfilter/signature_lookup.c hspace[framerate-1][offset+HOUGH_MAX_OFFSET].b = pairs[k].b[l]; b 297 libavfilter/signature_lookup.c c->second = hspace[i][j].b; b 315 libavfilter/signature_lookup.c static int iterate_frame(double frr, FineSignature **a, FineSignature **b, int fcount, int *bcount, int dir) b 332 libavfilter/signature_lookup.c if ((*b)->next) { b 333 libavfilter/signature_lookup.c *b = (*b)->next; b 339 libavfilter/signature_lookup.c if ((*b)->next && (*b)->next->next) { b 340 libavfilter/signature_lookup.c *b = (*b)->next->next; b 347 libavfilter/signature_lookup.c if ((*b)->next) { b 348 libavfilter/signature_lookup.c *b = (*b)->next; b 378 libavfilter/signature_lookup.c if ((*b)->prev) { b 379 libavfilter/signature_lookup.c *b = (*b)->prev; b 385 libavfilter/signature_lookup.c if ((*b)->prev && (*b)->prev->prev) { b 386 libavfilter/signature_lookup.c *b = (*b)->prev->prev; b 393 libavfilter/signature_lookup.c if ((*b)->prev) { b 394 libavfilter/signature_lookup.c *b = (*b)->prev; b 424 libavfilter/signature_lookup.c FineSignature *a, *b, *aprev, *bprev; b 429 libavfilter/signature_lookup.c b = infos->second; b 431 libavfilter/signature_lookup.c dist = get_l1dist(ctx, sc, a->framesig, b->framesig); b 434 libavfilter/signature_lookup.c if (a->confidence >= 1 || b->confidence >= 1) { b 441 libavfilter/signature_lookup.c b = bprev; b 445 libavfilter/signature_lookup.c b = infos->second; b 458 libavfilter/signature_lookup.c bprev = b; b 461 libavfilter/signature_lookup.c if (b->confidence < 1) goodb++; b 466 libavfilter/signature_lookup.c dir = iterate_frame(infos->framerateratio, &a, &b, fcount, &bcount, dir); b 470 libavfilter/signature_lookup.c b = infos->second; b 471 libavfilter/signature_lookup.c dir = iterate_frame(infos->framerateratio, &a, &b, fcount, &bcount, DIR_PREV); b 94 libavfilter/vf_bitplanenoise.c #define CHECK_BIT(x, a, b, c) { \ b 96 libavfilter/vf_bitplanenoise.c ((val[(x)] & mask) == (val[(x) + (b)] & mask)) + \ b 291 libavfilter/vf_blend.c #define MULTIPLY(x, a, b) ((x) * (((a) * (b)) / 255)) b 292 libavfilter/vf_blend.c #define SCREEN(x, a, b) (255 - (x) * ((255 - (a)) * (255 - (b)) / 255)) b 293 libavfilter/vf_blend.c #define BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, 255 - ((255 - (b)) << 8) / (a))) b 294 libavfilter/vf_blend.c #define DODGE(a, b) (((a) == 255) ? (a) : FFMIN(255, (((b) << 8) / (255 - (a))))) b 334 libavfilter/vf_blend.c #define MULTIPLY(x, a, b) ((x) * (((a) * (b)) / 65535)) b 335 libavfilter/vf_blend.c #define SCREEN(x, a, b) (65535 - (x) * ((65535 - (a)) * (65535 - (b)) / 65535)) b 336 libavfilter/vf_blend.c #define BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, 65535 - ((65535 - (b)) << 16) / (a))) b 337 libavfilter/vf_blend.c #define DODGE(a, b) (((a) == 65535) ? (a) : FFMIN(65535, (((b) << 16) / (65535 - (a))))) b 377 libavfilter/vf_blend.c #define MULTIPLY(x, a, b) ((x) * (((a) * (b)) / 1023)) b 378 libavfilter/vf_blend.c #define SCREEN(x, a, b) (1023 - (x) * ((1023 - (a)) * (1023 - (b)) / 1023)) b 379 libavfilter/vf_blend.c #define BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, 1023 - ((1023 - (b)) << 10) / (a))) b 380 libavfilter/vf_blend.c #define DODGE(a, b) (((a) == 1023) ? (a) : FFMIN(1023, (((b) << 10) / (1023 - (a))))) b 420 libavfilter/vf_blend.c #define MULTIPLY(x, a, b) ((x) * (((a) * (b)) / 4095)) b 421 libavfilter/vf_blend.c #define SCREEN(x, a, b) (4095 - (x) * ((4095 - (a)) * (4095 - (b)) / 4095)) b 422 libavfilter/vf_blend.c #define BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, 4095 - ((4095 - (b)) << 12) / (a))) b 423 libavfilter/vf_blend.c #define DODGE(a, b) (((a) == 4095) ? (a) : FFMIN(4095, (((b) << 12) / (4095 - (a))))) b 463 libavfilter/vf_blend.c #define MULTIPLY(x, a, b) ((x) * (((a) * (b)) / 511)) b 464 libavfilter/vf_blend.c #define SCREEN(x, a, b) (511 - (x) * ((511 - (a)) * (511 - (b)) / 511)) b 465 libavfilter/vf_blend.c #define BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, 511 - ((511 - (b)) << 9) / (a))) b 466 libavfilter/vf_blend.c #define DODGE(a, b) (((a) == 511) ? (a) : FFMIN(511, (((b) << 9) / (511 - (a))))) b 506 libavfilter/vf_blend.c #define MULTIPLY(x, a, b) ((x) * (((a) * (b)) / 1.0)) b 507 libavfilter/vf_blend.c #define SCREEN(x, a, b) (1.0 - (x) * ((1.0 - (a)) * (1.0 - (b)) / 1.0)) b 508 libavfilter/vf_blend.c #define BURN(a, b) (((a) <= 0.0) ? (a) : FFMAX(0.0, 1.0 - (1.0 - (b)) / (a))) b 509 libavfilter/vf_blend.c #define DODGE(a, b) (((a) >= 1.0) ? (a) : FFMIN(1.0, ((b) / (1.0 - (a))))) b 228 libavfilter/vf_bm3d.c static int cmp_scores(const void *a, const void *b) b 231 libavfilter/vf_bm3d.c const struct PosPairCode *pair2 = b; b 327 libavfilter/vf_bm3d.c int b = search_boundary(height - block_size, range, step, 1, y, x); b 330 libavfilter/vf_bm3d.c for (j = t; j <= b; j += step) { b 170 libavfilter/vf_boxblur.c uint8_t *a = temp[0], *b = temp[1]; b 176 libavfilter/vf_boxblur.c blur(b, pixsize, a, pixsize, len, radius, pixsize); b 177 libavfilter/vf_boxblur.c c = a; a = b; b = c; b 84 libavfilter/vf_bwdif.c int b = ((prev2[mrefs2] + next2[mrefs2]) >> 1) - c; \ b 88 libavfilter/vf_bwdif.c int max = FFMAX3(de, dc, FFMIN(b, f)); \ b 89 libavfilter/vf_bwdif.c int min = FFMIN3(de, dc, FFMAX(b, f)); \ b 80 libavfilter/vf_cas.c int b = src[y0 * in_linesize + x]; b 91 libavfilter/vf_cas.c mn = FFMIN3(FFMIN3( d, e, f), b, h); b 96 libavfilter/vf_cas.c mx = FFMAX3(FFMAX3( d, e, f), b, h); b 105 libavfilter/vf_cas.c dst[x] = av_clip_uint8(((b + d + f + h) * weight + e) / (1.f + 4.f * weight)); b 147 libavfilter/vf_cas.c int b = src[y0 * in_linesize + x]; b 158 libavfilter/vf_cas.c mn = FFMIN3(FFMIN3( d, e, f), b, h); b 163 libavfilter/vf_cas.c mx = FFMAX3(FFMAX3( d, e, f), b, h); b 172 libavfilter/vf_cas.c dst[x] = av_clip_uintp2_c(((b + d + f + h) * weight + e) / (1.f + 4.f * weight), s->depth); b 52 libavfilter/vf_chromaber_vulkan.c C(1, res.b = texture(input_img[0], ((p + o)/2.0f) + 0.5f).b; ) b 769 libavfilter/vf_ciescope.c double * const r, double * const g, double * const b) b 773 libavfilter/vf_ciescope.c *b = m[2][0]*xc + m[2][1]*yc + m[2][2]*zc; b 860 libavfilter/vf_ciescope.c double * const b) b 873 libavfilter/vf_ciescope.c w = (w < *b) ? w : *b; b 878 libavfilter/vf_ciescope.c *r += w; *g += w; *b += w; b 926 libavfilter/vf_ciescope.c double * const b) b 930 libavfilter/vf_ciescope.c gamma_correct(cs, b); b 1125 libavfilter/vf_ciescope.c int r, g, b, mx = maxval; b 1168 libavfilter/vf_ciescope.c b = mx * jb; b 1171 libavfilter/vf_ciescope.c pixels[y * linesize + x * 4 + 2] = b; b 1248 libavfilter/vf_ciescope.c double b = src[2] / 65535.; b 1251 libavfilter/vf_ciescope.c rgb_to_xy(r, g, b, cx, cy, &cz, (const double (*)[3])s->m); b 1260 libavfilter/vf_ciescope.c double b = src[2] / 65535.; b 1263 libavfilter/vf_ciescope.c rgb_to_xy(r, g, b, cx, cy, &cz, (const double (*)[3])s->m); b 1272 libavfilter/vf_ciescope.c double b = src[2] / 255.; b 1275 libavfilter/vf_ciescope.c rgb_to_xy(r, g, b, cx, cy, &cz, (const double (*)[3])s->m); b 1284 libavfilter/vf_ciescope.c double b = src[2] / 255.; b 1287 libavfilter/vf_ciescope.c rgb_to_xy(r, g, b, cx, cy, &cz, (const double (*)[3])s->m); b 104 libavfilter/vf_colorbalance.c const float a = 4.f, b = 0.333f, scale = 0.7f; b 106 libavfilter/vf_colorbalance.c s *= av_clipf((b - l) * a + 0.5f, 0, 1) * scale; b 107 libavfilter/vf_colorbalance.c m *= av_clipf((l - b) * a + 0.5f, 0, 1) * av_clipf((1.0 - l - b) * a + 0.5f, 0, 1) * scale; b 108 libavfilter/vf_colorbalance.c h *= av_clipf((l + b - 1) * a + 0.5f, 0, 1) * scale; b 125 libavfilter/vf_colorbalance.c static void preservel(float *r, float *g, float *b, float l) b 127 libavfilter/vf_colorbalance.c float max = FFMAX3(*r, *g, *b); b 128 libavfilter/vf_colorbalance.c float min = FFMIN3(*r, *g, *b); b 133 libavfilter/vf_colorbalance.c if (*r == *g && *g == *b) { b 136 libavfilter/vf_colorbalance.c h = 60. * (0. + (*g - *b) / (max - min)); b 138 libavfilter/vf_colorbalance.c h = 60. * (2. + (*b - *r) / (max - min)); b 139 libavfilter/vf_colorbalance.c } else if (max == *b) { b 155 libavfilter/vf_colorbalance.c *b = hfun(4, h, s, l); b 181 libavfilter/vf_colorbalance.c float b = srcb[j] / max; b 182 libavfilter/vf_colorbalance.c const float l = FFMAX3(r, g, b) + FFMIN3(r, g, b); b 186 libavfilter/vf_colorbalance.c b = get_component(b, l, s->yellow_blue.shadows, s->yellow_blue.midtones, s->yellow_blue.highlights); b 189 libavfilter/vf_colorbalance.c preservel(&r, &g, &b, l); b 193 libavfilter/vf_colorbalance.c dstb[j] = av_clip_uint8(b * max); b 235 libavfilter/vf_colorbalance.c float b = srcb[j] / max; b 236 libavfilter/vf_colorbalance.c const float l = (FFMAX3(r, g, b) + FFMIN3(r, g, b)); b 240 libavfilter/vf_colorbalance.c b = get_component(b, l, s->yellow_blue.shadows, s->yellow_blue.midtones, s->yellow_blue.highlights); b 243 libavfilter/vf_colorbalance.c preservel(&r, &g, &b, l); b 247 libavfilter/vf_colorbalance.c dstb[j] = av_clip_uintp2_c(b * max, depth); b 292 libavfilter/vf_colorbalance.c float b = src[j + boffset] / max; b 293 libavfilter/vf_colorbalance.c const float l = (FFMAX3(r, g, b) + FFMIN3(r, g, b)); b 297 libavfilter/vf_colorbalance.c b = get_component(b, l, s->yellow_blue.shadows, s->yellow_blue.midtones, s->yellow_blue.highlights); b 300 libavfilter/vf_colorbalance.c preservel(&r, &g, &b, l); b 304 libavfilter/vf_colorbalance.c dst[j + boffset] = av_clip_uint8(b * max); b 344 libavfilter/vf_colorbalance.c float b = src[j + boffset] / max; b 345 libavfilter/vf_colorbalance.c const float l = (FFMAX3(r, g, b) + FFMIN3(r, g, b)); b 349 libavfilter/vf_colorbalance.c b = get_component(b, l, s->yellow_blue.shadows, s->yellow_blue.midtones, s->yellow_blue.highlights); b 352 libavfilter/vf_colorbalance.c preservel(&r, &g, &b, l); b 356 libavfilter/vf_colorbalance.c dst[j + boffset] = av_clip_uintp2_c(b * max, depth); b 190 libavfilter/vf_colorconstancy.c int b, p; b 192 libavfilter/vf_colorconstancy.c for (b = 0; b < nb_buff; ++b) { b 194 libavfilter/vf_colorconstancy.c av_freep(&td->data[b][p]); b 199 libavfilter/vf_colorconstancy.c av_freep(&td->data[b][p]); b 217 libavfilter/vf_colorconstancy.c int b, p; b 220 libavfilter/vf_colorconstancy.c for (b = 0; b <= nb_buff; ++b) { // We need difford + 1 buffers b 222 libavfilter/vf_colorconstancy.c td->data[b][p] = av_mallocz_array(s->planeheight[p] * s->planewidth[p], sizeof(*td->data[b][p])); b 223 libavfilter/vf_colorconstancy.c if (!td->data[b][p]) { b 224 libavfilter/vf_colorconstancy.c cleanup_derivative_buffers(td, b + 1, p); b 42 libavfilter/vf_colorkey.c static uint8_t do_colorkey_pixel(ColorkeyContext *ctx, uint8_t r, uint8_t g, uint8_t b) b 46 libavfilter/vf_colorkey.c int db = (int)b - ctx->colorkey_rgba[2]; b 96 libavfilter/vf_colorkey.c int o, t, r, g, b; b 101 libavfilter/vf_colorkey.c b = frame->data[0][o + ctx->co[2]]; b 103 libavfilter/vf_colorkey.c t = do_colorkey_pixel(ctx, r, g, b); b 106 libavfilter/vf_colorkey.c int a = (r + g + b) / 3; b 111 libavfilter/vf_colorkey.c frame->data[0][o + ctx->co[2]] = (a * t + b * rt + 127) >> 8; b 116 libavfilter/vf_curves.c const char *b; b 306 libavfilter/vf_curves.c const double b = (yn-yc)/h[i] - h[i]*r[i]/2. - h[i]*(r[i+1]-r[i])/6.; b 319 libavfilter/vf_curves.c const double yy = a + b*xx + c*xx*xx + d*xx*xx*xx; b 505 libavfilter/vf_curves.c SET_COMP_IF_NOT_SET(2, b); b 547 libavfilter/vf_curves.c const uint8_t b = curves->rgba_map[B]; b 560 libavfilter/vf_curves.c dstp[x + b] = curves->graph[B][srcp[x + b]]; b 573 libavfilter/vf_curves.c dst[x + b] = curves->graph[B][src[x + b]]; b 595 libavfilter/vf_curves.c const uint8_t b = curves->rgba_map[B]; b 604 libavfilter/vf_curves.c uint16_t *dstbp = ( uint16_t *)(out->data[b] + y * out->linesize[b]); b 608 libavfilter/vf_curves.c const uint16_t *srcbp = (const uint16_t *)(in ->data[b] + y * in->linesize[b]); b 622 libavfilter/vf_curves.c uint8_t *dstb = out->data[b] + slice_start * out->linesize[b]; b 626 libavfilter/vf_curves.c const uint8_t *srcb = in->data[b] + slice_start * in->linesize[b]; b 639 libavfilter/vf_curves.c dstb += out->linesize[b]; b 643 libavfilter/vf_curves.c srcb += in ->linesize[b]; b 367 libavfilter/vf_dctdnoiz.c float *b = &tmp_block2[i]; \ b 370 libavfilter/vf_dctdnoiz.c var_values[VAR_C] = fabsf(*b); \ b 371 libavfilter/vf_dctdnoiz.c *b *= av_expr_eval(expr, var_values, NULL); \ b 373 libavfilter/vf_dctdnoiz.c if (fabsf(*b) < sigma_th) \ b 374 libavfilter/vf_dctdnoiz.c *b = 0; \ b 413 libavfilter/vf_dctdnoiz.c int r, int g, int b) b 423 libavfilter/vf_dctdnoiz.c dstp_r[x] = srcp[r] * DCT3X3_0_0 + srcp[g] * DCT3X3_0_1 + srcp[b] * DCT3X3_0_2; b 424 libavfilter/vf_dctdnoiz.c dstp_g[x] = srcp[r] * DCT3X3_1_0 + srcp[b] * DCT3X3_1_2; b 425 libavfilter/vf_dctdnoiz.c dstp_b[x] = srcp[r] * DCT3X3_2_0 + srcp[g] * DCT3X3_2_1 + srcp[b] * DCT3X3_2_2; b 438 libavfilter/vf_dctdnoiz.c int r, int g, int b) b 450 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 460 libavfilter/vf_dctdnoiz.c #define DECLARE_COLOR_FUNCS(name, r, g, b) \ b 465 libavfilter/vf_dctdnoiz.c color_decorrelation(dst, dst_linesize, src, src_linesize, w, h, r, g, b); \ b 472 libavfilter/vf_dctdnoiz.c color_correlation(dst, dst_linesize, src, src_linesize, w, h, r, g, b); \ b 105 libavfilter/vf_deblock.c int A, B, C, D, a, b, c, d; \ b 118 libavfilter/vf_deblock.c b = B + delta / 2; \ b 123 libavfilter/vf_deblock.c dst[x - 1 * dst_linesize] = av_clip(b, 0, max); \ b 144 libavfilter/vf_deblock.c int A, B, C, D, a, b, c, d; \ b 157 libavfilter/vf_deblock.c b = B + delta / 2; \ b 162 libavfilter/vf_deblock.c dst[-1] = av_clip(b, 0, max); \ b 184 libavfilter/vf_deblock.c int A, B, C, D, E, F, a, b, c, d, e, f; \ b 201 libavfilter/vf_deblock.c b = B + delta / 4; \ b 208 libavfilter/vf_deblock.c dst[x - 2 * dst_linesize] = av_clip(b, 0, max); \ b 230 libavfilter/vf_deblock.c int A, B, C, D, E, F, a, b, c, d, e, f; \ b 247 libavfilter/vf_deblock.c b = B + delta / 4; \ b 254 libavfilter/vf_deblock.c dst[-2] = av_clip(b, 0, max); \ b 305 libavfilter/vf_deflicker.c static int comparef(const void *a, const void *b) b 307 libavfilter/vf_deflicker.c const float *aa = a, *bb = b; b 91 libavfilter/vf_deshake.c static int cmp(const void *a, const void *b) b 93 libavfilter/vf_deshake.c return FFDIFFSIGN(*(const double *)a, *(const double *)b); b 95 libavfilter/vf_deshake_opencl.c #define ROUNDED_UP_DIV(a, b) ((a + (b - 1)) / b) b 459 libavfilter/vf_deshake_opencl.c double b = F3*f->s[0] + F4*f->s[1] + F5 - t->s[1]; b 461 libavfilter/vf_deshake_opencl.c err[i] = a*a + b*b; b 754 libavfilter/vf_deshake_opencl.c double b = model[3]; b 757 libavfilter/vf_deshake_opencl.c double delta = a * d - b * c; b 765 libavfilter/vf_deshake_opencl.c if (a != 0 || b != 0) { b 766 libavfilter/vf_deshake_opencl.c double r = hypot(a, b); b 768 libavfilter/vf_deshake_opencl.c ret.rotation = FFSIGN(b) * acos(a / r); b 771 libavfilter/vf_deshake_opencl.c ret.skew.s[0] = atan((a * c + b * d) / (r * r)); b 780 libavfilter/vf_deshake_opencl.c ret.skew.s[1] = atan((a * c + b * d) / (s * s)); b 106 libavfilter/vf_drawtext.c typedef double (*eval_func2)(void *, double a, double b); b 302 libavfilter/vf_drawtext.c static int glyph_cmp(const void *key, const void *b) b 304 libavfilter/vf_drawtext.c const Glyph *a = key, *bb = b; b 39 libavfilter/vf_fftdnoiz.c int b; b 217 libavfilter/vf_fftdnoiz.c p->b = 1 << s->block_bits; b 218 libavfilter/vf_fftdnoiz.c p->n = 1.f / (p->b * p->b); b 219 libavfilter/vf_fftdnoiz.c p->o = p->b * s->overlap; b 220 libavfilter/vf_fftdnoiz.c size = p->b - p->o; b 226 libavfilter/vf_fftdnoiz.c p->buffer_linesize = p->b * p->nox * sizeof(FFTComplex); b 227 libavfilter/vf_fftdnoiz.c p->buffer[CURRENT] = av_calloc(p->b * p->noy, p->buffer_linesize); b 231 libavfilter/vf_fftdnoiz.c p->buffer[PREV] = av_calloc(p->b * p->noy, p->buffer_linesize); b 236 libavfilter/vf_fftdnoiz.c p->buffer[NEXT] = av_calloc(p->b * p->noy, p->buffer_linesize); b 240 libavfilter/vf_fftdnoiz.c p->data_linesize = 2 * p->b * sizeof(float); b 241 libavfilter/vf_fftdnoiz.c p->hdata = av_calloc(p->b, p->data_linesize); b 242 libavfilter/vf_fftdnoiz.c p->vdata = av_calloc(p->b, p->data_linesize); b 257 libavfilter/vf_fftdnoiz.c const int block = p->b; b 323 libavfilter/vf_fftdnoiz.c const int block = p->b; b 375 libavfilter/vf_fftdnoiz.c const int block = p->b; b 435 libavfilter/vf_fftdnoiz.c const int block = p->b; b 487 libavfilter/vf_fftdnoiz.c const int block = p->b; b 115 libavfilter/vf_frei0r.c if (sscanf(param, "%f/%f/%f", &val.col.r, &val.col.g, &val.col.b) != 3) { b 120 libavfilter/vf_frei0r.c val.col.b = rgba[2] / 255.0; b 126 libavfilter/vf_histeq.c #define GET_RGB_VALUES(r, g, b, src, map) do { \ b 129 libavfilter/vf_histeq.c b = src[x + map[B]]; \ b 141 libavfilter/vf_histeq.c unsigned int r, g, b, jran; b 161 libavfilter/vf_histeq.c GET_RGB_VALUES(r, g, b, src, histeq->rgba_map); b 162 libavfilter/vf_histeq.c luma = (55 * r + 182 * g + 19 * b) >> 8; b 226 libavfilter/vf_histeq.c GET_RGB_VALUES(r, g, b, src, histeq->rgba_map); b 227 libavfilter/vf_histeq.c if (((m = FFMAX3(r, g, b)) * lut) / luma > 255) { b 230 libavfilter/vf_histeq.c b = (b * 255) / m; b 234 libavfilter/vf_histeq.c b = (b * lut) / luma; b 238 libavfilter/vf_histeq.c dst[x + histeq->rgba_map[B]] = b; b 239 libavfilter/vf_histeq.c oluma = av_clip_uint8((55 * r + 182 * g + 19 * b) >> 8); b 68 libavfilter/vf_hqx.c #define ABSDIFF(a,b) (abs((int)(a)-(int)(b))) b 117 libavfilter/vf_hue.c const float b = h->brightness; b 121 libavfilter/vf_hue.c h->lut_l[i] = av_clip_uint8(i + b * 25.5); b 124 libavfilter/vf_hue.c h->lut_l16[i] = av_clip_uintp2(i + b * 102.4, 10); 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 122 libavfilter/vf_il.c const int b = 1 - a; b 130 libavfilter/vf_il.c memcpy(dst + dst_linesize * (y + m), src + src_linesize * (y * 2 + b), w); b 136 libavfilter/vf_il.c memcpy(dst + dst_linesize * (y * 2 + 1), src + src_linesize * (y * 2 + b), w); b 142 libavfilter/vf_il.c memcpy(dst + dst_linesize * (y * 2 + b), src + src_linesize * (y + m), w); b 53 libavfilter/vf_lumakey.c const int b = s->black; b 58 libavfilter/vf_lumakey.c if (luma[x] >= b && luma[x] <= w) { b 60 libavfilter/vf_lumakey.c } else if (luma[x] > b - so && luma[x] < w + so) { b 61 libavfilter/vf_lumakey.c if (luma[x] < b) { b 62 libavfilter/vf_lumakey.c alpha[x] = 255 - (luma[x] - b + so) * 255 / so; b 85 libavfilter/vf_lumakey.c const int b = s->black; b 91 libavfilter/vf_lumakey.c if (luma[x] >= b && luma[x] <= w) { b 93 libavfilter/vf_lumakey.c } else if (luma[x] > b - so && luma[x] < w + so) { b 94 libavfilter/vf_lumakey.c if (luma[x] < b) { b 95 libavfilter/vf_lumakey.c alpha[x] = m - (luma[x] - b + so) * m / so; b 56 libavfilter/vf_lut3d.c float r, g, b; b 140 libavfilter/vf_lut3d.c lerpf(v0->r, v1->r, f), lerpf(v0->g, v1->g, f), lerpf(v0->b, v1->b, f) b 155 libavfilter/vf_lut3d.c return lut3d->lut[NEAR(s->r) * lut3d->lutsize2 + NEAR(s->g) * lut3d->lutsize + NEAR(s->b)]; b 167 libavfilter/vf_lut3d.c const int prev[] = {PREV(s->r), PREV(s->g), PREV(s->b)}; b 168 libavfilter/vf_lut3d.c const int next[] = {NEXT(s->r), NEXT(s->g), NEXT(s->b)}; b 169 libavfilter/vf_lut3d.c const struct rgbvec d = {s->r - prev[0], s->g - prev[1], s->b - prev[2]}; b 184 libavfilter/vf_lut3d.c const struct rgbvec c = lerp(&c0, &c1, d.b); b 197 libavfilter/vf_lut3d.c const int prev[] = {PREV(s->r), PREV(s->g), PREV(s->b)}; b 198 libavfilter/vf_lut3d.c const int next[] = {NEXT(s->r), NEXT(s->g), NEXT(s->b)}; b 199 libavfilter/vf_lut3d.c const struct rgbvec d = {s->r - prev[0], s->g - prev[1], s->b - prev[2]}; b 204 libavfilter/vf_lut3d.c if (d.g > d.b) { b 207 libavfilter/vf_lut3d.c c.r = (1-d.r) * c000.r + (d.r-d.g) * c100.r + (d.g-d.b) * c110.r + (d.b) * c111.r; b 208 libavfilter/vf_lut3d.c c.g = (1-d.r) * c000.g + (d.r-d.g) * c100.g + (d.g-d.b) * c110.g + (d.b) * c111.g; b 209 libavfilter/vf_lut3d.c c.b = (1-d.r) * c000.b + (d.r-d.g) * c100.b + (d.g-d.b) * c110.b + (d.b) * c111.b; b 210 libavfilter/vf_lut3d.c } else if (d.r > d.b) { b 213 libavfilter/vf_lut3d.c c.r = (1-d.r) * c000.r + (d.r-d.b) * c100.r + (d.b-d.g) * c101.r + (d.g) * c111.r; b 214 libavfilter/vf_lut3d.c c.g = (1-d.r) * c000.g + (d.r-d.b) * c100.g + (d.b-d.g) * c101.g + (d.g) * c111.g; b 215 libavfilter/vf_lut3d.c c.b = (1-d.r) * c000.b + (d.r-d.b) * c100.b + (d.b-d.g) * c101.b + (d.g) * c111.b; b 219 libavfilter/vf_lut3d.c c.r = (1-d.b) * c000.r + (d.b-d.r) * c001.r + (d.r-d.g) * c101.r + (d.g) * c111.r; b 220 libavfilter/vf_lut3d.c c.g = (1-d.b) * c000.g + (d.b-d.r) * c001.g + (d.r-d.g) * c101.g + (d.g) * c111.g; b 221 libavfilter/vf_lut3d.c c.b = (1-d.b) * c000.b + (d.b-d.r) * c001.b + (d.r-d.g) * c101.b + (d.g) * c111.b; b 224 libavfilter/vf_lut3d.c if (d.b > d.g) { b 227 libavfilter/vf_lut3d.c c.r = (1-d.b) * c000.r + (d.b-d.g) * c001.r + (d.g-d.r) * c011.r + (d.r) * c111.r; b 228 libavfilter/vf_lut3d.c c.g = (1-d.b) * c000.g + (d.b-d.g) * c001.g + (d.g-d.r) * c011.g + (d.r) * c111.g; b 229 libavfilter/vf_lut3d.c c.b = (1-d.b) * c000.b + (d.b-d.g) * c001.b + (d.g-d.r) * c011.b + (d.r) * c111.b; b 230 libavfilter/vf_lut3d.c } else if (d.b > d.r) { b 233 libavfilter/vf_lut3d.c c.r = (1-d.g) * c000.r + (d.g-d.b) * c010.r + (d.b-d.r) * c011.r + (d.r) * c111.r; b 234 libavfilter/vf_lut3d.c c.g = (1-d.g) * c000.g + (d.g-d.b) * c010.g + (d.b-d.r) * c011.g + (d.r) * c111.g; b 235 libavfilter/vf_lut3d.c c.b = (1-d.g) * c000.b + (d.g-d.b) * c010.b + (d.b-d.r) * c011.b + (d.r) * c111.b; b 239 libavfilter/vf_lut3d.c c.r = (1-d.g) * c000.r + (d.g-d.r) * c010.r + (d.r-d.b) * c110.r + (d.b) * c111.r; b 240 libavfilter/vf_lut3d.c c.g = (1-d.g) * c000.g + (d.g-d.r) * c010.g + (d.r-d.b) * c110.g + (d.b) * c111.g; b 241 libavfilter/vf_lut3d.c c.b = (1-d.g) * c000.b + (d.g-d.r) * c010.b + (d.r-d.b) * c110.b + (d.b) * c111.b; b 271 libavfilter/vf_lut3d.c c.b = prelut_interp_1d_linear(prelut, 2, s->b); b 299 libavfilter/vf_lut3d.c const float scale_b = lut3d->scale.b * lut_max; \ b 317 libavfilter/vf_lut3d.c av_clipf(prelut_rgb.b * scale_b, 0, lut_max)}; \ b 321 libavfilter/vf_lut3d.c dstb[x] = av_clip_uintp2(vec.b * (float)((1<<depth) - 1), depth); \ b 384 libavfilter/vf_lut3d.c const float scale_b = lut3d->scale.b * lut_max; \ b 402 libavfilter/vf_lut3d.c av_clipf(prelut_rgb.b * scale_b, 0, lut_max)}; \ b 406 libavfilter/vf_lut3d.c dstb[x] = vec.b; \ b 439 libavfilter/vf_lut3d.c const uint8_t b = lut3d->rgba_map[B]; \ b 449 libavfilter/vf_lut3d.c const float scale_b = lut3d->scale.b * lut_max; \ b 457 libavfilter/vf_lut3d.c src[x + b] * scale_f}; \ b 461 libavfilter/vf_lut3d.c av_clipf(prelut_rgb.b * scale_b, 0, lut_max)}; \ b 465 libavfilter/vf_lut3d.c dst[x + b] = av_clip_uint##nbits(vec.b * (float)((1<<nbits) - 1)); \ b 602 libavfilter/vf_lut3d.c if (av_sscanf(line, "%f %f %f", &vec->r, &vec->g, &vec->b) != 3) b 650 libavfilter/vf_lut3d.c if (av_sscanf(line, "%f %f %f", &vec->r, &vec->g, &vec->b) != 3) b 661 libavfilter/vf_lut3d.c lut3d->scale.b = av_clipf(1. / (max[2] - min[2]), 0.f, 1.f); b 687 libavfilter/vf_lut3d.c int r, g, b; b 691 libavfilter/vf_lut3d.c if (av_sscanf(line, "%d %d %d", &r, &g, &b) != 3) b 695 libavfilter/vf_lut3d.c vec->b = b / scale; b 765 libavfilter/vf_lut3d.c vec->b = val[rgb_map[2]] * scale; b 954 libavfilter/vf_lut3d.c if (av_sscanf(line, "%f %f %f", &vec->r, &vec->g, &vec->b) != 3) { b 961 libavfilter/vf_lut3d.c vec->b *= out_max[2] - out_min[2]; b 979 libavfilter/vf_lut3d.c float x = lerpf(in_min[c], in_max[c], mix), a, b; b 985 libavfilter/vf_lut3d.c b = out_prelut[c][idx + 1]; b 988 libavfilter/vf_lut3d.c lut3d->prelut.lut[c][i] = sanitizef(lerpf(a, b, mix)); b 993 libavfilter/vf_lut3d.c lut3d->scale.b = 1.00f; b 998 libavfilter/vf_lut3d.c lut3d->scale.b = av_clipf(1. / (in_max[2] - in_min[2]), 0.f, 1.f); b 1026 libavfilter/vf_lut3d.c vec->b = i * c; b 1151 libavfilter/vf_lut3d.c lut3d->scale.r = lut3d->scale.g = lut3d->scale.b = 1.f; b 1263 libavfilter/vf_lut3d.c vec->b = src[rgba_map[2]] / (float)((1<<(nbits)) - 1); \ b 1306 libavfilter/vf_lut3d.c vec->b = rsrc[x] / (float)((1<<(depth)) - 1); \ b 1349 libavfilter/vf_lut3d.c vec->b = bsrc[x]; b 1452 libavfilter/vf_lut3d.c lut3d->scale.r = lut3d->scale.g = lut3d->scale.b = 1.f; b 1624 libavfilter/vf_lut3d.c lut1d->scale.b = av_clipf(1. / (in_max[2] - in_min[2]), 0.f, 1.f); b 1678 libavfilter/vf_lut3d.c lut1d->scale.b = av_clipf(1. / (max[2] - min[2]), 0.f, 1.f); b 1797 libavfilter/vf_lut3d.c const float scale_b = (lut1d->scale.b / factor) * (lut1d->lutsize - 1); \ b 1811 libavfilter/vf_lut3d.c float b = srcb[x] * scale_b; \ b 1814 libavfilter/vf_lut3d.c b = interp_1d_##name(lut1d, 2, b); \ b 1817 libavfilter/vf_lut3d.c dstb[x] = av_clip_uintp2(b * factor, depth); \ b 1893 libavfilter/vf_lut3d.c const float scale_b = lut1d->scale.b * lutsize; \ b 1907 libavfilter/vf_lut3d.c float b = av_clipf(sanitizef(srcb[x]) * scale_b, 0.0f, lutsize); \ b 1910 libavfilter/vf_lut3d.c b = interp_1d_##name(lut1d, 2, b); \ b 1913 libavfilter/vf_lut3d.c dstb[x] = b; \ b 1948 libavfilter/vf_lut3d.c const uint8_t b = lut1d->rgba_map[B]; \ b 1957 libavfilter/vf_lut3d.c const float scale_b = (lut1d->scale.b / factor) * (lut1d->lutsize - 1); \ b 1965 libavfilter/vf_lut3d.c float bb = src[x + b] * scale_b; \ b 1971 libavfilter/vf_lut3d.c dst[x + b] = av_clip_uint##nbits(bb * factor); \ b 2041 libavfilter/vf_lut3d.c lut1d->scale.r = lut1d->scale.g = lut1d->scale.b = 1.f; b 35 libavfilter/vf_maskedclamp.c AVFrame *b, *o, *m, *d; b 97 libavfilter/vf_maskedclamp.c const ptrdiff_t blinesize = td->b->linesize[p]; b 105 libavfilter/vf_maskedclamp.c const uint8_t *bsrc = td->b->data[p] + slice_start * blinesize; b 157 libavfilter/vf_maskedclamp.c td.b = base; b 394 libavfilter/vf_nlmeans.c const uint32_t b = ii[x + dist_b]; b 397 libavfilter/vf_nlmeans.c const uint32_t patch_diff_sq = e - d - b + a; b 39 libavfilter/vf_overlay_cuda.c #define DIV_UP(a, b) ( ((a) + (b) - 1) / (b) ) b 115 libavfilter/vf_palettegen.c const struct color_ref * const *b = pb; \ b 117 libavfilter/vf_palettegen.c - ((*b)->color >> (8 * (2 - (pos))) & 0xff); \ b 122 libavfilter/vf_palettegen.c DECLARE_CMP_FUNC(b, 2) b 129 libavfilter/vf_palettegen.c static int cmp_color(const void *a, const void *b) b 132 libavfilter/vf_palettegen.c const struct range_box *box2 = b; b 136 libavfilter/vf_palettegen.c static av_always_inline int diff(const uint32_t a, const uint32_t b) b 139 libavfilter/vf_palettegen.c const uint8_t c2[] = {b >> 16 & 0xff, b >> 8 & 0xff, b & 0xff}; b 191 libavfilter/vf_palettegen.c uint64_t r = 0, g = 0, b = 0, div = 0; b 197 libavfilter/vf_palettegen.c b += (ref->color & 0xff) * ref->count; b 203 libavfilter/vf_palettegen.c b = b / div; b 205 libavfilter/vf_palettegen.c return 0xffU<<24 | r<<16 | g<<8 | b; b 337 libavfilter/vf_palettegen.c const uint8_t r = rgb >> 16 & 0xff, g = rgb >> 8 & 0xff, b = rgb & 0xff; b 340 libavfilter/vf_palettegen.c min[2] = FFMIN(b, min[2]), max[2] = FFMAX(b, max[2]); b 401 libavfilter/vf_palettegen.c const uint8_t b = color & ((1<<NBITS)-1); b 402 libavfilter/vf_palettegen.c return r<<(NBITS*2) | g<<NBITS | b; b 342 libavfilter/vf_paletteuse.c uint8_t a, uint8_t r, uint8_t g, uint8_t b, b 346 libavfilter/vf_paletteuse.c const uint8_t argb_elts[] = {a, r, g, b}; b 349 libavfilter/vf_paletteuse.c const uint8_t bhash = b & ((1<<NBITS)-1); b 382 libavfilter/vf_paletteuse.c const uint8_t b = c & 0xff; b 384 libavfilter/vf_paletteuse.c const int dstx = color_get(s, c, a, r, g, b, search_method); b 390 libavfilter/vf_paletteuse.c *eb = b - (dstc & 0xff); b 420 libavfilter/vf_paletteuse.c const uint8_t b = av_clip_uint8(b8 + d); b 421 libavfilter/vf_paletteuse.c const int color = color_get(s, src[x], a8, r, g, b, search_method); b 488 libavfilter/vf_paletteuse.c const uint8_t b = src[x] & 0xff; b 489 libavfilter/vf_paletteuse.c const int color = color_get(s, src[x], a, r, g, b, search_method); b 560 libavfilter/vf_paletteuse.c int r, g, b, ret = 0; b 564 libavfilter/vf_paletteuse.c for (b = 0; b < 256; b++) { b 565 libavfilter/vf_paletteuse.c const uint8_t argb[] = {0xff, r, g, b}; b 578 libavfilter/vf_paletteuse.c r, g, b, r1, r2, c1 & 0xffffff, c2 & 0xffffff, d1, d2); b 604 libavfilter/vf_paletteuse.c const struct color *b = pb; \ b 606 libavfilter/vf_paletteuse.c - (b->value >> (8 * (3 - (pos))) & 0xff); \ b 612 libavfilter/vf_paletteuse.c DECLARE_CMP_FUNC(b, 3) b 635 libavfilter/vf_paletteuse.c const uint8_t b = c & 0xff; b 642 libavfilter/vf_paletteuse.c r < box->min[0] || g < box->min[1] || b < box->min[2] || b 643 libavfilter/vf_paletteuse.c r > box->max[0] || g > box->max[1] || b > box->max[2]) b 648 libavfilter/vf_paletteuse.c if (b < ranges.min[2]) ranges.min[2] = b; b 652 libavfilter/vf_paletteuse.c if (b > ranges.max[2]) ranges.max[2] = b; b 725 libavfilter/vf_paletteuse.c static int cmp_pal_entry(const void *a, const void *b) b 728 libavfilter/vf_paletteuse.c const int c2 = *(const uint32_t *)b & 0xffffff; b 316 libavfilter/vf_perspective.c const int b = s->coeff[subU][1]; b 320 libavfilter/vf_perspective.c sum = s->coeff[subV][0] * (a * src[index - 1 - src_linesize] + b * src[index - 0 - src_linesize] + b 322 libavfilter/vf_perspective.c s->coeff[subV][1] * (a * src[index - 1 ] + b * src[index - 0 ] + b 324 libavfilter/vf_perspective.c s->coeff[subV][2] * (a * src[index - 1 + src_linesize] + b * src[index - 0 + src_linesize] + b 326 libavfilter/vf_perspective.c s->coeff[subV][3] * (a * src[index - 1 + 2 * src_linesize] + b * src[index - 0 + 2 * src_linesize] + b 191 libavfilter/vf_photosensitivity.c static int get_badness(PhotosensitivityFrame *a, PhotosensitivityFrame *b) b 198 libavfilter/vf_photosensitivity.c badness += abs((int)a->grid[y][x][c] - (int)b->grid[y][x][c]); b 75 libavfilter/vf_pullup.c static int diff_c(const uint8_t *a, const uint8_t *b, ptrdiff_t s) b 81 libavfilter/vf_pullup.c diff += ABS(a[j] - b[j]); b 83 libavfilter/vf_pullup.c b += s; b 89 libavfilter/vf_pullup.c static int comb_c(const uint8_t *a, const uint8_t *b, ptrdiff_t s) b 95 libavfilter/vf_pullup.c comb += ABS((a[j] << 1) - b[j - s] - b[j ]) + b 96 libavfilter/vf_pullup.c ABS((b[j] << 1) - a[j ] - a[j + s]); b 98 libavfilter/vf_pullup.c b += s; b 104 libavfilter/vf_pullup.c static int var_c(const uint8_t *a, const uint8_t *b, ptrdiff_t s) b 223 libavfilter/vf_pullup.c static PullupBuffer *pullup_lock_buffer(PullupBuffer *b, int parity) b 225 libavfilter/vf_pullup.c if (!b) b 229 libavfilter/vf_pullup.c b->lock[0]++; b 231 libavfilter/vf_pullup.c b->lock[1]++; b 233 libavfilter/vf_pullup.c return b; b 236 libavfilter/vf_pullup.c static void pullup_release_buffer(PullupBuffer *b, int parity) b 238 libavfilter/vf_pullup.c if (!b) b 242 libavfilter/vf_pullup.c b->lock[0]--; b 244 libavfilter/vf_pullup.c b->lock[1]--; b 247 libavfilter/vf_pullup.c static int alloc_buffer(PullupContext *s, PullupBuffer *b) b 251 libavfilter/vf_pullup.c if (b->planes[0]) b 254 libavfilter/vf_pullup.c b->planes[i] = av_malloc(s->planeheight[i] * s->planewidth[i]); b 257 libavfilter/vf_pullup.c b->planes[1] = av_malloc(4*256); b 538 libavfilter/vf_pullup.c uint8_t *a, *b; b 551 libavfilter/vf_pullup.c b = fb->buffer->planes[mp] + pb * s->planewidth[mp] + s->metric_offset; b 555 libavfilter/vf_pullup.c *dest++ = func(a + x, b + x, stride); b 556 libavfilter/vf_pullup.c a += ystep; b += ystep; b 584 libavfilter/vf_pullup.c static void pullup_submit_field(PullupContext *s, PullupBuffer *b, int parity) b 598 libavfilter/vf_pullup.c f->buffer = pullup_lock_buffer(b, parity); b 663 libavfilter/vf_pullup.c PullupBuffer *b; b 668 libavfilter/vf_pullup.c b = pullup_get_buffer(s, 2); b 669 libavfilter/vf_pullup.c if (!b) { b 676 libavfilter/vf_pullup.c av_image_copy(b->planes, s->planewidth, b 681 libavfilter/vf_pullup.c pullup_submit_field(s, b, p ); b 682 libavfilter/vf_pullup.c pullup_submit_field(s, b, p^1); b 685 libavfilter/vf_pullup.c pullup_submit_field(s, b, p); b 687 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 295 libavfilter/vf_readeia608.c int b = FFMAX(i - 2, 0); b 301 libavfilter/vf_readeia608.c line[LAG + i].input = (src[a] + src[b] + src[c] + src[i] + src[d] + src[e] + src[f] + 6) / 7; b 356 libavfilter/vf_readeia608.c int b = codes[3 + ch * 8 + i]; b 358 libavfilter/vf_readeia608.c if (b == 255) { b 360 libavfilter/vf_readeia608.c b = 1; b 362 libavfilter/vf_readeia608.c b = 0; b 364 libavfilter/vf_readeia608.c byte[ch] |= b << i; b 287 libavfilter/vf_removelogo.c int a, b, c, w, h; b 327 libavfilter/vf_removelogo.c for (b = -a; b <= a; b++) { b 328 libavfilter/vf_removelogo.c mask[a][b + a] = (int *)av_malloc_array((a * 2) + 1, sizeof(int)); b 329 libavfilter/vf_removelogo.c if (!mask[a][b + a]) { b 334 libavfilter/vf_removelogo.c if ((b * b) + (c * c) <= (a * a)) /* Circular 0/1 mask. */ b 335 libavfilter/vf_removelogo.c mask[a][b + a][c + a] = 1; b 337 libavfilter/vf_removelogo.c mask[a][b + a][c + a] = 0; b 539 libavfilter/vf_removelogo.c int a, b; b 548 libavfilter/vf_removelogo.c for (b = -a; b <= a; b++) { b 549 libavfilter/vf_removelogo.c av_freep(&s->mask[a][b + a]); /* Free a scanline. */ b 50 libavfilter/vf_scale_cuda.c #define DIV_UP(a, b) ( ((a) + (b) - 1) / (b) ) b 51 libavfilter/vf_scale_cuda.c #define ALIGN_UP(a, b) (((a) + (b) - 1) & ~((b) - 1)) b 84 libavfilter/vf_scale_vulkan.c C(1, imageStore(output_img[1], pos, vec4(src.g, src.b, 0.0, 0.0)); ) b 94 libavfilter/vf_scale_vulkan.c C(1, imageStore(output_img[2], pos, vec4(src.b, 0.0, 0.0, 0.0)); ) b 103 libavfilter/vf_scale_vulkan.c C(1, imageStore(output_img[2], pos, vec4(src.b, 0.0, 0.0, 0.0)); ) b 68 libavfilter/vf_selectivecolor.c typedef int (*get_range_scale_func)(int r, int g, int b, int min_val, int max_val); b 117 libavfilter/vf_selectivecolor.c static int get_rgb_scale(int r, int g, int b, int min_val, int max_val) b 119 libavfilter/vf_selectivecolor.c return max_val - mid_pred(r, g, b); b 122 libavfilter/vf_selectivecolor.c static int get_cmy_scale(int r, int g, int b, int min_val, int max_val) b 124 libavfilter/vf_selectivecolor.c return mid_pred(r, g, b) - min_val; b 128 libavfilter/vf_selectivecolor.c static int get_neutrals_scale##nbits(int r, int g, int b, int min_val, int max_val) \ b 135 libavfilter/vf_selectivecolor.c static int get_whites_scale##nbits(int r, int g, int b, int min_val, int max_val) \ b 141 libavfilter/vf_selectivecolor.c static int get_blacks_scale##nbits(int r, int g, int b, int min_val, int max_val) \ b 342 libavfilter/vf_selectivecolor.c const int b = src[x + boffset]; \ b 343 libavfilter/vf_selectivecolor.c const int min_color = FFMIN3(r, g, b); \ b 344 libavfilter/vf_selectivecolor.c const int max_color = FFMAX3(r, g, b); \ b 345 libavfilter/vf_selectivecolor.c const int is_white = (r > 1<<(nbits-1) && g > 1<<(nbits-1) && b > 1<<(nbits-1)); \ b 346 libavfilter/vf_selectivecolor.c const int is_neutral = (r || g || b) && \ b 347 libavfilter/vf_selectivecolor.c (r != (1<<nbits)-1 || g != (1<<nbits)-1 || b != (1<<nbits)-1); \ b 348 libavfilter/vf_selectivecolor.c const int is_black = (r < 1<<(nbits-1) && g < 1<<(nbits-1) && b < 1<<(nbits-1)); \ b 353 libavfilter/vf_selectivecolor.c | (b == max_color) << RANGE_BLUES \ b 354 libavfilter/vf_selectivecolor.c | (b == min_color) << RANGE_YELLOWS \ b 361 libavfilter/vf_selectivecolor.c const float bnorm = b * (1.f / ((1<<nbits)-1)); \ b 368 libavfilter/vf_selectivecolor.c const int scale = pr->get_scale(r, g, b, min_color, max_color); \ b 387 libavfilter/vf_selectivecolor.c dst[x + boffset] = av_clip_uint##nbits(b + adjust_b); \ b 88 libavfilter/vf_showinfo.c size_t l, t, r, b; b 90 libavfilter/vf_showinfo.c &l, &t, &r, &b); b 93 libavfilter/vf_showinfo.c l, t, r, b); b 91 libavfilter/vf_signalstats.c uint8_t r, g, b; b 99 libavfilter/vf_signalstats.c b = s->rgba_color[2]; b 100 libavfilter/vf_signalstats.c s->yuv_color[0] = (( 66*r + 129*g + 25*b + (1<<7)) >> 8) + 16; b 101 libavfilter/vf_signalstats.c s->yuv_color[1] = ((-38*r + -74*g + 112*b + (1<<7)) >> 8) + 128; b 102 libavfilter/vf_signalstats.c s->yuv_color[2] = ((112*r + -94*g + -18*b + (1<<7)) >> 8) + 128; b 107 libavfilter/vf_signature.c static int get_block_size(const Block *b) b 109 libavfilter/vf_signature.c return (b->to.y - b->up.y + 1) * (b->to.x - b->up.x + 1); b 112 libavfilter/vf_signature.c static uint64_t get_block_sum(StreamContext *sc, uint64_t intpic[32][32], const Block *b) b 118 libavfilter/vf_signature.c x0 = b->up.x; b 119 libavfilter/vf_signature.c y0 = b->up.y; b 120 libavfilter/vf_signature.c x1 = b->to.x; b 121 libavfilter/vf_signature.c y1 = b->to.y; b 135 libavfilter/vf_signature.c static int cmp(const uint64_t *a, const uint64_t *b) b 137 libavfilter/vf_signature.c return *a < *b ? -1 : ( *a > *b ? 1 : 0 ); b 172 libavfilter/vf_signature.c int32_t dh1 = 1, dh2 = 1, dw1 = 1, dw2 = 1, a, b; b 237 libavfilter/vf_signature.c b = 1; b 239 libavfilter/vf_signature.c b = ((inlink->w*(j+1))%32 == 0) ? (inlink->w*(j+1))/32 - 1 : (inlink->w*(j+1))/32; b 240 libavfilter/vf_signature.c b -= ((inlink->w*j)%32 == 0) ? (inlink->w*j)/32 - 1 : (inlink->w*j)/32; b 241 libavfilter/vf_signature.c b = (b == dw1)? dw2 : dw1; b 243 libavfilter/vf_signature.c rowcount += intpic[i][j] * a * b * precfactor / denom; b 113 libavfilter/vf_ssim.c unsigned b = ref16[x + y * ref_stride]; b 116 libavfilter/vf_ssim.c s2 += b; b 118 libavfilter/vf_ssim.c ss += b*b; b 119 libavfilter/vf_ssim.c s12 += a*b; b 144 libavfilter/vf_ssim.c int b = ref[x + y * ref_stride]; b 147 libavfilter/vf_ssim.c s2 += b; b 149 libavfilter/vf_ssim.c ss += b*b; b 150 libavfilter/vf_ssim.c s12 += a*b; b 833 libavfilter/vf_stereo3d.c int b = (s->blanks) >> ((i == 1 || i == 2) ? s->vsub : 0); b 835 libavfilter/vf_stereo3d.c for (j = h; j < h + b; j++) b 961 libavfilter/vf_stereo3d.c int p, b; b 967 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=2, p++, b+=2) { b 968 libavfilter/vf_stereo3d.c dst[x ] = (b&1) == (y&1) ? left[p*m] : right[p*m]; b 969 libavfilter/vf_stereo3d.c dst[x+1] = (b&1) != (y&1) ? left[p*m] : right[p*m]; b 973 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=4, p+=2, b+=2) { b 974 libavfilter/vf_stereo3d.c AV_WN16(&dst[x ], (b&1) == (y&1) ? AV_RN16(&left[p*m]) : AV_RN16(&right[p*m])); b 975 libavfilter/vf_stereo3d.c AV_WN16(&dst[x+2], (b&1) != (y&1) ? AV_RN16(&left[p*m]) : AV_RN16(&right[p*m])); b 979 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=6, p+=3, b+=2) { b 980 libavfilter/vf_stereo3d.c AV_WB24(&dst[x ], (b&1) == (y&1) ? AV_RB24(&left[p*m]) : AV_RB24(&right[p*m])); b 981 libavfilter/vf_stereo3d.c AV_WB24(&dst[x+3], (b&1) != (y&1) ? AV_RB24(&left[p*m]) : AV_RB24(&right[p*m])); b 985 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=8, p+=4, b+=2) { b 986 libavfilter/vf_stereo3d.c AV_WN32(&dst[x ], (b&1) == (y&1) ? AV_RN32(&left[p*m]) : AV_RN32(&right[p*m])); b 987 libavfilter/vf_stereo3d.c AV_WN32(&dst[x+4], (b&1) != (y&1) ? AV_RN32(&left[p*m]) : AV_RN32(&right[p*m])); b 991 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=12, p+=6, b+=2) { b 992 libavfilter/vf_stereo3d.c AV_WB48(&dst[x ], (b&1) == (y&1) ? AV_RB48(&left[p*m]) : AV_RB48(&right[p*m])); b 993 libavfilter/vf_stereo3d.c AV_WB48(&dst[x+6], (b&1) != (y&1) ? AV_RB48(&left[p*m]) : AV_RB48(&right[p*m])); b 997 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=16, p+=8, b+=2) { b 998 libavfilter/vf_stereo3d.c AV_WN64(&dst[x ], (b&1) == (y&1) ? AV_RN64(&left[p*m]) : AV_RN64(&right[p*m])); b 999 libavfilter/vf_stereo3d.c AV_WN64(&dst[x+8], (b&1) != (y&1) ? AV_RN64(&left[p*m]) : AV_RN64(&right[p*m])); b 1017 libavfilter/vf_stereo3d.c int p, b; b 1024 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=2, p++, b+=2) { b 1025 libavfilter/vf_stereo3d.c dst[x ] = b&1 ? left[p*m] : right[p*m]; b 1026 libavfilter/vf_stereo3d.c dst[x+1] = !(b&1) ? left[p*m] : right[p*m]; b 1030 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=4, p+=2, b+=2) { b 1031 libavfilter/vf_stereo3d.c AV_WN16(&dst[x ], b&1 ? AV_RN16(&left[p*m]) : AV_RN16(&right[p*m])); b 1032 libavfilter/vf_stereo3d.c AV_WN16(&dst[x+2], !(b&1) ? AV_RN16(&left[p*m]) : AV_RN16(&right[p*m])); b 1036 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=6, p+=3, b+=2) { b 1037 libavfilter/vf_stereo3d.c AV_WB24(&dst[x ], b&1 ? AV_RB24(&left[p*m]) : AV_RB24(&right[p*m])); b 1038 libavfilter/vf_stereo3d.c AV_WB24(&dst[x+3], !(b&1) ? AV_RB24(&left[p*m]) : AV_RB24(&right[p*m])); b 1042 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=8, p+=4, b+=2) { b 1043 libavfilter/vf_stereo3d.c AV_WN32(&dst[x ], b&1 ? AV_RN32(&left[p*m]) : AV_RN32(&right[p*m])); b 1044 libavfilter/vf_stereo3d.c AV_WN32(&dst[x+4], !(b&1) ? AV_RN32(&left[p*m]) : AV_RN32(&right[p*m])); b 1048 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=12, p+=6, b+=2) { b 1049 libavfilter/vf_stereo3d.c AV_WB48(&dst[x ], b&1 ? AV_RB48(&left[p*m]) : AV_RB48(&right[p*m])); b 1050 libavfilter/vf_stereo3d.c AV_WB48(&dst[x+6], !(b&1) ? AV_RB48(&left[p*m]) : AV_RB48(&right[p*m])); b 1054 libavfilter/vf_stereo3d.c for (x = 0, b = 0, p = 0; x < s->linesize[i] * 2; x+=16, p+=8, b+=2) { b 1055 libavfilter/vf_stereo3d.c AV_WN64(&dst[x ], b&1 ? AV_RN64(&left[p*m]) : AV_RN64(&right[p*m])); b 1056 libavfilter/vf_stereo3d.c AV_WN64(&dst[x+8], !(b&1) ? AV_RN64(&left[p*m]) : AV_RN64(&right[p*m])); b 35 libavfilter/vf_thumbnail_cuda.c #define DIV_UP(a, b) ( ((a) + (b) - 1) / (b) ) b 112 libavfilter/vf_tonemap.c float a = 0.15f, b = 0.50f, c = 0.10f, d = 0.20f, e = 0.02f, f = 0.30f; b 113 libavfilter/vf_tonemap.c return (in * (in * a + b * c) + d * e) / (in * (in * a + b) + d * f) - e / f; b 118 libavfilter/vf_tonemap.c float a, b; b 124 libavfilter/vf_tonemap.c b = (j * j - 2.0f * j * peak + peak) / FFMAX(peak - 1.0f, 1e-6); b 126 libavfilter/vf_tonemap.c return (b * b + 2.0f * b * j + j * j) / (b - a) * (in + a) / (in + b); b 671 libavfilter/vf_v360.c static inline int mod(int a, int b) b 673 libavfilter/vf_v360.c const int res = a % b; b 675 libavfilter/vf_v360.c return res + b; b 2127 libavfilter/vf_v360.c const float b = 2.f * z * z - 1.f; b 2130 libavfilter/vf_v360.c const float bb = b * b; b 2134 libavfilter/vf_v360.c vec[0] = w * 2.f * a * b / (aa + bb); b 3535 libavfilter/vf_v360.c static void multiply_matrix(float c[3][3], const float a[3][3], const float b[3][3]) b 3542 libavfilter/vf_v360.c sum += a[i][k] * b[k][j]; b 258 libavfilter/vf_vaguedenoiser.c const float b = input[2 * i - 13] * analysis_low[1]; b 267 libavfilter/vf_vaguedenoiser.c output[i] = a + b + c + d + e + f + g + h + k; b 272 libavfilter/vf_vaguedenoiser.c const float b = input[2 * i - 11] * analysis_high[1]; b 279 libavfilter/vf_vaguedenoiser.c output[i + low_size] = a + b + c + d + e + f + g; b 300 libavfilter/vf_vaguedenoiser.c const float b = temp[i] * synthesis_low[1]; b 305 libavfilter/vf_vaguedenoiser.c output[2 * i - 12] += b; b 309 libavfilter/vf_vaguedenoiser.c output[2 * i - 8] += b; b 321 libavfilter/vf_vaguedenoiser.c const float b = temp[i] * synthesis_high[1]; b 327 libavfilter/vf_vaguedenoiser.c output[2 * i - 12] += b; b 333 libavfilter/vf_vaguedenoiser.c output[2 * i - 6] += b; b 77 libavfilter/vf_vibrance.c float b = bptr[x] * scale; b 79 libavfilter/vf_vibrance.c float max_color = FFMAX3(r, g, b); b 80 libavfilter/vf_vibrance.c float min_color = FFMIN3(r, g, b); b 82 libavfilter/vf_vibrance.c float luma = g * gc + r * rc + b * bc; b 88 libavfilter/vf_vibrance.c b = lerpf(luma, b, cb); b 92 libavfilter/vf_vibrance.c bptr[x] = av_clip_uint8(b * 255.f); b 136 libavfilter/vf_vibrance.c float b = bptr[x] * scale; b 138 libavfilter/vf_vibrance.c float max_color = FFMAX3(r, g, b); b 139 libavfilter/vf_vibrance.c float min_color = FFMIN3(r, g, b); b 141 libavfilter/vf_vibrance.c float luma = g * gc + r * rc + b * bc; b 147 libavfilter/vf_vibrance.c b = lerpf(luma, b, cb); b 151 libavfilter/vf_vibrance.c bptr[x] = av_clip_uintp2_c(b * max, depth); b 72 libavfilter/vf_xbr.c #define ABSDIFF(a,b) (abs((int)(a)-(int)(b))) b 82 libavfilter/vf_xbr.c #define ALPHA_BLEND_128_W(a, b) ((((a) & LB_MASK) >> 1) + (((b) & LB_MASK) >> 1)) b 83 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 84 libavfilter/vf_xbr.c | (GREEN_MASK & (((a) & GREEN_MASK) + (((((b) & GREEN_MASK) - ((a) & GREEN_MASK)) * (m)) >> (s))))) b 85 libavfilter/vf_xbr.c #define ALPHA_BLEND_32_W(a, b) ALPHA_BLEND_BASE(a, b, 1, 3) b 86 libavfilter/vf_xbr.c #define ALPHA_BLEND_64_W(a, b) ALPHA_BLEND_BASE(a, b, 1, 2) b 87 libavfilter/vf_xbr.c #define ALPHA_BLEND_192_W(a, b) ALPHA_BLEND_BASE(a, b, 3, 2) b 88 libavfilter/vf_xbr.c #define ALPHA_BLEND_224_W(a, b) ALPHA_BLEND_BASE(a, b, 7, 3) b 95 libavfilter/vf_xfade.c void (*transitionf)(AVFilterContext *ctx, const AVFrame *a, const AVFrame *b, AVFrame *out, float progress, b 195 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 209 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \ b 225 libavfilter/vf_xfade.c xf1 += b->linesize[p] / div; \ b 233 libavfilter/vf_xfade.c static inline float mix(float a, float b, float mix) b 235 libavfilter/vf_xfade.c return a * mix + b * (1.f - mix); b 254 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 263 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \ b 273 libavfilter/vf_xfade.c xf1 += b->linesize[p] / div; \ b 283 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 293 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \ b 303 libavfilter/vf_xfade.c xf1 += b->linesize[p] / div; \ b 313 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 323 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \ b 333 libavfilter/vf_xfade.c xf1 += b->linesize[p] / div; \ b 343 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 353 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \ b 363 libavfilter/vf_xfade.c xf1 += b->linesize[p] / div; \ b 373 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 383 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \ b 393 libavfilter/vf_xfade.c xf1 += b->linesize[p] / div; \ b 403 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 414 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \ b 426 libavfilter/vf_xfade.c xf1 += b->linesize[p] / div; \ b 436 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 447 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \ b 459 libavfilter/vf_xfade.c xf1 += b->linesize[p] / div; \ b 469 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 484 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + zz * b->linesize[p]); \ b 500 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 515 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + zz * b->linesize[p]); \ b 531 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 546 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 564 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 580 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 599 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 612 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 621 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 634 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 644 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \ b 657 libavfilter/vf_xfade.c xf1 += b->linesize[p] / div; \ b 667 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 677 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \ b 690 libavfilter/vf_xfade.c xf1 += b->linesize[p] / div; \ b 700 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 714 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 728 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 742 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 756 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 770 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 784 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 797 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 811 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 824 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 838 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 853 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 867 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 882 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 896 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 909 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 923 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 936 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 950 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 963 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 977 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 990 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 1011 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 1023 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 1037 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 1055 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + sy * b->linesize[p]); \ b 1069 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 1084 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 1098 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 1113 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 1127 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 1142 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 1156 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 1172 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 1186 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 1201 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 1215 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 1231 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 1245 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 1260 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 1274 libavfilter/vf_xfade.c const AVFrame *a, const AVFrame *b, AVFrame *out, \ b 1290 libavfilter/vf_xfade.c const type *xf1 = (const type *)(b->data[p] + y * b->linesize[p]); \ b 1466 libavfilter/vf_xfade.c static int xfade_frame(AVFilterContext *ctx, AVFrame *a, AVFrame *b) b 1478 libavfilter/vf_xfade.c td.xf[0] = a, td.xf[1] = b, td.out = out, td.progress = progress; b 139 libavfilter/vf_xfade_opencl.c static int xfade_frame(AVFilterContext *avctx, AVFrame *a, AVFrame *b) b 154 libavfilter/vf_xfade_opencl.c (AVHWFramesContext*)b->hw_frames_ctx->data; b 71 libavfilter/vf_yadif.c int b = (prev2[2 * mrefs] + next2[2 * mrefs])>>1; \ b 73 libavfilter/vf_yadif.c int max = FFMAX3(d - e, d - c, FFMIN(b - c, f - e)); \ b 74 libavfilter/vf_yadif.c int min = FFMIN3(d - e, d - c, FFMAX(b - c, f - e)); \ b 46 libavfilter/vf_yadif_cuda.c #define DIV_UP(a, b) ( ((a) + (b) - 1) / (b) ) b 47 libavfilter/vf_yadif_cuda.c #define ALIGN_UP(a, b) (((a) + (b) - 1) & ~((b) - 1)) b 197 libavfilter/vsrc_mandelbrot.c uint32_t a,b,c,d, i; b 210 libavfilter/vsrc_mandelbrot.c b=color[(x-1) + (y+1)*linesize]; b 215 libavfilter/vsrc_mandelbrot.c b= color[(x-1) + (y+0)*linesize]; b 217 libavfilter/vsrc_mandelbrot.c }else if(b&&d){ b 223 libavfilter/vsrc_mandelbrot.c b= color[(x+1) + (y-1)*linesize]; b 227 libavfilter/vsrc_mandelbrot.c b= color[(x+1) + (y-1)*linesize]; b 234 libavfilter/vsrc_mandelbrot.c uint8_t bc= b>>s; b 965 libavfilter/vsrc_testsrc.c int x, int y, unsigned r, unsigned g, unsigned b, enum AVPixelFormat fmt, b 972 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_BGR444: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r >> 4) << 8) | ((g >> 4) << 4) | (b >> 4); break; b 973 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_RGB444: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b >> 4) << 8) | ((g >> 4) << 4) | (r >> 4); break; b 974 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_BGR555: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r>>3)<<10) | ((g>>3)<<5) | (b>>3); break; b 975 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_RGB555: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b>>3)<<10) | ((g>>3)<<5) | (r>>3); break; b 976 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_BGR565: ((uint16_t*)(dst + y*dst_linesize))[x] = ((r>>3)<<11) | ((g>>2)<<5) | (b>>3); break; b 977 libavfilter/vsrc_testsrc.c case AV_PIX_FMT_RGB565: ((uint16_t*)(dst + y*dst_linesize))[x] = ((b>>3)<<11) | ((g>>2)<<5) | (r>>3); break; b 980 libavfilter/vsrc_testsrc.c v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)); b 988 libavfilter/vsrc_testsrc.c v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)) + (255U << (rgba_map[A]*8)); b 1003 libavfilter/vsrc_testsrc.c int r = 0, g = 0, b = 0; b 1007 libavfilter/vsrc_testsrc.c else b = c; b 1009 libavfilter/vsrc_testsrc.c rgbtest_put_pixel(frame->data[0], frame->linesize[0], x, y, r, g, b, b 47 libavfilter/vulkan.c .b = VK_COMPONENT_SWIZZLE_IDENTITY, b 131 libavfilter/window_func.h double b = cosh(7.6009022095419887 / (N-1)), sum, t, c, norm = 0; b 133 libavfilter/window_func.h for (c = 1 - 1 / (b*b), n = (N-1) / 2; n >= 0; --n) { b 134 libavfilter/window_func.h for (sum = !n, b = t = j = 1; j <= n && sum != t; b *= (n-j) * (1./j), ++j) b 135 libavfilter/window_func.h t = sum, sum += (b *= c * (N - n - j) * (1./j)); 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 69 libavfilter/yadif_common.c static int checkstride(YADIFContext *yadif, const AVFrame *a, const AVFrame *b) b 73 libavfilter/yadif_common.c if (a->linesize[i] != b->linesize[i]) b 177 libavformat/amr.c const uint8_t *b = p->buf; b 180 libavformat/amr.c mode = b[i] >> 3 & 0x0F; b 181 libavformat/amr.c if (mode < 9 && (b[i] & 0x4) == 0x4) { b 182 libavformat/amr.c int last = b[i]; b 185 libavformat/amr.c if (b[++i] != last) b 233 libavformat/amr.c const uint8_t *b = p->buf; b 236 libavformat/amr.c mode = b[i] >> 3 & 0x0F; b 237 libavformat/amr.c if (mode < 10 && (b[i] & 0x4) == 0x4) { b 238 libavformat/amr.c int last = b[i]; b 241 libavformat/amr.c if (b[++i] != last) b 54 libavformat/apngenc.c size_t b; b 55 libavformat/apngenc.c for (b = 0; b < length; b += AV_RB32(buf + b) + 12) b 56 libavformat/apngenc.c if (AV_RB32(&buf[b + 4]) == tag) b 57 libavformat/apngenc.c return &buf[b]; 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 479 libavformat/avio.h void avio_w8(AVIOContext *s, int b); b 56 libavformat/avio_internal.h void ffio_fill(AVIOContext *s, int b, int count); b 191 libavformat/aviobuf.c void avio_w8(AVIOContext *s, int b) b 193 libavformat/aviobuf.c av_assert2(b>=-128 && b<=255); b 194 libavformat/aviobuf.c *s->buf_ptr++ = b; b 199 libavformat/aviobuf.c void ffio_fill(AVIOContext *s, int b, int count) b 203 libavformat/aviobuf.c memset(s->buf_ptr, b, len); b 65 libavformat/bink.c const uint8_t *b = p->buf; b 69 libavformat/bink.c if (((b[0] == 'B' && b[1] == 'I' && b[2] == 'K' && /* Bink 1 */ b 70 libavformat/bink.c (b[3] == 'b' || b[3] == 'f' || b[3] == 'g' || b[3] == 'h' || b[3] == 'i' || b 71 libavformat/bink.c b[3] == 'k')) || b 72 libavformat/bink.c (b[0] == 'K' && b[1] == 'B' && b[2] == '2' && /* Bink 2 */ b 73 libavformat/bink.c (b[3] == 'a' || b[3] == 'd' || b[3] == 'f' || b[3] == 'g' || b[3] == 'h' || b 74 libavformat/bink.c b[3] == 'i' || b[3] == 'j' || b[3] == 'k'))) && b 75 libavformat/bink.c AV_RL32(b+8) > 0 && // num_frames b 76 libavformat/bink.c AV_RL32(b+20) > 0 && AV_RL32(b+20) <= BINK_MAX_WIDTH && b 77 libavformat/bink.c AV_RL32(b+24) > 0 && AV_RL32(b+24) <= BINK_MAX_HEIGHT && b 78 libavformat/bink.c AV_RL32(b+28) > 0 && AV_RL32(b+32) > 0) // fps num,den b 80 libavformat/bink.c b += SMUSH_BLOCK_SIZE; b 81 libavformat/bink.c } while (smush && b < p->buf + p->buf_size - 32); b 62 libavformat/brstm.c BRSTMDemuxContext *b = s->priv_data; b 64 libavformat/brstm.c av_freep(&b->table); b 65 libavformat/brstm.c av_freep(&b->adpc); b 72 libavformat/brstm.c BRSTMDemuxContext *b = s->priv_data; b 73 libavformat/brstm.c if (b->little_endian) b 81 libavformat/brstm.c BRSTMDemuxContext *b = s->priv_data; b 82 libavformat/brstm.c if (b->little_endian) b 90 libavformat/brstm.c BRSTMDemuxContext *b = s->priv_data; b 113 libavformat/brstm.c b->little_endian = 1; b 188 libavformat/brstm.c case 1: codec = b->little_endian ? b 191 libavformat/brstm.c case 2: codec = b->little_endian ? b 230 libavformat/brstm.c b->current_block = 0; b 231 libavformat/brstm.c b->block_count = read32(s); b 232 libavformat/brstm.c if (b->block_count > UINT16_MAX) { b 233 libavformat/brstm.c av_log(s, AV_LOG_WARNING, "too many blocks: %"PRIu32"\n", b->block_count); b 237 libavformat/brstm.c b->block_size = read32(s); b 238 libavformat/brstm.c if (b->block_size > UINT32_MAX / st->codecpar->channels) b 241 libavformat/brstm.c b->samples_per_block = read32(s); b 242 libavformat/brstm.c b->last_block_used_bytes = read32(s); b 243 libavformat/brstm.c b->last_block_samples = read32(s); b 244 libavformat/brstm.c b->last_block_size = read32(s); b 245 libavformat/brstm.c if (b->last_block_size > UINT32_MAX / st->codecpar->channels) b 247 libavformat/brstm.c if (b->last_block_used_bytes > b->last_block_size) b 263 libavformat/brstm.c b->table = av_mallocz(32 * st->codecpar->channels); b 264 libavformat/brstm.c if (!b->table) b 268 libavformat/brstm.c if (avio_read(s->pb, b->table + ch * 32, 32) != 32) { b 298 libavformat/brstm.c asize = b->block_count * st->codecpar->channels * 4; b 303 libavformat/brstm.c if (b->adpc) { b 307 libavformat/brstm.c b->adpc = av_mallocz(asize); b 308 libavformat/brstm.c if (!b->adpc) { b 317 libavformat/brstm.c b->adpc[i+1] = avio_r8(s->pb); b 318 libavformat/brstm.c b->adpc[i] = avio_r8(s->pb); b 321 libavformat/brstm.c avio_read(s->pb, b->adpc, asize); b 328 libavformat/brstm.c (!b->adpc && (codec == AV_CODEC_ID_ADPCM_THP || b 339 libavformat/brstm.c b->data_start = avio_tell(s->pb); b 361 libavformat/brstm.c BRSTMDemuxContext *b = s->priv_data; b 367 libavformat/brstm.c b->current_block++; b 368 libavformat/brstm.c if (b->current_block == b->block_count) { b 369 libavformat/brstm.c size = b->last_block_used_bytes; b 370 libavformat/brstm.c samples = b->last_block_samples; b 371 libavformat/brstm.c skip = b->last_block_size - b->last_block_used_bytes; b 381 libavformat/brstm.c } else if (b->current_block < b->block_count) { b 382 libavformat/brstm.c size = b->block_size; b 383 libavformat/brstm.c samples = b->samples_per_block; b 392 libavformat/brstm.c if (!b->adpc) { b 396 libavformat/brstm.c if (!b->table) { b 397 libavformat/brstm.c b->table = av_mallocz(32 * par->channels); b 398 libavformat/brstm.c if (!b->table) b 416 libavformat/brstm.c bytestream_put_buffer(&dst, b->table, 32 * par->channels); b 417 libavformat/brstm.c bytestream_put_buffer(&dst, b->adpc + 4 * par->channels * b 418 libavformat/brstm.c (b->current_block - 1), 4 * par->channels); b 446 libavformat/brstm.c BRSTMDemuxContext *b = s->priv_data; b 449 libavformat/brstm.c timestamp /= b->samples_per_block; b 450 libavformat/brstm.c ret = avio_seek(s->pb, b->data_start + timestamp * b->block_size * b 455 libavformat/brstm.c b->current_block = timestamp; b 456 libavformat/brstm.c ff_update_cur_dts(s, st, timestamp * b->samples_per_block); b 380 libavformat/dump.c size_t l, t, r, b; b 382 libavformat/dump.c &l, &t, &r, &b); b 385 libavformat/dump.c l, t, r, b); 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 44 libavformat/fitsdec.c const uint8_t *b = p->buf; b 45 libavformat/fitsdec.c if (!memcmp(b, "SIMPLE = T", 30)) b 268 libavformat/flvenc.c static void put_amf_bool(AVIOContext *pb, int b) b 271 libavformat/flvenc.c avio_w8(pb, !!b); b 145 libavformat/gdv.c unsigned b = avio_r8(pb); b 146 libavformat/gdv.c gdv->pal[i] = 0xFFU << 24 | r << 18 | g << 10 | b << 2; b 89 libavformat/gifdec.c int b = avio_r8(pb); b 90 libavformat/gifdec.c if (b != gif87a_sig[i] && b != gif89a_sig[i]) b 91 libavformat/gifdec.c i = -(b != 'G'); b 40 libavformat/gsmdec.c uint8_t *b = p->buf; b 41 libavformat/gsmdec.c while (b < p->buf + p->buf_size - 32) { b 42 libavformat/gsmdec.c if ((*b & 0xf0) == 0xd0) { b 47 libavformat/gsmdec.c b += 33; b 1760 libavformat/hlsenc.c char b[21]; b 1769 libavformat/hlsenc.c return (HAVE_LIBC_MSVCRT || !strftime(b, sizeof(b), "%s", p) || !strcmp(b, "%s")) ? "-%Y%m%d%H%M%S.m4s" : "-%s.m4s"; b 1771 libavformat/hlsenc.c return (HAVE_LIBC_MSVCRT || !strftime(b, sizeof(b), "%s", p) || !strcmp(b, "%s")) ? "-%Y%m%d%H%M%S.ts" : "-%s.ts"; b 2771 libavformat/hlsenc.c char b[15]; b 2775 libavformat/hlsenc.c if (!strftime(b, sizeof(b), "%Y%m%d%H%M%S", p)) b 2777 libavformat/hlsenc.c hls->start_sequence = strtoll(b, NULL, 10); b 969 libavformat/id3v2.c uint8_t *b = buffer; b 979 libavformat/id3v2.c *b++ = *t++; b 984 libavformat/id3v2.c ffio_init_context(&pb_local, buffer, b - buffer, 0, NULL, NULL, NULL, b 986 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 671 libavformat/img2dec.c const uint8_t *b = p->buf; b 674 libavformat/img2dec.c if (AV_RB16(b) != 0x424d) b 677 libavformat/img2dec.c ihsize = AV_RL32(b+14); b 681 libavformat/img2dec.c if (!AV_RN32(b + 6)) { b 689 libavformat/img2dec.c const uint8_t *b = p->buf; b 691 libavformat/img2dec.c if ( AV_RB64(b) == 0x444453207c000000 b 692 libavformat/img2dec.c && AV_RL32(b + 8) b 693 libavformat/img2dec.c && AV_RL32(b + 12)) b 700 libavformat/img2dec.c const uint8_t *b = p->buf; b 702 libavformat/img2dec.c int is_big = (AV_RN32(b) == AV_RN32("SDPX")); b 711 libavformat/img2dec.c if (is_big || AV_RN32(b) == AV_RN32("XPDS")) b 718 libavformat/img2dec.c const uint8_t *b = p->buf; b 720 libavformat/img2dec.c if (AV_RL32(b) == 20000630) b 727 libavformat/img2dec.c const uint8_t *b = p->buf; b 729 libavformat/img2dec.c if (AV_RB64(b) == 0x0000000c6a502020 || b 730 libavformat/img2dec.c AV_RB32(b) == 0xff4fff51) b 737 libavformat/img2dec.c const uint8_t *b = p->buf; b 740 libavformat/img2dec.c if (AV_RB16(b) != 0xFFD8 || b 741 libavformat/img2dec.c AV_RB32(b) == 0xFFD8FFF7) b 744 libavformat/img2dec.c b += 2; b 747 libavformat/img2dec.c if (b[i] != 0xFF) b 749 libavformat/img2dec.c c = b[i + 1]; b 760 libavformat/img2dec.c i += AV_RB16(&b[i + 2]) + 1; b 766 libavformat/img2dec.c i += AV_RB16(&b[i + 2]) + 1; b 794 libavformat/img2dec.c i += AV_RB16(&b[i + 2]) + 1; b 812 libavformat/img2dec.c const uint8_t *b = p->buf; b 814 libavformat/img2dec.c if (AV_RB32(b) == 0xffd8fff7) b 821 libavformat/img2dec.c const uint8_t *b = p->buf; b 824 libavformat/img2dec.c || b[0] != 10 b 825 libavformat/img2dec.c || b[1] > 5 b 826 libavformat/img2dec.c || b[2] > 1 b 827 libavformat/img2dec.c || av_popcount(b[3]) != 1 || b[3] > 8 b 828 libavformat/img2dec.c || AV_RL16(&b[4]) > AV_RL16(&b[8]) b 829 libavformat/img2dec.c || AV_RL16(&b[6]) > AV_RL16(&b[10]) b 830 libavformat/img2dec.c || b[64]) b 832 libavformat/img2dec.c b += 73; b 833 libavformat/img2dec.c while (++b < p->buf + 128) b 834 libavformat/img2dec.c if (*b) b 842 libavformat/img2dec.c const uint8_t *b = p->buf; b 845 libavformat/img2dec.c && (AV_RB64(b + 520) & 0xFFFFFFFFFFFF) == 0x001102ff0c00 b 846 libavformat/img2dec.c && AV_RB16(b + 520) b 847 libavformat/img2dec.c && AV_RB16(b + 518)) b 849 libavformat/img2dec.c if ( (AV_RB64(b + 8) & 0xFFFFFFFFFFFF) == 0x001102ff0c00 b 850 libavformat/img2dec.c && AV_RB16(b + 8) b 851 libavformat/img2dec.c && AV_RB16(b + 6)) b 858 libavformat/img2dec.c const uint8_t *b = p->buf; b 860 libavformat/img2dec.c if (AV_RL16(b) == 0x1234) b 867 libavformat/img2dec.c const uint8_t *b = p->buf; b 869 libavformat/img2dec.c if (AV_RB64(b) == 0x89504e470d0a1a0a) b 876 libavformat/img2dec.c const uint8_t *b = p->buf; b 880 libavformat/img2dec.c if (AV_RL32(b) == MKTAG('8','B','P','S')) { b 886 libavformat/img2dec.c if ((b[4] == 0) && (b[5] == 1)) {/* version 1 is PSD, version 2 is PSB */ b 892 libavformat/img2dec.c if ((AV_RL32(b+6) == 0) && (AV_RL16(b+10) == 0))/* reserved must be 0 */ b 895 libavformat/img2dec.c color_mode = AV_RB16(b+24); b 904 libavformat/img2dec.c const uint8_t *b = p->buf; b 906 libavformat/img2dec.c if (AV_RB16(b) == 474 && b 907 libavformat/img2dec.c (b[2] & ~1) == 0 && b 908 libavformat/img2dec.c (b[3] & ~3) == 0 && b[3] && b 909 libavformat/img2dec.c (AV_RB16(b + 4) & ~7) == 0 && AV_RB16(b + 4)) b 916 libavformat/img2dec.c const uint8_t *b = p->buf; b 918 libavformat/img2dec.c if (AV_RB32(b) == 0x59a66a95) b 925 libavformat/img2dec.c const uint8_t *b = p->buf; b 930 libavformat/img2dec.c while (b < end) { b 931 libavformat/img2dec.c int inc = ff_subtitles_next_line(b); b 934 libavformat/img2dec.c b += inc; b 935 libavformat/img2dec.c if (b >= end - 4) b 937 libavformat/img2dec.c if (!memcmp(b, "<svg", 4)) b 945 libavformat/img2dec.c const uint8_t *b = p->buf; b 947 libavformat/img2dec.c if (AV_RB32(b) == 0x49492a00 || b 948 libavformat/img2dec.c AV_RB32(b) == 0x4D4D002a) b 955 libavformat/img2dec.c const uint8_t *b = p->buf; b 957 libavformat/img2dec.c if (AV_RB32(b) == 0x52494646 && b 958 libavformat/img2dec.c AV_RB32(b + 8) == 0x57454250) b 965 libavformat/img2dec.c const uint8_t *b = p->buf; b 967 libavformat/img2dec.c return b[0] == 'P' && b[1] == magic + '0'; b 972 libavformat/img2dec.c const uint8_t *b = p->buf; b 974 libavformat/img2dec.c while (b[2] == '\r') b 975 libavformat/img2dec.c b++; b 976 libavformat/img2dec.c if (b[2] == '\n' && (b[3] == '#' || (b[3] >= '0' && b[3] <= '9'))) b 1015 libavformat/img2dec.c const uint8_t *b = p->buf; b 1017 libavformat/img2dec.c if (AV_RB64(b) == 0x2f2a2058504d202a && *(b+8) == '/') b 1024 libavformat/img2dec.c const uint8_t *b = p->buf; b 1028 libavformat/img2dec.c || AV_RB32(b ) < XWD_HEADER_SIZE // header size b 1029 libavformat/img2dec.c || AV_RB32(b + 4) != XWD_VERSION // version b 1030 libavformat/img2dec.c || AV_RB32(b + 8) != XWD_Z_PIXMAP // format b 1031 libavformat/img2dec.c || AV_RB32(b + 12) > 32 || !AV_RB32(b + 12) // depth b 1032 libavformat/img2dec.c || AV_RB32(b + 16) == 0 // width b 1033 libavformat/img2dec.c || AV_RB32(b + 20) == 0 // height b 1034 libavformat/img2dec.c || AV_RB32(b + 28) > 1 // byteorder b 1035 libavformat/img2dec.c || AV_RB32(b + 32) & ~56 || av_popcount(AV_RB32(b + 32)) != 1 // bitmap unit b 1036 libavformat/img2dec.c || AV_RB32(b + 36) > 1 // bitorder b 1037 libavformat/img2dec.c || AV_RB32(b + 40) & ~56 || av_popcount(AV_RB32(b + 40)) != 1 // padding b 1038 libavformat/img2dec.c || AV_RB32(b + 44) > 32 || !AV_RB32(b + 44) // bpp b 1039 libavformat/img2dec.c || AV_RB32(b + 68) > 256) // colours b 1042 libavformat/img2dec.c width = AV_RB32(b + 16); b 1043 libavformat/img2dec.c bpad = AV_RB32(b + 40); b 1044 libavformat/img2dec.c bpp = AV_RB32(b + 44); b 1045 libavformat/img2dec.c lsize = AV_RB32(b + 48); b 25 libavformat/ip.c const struct sockaddr_storage *b) b 27 libavformat/ip.c if (a->ss_family != b->ss_family) b 31 libavformat/ip.c ((const struct sockaddr_in *)b)->sin_addr.s_addr); b 37 libavformat/ip.c const uint8_t *s6_addr_b = ((const struct sockaddr_in6 *)b)->sin6_addr.s6_addr; b 289 libavformat/ipmovie.c unsigned char r, g, b; b 534 libavformat/ipmovie.c b = scratch[j++] * 4; b 535 libavformat/ipmovie.c s->palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); b 619 libavformat/ipmovie.c const uint8_t *b = p->buf; b 622 libavformat/ipmovie.c if (b[0] == signature[0] && memcmp(b, signature, sizeof(signature)) == 0) b 624 libavformat/ipmovie.c b++; b 625 libavformat/ipmovie.c } while (b < b_end); b 138 libavformat/jacosubdec.c int a = 0, b = 0, c = 0, d = 0; b 140 libavformat/jacosubdec.c int n = sscanf(buf, "%d"SSEP"%d"SSEP"%d"SSEP"%d", &a, &b, &c, &d); b 149 libavformat/jacosubdec.c case 4: return sign * ((a*3600 + b*60 + c) * timeres + d); b 150 libavformat/jacosubdec.c case 3: return sign * (( a*60 + b) * timeres + c); b 151 libavformat/jacosubdec.c case 2: return sign * (( a) * timeres + b); b 2167 libavformat/matroskadec.c uint32_t l = 0, t = 0, r = 0, b = 0; b 2186 libavformat/matroskadec.c b = bytestream2_get_be32(&gb); b 2190 libavformat/matroskadec.c if (b >= UINT_MAX - t || r >= UINT_MAX - l) { b 2194 libavformat/matroskadec.c l, t, r, b); b 2202 libavformat/matroskadec.c if (l || t || r || b) b 2250 libavformat/matroskadec.c spherical->bound_bottom = b; b 2307 libavformat/matroskadec.c AVIOContext b; b 2457 libavformat/matroskadec.c ffio_init_context(&b, track->codec_priv.data, b 2460 libavformat/matroskadec.c ret = ff_get_wav_header(s, &b, st->codecpar, track->codec_priv.size, 0); b 2503 libavformat/matroskadec.c ffio_init_context(&b, track->codec_priv.data, b 2506 libavformat/matroskadec.c if (ff_get_qtpalette(codec_id, &b, track->palette)) { b 2611 libavformat/matroskadec.c ffio_init_context(&b, track->codec_priv.data, b 2614 libavformat/matroskadec.c avio_skip(&b, 22); b 2615 libavformat/matroskadec.c flavor = avio_rb16(&b); b 2616 libavformat/matroskadec.c track->audio.coded_framesize = avio_rb32(&b); b 2617 libavformat/matroskadec.c avio_skip(&b, 12); b 2618 libavformat/matroskadec.c track->audio.sub_packet_h = avio_rb16(&b); b 2619 libavformat/matroskadec.c track->audio.frame_size = avio_rb16(&b); b 2620 libavformat/matroskadec.c track->audio.sub_packet_size = avio_rb16(&b); b 29 libavformat/mj2kdec.c const uint8_t *b = p->buf; b 34 libavformat/mj2kdec.c if (AV_RB32(b) == 0xff4fff51){ b 35 libavformat/mj2kdec.c marker_size = AV_RB16(b+4); b 37 libavformat/mj2kdec.c marker = AV_RB8(b+4+marker_size); b 44 libavformat/mj2kdec.c b += 1; b 1216 libavformat/mov.c int a, b, m; b 1225 libavformat/mov.c b = frag_index->nb_items; b 1227 libavformat/mov.c while (b - a > 1) { b 1228 libavformat/mov.c m = (a + b) >> 1; b 1231 libavformat/mov.c b = m; b 1235 libavformat/mov.c return b; b 1272 libavformat/mov.c int a, b, m, m0; b 1285 libavformat/mov.c b = frag_index->nb_items; b 1287 libavformat/mov.c while (b - a > 1) { b 1288 libavformat/mov.c m0 = m = (a + b) >> 1; b 1290 libavformat/mov.c while (m < b && b 1294 libavformat/mov.c if (m < b && frag_time <= timestamp) b 1297 libavformat/mov.c b = m0; b 2256 libavformat/mov.c uint8_t r, g, b; b 2263 libavformat/mov.c b = av_clip_uint8((1164 * (y - 16) + 2018 * (cb - 128)) / 1000); b 2267 libavformat/mov.c return (r << 16) | (g << 8) | b; b 5555 libavformat/mov.c uint32_t l = 0, t = 0, r = 0, b = 0; b 5645 libavformat/mov.c b = avio_rb32(pb); b 5649 libavformat/mov.c if (b >= UINT_MAX - t || r >= UINT_MAX - l) { b 5652 libavformat/mov.c "%"PRIu32",%"PRIu32",%"PRIu32",%"PRIu32"\n", l, t, r, b); b 5656 libavformat/mov.c if (l || t || r || b) b 5681 libavformat/mov.c sc->spherical->bound_bottom = b; b 123 libavformat/movenc.c static int utf8len(const uint8_t *b) b 127 libavformat/movenc.c while (*b) { b 128 libavformat/movenc.c GET_UTF8(val, *b++, return -1;) b 1966 libavformat/movenc.c static inline int64_t rescale_mdcv(AVRational q, int b) b 1968 libavformat/movenc.c return av_rescale(q.num, b, q.den); b 2103 libavformat/movenc.c uint16_t b = rgb & 0xff; b 2107 libavformat/movenc.c avio_wb16(pb, (b << 8) | b); b 2898 libavformat/movenc.c static void write_matrix(AVIOContext *pb, int16_t a, int16_t b, int16_t c, b 2902 libavformat/movenc.c avio_wb32(pb, b << 16); /* 16.16 format */ b 3789 libavformat/movenc.c static int ascii_to_wc(AVIOContext *pb, const uint8_t *b) b 3792 libavformat/movenc.c while (*b) { b 3793 libavformat/movenc.c GET_UTF8(val, *b++, return -1;) b 6184 libavformat/movenc.c uint8_t r, g, b; b 6189 libavformat/movenc.c b = (rgb ) & 0xFF; b 6191 libavformat/movenc.c y = av_clip_uint8(( 16000 + 257 * r + 504 * g + 98 * b)/1000); b 6192 libavformat/movenc.c cb = av_clip_uint8((128000 - 148 * r - 291 * g + 439 * b)/1000); b 6193 libavformat/movenc.c cr = av_clip_uint8((128000 + 439 * r - 368 * g - 71 * b)/1000); b 146 libavformat/mp3dec.c uint8_t b = avio_r8(s->pb); b 149 libavformat/mp3dec.c av_rescale(b, filesize, 256), b 30 libavformat/mpc8.c #define MKMPCTAG(a, b) ((a) | ((b) << 8)) b 132 libavformat/mpegtsenc.c int first, b, len1, left; b 148 libavformat/mpegtsenc.c b = s->pid >> 8; b 150 libavformat/mpegtsenc.c b |= 0x40; b 151 libavformat/mpegtsenc.c *q++ = b; b 389 libavformat/mxfdec.c int i, b; b 391 libavformat/mxfdec.c b = avio_r8(pb); b 392 libavformat/mxfdec.c if (b == key[0]) b 394 libavformat/mxfdec.c else if (b != key[i]) b 436 libavformat/mxfdec.c int a, b, m; b 440 libavformat/mxfdec.c b = mxf->partitions_count; b 442 libavformat/mxfdec.c while (b - a > 1) { b 443 libavformat/mxfdec.c m = (a + b) >> 1; b 448 libavformat/mxfdec.c b = m; b 1508 libavformat/mxfdec.c int a, b, m, m0; b 1514 libavformat/mxfdec.c b = mxf->partitions_count; b 1516 libavformat/mxfdec.c while (b - a > 1) { b 1517 libavformat/mxfdec.c m0 = m = (a + b) >> 1; b 1519 libavformat/mxfdec.c while (m < b && mxf->partitions[m].body_sid != body_sid) b 1522 libavformat/mxfdec.c if (m < b && mxf->partitions[m].body_offset <= offset) b 1525 libavformat/mxfdec.c b = m0; b 3283 libavformat/mxfdec.c int64_t a, b, m, offset; b 3290 libavformat/mxfdec.c b = track->original_duration; b 3292 libavformat/mxfdec.c while (b - a > 1) { b 3293 libavformat/mxfdec.c m = (a + b) >> 1; b 3299 libavformat/mxfdec.c b = m; b 3302 libavformat/mxfdec.c *edit_unit_out = b; b 57 libavformat/network.h #define getsockopt(a, b, c, d, e) getsockopt(a, b, c, (char*) d, e) b 58 libavformat/network.h #define setsockopt(a, b, c, d, e) setsockopt(a, b, c, (const char*) d, e) b 271 libavformat/nut.c int ff_nut_sp_pos_cmp(const void *a, const void *b) b 273 libavformat/nut.c const Syncpoint *va = a, *vb = b; b 277 libavformat/nut.c int ff_nut_sp_pts_cmp(const void *a, const void *b) b 279 libavformat/nut.c const Syncpoint *va = a, *vb = b; b 135 libavformat/nut.h int ff_nut_sp_pos_cmp(const void *a, const void *b); b 136 libavformat/nut.h int ff_nut_sp_pts_cmp(const void *a, const void *b); b 242 libavformat/os_support.h #define mkdir(a, b) win32_mkdir(a) b 180 libavformat/prompeg.c uint8_t *b; b 196 libavformat/prompeg.c b = *bitstring; b 199 libavformat/prompeg.c b[0] = buf[0] & 0x3f; b 201 libavformat/prompeg.c b[1] = buf[1]; b 203 libavformat/prompeg.c b[2] = buf[4]; b 204 libavformat/prompeg.c b[3] = buf[5]; b 205 libavformat/prompeg.c b[4] = buf[6]; b 206 libavformat/prompeg.c b[5] = buf[7]; b 211 libavformat/prompeg.c AV_WB16(b + 6, s->length_recovery); b 213 libavformat/prompeg.c memcpy(b + 8, buf + 12, s->length_recovery); b 222 libavformat/prompeg.c uint8_t *b = fec->bitstring; b 229 libavformat/prompeg.c buf[0] = 0x80 | (b[0] & 0x3f); b 231 libavformat/prompeg.c buf[1] = (b[1] & 0x80) | PROMPEG_RTP_PT; b 241 libavformat/prompeg.c buf[14] = b[6]; b 242 libavformat/prompeg.c buf[15] = b[7]; b 244 libavformat/prompeg.c buf[16] = 0x80 | b[1]; b 250 libavformat/prompeg.c buf[20] = b[2]; b 251 libavformat/prompeg.c buf[21] = b[3]; b 252 libavformat/prompeg.c buf[22] = b[4]; b 253 libavformat/prompeg.c buf[23] = b[5]; b 263 libavformat/prompeg.c memcpy(buf + 28, b + 8, s->length_recovery); b 52 libavformat/qtpalette.c uint32_t r, g, b; b 63 libavformat/qtpalette.c r = g = b = color_index; b 64 libavformat/qtpalette.c palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); b 86 libavformat/qtpalette.c b = color_table[i * 3 + 2]; b 87 libavformat/qtpalette.c palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); b 105 libavformat/qtpalette.c b = avio_r8(pb); b 107 libavformat/qtpalette.c palette[i] = (0xFFU << 24) | (r << 16) | (g << 8) | (b); 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 75 libavformat/rtmpdh.c #define bn_cmp(a, b) mpz_cmp(a, b) b 128 libavformat/rtmpdh.c #define bn_cmp(a, b) gcry_mpi_cmp(a, b) b 146 libavformat/rtmpdh.c #define bn_cmp(a, b) BN_cmp(a, b) b 180 libavformat/rtmpdh.c #define bn_cmp(a, b) mbedtls_mpi_cmp_mpi(a, b) b 125 libavformat/rtpdec_qt.c #define MKTAG16(a,b) MKTAG(a,b,0,0) b 146 libavformat/subtitles.c static int cmp_pkt_sub_ts_pos(const void *a, const void *b) b 149 libavformat/subtitles.c const AVPacket *s2 = b; b 155 libavformat/subtitles.c static int cmp_pkt_sub_pos_ts(const void *a, const void *b) b 158 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 154 libavformat/tls_openssl.c static int url_bio_create(BIO *b) b 157 libavformat/tls_openssl.c BIO_set_init(b, 1); b 158 libavformat/tls_openssl.c BIO_set_data(b, NULL); b 159 libavformat/tls_openssl.c BIO_set_flags(b, 0); b 161 libavformat/tls_openssl.c b->init = 1; b 162 libavformat/tls_openssl.c b->ptr = NULL; b 163 libavformat/tls_openssl.c b->flags = 0; b 168 libavformat/tls_openssl.c static int url_bio_destroy(BIO *b) b 179 libavformat/tls_openssl.c static int url_bio_bread(BIO *b, char *buf, int len) b 181 libavformat/tls_openssl.c URLContext *h = GET_BIO_DATA(b); b 185 libavformat/tls_openssl.c BIO_clear_retry_flags(b); b 187 libavformat/tls_openssl.c BIO_set_retry_read(b); b 193 libavformat/tls_openssl.c static int url_bio_bwrite(BIO *b, const char *buf, int len) b 195 libavformat/tls_openssl.c URLContext *h = GET_BIO_DATA(b); b 199 libavformat/tls_openssl.c BIO_clear_retry_flags(b); b 201 libavformat/tls_openssl.c BIO_set_retry_write(b); b 207 libavformat/tls_openssl.c static long url_bio_ctrl(BIO *b, int cmd, long num, void *ptr) b 210 libavformat/tls_openssl.c BIO_clear_retry_flags(b); b 216 libavformat/tls_openssl.c static int url_bio_bputs(BIO *b, const char *str) b 218 libavformat/tls_openssl.c return url_bio_bwrite(b, str, strlen(str)); 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 2057 libavformat/utils.c int a, b, m; b 2061 libavformat/utils.c b = nb_entries; b 2064 libavformat/utils.c if (b && entries[b - 1].timestamp < wanted_timestamp) b 2065 libavformat/utils.c a = b - 1; b 2067 libavformat/utils.c while (b - a > 1) { b 2068 libavformat/utils.c m = (a + b) >> 1; b 2071 libavformat/utils.c while ((entries[m].flags & AVINDEX_DISCARD_FRAME) && m < b && m < nb_entries - 1) { b 2073 libavformat/utils.c if (m == b && entries[m].timestamp >= wanted_timestamp) { b 2074 libavformat/utils.c m = b - 1; b 2081 libavformat/utils.c b = m; b 2085 libavformat/utils.c m = (flags & AVSEEK_FLAG_BACKWARD) ? a : b; b 100 libavutil/aes.c static inline int mix_core(uint32_t multbl[][256], int a, int b, int c, int d) b 103 libavutil/aes.c return multbl[0][a] ^ ROT(multbl[0][b], 8) ^ ROT(multbl[0][c], 16) ^ ROT(multbl[0][d], 24); b 105 libavutil/aes.c return multbl[0][a] ^ multbl[1][b] ^ multbl[2][c] ^ multbl[3][d]; 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 98 libavutil/arm/intmath.h static av_always_inline int av_sat_sub32_arm(int a, int b) b 101 libavutil/arm/intmath.h __asm__ ("qsub %0, %1, %2" : "=r"(r) : "r"(a), "r"(b)); b 106 libavutil/arm/intmath.h static av_always_inline int av_sat_dsub32_arm(int a, int b) b 109 libavutil/arm/intmath.h __asm__ ("qdsub %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 230 libavutil/avstring.c c2 = av_tolower(*b++); b 261 libavutil/avstring.h int av_strcasecmp(const char *a, const char *b); b 267 libavutil/avstring.h int av_strncasecmp(const char *a, const char *b, size_t n); b 109 libavutil/buffer.c AVBuffer *b; b 111 libavutil/buffer.c b = (*dst)->buffer; b 119 libavutil/buffer.c if (atomic_fetch_sub_explicit(&b->refcount, 1, memory_order_acq_rel) == 1) { b 120 libavutil/buffer.c b->free(b->opaque, b->data); b 121 libavutil/buffer.c av_freep(&b); b 64 libavutil/color_utils.c const double b = BT709_beta; b 67 libavutil/color_utils.c : ( b > Lc) ? 4.500 * Lc b 84 libavutil/color_utils.c const double b = 0.0228; b 87 libavutil/color_utils.c : ( b > Lc) ? 4.000 * Lc b 110 libavutil/color_utils.c const double b = BT709_beta; b 112 libavutil/color_utils.c return (-b >= Lc) ? -a * pow(-Lc, 0.45) + (a - 1.0) b 113 libavutil/color_utils.c : ( b > Lc) ? 4.500 * Lc b 120 libavutil/color_utils.c const double b = BT709_beta; b 123 libavutil/color_utils.c : ( b > Lc) ? 4.500 * Lc b 130 libavutil/color_utils.c const double b = 0.0031308; b 133 libavutil/color_utils.c : ( b > Lc) ? 12.92 * Lc b 164 libavutil/color_utils.c const double b = 0.28466892; b 167 libavutil/color_utils.c (Lc <= 1.0 / 12.0 ? sqrt(3.0 * Lc) : a * log(12.0 * Lc - b) + c); b 55 libavutil/colorspace.h #define YUV_TO_RGB2_CCIR(r, g, b, y1)\ b 60 libavutil/colorspace.h b = cm[(y + b_add) >> SCALEBITS];\ b 72 libavutil/colorspace.h #define YUV_TO_RGB2(r, g, b, y1)\ b 77 libavutil/colorspace.h b = cm[(y + b_add) >> SCALEBITS];\ b 98 libavutil/colorspace.h #define RGB_TO_Y_CCIR(r, g, b) \ b 100 libavutil/colorspace.h FIX(0.11400*219.0/255.0) * (b) + (ONE_HALF + (16 << SCALEBITS))) >> SCALEBITS) b 110 libavutil/colorspace.h #define RGB_TO_Y_JPEG(r, g, b) \ b 112 libavutil/colorspace.h FIX(0.11400) * (b) + (ONE_HALF)) >> SCALEBITS, 255)) b 126 libavutil/colorspace.h #define RGB_TO_Y_BT709(r, g, b) \ b 128 libavutil/colorspace.h FIX(0.07220*219.0/255.0) * (b) + (ONE_HALF + (16 << SCALEBITS))) >> SCALEBITS) b 138 libavutil/colorspace.h #define RGB_TO_Y_BT709_FULL(r, g, b) \ b 140 libavutil/colorspace.h FIX(0.07220) * (b) + (ONE_HALF)) >> SCALEBITS, 255)) b 54 libavutil/common.h #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b)) b 56 libavutil/common.h #define ROUNDED_DIV(a,b) (((a)>=0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) b 58 libavutil/common.h #define AV_CEIL_RSHIFT(a,b) (!av_builtin_constant_p(b) ? -((-(a)) >> (b)) \ b 59 libavutil/common.h : ((a) + (1<<(b)) - 1) >> (b)) b 63 libavutil/common.h #define FFUDIV(a,b) (((a)>0 ?(a):(a)-(b)+1) / (b)) b 64 libavutil/common.h #define FFUMOD(a,b) ((a)-(b)*FFUDIV(a,b)) b 94 libavutil/common.h #define FFMAX(a,b) ((a) > (b) ? (a) : (b)) b 95 libavutil/common.h #define FFMAX3(a,b,c) FFMAX(FFMAX(a,b),c) b 96 libavutil/common.h #define FFMIN(a,b) ((a) > (b) ? (b) : (a)) b 97 libavutil/common.h #define FFMIN3(a,b,c) FFMIN(FFMIN(a,b),c) b 99 libavutil/common.h #define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0) b 253 libavutil/common.h static av_always_inline int av_sat_add32_c(int a, int b) b 255 libavutil/common.h return av_clipl_int32((int64_t)a + b); b 265 libavutil/common.h static av_always_inline int av_sat_dadd32_c(int a, int b) b 267 libavutil/common.h return av_sat_add32(a, av_sat_add32(b, b)); b 277 libavutil/common.h static av_always_inline int av_sat_sub32_c(int a, int b) b 279 libavutil/common.h return av_clipl_int32((int64_t)a - b); b 289 libavutil/common.h static av_always_inline int av_sat_dsub32_c(int a, int b) b 291 libavutil/common.h return av_sat_sub32(a, av_sat_add32(b, b)); b 301 libavutil/common.h static av_always_inline int64_t av_sat_add64_c(int64_t a, int64_t b) { b 304 libavutil/common.h return !__builtin_add_overflow(a, b, &tmp) ? tmp : (tmp < 0 ? INT64_MAX : INT64_MIN); b 306 libavutil/common.h if (b >= 0 && a >= INT64_MAX - b) b 308 libavutil/common.h if (b <= 0 && a <= INT64_MIN - b) b 310 libavutil/common.h return a + b; b 321 libavutil/common.h static av_always_inline int64_t av_sat_sub64_c(int64_t a, int64_t b) { b 324 libavutil/common.h return !__builtin_sub_overflow(a, b, &tmp) ? tmp : (tmp < 0 ? INT64_MAX : INT64_MIN); b 326 libavutil/common.h if (b <= 0 && a >= INT64_MAX + b) b 328 libavutil/common.h if (b >= 0 && a <= INT64_MIN + b) b 330 libavutil/common.h return a - b; b 406 libavutil/common.h #define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((unsigned)(d) << 24)) b 407 libavutil/common.h #define MKBETAG(a,b,c,d) ((d) | ((c) << 8) | ((b) << 16) | ((unsigned)(a) << 24)) b 30 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 44 libavutil/des.c #define T(a, b, c, d) 32 - a, 32 - b, 32 - c, 32 - d b 58 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 71 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 51 libavutil/eval.c double (* const *funcs2)(void *, double a, double b); // NULL terminated 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 34 libavutil/integer.c AVInteger av_add_i(AVInteger a, AVInteger b){ b 38 libavutil/integer.c carry= (carry>>16) + a.v[i] + b.v[i]; b 44 libavutil/integer.c AVInteger av_sub_i(AVInteger a, AVInteger b){ b 48 libavutil/integer.c carry= (carry>>16) + a.v[i] - b.v[i]; b 64 libavutil/integer.c AVInteger av_mul_i(AVInteger a, AVInteger b){ b 68 libavutil/integer.c int nb= (av_log2_i(b)+16) >> 4; b 77 libavutil/integer.c carry= (carry>>16) + out.v[j] + a.v[i]*(unsigned)b.v[j-i]; b 85 libavutil/integer.c int av_cmp_i(AVInteger a, AVInteger b){ b 87 libavutil/integer.c int v= (int16_t)a.v[AV_INTEGER_SIZE-1] - (int16_t)b.v[AV_INTEGER_SIZE-1]; b 91 libavutil/integer.c int v= a.v[i] - b.v[i]; b 111 libavutil/integer.c AVInteger av_mod_i(AVInteger *quot, AVInteger a, AVInteger b){ b 112 libavutil/integer.c int i= av_log2_i(a) - av_log2_i(b); b 117 libavutil/integer.c a = av_mod_i(quot, av_sub_i(zero_i, a), b); b 122 libavutil/integer.c av_assert2((int16_t)a.v[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b.v[AV_INTEGER_SIZE-1] >= 0); b 123 libavutil/integer.c av_assert2(av_log2_i(b)>=0); b 126 libavutil/integer.c b= av_shr_i(b, -i); b 132 libavutil/integer.c if(av_cmp_i(a, b) >= 0){ b 133 libavutil/integer.c a= av_sub_i(a, b); b 136 libavutil/integer.c b= av_shr_i(b, 1); b 141 libavutil/integer.c AVInteger av_div_i(AVInteger a, AVInteger b){ b 143 libavutil/integer.c av_mod_i(", 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 616 libavutil/intreadwrite.h #define AV_SWAP(n, a, b) FFSWAP(av_alias##n, *(av_alias##n*)(a), *(av_alias##n*)(b)) b 619 libavutil/intreadwrite.h # define AV_SWAP64(a, b) AV_SWAP(64, a, b) b 66 libavutil/lfg.h unsigned int b= c->state[(c->index-24) & 63]; b 67 libavutil/lfg.h a = 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 37 libavutil/mathematics.c int64_t av_gcd(int64_t a, int64_t b) { b 41 libavutil/mathematics.c return b; b 42 libavutil/mathematics.c if (b == 0) b 45 libavutil/mathematics.c zb = ff_ctzll(b); b 48 libavutil/mathematics.c v = llabs(b >> zb); b 58 libavutil/mathematics.c int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) b 62 libavutil/mathematics.c av_assert2(b >=0); b 65 libavutil/mathematics.c if (c <= 0 || b < 0 || !((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rnd&~AV_ROUND_PASS_MINMAX)!=4)) b 75 libavutil/mathematics.c return -(uint64_t)av_rescale_rnd(-FFMAX(a, -INT64_MAX), b, c, rnd ^ ((rnd >> 1) & 1)); b 82 libavutil/mathematics.c if (b <= INT_MAX && c <= INT_MAX) { b 84 libavutil/mathematics.c return (a * b + r) / c; b 87 libavutil/mathematics.c int64_t a2 = (a % c * b + r) / c; b 88 libavutil/mathematics.c if (ad >= INT32_MAX && b && ad > (INT64_MAX - a2) / b) b 90 libavutil/mathematics.c return ad * b + a2; b 96 libavutil/mathematics.c uint64_t b0 = b & 0xFFFFFFFF; b 97 libavutil/mathematics.c uint64_t b1 = b >> 32; b 121 libavutil/mathematics.c ai = av_mul_i(av_int2i(a), av_int2i(b)); b 129 libavutil/mathematics.c int64_t av_rescale(int64_t a, int64_t b, int64_t c) b 131 libavutil/mathematics.c return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF); b 137 libavutil/mathematics.c int64_t b = bq.num * (int64_t)cq.den; b 139 libavutil/mathematics.c return av_rescale_rnd(a, b, c, rnd); b 150 libavutil/mathematics.c int64_t b = tb_b.num * (int64_t)tb_a.den; b 151 libavutil/mathematics.c if ((FFABS(ts_a)|a|FFABS(ts_b)|b) <= INT_MAX) b 152 libavutil/mathematics.c return (ts_a*a > ts_b*b) - (ts_a*a < ts_b*b); b 153 libavutil/mathematics.c if (av_rescale_rnd(ts_a, a, b, AV_ROUND_DOWN) < ts_b) b 155 libavutil/mathematics.c if (av_rescale_rnd(ts_b, b, a, AV_ROUND_DOWN) < ts_a) b 160 libavutil/mathematics.c int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod) b 162 libavutil/mathematics.c int64_t c = (a - b) & (mod - 1); b 169 libavutil/mathematics.c int64_t a, b, this; b 181 libavutil/mathematics.c b = (av_rescale_q_rnd(2*in_ts+1, in_tb, fs_tb, AV_ROUND_UP )+1)>>1; b 182 libavutil/mathematics.c if (*last < 2*a - b || *last > 2*b - a) b 185 libavutil/mathematics.c this = av_clip64(*last, a, b); b 118 libavutil/mathematics.h int64_t av_const av_gcd(int64_t a, int64_t b); b 130 libavutil/mathematics.h int64_t av_rescale(int64_t a, int64_t b, int64_t c) av_const; b 140 libavutil/mathematics.h int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) av_const; b 195 libavutil/mathematics.h int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod); b 82 libavutil/md5.c #define CORE(i, a, b, c, d) \ b 89 libavutil/md5.c a += (d ^ (b & (c ^ d))) + AV_RL32(X+( i & 15));\ b 91 libavutil/md5.c a += ((d & b) | (~d & c)) + AV_RL32(X+((1 + 5*i) & 15));\ b 94 libavutil/md5.c a += (b ^ c ^ d) + AV_RL32(X+((5 + 3*i) & 15));\ b 96 libavutil/md5.c a += (c ^ (b | ~d)) + AV_RL32(X+(( 7*i) & 15));\ b 98 libavutil/md5.c a = b + (a << t | a >> (32 - t)); \ b 106 libavutil/md5.c uint32_t a, b, c, d, t; b 110 libavutil/md5.c b = ABCD[2]; b 118 libavutil/md5.c CORE(i, a, b, c, d); b 121 libavutil/md5.c c = b; b 122 libavutil/md5.c b = a; b 127 libavutil/md5.c CORE(i, a, b, c, d); CORE((i + 1), d, a, b, c); \ b 128 libavutil/md5.c CORE((i + 2), c, d, a, b); CORE((i + 3), b, c, d, a) b 138 libavutil/md5.c ABCD[2] += b; b 365 libavutil/mem.c uint32_t b = v << 16 | v >> 8; b 370 libavutil/mem.c uint32_t b = v >> 8 | v << 16; b 376 libavutil/mem.c AV_WN32(dst + 4, b); b 389 libavutil/mem.c AV_WN32(dst, b); b 669 libavutil/mem.h static inline int av_size_mult(size_t a, size_t b, size_t *r) b 671 libavutil/mem.h size_t t = a * b; b 674 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 201 libavutil/opt.c int b = hexchar2int(*val++); b 202 libavutil/opt.c if (a < 0 || b < 0) { b 206 libavutil/opt.c *ptr++ = (a << 4) | b; b 67 libavutil/ppc/util_altivec.h #define vcprm(a,b,c,d) (const vec_u8){WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d} b 77 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 84 libavutil/ppc/util_altivec.h #define TRANSPOSE8(a,b,c,d,e,f,g,h) \ b 91 libavutil/ppc/util_altivec.h C1 = vec_mergeh (b, f); \ b 92 libavutil/ppc/util_altivec.h D1 = vec_mergel (b, f); \ b 108 libavutil/ppc/util_altivec.h b = vec_mergel (A2, E2); \ b 119 libavutil/ppc/util_altivec.h #define VEC_LD(offset,b) \ b 120 libavutil/ppc/util_altivec.h vec_perm(vec_ld(offset, b), vec_ld((offset)+15, b), vec_lvsl(offset, b)) b 122 libavutil/ppc/util_altivec.h #define VEC_LD(offset,b) \ b 123 libavutil/ppc/util_altivec.h vec_vsx_ld(offset, b) b 139 libavutil/ppc/util_altivec.h vec_u8 b = vec_ld(offset + 15, src); b 140 libavutil/ppc/util_altivec.h return vec_perm(a, b, perm_vec); b 143 libavutil/ppc/util_altivec.h #define unaligned_load(a,b) VEC_LD(a,b) b 144 libavutil/ppc/util_altivec.h #define load_with_perm_vec(a,b,c) VEC_LD(a,b) b 153 libavutil/ppc/util_altivec.h #define vec_unaligned_load(b) VEC_LD(0, b) b 156 libavutil/ppc/util_altivec.h #define VEC_MERGEH(a, b) vec_mergeh(a, b) b 157 libavutil/ppc/util_altivec.h #define VEC_MERGEL(a, b) vec_mergel(a, b) b 159 libavutil/ppc/util_altivec.h #define VEC_MERGEH(a, b) vec_mergeh(b, a) b 160 libavutil/ppc/util_altivec.h #define VEC_MERGEL(a, b) vec_mergel(b, a) b 164 libavutil/ppc/util_altivec.h #define VEC_ST(a,b,c) vec_st(a,b,c) b 166 libavutil/ppc/util_altivec.h #define VEC_ST(a,b,c) vec_vsx_st(a,b,c) b 170 libavutil/ppc/util_altivec.h #define VEC_SPLAT16(a,b) vec_splat((vec_s16)(a), b) b 172 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 176 libavutil/ppc/util_altivec.h #define VEC_SLD16(a,b,c) vec_sld(a, b, c) b 178 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 131 libavutil/rational.c int64_t b = 2 * (int64_t)q1.den * q2.den; b 134 libavutil/rational.c int64_t x_up = av_rescale_rnd(a, q.den, b, AV_ROUND_UP); b 137 libavutil/rational.c int64_t x_down = av_rescale_rnd(a, q.den, b, AV_ROUND_DOWN); b 186 libavutil/rational.c AVRational av_gcd_q(AVRational a, AVRational b, int max_den, AVRational def) b 190 libavutil/rational.c gcd = av_gcd(a.den, b.den); b 191 libavutil/rational.c lcm = (a.den / gcd) * b.den; b 192 libavutil/rational.c return lcm < max_den ? av_make_q(av_gcd(a.num, b.num), lcm) : def; b 89 libavutil/rational.h static inline int av_cmp_q(AVRational a, AVRational b){ b 90 libavutil/rational.h const int64_t tmp= a.num * (int64_t)b.den - b.num * (int64_t)a.den; b 92 libavutil/rational.h if(tmp) return (int)((tmp ^ a.den ^ b.den)>>63)|1; b 93 libavutil/rational.h else if(b.den && a.den) return 0; b 94 libavutil/rational.h else if(a.num && b.num) return (a.num>>31) - (b.num>>31); b 128 libavutil/rational.h AVRational av_mul_q(AVRational b, AVRational c) av_const; b 136 libavutil/rational.h AVRational av_div_q(AVRational b, AVRational c) av_const; b 144 libavutil/rational.h AVRational av_add_q(AVRational b, AVRational c) av_const; b 152 libavutil/rational.h AVRational av_sub_q(AVRational b, AVRational c) av_const; b 214 libavutil/rational.h AVRational av_gcd_q(AVRational a, AVRational b, int max_den, AVRational def); b 90 libavutil/ripemd.c #define ROUND128_0_TO_15(a,b,c,d,e,f,g,h) \ b 91 libavutil/ripemd.c a = rol(a + (( b ^ c ^ d) + block[WA[n]]), ROTA[n]); \ b 95 libavutil/ripemd.c #define ROUND128_16_TO_31(a,b,c,d,e,f,g,h) \ b 96 libavutil/ripemd.c a = rol(a + ((((c ^ d) & b) ^ d) + block[WA[n]] + KA[0]), ROTA[n]); \ b 100 libavutil/ripemd.c #define ROUND128_32_TO_47(a,b,c,d,e,f,g,h) \ b 101 libavutil/ripemd.c a = rol(a + (((~c | b) ^ d) + block[WA[n]] + KA[1]), ROTA[n]); \ b 105 libavutil/ripemd.c #define ROUND128_48_TO_63(a,b,c,d,e,f,g,h) \ b 106 libavutil/ripemd.c a = rol(a + ((((b ^ c) & d) ^ c) + block[WA[n]] + KA[2]), ROTA[n]); \ b 111 libavutil/ripemd.c ROUND128_0_TO_15(a,b,c,d,e,f,g,h); \ b 112 libavutil/ripemd.c ROUND128_0_TO_15(d,a,b,c,h,e,f,g); \ b 113 libavutil/ripemd.c ROUND128_0_TO_15(c,d,a,b,g,h,e,f); \ b 114 libavutil/ripemd.c ROUND128_0_TO_15(b,c,d,a,f,g,h,e) b 117 libavutil/ripemd.c ROUND128_16_TO_31(a,b,c,d,e,f,g,h); \ b 118 libavutil/ripemd.c ROUND128_16_TO_31(d,a,b,c,h,e,f,g); \ b 119 libavutil/ripemd.c ROUND128_16_TO_31(c,d,a,b,g,h,e,f); \ b 120 libavutil/ripemd.c ROUND128_16_TO_31(b,c,d,a,f,g,h,e) b 123 libavutil/ripemd.c ROUND128_32_TO_47(a,b,c,d,e,f,g,h); \ b 124 libavutil/ripemd.c ROUND128_32_TO_47(d,a,b,c,h,e,f,g); \ b 125 libavutil/ripemd.c ROUND128_32_TO_47(c,d,a,b,g,h,e,f); \ b 126 libavutil/ripemd.c ROUND128_32_TO_47(b,c,d,a,f,g,h,e) b 129 libavutil/ripemd.c ROUND128_48_TO_63(a,b,c,d,e,f,g,h); \ b 130 libavutil/ripemd.c ROUND128_48_TO_63(d,a,b,c,h,e,f,g); \ b 131 libavutil/ripemd.c ROUND128_48_TO_63(c,d,a,b,g,h,e,f); \ b 132 libavutil/ripemd.c ROUND128_48_TO_63(b,c,d,a,f,g,h,e) b 136 libavutil/ripemd.c uint32_t a, b, c, d, e, f, g, h, av_unused t; b 141 libavutil/ripemd.c b = f = state[1]; b 151 libavutil/ripemd.c ROUND128_0_TO_15(a,b,c,d,e,f,g,h); b 152 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 157 libavutil/ripemd.c ROUND128_16_TO_31(a,b,c,d,e,f,g,h); b 158 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 163 libavutil/ripemd.c ROUND128_32_TO_47(a,b,c,d,e,f,g,h); b 164 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 169 libavutil/ripemd.c ROUND128_48_TO_63(a,b,c,d,e,f,g,h); b 170 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 187 libavutil/ripemd.c state[3] = state[0] + b + g; b 193 libavutil/ripemd.c uint32_t a, b, c, d, e, f, g, h, av_unused t; b 197 libavutil/ripemd.c a = state[0]; b = state[1]; c = state[2]; d = state[3]; b 206 libavutil/ripemd.c ROUND128_0_TO_15(a,b,c,d,e,f,g,h); b 207 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 213 libavutil/ripemd.c ROUND128_16_TO_31(a,b,c,d,e,f,g,h); b 214 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 217 libavutil/ripemd.c FFSWAP(uint32_t, b, f); b 220 libavutil/ripemd.c ROUND128_32_TO_47(a,b,c,d,e,f,g,h); b 221 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 227 libavutil/ripemd.c ROUND128_48_TO_63(a,b,c,d,e,f,g,h); b 228 libavutil/ripemd.c t = d; d = c; c = b; b = a; a = t; b 238 libavutil/ripemd.c FFSWAP(uint32_t, b, f); b 247 libavutil/ripemd.c state[0] += a; state[1] += b; state[2] += c; state[3] += d; b 256 libavutil/ripemd.c #define ROUND160_0_TO_15(a,b,c,d,e,f,g,h,i,j) \ b 257 libavutil/ripemd.c a = rol(a + (( b ^ c ^ d) + block[WA[n]]), ROTA[n]) + e; \ b 261 libavutil/ripemd.c #define ROUND160_16_TO_31(a,b,c,d,e,f,g,h,i,j) \ b 262 libavutil/ripemd.c a = rol(a + ((((c ^ d) & b) ^ d) + block[WA[n]] + KA[0]), ROTA[n]) + e; \ b 266 libavutil/ripemd.c #define ROUND160_32_TO_47(a,b,c,d,e,f,g,h,i,j) \ b 267 libavutil/ripemd.c a = rol(a + (((~c | b) ^ d) + block[WA[n]] + KA[1]), ROTA[n]) + e; \ b 271 libavutil/ripemd.c #define ROUND160_48_TO_63(a,b,c,d,e,f,g,h,i,j) \ b 272 libavutil/ripemd.c a = rol(a + ((((b ^ c) & d) ^ c) + block[WA[n]] + KA[2]), ROTA[n]) + e; \ b 276 libavutil/ripemd.c #define ROUND160_64_TO_79(a,b,c,d,e,f,g,h,i,j) \ b 277 libavutil/ripemd.c a = rol(a + (((~d | c) ^ b) + block[WA[n]] + KA[3]), ROTA[n]) + e; \ b 282 libavutil/ripemd.c ROUND160_0_TO_15(a,b,c,d,e,f,g,h,i,j); \ b 283 libavutil/ripemd.c ROUND160_0_TO_15(e,a,b,c,d,j,f,g,h,i); \ b 284 libavutil/ripemd.c ROUND160_0_TO_15(d,e,a,b,c,i,j,f,g,h); \ b 285 libavutil/ripemd.c ROUND160_0_TO_15(c,d,e,a,b,h,i,j,f,g); \ b 286 libavutil/ripemd.c ROUND160_0_TO_15(b,c,d,e,a,g,h,i,j,f) b 289 libavutil/ripemd.c ROUND160_16_TO_31(e,a,b,c,d,j,f,g,h,i); \ b 290 libavutil/ripemd.c ROUND160_16_TO_31(d,e,a,b,c,i,j,f,g,h); \ b 291 libavutil/ripemd.c ROUND160_16_TO_31(c,d,e,a,b,h,i,j,f,g); \ b 292 libavutil/ripemd.c ROUND160_16_TO_31(b,c,d,e,a,g,h,i,j,f); \ b 293 libavutil/ripemd.c ROUND160_16_TO_31(a,b,c,d,e,f,g,h,i,j) b 296 libavutil/ripemd.c ROUND160_32_TO_47(d,e,a,b,c,i,j,f,g,h); \ b 297 libavutil/ripemd.c ROUND160_32_TO_47(c,d,e,a,b,h,i,j,f,g); \ b 298 libavutil/ripemd.c ROUND160_32_TO_47(b,c,d,e,a,g,h,i,j,f); \ b 299 libavutil/ripemd.c ROUND160_32_TO_47(a,b,c,d,e,f,g,h,i,j); \ b 300 libavutil/ripemd.c ROUND160_32_TO_47(e,a,b,c,d,j,f,g,h,i) b 303 libavutil/ripemd.c ROUND160_48_TO_63(c,d,e,a,b,h,i,j,f,g); \ b 304 libavutil/ripemd.c ROUND160_48_TO_63(b,c,d,e,a,g,h,i,j,f); \ b 305 libavutil/ripemd.c ROUND160_48_TO_63(a,b,c,d,e,f,g,h,i,j); \ b 306 libavutil/ripemd.c ROUND160_48_TO_63(e,a,b,c,d,j,f,g,h,i); \ b 307 libavutil/ripemd.c ROUND160_48_TO_63(d,e,a,b,c,i,j,f,g,h) b 310 libavutil/ripemd.c ROUND160_64_TO_79(b,c,d,e,a,g,h,i,j,f); \ b 311 libavutil/ripemd.c ROUND160_64_TO_79(a,b,c,d,e,f,g,h,i,j); \ b 312 libavutil/ripemd.c ROUND160_64_TO_79(e,a,b,c,d,j,f,g,h,i); \ b 313 libavutil/ripemd.c ROUND160_64_TO_79(d,e,a,b,c,i,j,f,g,h); \ b 314 libavutil/ripemd.c ROUND160_64_TO_79(c,d,e,a,b,h,i,j,f,g) b 318 libavutil/ripemd.c uint32_t a, b, c, d, e, f, g, h, i, j, av_unused t; b 323 libavutil/ripemd.c b = g = state[1]; b 334 libavutil/ripemd.c ROUND160_0_TO_15(a,b,c,d,e,f,g,h,i,j); b 335 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 340 libavutil/ripemd.c ROUND160_16_TO_31(a,b,c,d,e,f,g,h,i,j); b 341 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 346 libavutil/ripemd.c ROUND160_32_TO_47(a,b,c,d,e,f,g,h,i,j); b 347 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 352 libavutil/ripemd.c ROUND160_48_TO_63(a,b,c,d,e,f,g,h,i,j); b 353 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 358 libavutil/ripemd.c ROUND160_64_TO_79(a,b,c,d,e,f,g,h,i,j); b 359 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 365 libavutil/ripemd.c ROUND160_0_TO_15(a,b,c,d,e,f,g,h,i,j); b 368 libavutil/ripemd.c ROUND160_16_TO_31(e,a,b,c,d,j,f,g,h,i); b 371 libavutil/ripemd.c ROUND160_32_TO_47(d,e,a,b,c,i,j,f,g,h); b 374 libavutil/ripemd.c ROUND160_48_TO_63(c,d,e,a,b,h,i,j,f,g); b 377 libavutil/ripemd.c ROUND160_64_TO_79(b,c,d,e,a,g,h,i,j,f); b 384 libavutil/ripemd.c state[4] = state[0] + b + h; b 390 libavutil/ripemd.c uint32_t a, b, c, d, e, f, g, h, i, j, av_unused t; b 394 libavutil/ripemd.c a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; b 403 libavutil/ripemd.c ROUND160_0_TO_15(a,b,c,d,e,f,g,h,i,j); b 404 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 407 libavutil/ripemd.c FFSWAP(uint32_t, b, g); b 410 libavutil/ripemd.c ROUND160_16_TO_31(a,b,c,d,e,f,g,h,i,j); b 411 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 417 libavutil/ripemd.c ROUND160_32_TO_47(a,b,c,d,e,f,g,h,i,j); b 418 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 424 libavutil/ripemd.c ROUND160_48_TO_63(a,b,c,d,e,f,g,h,i,j); b 425 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 431 libavutil/ripemd.c ROUND160_64_TO_79(a,b,c,d,e,f,g,h,i,j); b 432 libavutil/ripemd.c t = e; e = d; d = c; c = b; b = a; a = t; b 439 libavutil/ripemd.c ROUND160_0_TO_15(a,b,c,d,e,f,g,h,i,j); b 443 libavutil/ripemd.c ROUND160_16_TO_31(e,a,b,c,d,j,f,g,h,i); b 444 libavutil/ripemd.c FFSWAP(uint32_t, b, g); b 447 libavutil/ripemd.c ROUND160_32_TO_47(d,e,a,b,c,i,j,f,g,h); b 451 libavutil/ripemd.c ROUND160_48_TO_63(c,d,e,a,b,h,i,j,f,g); b 455 libavutil/ripemd.c ROUND160_64_TO_79(b,c,d,e,a,g,h,i,j,f); b 459 libavutil/ripemd.c state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; 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 102 libavutil/softfloat.h static inline av_const SoftFloat av_mul_sf(SoftFloat a, SoftFloat b){ b 103 libavutil/softfloat.h a.exp += b.exp; b 104 libavutil/softfloat.h av_assert2((int32_t)((a.mant * (int64_t)b.mant) >> ONE_BITS) == (a.mant * (int64_t)b.mant) >> ONE_BITS); b 105 libavutil/softfloat.h a.mant = (a.mant * (int64_t)b.mant) >> ONE_BITS; b 116 libavutil/softfloat.h static inline av_const SoftFloat av_div_sf(SoftFloat a, SoftFloat b){ b 118 libavutil/softfloat.h temp /= b.mant; b 119 libavutil/softfloat.h a.exp -= b.exp; b 138 libavutil/softfloat.h static inline av_const int av_cmp_sf(SoftFloat a, SoftFloat b){ b 139 libavutil/softfloat.h int t= a.exp - b.exp; b 140 libavutil/softfloat.h if (t <-31) return - b.mant ; b 141 libavutil/softfloat.h else if (t < 0) return (a.mant >> (-t)) - b.mant ; b 142 libavutil/softfloat.h else if (t < 32) return a.mant - (b.mant >> t); b 150 libavutil/softfloat.h static inline av_const int av_gt_sf(SoftFloat a, SoftFloat b) b 152 libavutil/softfloat.h int t= a.exp - b.exp; b 153 libavutil/softfloat.h if (t <-31) return 0 > b.mant ; b 154 libavutil/softfloat.h else if (t < 0) return (a.mant >> (-t)) > b.mant ; b 155 libavutil/softfloat.h else if (t < 32) return a.mant > (b.mant >> t); b 162 libavutil/softfloat.h static inline av_const SoftFloat av_add_sf(SoftFloat a, SoftFloat b){ b 163 libavutil/softfloat.h int t= a.exp - b.exp; b 164 libavutil/softfloat.h if (t <-31) return b; b 165 libavutil/softfloat.h else if (t < 0) return av_normalize_sf(av_normalize1_sf((SoftFloat){ b.mant + (a.mant >> (-t)), b.exp})); b 166 libavutil/softfloat.h else if (t < 32) return av_normalize_sf(av_normalize1_sf((SoftFloat){ a.mant + (b.mant >> t ), a.exp})); b 173 libavutil/softfloat.h static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){ b 174 libavutil/softfloat.h return av_add_sf(a, (SoftFloat){ -b.mant, b.exp}); b 80 libavutil/softfloat_ieee754.h static inline SoftFloat_IEEE754 av_div_sf_ieee754(SoftFloat_IEEE754 a, SoftFloat_IEEE754 b) { b 83 libavutil/softfloat_ieee754.h b = av_normalize_sf_ieee754(b); b 84 libavutil/softfloat_ieee754.h sign = a.sign ^ b.sign; b 85 libavutil/softfloat_ieee754.h mant = ((((uint64_t) (a.mant | 0x00800000UL)) << MANT_BITS) / (b.mant| 0x00800000UL)); b 86 libavutil/softfloat_ieee754.h exp = a.exp - b.exp; b 93 libavutil/softfloat_ieee754.h static inline SoftFloat_IEEE754 av_mul_sf_ieee754(SoftFloat_IEEE754 a, SoftFloat_IEEE754 b) { b 96 libavutil/softfloat_ieee754.h b = av_normalize_sf_ieee754(b); b 97 libavutil/softfloat_ieee754.h sign = a.sign ^ b.sign; b 98 libavutil/softfloat_ieee754.h mant = (((uint64_t)(a.mant|0x00800000UL) * (uint64_t)(b.mant|0x00800000UL))>>MANT_BITS); b 99 libavutil/softfloat_ieee754.h exp = a.exp + b.exp; b 106 libavutil/softfloat_ieee754.h static inline int av_cmp_sf_ieee754(SoftFloat_IEEE754 a, SoftFloat_IEEE754 b) { b 108 libavutil/softfloat_ieee754.h b = av_normalize_sf_ieee754(b); b 109 libavutil/softfloat_ieee754.h if (a.sign != b.sign) return 0; b 110 libavutil/softfloat_ieee754.h if (a.mant != b.mant) return 0; b 111 libavutil/softfloat_ieee754.h if (a.exp != b.exp ) return 0; b 33 libavutil/tests/aes.c struct AVAES *b; b 55 libavutil/tests/aes.c b = av_aes_alloc(); b 56 libavutil/tests/aes.c if (!b) b 62 libavutil/tests/aes.c av_aes_init(b, rkey[i], 128, 1); b 63 libavutil/tests/aes.c av_aes_crypt(b, temp, rct[i], 1, NULL, 1); b 72 libavutil/tests/aes.c av_free(b); b 65 libavutil/tests/audio_fifo.c int p, b, f; b 72 libavutil/tests/audio_fifo.c for(b = 0; b < line_size; b+=byte_offset){ b 75 libavutil/tests/audio_fifo.c printf("%02x", *((uint8_t*)data_planes[p] + b + order)); b 25 libavutil/tests/bprint.c static void bprint_pascal(AVBPrint *b, unsigned size) b 33 libavutil/tests/bprint.c av_bprintf(b, "%8d\n", 1); b 39 libavutil/tests/bprint.c av_bprintf(b, "%8d", p[j]); b 40 libavutil/tests/bprint.c av_bprintf(b, "\n"); b 46 libavutil/tests/bprint.c AVBPrint b; b 50 libavutil/tests/bprint.c av_bprint_init(&b, 0, AV_BPRINT_SIZE_UNLIMITED); b 51 libavutil/tests/bprint.c bprint_pascal(&b, 5); b 52 libavutil/tests/bprint.c printf("Short text in unlimited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); b 53 libavutil/tests/bprint.c printf("%s\n", b.str); b 54 libavutil/tests/bprint.c av_bprint_finalize(&b, NULL); b 56 libavutil/tests/bprint.c av_bprint_init(&b, 0, AV_BPRINT_SIZE_UNLIMITED); b 57 libavutil/tests/bprint.c bprint_pascal(&b, 25); b 58 libavutil/tests/bprint.c printf("Long text in unlimited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); b 59 libavutil/tests/bprint.c av_bprint_finalize(&b, NULL); b 61 libavutil/tests/bprint.c av_bprint_init(&b, 0, 2048); b 62 libavutil/tests/bprint.c bprint_pascal(&b, 25); b 63 libavutil/tests/bprint.c printf("Long text in limited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); b 64 libavutil/tests/bprint.c av_bprint_finalize(&b, NULL); b 66 libavutil/tests/bprint.c av_bprint_init(&b, 0, AV_BPRINT_SIZE_AUTOMATIC); b 67 libavutil/tests/bprint.c bprint_pascal(&b, 5); b 68 libavutil/tests/bprint.c printf("Short text in automatic buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); b 70 libavutil/tests/bprint.c av_bprint_init(&b, 0, AV_BPRINT_SIZE_AUTOMATIC); b 71 libavutil/tests/bprint.c bprint_pascal(&b, 25); b 72 libavutil/tests/bprint.c printf("Long text in automatic buffer: %u/%u\n", (unsigned)strlen(b.str)/8*8, b.len); b 75 libavutil/tests/bprint.c av_bprint_init(&b, 0, AV_BPRINT_SIZE_COUNT_ONLY); b 76 libavutil/tests/bprint.c bprint_pascal(&b, 25); b 77 libavutil/tests/bprint.c printf("Long text count only buffer: %u/%u\n", (unsigned)strlen(b.str), b.len); b 79 libavutil/tests/bprint.c av_bprint_init_for_buffer(&b, buf, sizeof(buf)); b 80 libavutil/tests/bprint.c bprint_pascal(&b, 25); b 81 libavutil/tests/bprint.c printf("Long text count only buffer: %u/%u\n", (unsigned)strlen(buf), b.len); b 83 libavutil/tests/bprint.c av_bprint_init(&b, 0, AV_BPRINT_SIZE_UNLIMITED); b 84 libavutil/tests/bprint.c av_bprint_strftime(&b, "%Y-%m-%d", &testtime); b 85 libavutil/tests/bprint.c printf("strftime full: %u/%u \"%s\"\n", (unsigned)strlen(buf), b.len, b.str); b 86 libavutil/tests/bprint.c av_bprint_finalize(&b, NULL); b 88 libavutil/tests/bprint.c av_bprint_init(&b, 0, 8); b 89 libavutil/tests/bprint.c av_bprint_strftime(&b, "%Y-%m-%d", &testtime); b 90 libavutil/tests/bprint.c printf("strftime truncated: %u/%u \"%s\"\n", (unsigned)strlen(buf), b.len, b.str); b 34 libavutil/tests/encryption_info.c static int compare_encryption_info(const AVEncryptionInfo *a, const AVEncryptionInfo *b) { b 35 libavutil/tests/encryption_info.c if (!a || !b || a->scheme != b->scheme || a->crypt_byte_block != b->crypt_byte_block || b 36 libavutil/tests/encryption_info.c a->skip_byte_block != b->skip_byte_block || a->key_id_size != b->key_id_size || b 37 libavutil/tests/encryption_info.c a->iv_size != b->iv_size || a->subsample_count != b->subsample_count) b 40 libavutil/tests/encryption_info.c if (memcmp(a->key_id, b->key_id, a->key_id_size) != 0 || b 41 libavutil/tests/encryption_info.c memcmp(a->iv, b->iv, a->iv_size) != 0 || b 42 libavutil/tests/encryption_info.c memcmp(a->subsamples, b->subsamples, a->subsample_count * sizeof(a->subsamples[0]))) b 48 libavutil/tests/encryption_info.c static int compare_encryption_init_info(const AVEncryptionInitInfo *a, const AVEncryptionInitInfo *b) { b 49 libavutil/tests/encryption_info.c if (!a || !b || a->system_id_size != b->system_id_size || b 50 libavutil/tests/encryption_info.c a->num_key_ids != b->num_key_ids || a->key_id_size != b->key_id_size || b 51 libavutil/tests/encryption_info.c a->data_size != b->data_size) b 54 libavutil/tests/encryption_info.c if (memcmp(a->system_id, b->system_id, a->system_id_size) != 0 || b 55 libavutil/tests/encryption_info.c memcmp(a->data, b->data, a->data_size) != 0) b 59 libavutil/tests/encryption_info.c if (memcmp(a->key_ids[i], b->key_ids[i], a->key_id_size) != 0) b 63 libavutil/tests/encryption_info.c if (a->next || b->next) { b 64 libavutil/tests/encryption_info.c if (!a->next || !b->next) b 66 libavutil/tests/encryption_info.c if (compare_encryption_init_info(a->next, b->next) != 0) b 28 libavutil/tests/integer.c int64_t a,b; b 31 libavutil/tests/integer.c for(b=3; b<256*256*256; b+=27118){ b 33 libavutil/tests/integer.c AVInteger bi= av_int2i(b); b 36 libavutil/tests/integer.c av_assert0(av_i2int(bi) == b); b 37 libavutil/tests/integer.c av_assert0(av_i2int(av_add_i(ai,bi)) == a+b); b 38 libavutil/tests/integer.c av_assert0(av_i2int(av_sub_i(ai,bi)) == a-b); b 39 libavutil/tests/integer.c av_assert0(av_i2int(av_mul_i(ai,bi)) == a*b); b 45 libavutil/tests/integer.c av_assert0(av_i2int(av_div_i(ai,bi)) == a/b); b 64 libavutil/tests/lfg.c const double b[4] = {-8.47351093090, b 87 libavutil/tests/lfg.c ((((b[3]*y+b[2])*y+b[1])*y+b[0])*y+1.0); b 147 libavutil/tests/lfg.c int x, y, a, b, flag = 0; b 155 libavutil/tests/lfg.c b = ((int)Z * 100); b 157 libavutil/tests/lfg.c y = (b > 0) ? a % b : a; b 27 libavutil/tests/rational.c AVRational a,b,r; b 36 libavutil/tests/rational.c for (b.num = -2; b.num <= 2; b.num++) { b 37 libavutil/tests/rational.c for (b.den = -2; b.den <= 2; b.den++) { b 38 libavutil/tests/rational.c int c = av_cmp_q(a,b); b 39 libavutil/tests/rational.c double d = av_q2d(a) == av_q2d(b) ? b 40 libavutil/tests/rational.c 0 : (av_q2d(a) - av_q2d(b)); b 46 libavutil/tests/rational.c a.den, b.num, b.den, c,d); b 47 libavutil/tests/rational.c r = av_sub_q(av_add_q(b,a), b); b 48 libavutil/tests/rational.c if(b.den && (r.num*a.den != a.num*r.den || !r.num != !a.num || !r.den != !a.den)) b 59 libavutil/tests/rational.c int64_t b = numlist[j]; b 60 libavutil/tests/rational.c if (b<=0) b 69 libavutil/tests/rational.c res = av_rescale_rnd(a,b,c, AV_ROUND_ZERO); b 71 libavutil/tests/rational.c ai = av_mul_i(av_int2i(a), av_int2i(b)); b 85 libavutil/tests/rational.c av_log(NULL, AV_LOG_ERROR, "%"PRId64" * %"PRId64" / %"PRId64" = %"PRId64" or %"PRId64"\n", a,b,c, res, av_i2int(ai)); b 94 libavutil/tests/rational.c for (b.num = 1; b.num <= 10; b.num++) { b 95 libavutil/tests/rational.c for (b.den = 1; b.den <= 10; b.den++) { b 97 libavutil/tests/rational.c if (av_gcd(b.num, b.den) > 1) b 99 libavutil/tests/rational.c if (av_cmp_q(b, a) < 0) b 106 libavutil/tests/rational.c int exact = start + av_rescale_q(i+1, b, a); b 107 libavutil/tests/rational.c acc = av_add_stable(a, acc, b, 1); b 110 libavutil/tests/rational.c a.den, b.num, b.den, acc, exact); b 57 libavutil/tests/tree.c static int cmp(const void *a, const void *b) b 59 libavutil/tests/tree.c return (const uint8_t *) a - (const uint8_t *) b; b 40 libavutil/tree.c int (*cmp)(const void *key, const void *b), void *next[2]) b 60 libavutil/tree.c int (*cmp)(const void *key, const void *b), AVTreeNode **next) b 68 libavutil/tree.h int (*cmp)(const void *key, const void *b), void *next[2]); b 115 libavutil/tree.h int (*cmp)(const 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 62 libavutil/tx_priv.h #define FOLD(a, b) ((a) + (b)) b 93 libavutil/tx_priv.h #define BF(x, y, a, b) do { \ b 94 libavutil/tx_priv.h x = (a) - (b); \ b 95 libavutil/tx_priv.h y = (a) + (b); \ b 98 libavutil/tx_priv.h #define CMUL3(c, a, b) \ b 99 libavutil/tx_priv.h CMUL((c).re, (c).im, (a).re, (a).im, (b).re, (b).im) b 56 libavutil/version.h #define AV_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c)) b 57 libavutil/version.h #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c b 58 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 365 libpostproc/postprocess.c uint64_t b= (v*3/16) & 0xFF; b 369 libpostproc/postprocess.c uint64_t B= (0x100 - b)&0xFF; b 373 libpostproc/postprocess.c lut[i] = (a<<56) | (b<<48) | (c<<40) | (d<<32) | b 381 libpostproc/postprocess.c int b= src[3] - src[4]; b 384 libpostproc/postprocess.c int d= FFMAX(FFABS(b) - (FFABS(a) + FFABS(c))/2, 0); b 387 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 142 libswresample/tests/swresample.c static int cmp(const void *a, const void *b){ b 143 libswresample/tests/swresample.c return *(const int *)a - *(const int *)b; b 372 libswresample/tests/swresample.c double b= get(aout, ch, i, in_ch_count, in_sample_fmt); b 374 libswresample/tests/swresample.c sum_b += b; b 376 libswresample/tests/swresample.c sum_bb+= b*b; b 377 libswresample/tests/swresample.c sum_ab+= a*b; b 378 libswresample/tests/swresample.c maxdiff= FFMAX(maxdiff, fabs(a-b)); b 402 libswresample/tests/swresample.c double b= get(aout, ch, i, in_ch_count, in_sample_fmt); b 404 libswresample/tests/swresample.c sum_b += b; b 406 libswresample/tests/swresample.c sum_bb+= b*b; b 407 libswresample/tests/swresample.c sum_ab+= a*b; b 408 libswresample/tests/swresample.c maxdiff= FFMAX(maxdiff, fabs(a-b)); b 38 libswscale/alphablend.c int a = 0, b = 0; b 41 libswscale/alphablend.c b = 3*(1<<(desc->comp[0].depth-1))/2; b 44 libswscale/alphablend.c target_table[1][plane] = plane && !(desc->flags & AV_PIX_FMT_FLAG_RGB) ? 1<<(desc->comp[0].depth - 1) : b; b 46 libswscale/gamma.c uint16_t b = AV_RL16(src1 + j*4 + 2); b 50 libswscale/gamma.c AV_WL16(src1 + j*4 + 2, table[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 771 libswscale/input.c int b = src[i * 3 + 0]; b 775 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (32<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6)); b 788 libswscale/input.c int b = src1[3 * i + 0]; b 792 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); b 793 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); b 807 libswscale/input.c int b = src1[6 * i + 0] + src1[6 * i + 3]; b 811 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); b 812 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); b 826 libswscale/input.c int b = src[i * 3 + 2]; b 828 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (32<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6)); b 844 libswscale/input.c int b = src1[3 * i + 2]; b 846 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); b 847 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<(RGB2YUV_SHIFT-1)) + (1<<(RGB2YUV_SHIFT-7)))>>(RGB2YUV_SHIFT-6); b 863 libswscale/input.c int b = src1[6 * i + 2] + src1[6 * i + 5]; b 865 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); b 866 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (256<<RGB2YUV_SHIFT) + (1<<(RGB2YUV_SHIFT-6)))>>(RGB2YUV_SHIFT-5); b 877 libswscale/input.c int b = src[1][i]; b 880 libswscale/input.c dst[i] = (ry*r + gy*g + by*b + (0x801<<(RGB2YUV_SHIFT-7))) >> (RGB2YUV_SHIFT-6); b 901 libswscale/input.c int b = src[1][i]; b 904 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (0x4001<<(RGB2YUV_SHIFT-7))) >> (RGB2YUV_SHIFT-6); b 905 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (0x4001<<(RGB2YUV_SHIFT-7))) >> (RGB2YUV_SHIFT-6); b 921 libswscale/input.c int b = rdpx(src[1] + i); b 924 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (33 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14)); b 954 libswscale/input.c int b = rdpx(src[1] + i); b 957 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); b 958 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); b 988 libswscale/input.c int b = av_clip_uint16(lrintf(65535.0f * rdpx(src[1] + i))); b 991 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); b 992 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); b 1007 libswscale/input.c int b = av_clip_uint16(lrintf(65535.0f * rdpx(src[1] + i))); b 1010 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (33 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14)); b 1530 libswscale/output.c const uint32_t *b = (const uint32_t *) _b; b 1535 libswscale/output.c dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (hasAlpha ? A1 << sh : 0); b 1536 libswscale/output.c dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2] + (hasAlpha ? A2 << sh : 0); b 1541 libswscale/output.c av_assert2((((r[Y1] + g[Y1] + b[Y1]) >> sh) & 0xFF) == 0); b 1542 libswscale/output.c dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1] + (A1 << sh); b 1543 libswscale/output.c dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2] + (A2 << sh); b 1548 libswscale/output.c av_assert2((((r[Y1] + g[Y1] + b[Y1]) >> sh) & 0xFF) == 0xFF); b 1550 libswscale/output.c dest[i * 2 + 0] = r[Y1] + g[Y1] + b[Y1]; b 1551 libswscale/output.c dest[i * 2 + 1] = r[Y2] + g[Y2] + b[Y2]; b 1558 libswscale/output.c const uint8_t *b = (const uint8_t *) _b; b 1560 libswscale/output.c #define r_b ((target == AV_PIX_FMT_RGB24) ? r : b) b 1561 libswscale/output.c #define b_r ((target == AV_PIX_FMT_RGB24) ? b : r) b 1577 libswscale/output.c const uint16_t *b = (const uint16_t *) _b; b 1603 libswscale/output.c dest[i * 2 + 0] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1]; b 1604 libswscale/output.c dest[i * 2 + 1] = r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2]; b 1609 libswscale/output.c const uint8_t *b = (const uint8_t *) _b; b 1629 libswscale/output.c dest[i] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1] + b 1630 libswscale/output.c ((r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2]) << 4); b 1632 libswscale/output.c dest[i * 2 + 0] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1]; b 1633 libswscale/output.c dest[i * 2 + 1] = r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2]; b 1654 libswscale/output.c const void *r, *g, *b; b 1685 libswscale/output.c b = c->table_bU[U + YUVRGB_TABLE_HEADROOM]; b 1688 libswscale/output.c r, g, b, y, target, hasAlpha); b 1718 libswscale/output.c *b = c->table_bU[U + YUVRGB_TABLE_HEADROOM]; b 1728 libswscale/output.c r, g, b, y, target, hasAlpha); b 1751 libswscale/output.c *b = c->table_bU[U + YUVRGB_TABLE_HEADROOM]; b 1761 libswscale/output.c r, g, b, y, target, hasAlpha); b 1773 libswscale/output.c *b = c->table_bU[U + YUVRGB_TABLE_HEADROOM]; b 1783 libswscale/output.c r, g, b, y, target, hasAlpha); b 1902 libswscale/output.c int r,g,b; b 1919 libswscale/output.c b = B >> (isrgb8 ? 6 : 7); b 1922 libswscale/output.c b = av_clip(b, 0, isrgb8 ? 3 : 1); b 1925 libswscale/output.c err[2] = B - b*(isrgb8 ? 85 : 255); b 1933 libswscale/output.c b = (((B >> 20) + A_DITHER(i + 17*2,y) -96)>>8); b 1936 libswscale/output.c b = av_clip_uintp2(b, 2); b 1940 libswscale/output.c b = (((B >> 21) + A_DITHER(i + 17*2,y)-256)>>8); b 1943 libswscale/output.c b = av_clip_uintp2(b, 1); b 1952 libswscale/output.c b = (((B >> 20) + X_DITHER(i + 17*2,y) - 96)>>8); b 1955 libswscale/output.c b = av_clip_uintp2(b, 2); b 1959 libswscale/output.c b = (((B >> 21) + X_DITHER(i + 17*2,y)-256)>>8); b 1962 libswscale/output.c b = av_clip_uintp2(b, 1); b 1969 libswscale/output.c dest[0] = r + 2*g + 8*b; b 1971 libswscale/output.c dest[0] = b + 2*g + 8*r; b 1973 libswscale/output.c dest[0] = r + 8*g + 64*b; b 1975 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 97 libswscale/ppc/swscale_altivec.c #define GET_VFD(a, b, f, vf0, vf1, per, vf, off) {\ b 98 libswscale/ppc/swscale_altivec.c vf1 = vec_ld((a * 2 * filterSize) + (b * 2) + 16 + off, f);\ b 38 libswscale/ppc/swscale_vsx.c #define GET_LS(a,b,c,s) {\ b 40 libswscale/ppc/swscale_vsx.c a = vec_vsx_ld(((b) << 1) + 16, s);\ b 78 libswscale/ppc/swscale_vsx.c #define GET_VFD(a, b, f, vf0, vf1, per, vf, off) {\ b 79 libswscale/ppc/swscale_vsx.c vf = vec_vsx_ld((a * 2 * filterSize) + (b * 2) + off, f);\ b 426 libswscale/ppc/yuv2rgb_altivec.c #define out_abgr(a, b, c, ptr) \ b 427 libswscale/ppc/yuv2rgb_altivec.c vec_mstrgb32(__typeof__(a), ((__typeof__(a)) { 255 }), c, b, a, ptr) b 428 libswscale/ppc/yuv2rgb_altivec.c #define out_bgra(a, b, c, ptr) \ b 429 libswscale/ppc/yuv2rgb_altivec.c vec_mstrgb32(__typeof__(a), c, b, a, ((__typeof__(a)) { 255 }), ptr) b 430 libswscale/ppc/yuv2rgb_altivec.c #define out_rgba(a, b, c, ptr) \ b 431 libswscale/ppc/yuv2rgb_altivec.c vec_mstrgb32(__typeof__(a), a, b, c, ((__typeof__(a)) { 255 }), ptr) b 432 libswscale/ppc/yuv2rgb_altivec.c #define out_argb(a, b, c, ptr) \ b 433 libswscale/ppc/yuv2rgb_altivec.c vec_mstrgb32(__typeof__(a), ((__typeof__(a)) { 255 }), a, b, c, ptr) b 434 libswscale/ppc/yuv2rgb_altivec.c #define out_rgb24(a, b, c, ptr) vec_mstrgb24(a, b, c, ptr) b 435 libswscale/ppc/yuv2rgb_altivec.c #define out_bgr24(a, b, c, ptr) vec_mstbgr24(a, b, c, ptr) b 208 libswscale/rgb2rgb.c uint16_t rgb, r, g, b; b 217 libswscale/rgb2rgb.c b = rgb & 0x00F; b 220 libswscale/rgb2rgb.c b = (b << 1) | ( b >> 3); b 221 libswscale/rgb2rgb.c *d++ = r | g | 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 346 libswscale/rgb2rgb_template.c #define DEFINE_SHUFFLE_BYTES(name, a, b, c, d) \ b 354 libswscale/rgb2rgb_template.c dst[i + 1] = src[i + b]; \ b 664 libswscale/rgb2rgb_template.c unsigned int b = src[6 * i + 0]; b 668 libswscale/rgb2rgb_template.c unsigned int Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; b 669 libswscale/rgb2rgb_template.c unsigned int V = ((rv * r + gv * g + bv * b) >> RGB2YUV_SHIFT) + 128; b 670 libswscale/rgb2rgb_template.c unsigned int U = ((ru * r + gu * g + bu * b) >> RGB2YUV_SHIFT) + 128; b 676 libswscale/rgb2rgb_template.c b = src[6 * i + 3]; b 680 libswscale/rgb2rgb_template.c Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; b 690 libswscale/rgb2rgb_template.c unsigned int b = src[6 * i + 0]; b 694 libswscale/rgb2rgb_template.c unsigned int Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; b 698 libswscale/rgb2rgb_template.c b = src[6 * i + 3]; b 702 libswscale/rgb2rgb_template.c Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; b 636 libswscale/swscale.c int x, y, z, r, g, b; b 659 libswscale/swscale.c b = c->xyz2rgb_matrix[2][0] * x + b 666 libswscale/swscale.c b = av_clip_uintp2(b, 12); b 672 libswscale/swscale.c AV_WB16(dst + xp + 2, c->rgbgamma[b] << 4); b 676 libswscale/swscale.c AV_WL16(dst + xp + 2, c->rgbgamma[b] << 4); b 692 libswscale/swscale.c int x, y, z, r, g, b; b 697 libswscale/swscale.c b = AV_RB16(src + xp + 2); b 701 libswscale/swscale.c b = AV_RL16(src + xp + 2); b 706 libswscale/swscale.c b = c->rgbgammainv[b>>4]; b 711 libswscale/swscale.c c->rgb2xyz_matrix[0][2] * b >> 12; b 714 libswscale/swscale.c c->rgb2xyz_matrix[1][2] * b >> 12; b 717 libswscale/swscale.c c->rgb2xyz_matrix[2][2] * b >> 12; b 839 libswscale/swscale.c int r, g, b, y, u, v, a = 0xff; b 845 libswscale/swscale.c b = p & 0xFF; b 849 libswscale/swscale.c b = ( i & 3) * 85; b 851 libswscale/swscale.c b = ( i >> 6 ) * 85; b 857 libswscale/swscale.c b = ( i & 1) * 255; b 859 libswscale/swscale.c r = g = b = i; b 862 libswscale/swscale.c b = ( i >> 3 ) * 255; b 877 libswscale/swscale.c y = av_clip_uint8((RY * r + GY * g + BY * b + ( 33 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); b 878 libswscale/swscale.c u = av_clip_uint8((RU * r + GU * g + BU * b + (257 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); b 879 libswscale/swscale.c v = av_clip_uint8((RV * r + GV * g + BV * b + (257 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); b 887 libswscale/swscale.c c->pal_rgb[i]= r + (g<<8) + (b<<16) + ((unsigned)a<<24); b 893 libswscale/swscale.c c->pal_rgb[i]= a + (r<<8) + (g<<16) + ((unsigned)b<<24); b 899 libswscale/swscale.c c->pal_rgb[i]= a + (b<<8) + (g<<16) + ((unsigned)r<<24); b 906 libswscale/swscale.c c->pal_rgb[i]= b + (g<<8) + (r<<16) + ((unsigned)a<<24); b 266 libswscale/swscale.h attribute_deprecated void sws_convVec(SwsVector *a, SwsVector *b); b 267 libswscale/swscale.h attribute_deprecated void sws_addVec(SwsVector *a, SwsVector *b); b 268 libswscale/swscale.h attribute_deprecated void sws_subVec(SwsVector *a, SwsVector *b); b 50 libswscale/tests/pixdesc_query.c static int cmp_str(const void *a, const void *b) b 53 libswscale/tests/pixdesc_query.c const char *s2 = *(const char **)b; b 68 libswscale/utils.c static void sws_addVec(SwsVector *a, SwsVector *b); b 294 libswscale/utils.c static double getSplineCoeff(double a, double b, double c, double d, b 298 libswscale/utils.c return ((d * dist + c) * dist + b) * dist + a; b 301 libswscale/utils.c b + 2.0 * c + 3.0 * d, b 303 libswscale/utils.c -b - 3.0 * c - 6.0 * d, b 2120 libswscale/utils.c static SwsVector *sws_getConvVec(SwsVector *a, SwsVector *b) b 2122 libswscale/utils.c int length = a->length + b->length - 1; b 2130 libswscale/utils.c for (j = 0; j < b->length; j++) { b 2131 libswscale/utils.c vec->coeff[i + j] += a->coeff[i] * b->coeff[j]; b 2139 libswscale/utils.c static SwsVector *sws_sumVec(SwsVector *a, SwsVector *b) b 2141 libswscale/utils.c int length = FFMAX(a->length, b->length); b 2150 libswscale/utils.c for (i = 0; i < b->length; i++) b 2151 libswscale/utils.c vec->coeff[i + (length - 1) / 2 - (b->length - 1) / 2] += b->coeff[i]; b 2157 libswscale/utils.c static SwsVector *sws_diffVec(SwsVector *a, SwsVector *b) b 2159 libswscale/utils.c int length = FFMAX(a->length, b->length); b 2168 libswscale/utils.c for (i = 0; i < b->length; i++) b 2169 libswscale/utils.c vec->coeff[i + (length - 1) / 2 - (b->length - 1) / 2] -= b->coeff[i]; b 2212 libswscale/utils.c void sws_addVec(SwsVector *a, SwsVector *b) b 2214 libswscale/utils.c SwsVector *sum = sws_sumVec(a, b); b 2226 libswscale/utils.c void sws_subVec(SwsVector *a, SwsVector *b) b 2228 libswscale/utils.c SwsVector *diff = sws_diffVec(a, b); b 2239 libswscale/utils.c void sws_convVec(SwsVector *a, SwsVector *b) b 2241 libswscale/utils.c SwsVector *conv = sws_getConvVec(a, b); b 138 libswscale/x86/hscale_fast_bilinear_simd.c int b = ((xpos + xInc) >> 16) - xx; b 159 libswscale/x86/hscale_fast_bilinear_simd.c ((b + inc) << 2) | b 162 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 75 libswscale/yuv2rgb.c b = (void *)c->table_bU[U+YUVRGB_TABLE_HEADROOM]; b 79 libswscale/yuv2rgb.c dst[2 * i] = r[Y] + g[Y] + b[Y]; \ b 81 libswscale/yuv2rgb.c dst[2 * i + 1] = r[Y] + g[Y] + b[Y]; b 87 libswscale/yuv2rgb.c dst[6 * i + 2] = b[Y]; \ b 91 libswscale/yuv2rgb.c dst[6 * i + 5] = b[Y]; b 95 libswscale/yuv2rgb.c dst[6 * i + 0] = b[Y]; \ b 99 libswscale/yuv2rgb.c dst[6 * i + 3] = b[Y]; \ b 105 libswscale/yuv2rgb.c dst[2 * i] = r[Y] + g[Y] + b[Y] + (asrc[2 * i] << s); \ b 107 libswscale/yuv2rgb.c dst[2 * i + 1] = r[Y] + g[Y] + b[Y] + (asrc[2 * i + 1] << s); b 113 libswscale/yuv2rgb.c dst[12 * i + 4] = dst[12 * i + 5] = b[Y]; \ b 117 libswscale/yuv2rgb.c dst[12 * i + 10] = dst[12 * i + 11] = b[Y]; b 121 libswscale/yuv2rgb.c dst[12 * i + 0] = dst[12 * i + 1] = b[Y]; \ b 125 libswscale/yuv2rgb.c dst[12 * i + 6] = dst[12 * i + 7] = b[Y]; \ b 146 libswscale/yuv2rgb.c dst_type av_unused *r, *g, *b; \ b 417 libswscale/yuv2rgb.c b[Y + f16[0 + o]]; \ b 421 libswscale/yuv2rgb.c b[Y + f16[1 + o]]; b 447 libswscale/yuv2rgb.c b[Y + e16[0 + o]]; \ b 451 libswscale/yuv2rgb.c b[Y + e16[1 + o]]; b 477 libswscale/yuv2rgb.c b[Y + d16[0 + o]]; \ b 481 libswscale/yuv2rgb.c b[Y + d16[1 + o]]; b 509 libswscale/yuv2rgb.c b[Y + d64[0 + o]]; \ b 513 libswscale/yuv2rgb.c b[Y + d64[1 + o]]; b 561 libswscale/yuv2rgb.c b[Y + d128[0 + o]]; \ b 565 libswscale/yuv2rgb.c b[Y + d128[1 + o]]) << 4; \ b 613 libswscale/yuv2rgb.c b[Y + d128[0 + o]]; \ b 617 libswscale/yuv2rgb.c b[Y + d128[1 + o]]; b 25 tests/audiomatch.c #define FFMIN(a,b) ((a) > (b) ? (b) : (a)) b 26 tests/audiomatch.c #define FFMAX(a,b) ((a) > (b) ? (a) : (b)) b 284 tests/checkasm/checkasm.c int float_near_ulp(float a, float b, unsigned max_ulp) b 289 tests/checkasm/checkasm.c y.f = b; b 293 tests/checkasm/checkasm.c return a == b; b 302 tests/checkasm/checkasm.c int float_near_ulp_array(const float *a, const float *b, unsigned max_ulp, b 308 tests/checkasm/checkasm.c if (!float_near_ulp(a[i], b[i], max_ulp)) b 314 tests/checkasm/checkasm.c int float_near_abs_eps(float a, float b, float eps) b 316 tests/checkasm/checkasm.c float abs_diff = fabsf(a - b); b 320 tests/checkasm/checkasm.c fprintf(stderr, "test failed comparing %g with %g (abs diff=%g with EPS=%g)\n", a, b, abs_diff, eps); b 325 tests/checkasm/checkasm.c int float_near_abs_eps_array(const float *a, const float *b, float eps, b 331 tests/checkasm/checkasm.c if (!float_near_abs_eps(a[i], b[i], eps)) b 337 tests/checkasm/checkasm.c int float_near_abs_eps_ulp(float a, float b, float eps, unsigned max_ulp) b 339 tests/checkasm/checkasm.c return float_near_ulp(a, b, max_ulp) || float_near_abs_eps(a, b, eps); b 342 tests/checkasm/checkasm.c int float_near_abs_eps_array_ulp(const float *a, const float *b, float eps, b 348 tests/checkasm/checkasm.c if (!float_near_abs_eps_ulp(a[i], b[i], eps, max_ulp)) b 354 tests/checkasm/checkasm.c int double_near_abs_eps(double a, double b, double eps) b 356 tests/checkasm/checkasm.c double abs_diff = fabs(a - b); b 361 tests/checkasm/checkasm.c int double_near_abs_eps_array(const double *a, const double *b, double eps, b 367 tests/checkasm/checkasm.c if (!double_near_abs_eps(a[i], b[i], eps)) b 457 tests/checkasm/checkasm.c static int cmp_nop(const void *a, const void *b) b 459 tests/checkasm/checkasm.c return *(const uint16_t*)a - *(const uint16_t*)b; b 506 tests/checkasm/checkasm.c static int cmp_func_names(const char *a, const char *b) b 511 tests/checkasm/checkasm.c for (; !(ascii_diff = *(const unsigned char*)a - *(const unsigned char*)b) && *a; a++, b++); b 512 tests/checkasm/checkasm.c for (; av_isdigit(*a) && av_isdigit(*b); a++, b++); b 514 tests/checkasm/checkasm.c if (a > start && av_isdigit(a[-1]) && (digit_diff = av_isdigit(*a) - av_isdigit(*b))) b 93 tests/checkasm/checkasm.h int float_near_ulp(float a, float b, unsigned max_ulp); b 94 tests/checkasm/checkasm.h int float_near_abs_eps(float a, float b, float eps); b 95 tests/checkasm/checkasm.h int float_near_abs_eps_ulp(float a, float b, float eps, unsigned max_ulp); b 96 tests/checkasm/checkasm.h int float_near_ulp_array(const float *a, const float *b, unsigned max_ulp, b 98 tests/checkasm/checkasm.h int float_near_abs_eps_array(const float *a, const float *b, float eps, b 100 tests/checkasm/checkasm.h int float_near_abs_eps_array_ulp(const float *a, const float *b, float eps, b 102 tests/checkasm/checkasm.h int double_near_abs_eps(double a, double b, double eps); b 103 tests/checkasm/checkasm.h int double_near_abs_eps_array(const double *a, const double *b, double eps, b 277 tests/checkasm/checkasm.h #define PASTE(a,b) a ## b b 278 tests/checkasm/checkasm.h #define CONCAT(a,b) PASTE(a,b) b 328 tests/checkasm/vp8dsp.c #define setpx(a, b, c) buf[(a) + (b) * jstride] = av_clip_uint8(c) b 330 tests/checkasm/vp8dsp.c #define setdx(a, b, c, d) setpx(a, b, c - (d) + (rnd() % ((d) * 2 + 1))) b 332 tests/checkasm/vp8dsp.c #define setdx2(a, b, o, c, d, e) setpx(a, b, o = c + ((d) + (rnd() % (e))) * (c >= 128 ? -1 : 1)) b 379 tests/checkasm/vp9dsp.c #define setpx(a,b,c) \ b 382 tests/checkasm/vp9dsp.c buf0[(a) + (b) * jstride] = av_clip_uint8(c); \ b 384 tests/checkasm/vp9dsp.c ((uint16_t *)buf0)[(a) + (b) * jstride] = av_clip_uintp2(c, bit_depth); \ b 389 tests/checkasm/vp9dsp.c #define setdx(a,b,c,d) setpx(a,b,c-(d)+(rnd()%((d)*2+1))) b 390 tests/checkasm/vp9dsp.c #define setsx(a,b,c,d) setdx(a,b,c,(d) << (bit_depth - 8)) 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 = llabs(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 45 tools/qt-faststart.c #define MIN(a,b) ((a) > (b) ? (b) : (a)) b 62 tools/venc_data_dump.c AVVideoBlockParams *b = av_video_enc_params_block(par, i); b 65 tools/venc_data_dump.c i, b->src_x, b->src_y, b->w, b->h, b->delta_qp); 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] ? '<' : ' ');