td 54 libavcodec/av1_frame_split_bsf.c CodedBitstreamFragment *td = &s->temporal_unit; td 65 libavcodec/av1_frame_split_bsf.c ret = ff_cbs_read_packet(s->cbc, td, s->buffer_pkt); td 71 libavcodec/av1_frame_split_bsf.c for (i = 0; i < td->nb_units; i++) { td 72 libavcodec/av1_frame_split_bsf.c CodedBitstreamUnit *unit = &td->units[i]; td 94 libavcodec/av1_frame_split_bsf.c for (i = s->cur_frame_idx; i < td->nb_units; i++) { td 95 libavcodec/av1_frame_split_bsf.c CodedBitstreamUnit *unit = &td->units[i]; td 162 libavcodec/av1_frame_split_bsf.c out->data = (uint8_t *)td->units[s->last_frame_idx].data; td 175 libavcodec/av1_frame_split_bsf.c ff_cbs_fragment_reset(s->cbc, td); td 190 libavcodec/av1_frame_split_bsf.c ff_cbs_fragment_reset(s->cbc, td); td 206 libavcodec/av1_frame_split_bsf.c CodedBitstreamFragment *td = &s->temporal_unit; td 223 libavcodec/av1_frame_split_bsf.c ret = ff_cbs_read_extradata(s->cbc, td, ctx->par_in); td 227 libavcodec/av1_frame_split_bsf.c ff_cbs_fragment_reset(s->cbc, td); td 39 libavcodec/av1_metadata_bsf.c int td; td 163 libavcodec/av1_metadata_bsf.c AV1RawOBU td, *obu; td 197 libavcodec/av1_metadata_bsf.c if (ctx->td == REMOVE) td 199 libavcodec/av1_metadata_bsf.c } else if (ctx->td == INSERT) { td 200 libavcodec/av1_metadata_bsf.c td = (AV1RawOBU) { td 205 libavcodec/av1_metadata_bsf.c &td, NULL); td 287 libavcodec/av1_metadata_bsf.c OFFSET(td), AV_OPT_TYPE_INT, td 58 libavcodec/av1_parser.c CodedBitstreamFragment *td = &s->temporal_unit; td 76 libavcodec/av1_parser.c ret = ff_cbs_read(s->cbc, td, avctx->extradata, avctx->extradata_size); td 81 libavcodec/av1_parser.c ff_cbs_fragment_reset(s->cbc, td); td 84 libavcodec/av1_parser.c ret = ff_cbs_read(s->cbc, td, data, size); td 98 libavcodec/av1_parser.c for (int i = 0; i < td->nb_units; i++) { td 99 libavcodec/av1_parser.c CodedBitstreamUnit *unit = &td->units[i]; td 194 libavcodec/av1_parser.c ff_cbs_fragment_reset(s->cbc, td); td 817 libavcodec/cbs_av1.c static void cbs_av1_free_tile_data(AV1RawTileData *td) td 819 libavcodec/cbs_av1.c av_buffer_unref(&td->data_ref); td 864 libavcodec/cbs_av1.c AV1RawTileData *td) td 877 libavcodec/cbs_av1.c td->data_ref = av_buffer_ref(unit->data_ref); td 878 libavcodec/cbs_av1.c if (!td->data_ref) td 881 libavcodec/cbs_av1.c td->data = unit->data + pos / 8; td 882 libavcodec/cbs_av1.c td->data_size = unit->data_size - pos / 8; td 1069 libavcodec/cbs_av1.c AV1RawTileData *td; td 1089 libavcodec/cbs_av1.c td = NULL; td 1137 libavcodec/cbs_av1.c td = &obu->obu.tile_group.tile_data; td 1146 libavcodec/cbs_av1.c td = &obu->obu.frame.tile_group.tile_data; td 1155 libavcodec/cbs_av1.c td = &obu->obu.tile_list.tile_data; td 1178 libavcodec/cbs_av1.c if (td) { td 1179 libavcodec/cbs_av1.c obu->obu_size = header_size + td->data_size; td 1216 libavcodec/cbs_av1.c if (td) { td 1218 libavcodec/cbs_av1.c td->data, td->data_size); td 1219 libavcodec/cbs_av1.c skip_put_bytes(pbc, td->data_size); td 76 libavcodec/dsddec.c ThreadData *td = tdata; td 77 libavcodec/dsddec.c AVFrame *frame = td->frame; td 78 libavcodec/dsddec.c AVPacket *avpkt = td->avpkt; td 100 libavcodec/dsddec.c ThreadData td; td 109 libavcodec/dsddec.c td.frame = frame; td 110 libavcodec/dsddec.c td.avpkt = avpkt; td 111 libavcodec/dsddec.c avctx->execute2(avctx, dsd_channel, &td, NULL, avctx->channels); td 228 libavcodec/exr.c int uncompressed_size, EXRThreadData *td) td 232 libavcodec/exr.c if (uncompress(td->tmp, &dest_len, src, compressed_size) != Z_OK || td 238 libavcodec/exr.c s->dsp.predictor(td->tmp, uncompressed_size); td 239 libavcodec/exr.c s->dsp.reorder_pixels(td->uncompressed_data, td->tmp, uncompressed_size); td 245 libavcodec/exr.c int uncompressed_size, EXRThreadData *td) td 247 libavcodec/exr.c uint8_t *d = td->tmp; td 285 libavcodec/exr.c ctx->dsp.predictor(td->tmp, uncompressed_size); td 286 libavcodec/exr.c ctx->dsp.reorder_pixels(td->uncompressed_data, td->tmp, uncompressed_size); td 691 libavcodec/exr.c int dsize, EXRThreadData *td) td 696 libavcodec/exr.c uint16_t *tmp = (uint16_t *)td->tmp; td 704 libavcodec/exr.c if (!td->bitmap) td 705 libavcodec/exr.c td->bitmap = av_malloc(BITMAP_SIZE); td 706 libavcodec/exr.c if (!td->lut) td 707 libavcodec/exr.c td->lut = av_malloc(1 << 17); td 708 libavcodec/exr.c if (!td->bitmap || !td->lut) { td 709 libavcodec/exr.c av_freep(&td->bitmap); td 710 libavcodec/exr.c av_freep(&td->lut); td 721 libavcodec/exr.c memset(td->bitmap, 0, FFMIN(min_non_zero, BITMAP_SIZE)); td 723 libavcodec/exr.c bytestream2_get_buffer(&gb, td->bitmap + min_non_zero, td 725 libavcodec/exr.c memset(td->bitmap + max_non_zero + 1, 0, BITMAP_SIZE - max_non_zero - 1); td 727 libavcodec/exr.c maxval = reverse_lut(td->bitmap, td->lut); td 743 libavcodec/exr.c wav_decode(ptr + j, td->xsize, pixel_half_size, td->ysize, td 744 libavcodec/exr.c td->xsize * pixel_half_size, maxval); td 745 libavcodec/exr.c ptr += td->xsize * td->ysize * pixel_half_size; td 748 libavcodec/exr.c apply_lut(td->lut, tmp, dsize / sizeof(uint16_t)); td 750 libavcodec/exr.c out = (uint16_t *)td->uncompressed_data; td 751 libavcodec/exr.c for (i = 0; i < td->ysize; i++) { td 760 libavcodec/exr.c in = tmp + tmp_offset * td->xsize * td->ysize + i * td->xsize * pixel_half_size; td 764 libavcodec/exr.c s->bbdsp.bswap16_buf(out, in, td->xsize * pixel_half_size); td 766 libavcodec/exr.c memcpy(out, in, td->xsize * 2 * pixel_half_size); td 768 libavcodec/exr.c out += td->xsize * pixel_half_size; td 777 libavcodec/exr.c EXRThreadData *td) td 780 libavcodec/exr.c const uint8_t *in = td->tmp; td 786 libavcodec/exr.c expected_len += (td->xsize * td->ysize * 3);/* PRX 24 store float in 24 bit instead of 32 */ td 788 libavcodec/exr.c expected_len += (td->xsize * td->ysize * 2); td 790 libavcodec/exr.c expected_len += (td->xsize * td->ysize * 4); td 796 libavcodec/exr.c if (uncompress(td->tmp, &dest_len, src, compressed_size) != Z_OK) { td 802 libavcodec/exr.c out = td->uncompressed_data; td 803 libavcodec/exr.c for (i = 0; i < td->ysize; i++) td 812 libavcodec/exr.c ptr[1] = ptr[0] + td->xsize; td 813 libavcodec/exr.c ptr[2] = ptr[1] + td->xsize; td 814 libavcodec/exr.c in = ptr[2] + td->xsize; td 816 libavcodec/exr.c for (j = 0; j < td->xsize; ++j) { td 826 libavcodec/exr.c ptr[1] = ptr[0] + td->xsize; td 827 libavcodec/exr.c in = ptr[1] + td->xsize; td 828 libavcodec/exr.c for (j = 0; j < td->xsize; j++) { td 911 libavcodec/exr.c int uncompressed_size, EXRThreadData *td) { td 921 libavcodec/exr.c nb_b44_block_w = td->xsize / 4; td 922 libavcodec/exr.c if ((td->xsize % 4) != 0) td 925 libavcodec/exr.c nb_b44_block_h = td->ysize / 4; td 926 libavcodec/exr.c if ((td->ysize % 4) != 0) td 956 libavcodec/exr.c for (y = index_tl_y; y < FFMIN(index_tl_y + 4, td->ysize); y++) { td 957 libavcodec/exr.c for (x = index_tl_x; x < FFMIN(index_tl_x + 4, td->xsize); x++) { td 958 libavcodec/exr.c index_out = target_channel_offset * td->xsize + y * td->channel_line_size + 2 * x; td 960 libavcodec/exr.c td->uncompressed_data[index_out] = tmp_buffer[index_tmp] & 0xff; td 961 libavcodec/exr.c td->uncompressed_data[index_out + 1] = tmp_buffer[index_tmp] >> 8; td 968 libavcodec/exr.c if (stay_to_uncompress < td->ysize * td->xsize * 4) { td 973 libavcodec/exr.c for (y = 0; y < td->ysize; y++) { td 974 libavcodec/exr.c index_out = target_channel_offset * td->xsize + y * td->channel_line_size; td 975 libavcodec/exr.c memcpy(&td->uncompressed_data[index_out], sr, td->xsize * 4); td 976 libavcodec/exr.c sr += td->xsize * 4; td 980 libavcodec/exr.c stay_to_uncompress -= td->ysize * td->xsize * 4; td 992 libavcodec/exr.c EXRThreadData *td = &s->thread_data[threadnr]; td 1044 libavcodec/exr.c td->ysize = FFMIN(s->tile_attr.ySize, s->ydelta - tile_y * s->tile_attr.ySize); td 1045 libavcodec/exr.c td->xsize = FFMIN(s->tile_attr.xSize, s->xdelta - tile_x * s->tile_attr.xSize); td 1051 libavcodec/exr.c if ((col + td->xsize) != s->xdelta)/* not the last tile of the line */ td 1054 libavcodec/exr.c td->channel_line_size = td->xsize * s->current_channel_offset;/* uncompress size of one line */ td 1055 libavcodec/exr.c uncompressed_size = td->channel_line_size * (uint64_t)td->ysize;/* uncompress size of the block */ td 1070 libavcodec/exr.c td->ysize = FFMIN(s->scan_lines_per_block, s->ymax - line + 1); /* s->ydelta - line ?? */ td 1071 libavcodec/exr.c td->xsize = s->xdelta; td 1073 libavcodec/exr.c td->channel_line_size = td->xsize * s->current_channel_offset;/* uncompress size of one line */ td 1074 libavcodec/exr.c uncompressed_size = td->channel_line_size * (uint64_t)td->ysize;/* uncompress size of the block */ td 1085 libavcodec/exr.c av_fast_padded_malloc(&td->tmp, &td->tmp_size, uncompressed_size); td 1086 libavcodec/exr.c if (!td->tmp) td 1091 libavcodec/exr.c av_fast_padded_malloc(&td->uncompressed_data, td 1092 libavcodec/exr.c &td->uncompressed_size, uncompressed_size + 64);/* Force 64 padding for AVX2 reorder_pixels dst */ td 1094 libavcodec/exr.c if (!td->uncompressed_data) td 1101 libavcodec/exr.c ret = zip_uncompress(s, src, data_size, uncompressed_size, td); td 1104 libavcodec/exr.c ret = piz_uncompress(s, src, data_size, uncompressed_size, td); td 1107 libavcodec/exr.c ret = pxr24_uncompress(s, src, data_size, uncompressed_size, td); td 1110 libavcodec/exr.c ret = rle_uncompress(s, src, data_size, uncompressed_size, td); td 1114 libavcodec/exr.c ret = b44_uncompress(s, src, data_size, uncompressed_size, td); td 1121 libavcodec/exr.c src = td->uncompressed_data; td 1125 libavcodec/exr.c channel_buffer[0] = src + td->xsize * s->channel_offsets[0]; td 1126 libavcodec/exr.c channel_buffer[1] = src + td->xsize * s->channel_offsets[1]; td 1127 libavcodec/exr.c channel_buffer[2] = src + td->xsize * s->channel_offsets[2]; td 1130 libavcodec/exr.c channel_buffer[0] = src + td->xsize * s->channel_offsets[1]; td 1134 libavcodec/exr.c channel_buffer[3] = src + td->xsize * s->channel_offsets[3]; td 1149 libavcodec/exr.c for (i = 0; i < td->ysize; i++, ptr += p->linesize[plane]) { td 1164 libavcodec/exr.c for (x = 0; x < td->xsize; x++) { td 1170 libavcodec/exr.c for (x = 0; x < td->xsize; x++) { td 1180 libavcodec/exr.c for (x = 0; x < td->xsize; x++) { td 1184 libavcodec/exr.c for (x = 0; x < td->xsize; x++) { td 1192 libavcodec/exr.c channel_buffer[c] += td->channel_line_size; td 1200 libavcodec/exr.c for (i = 0; i < td->ysize; i++, ptr += p->linesize[0]) { td 1219 libavcodec/exr.c for (x = 0; x < td->xsize; x++) { td 1231 libavcodec/exr.c channel_buffer[0] += td->channel_line_size; td 1232 libavcodec/exr.c channel_buffer[1] += td->channel_line_size; td 1233 libavcodec/exr.c channel_buffer[2] += td->channel_line_size; td 1235 libavcodec/exr.c channel_buffer[3] += td->channel_line_size; td 1877 libavcodec/exr.c EXRThreadData *td = &s->thread_data[i]; td 1878 libavcodec/exr.c av_freep(&td->uncompressed_data); td 1879 libavcodec/exr.c av_freep(&td->tmp); td 1880 libavcodec/exr.c av_freep(&td->bitmap); td 1881 libavcodec/exr.c av_freep(&td->lut); td 92 libavcodec/g726.c int td; /**< tone detect */ td 205 libavcodec/g726.c tr= (c->td == 1 && dq > ((3*thr2)>>2)); td 242 libavcodec/g726.c c->td = c->a[1] < -11776; td 251 libavcodec/g726.c if (c->y <= 1535 || c->td || abs((c->dms << 2) - c->dml) >= (c->dml >> 3)) td 43 libavcodec/h264_direct.c int td = av_clip_int8(pocdiff); td 48 libavcodec/h264_direct.c if (td == 0 || sl->ref_list[0][i].parent->long_ref) { td 53 libavcodec/h264_direct.c int tx = (16384 + (FFABS(td) >> 1)) / td; td 701 libavcodec/h264_slice.c int td = av_clip_int8(poc1 - poc0); td 702 libavcodec/h264_slice.c if (td) { td 704 libavcodec/h264_slice.c int tx = (16384 + (FFABS(td) >> 1)) / td; td 115 libavcodec/hevc_mvs.c static av_always_inline void mv_scale(Mv *dst, Mv *src, int td, int tb) td 119 libavcodec/hevc_mvs.c td = av_clip_int8(td); td 121 libavcodec/hevc_mvs.c tx = (0x4000 + abs(td / 2)) / td; td 1974 libavcodec/jpeg2000dec.c static int jpeg2000_decode_tile(AVCodecContext *avctx, void *td, td 1978 libavcodec/jpeg2000dec.c AVFrame *picture = td; td 733 libavcodec/proresenc_kostya.c const int16_t *qmat, ProresThreadData *td) td 740 libavcodec/proresenc_kostya.c bits = estimate_dcs(error, td->blocks[plane], blocks_per_slice, qmat[0]); td 741 libavcodec/proresenc_kostya.c bits += estimate_acs(error, td->blocks[plane], blocks_per_slice, td 806 libavcodec/proresenc_kostya.c ProresThreadData *td) td 855 libavcodec/proresenc_kostya.c td->blocks[i], td->emu_buf, td 860 libavcodec/proresenc_kostya.c td->blocks[i], mbs_per_slice, ctx->alpha_bits); td 865 libavcodec/proresenc_kostya.c td->nodes[trellis_node + q].prev_node = -1; td 866 libavcodec/proresenc_kostya.c td->nodes[trellis_node + q].quant = q; td 871 libavcodec/proresenc_kostya.c mbs_per_slice, td->blocks[3]); td 880 libavcodec/proresenc_kostya.c ctx->quants[q], td); /* estimate luma plane */ td 886 libavcodec/proresenc_kostya.c ctx->quants_chroma[q], td); td 906 libavcodec/proresenc_kostya.c qmat = td->custom_q; td 907 libavcodec/proresenc_kostya.c qmat_chroma = td->custom_chroma_q; td 917 libavcodec/proresenc_kostya.c qmat, td);/* estimate luma plane */ td 923 libavcodec/proresenc_kostya.c qmat_chroma, td); td 933 libavcodec/proresenc_kostya.c td->nodes[trellis_node + max_quant + 1].quant = overquant; td 942 libavcodec/proresenc_kostya.c bits = td->nodes[prev].bits + slice_bits[q]; td 947 libavcodec/proresenc_kostya.c if (td->nodes[prev].score < SCORE_LIMIT && error < SCORE_LIMIT) td 948 libavcodec/proresenc_kostya.c new_score = td->nodes[prev].score + error; td 951 libavcodec/proresenc_kostya.c if (td->nodes[cur].prev_node == -1 || td 952 libavcodec/proresenc_kostya.c td->nodes[cur].score >= new_score) { td 954 libavcodec/proresenc_kostya.c td->nodes[cur].bits = bits; td 955 libavcodec/proresenc_kostya.c td->nodes[cur].score = new_score; td 956 libavcodec/proresenc_kostya.c td->nodes[cur].prev_node = prev; td 961 libavcodec/proresenc_kostya.c error = td->nodes[trellis_node + min_quant].score; td 964 libavcodec/proresenc_kostya.c if (td->nodes[trellis_node + q].score <= error) { td 965 libavcodec/proresenc_kostya.c error = td->nodes[trellis_node + q].score; td 977 libavcodec/proresenc_kostya.c ProresThreadData *td = ctx->tdata + threadnr; td 986 libavcodec/proresenc_kostya.c mbs_per_slice, td); td 990 libavcodec/proresenc_kostya.c ctx->slice_q[x + y * ctx->slices_width] = td->nodes[q].quant; td 991 libavcodec/proresenc_kostya.c q = td->nodes[q].prev_node; td 85 libavcodec/v210dec.c ThreadData *td = arg; td 86 libavcodec/v210dec.c AVFrame *frame = td->frame; td 87 libavcodec/v210dec.c int stride = td->stride; td 90 libavcodec/v210dec.c uint8_t *psrc = td->buf + stride * slice_start; td 144 libavcodec/v210dec.c ThreadData td; td 168 libavcodec/v210dec.c td.stride = stride; td 187 libavcodec/v210dec.c td.buf = (uint8_t*)psrc; td 188 libavcodec/v210dec.c td.frame = pic; td 189 libavcodec/v210dec.c avctx->execute2(avctx, v210_decode_slice, &td, NULL, s->thread_count); td 54 libavcodec/v410dec.c ThreadData *td = arg; td 55 libavcodec/v410dec.c AVFrame *pic = td->frame; td 56 libavcodec/v410dec.c int stride = td->stride; td 60 libavcodec/v410dec.c const uint8_t *src = td->buf + stride * slice_start; td 91 libavcodec/v410dec.c ThreadData td; td 98 libavcodec/v410dec.c td.stride = avctx->width * 4; td 110 libavcodec/v410dec.c td.buf = src; td 111 libavcodec/v410dec.c td.frame = pic; td 112 libavcodec/v410dec.c avctx->execute2(avctx, v410_decode_slice, &td, NULL, thread_count); td 1466 libavcodec/vp8.c void decode_mb_coeffs(VP8Context *s, VP8ThreadData *td, VP56RangeCoder *c, td 1479 libavcodec/vp8.c nnz = decode_block_coeffs(c, td->block_dc, s->prob->token[1], 0, td 1485 libavcodec/vp8.c nnz |= inter_predict_dc(td->block_dc, td 1493 libavcodec/vp8.c s->vp8dsp.vp8_luma_dc_wht_dc(td->block, td->block_dc); td 1495 libavcodec/vp8.c s->vp8dsp.vp8_luma_dc_wht(td->block, td->block_dc); td 1505 libavcodec/vp8.c nnz = decode_block_coeffs(c, td->block[y][x], td 1512 libavcodec/vp8.c td->non_zero_count_cache[y][x] = nnz + block_dc; td 1524 libavcodec/vp8.c nnz = decode_block_coeffs(c, td->block[i][(y << 1) + x], td 1528 libavcodec/vp8.c td->non_zero_count_cache[i][(y << 1) + x] = nnz; td 1667 libavcodec/vp8.c void intra_predict(VP8Context *s, VP8ThreadData *td, uint8_t *dst[3], td 1675 libavcodec/vp8.c if (mb_y && (s->deblock_filter || !mb_y) && td->thread_nr == 0) td 1702 libavcodec/vp8.c AV_ZERO128(td->non_zero_count_cache); td 1753 libavcodec/vp8.c nnz = td->non_zero_count_cache[y][x]; td 1757 libavcodec/vp8.c td->block[y][x], s->linesize); td 1760 libavcodec/vp8.c td->block[y][x], s->linesize); td 1775 libavcodec/vp8.c if (mb_y && (s->deblock_filter || !mb_y) && td->thread_nr == 0) td 1805 libavcodec/vp8.c void vp8_mc_luma(VP8Context *s, VP8ThreadData *td, uint8_t *dst, td 1827 libavcodec/vp8.c s->vdsp.emulated_edge_mc(td->edge_emu_buffer, td 1834 libavcodec/vp8.c src = td->edge_emu_buffer + mx_idx + EDGE_EMU_LINESIZE * my_idx; td 1863 libavcodec/vp8.c void vp8_mc_chroma(VP8Context *s, VP8ThreadData *td, uint8_t *dst1, td 1884 libavcodec/vp8.c s->vdsp.emulated_edge_mc(td->edge_emu_buffer, td 1890 libavcodec/vp8.c src1 = td->edge_emu_buffer + mx_idx + EDGE_EMU_LINESIZE * my_idx; td 1893 libavcodec/vp8.c s->vdsp.emulated_edge_mc(td->edge_emu_buffer, td 1899 libavcodec/vp8.c src2 = td->edge_emu_buffer + mx_idx + EDGE_EMU_LINESIZE * my_idx; td 1913 libavcodec/vp8.c void vp8_mc_part(VP8Context *s, VP8ThreadData *td, uint8_t *dst[3], td 1921 libavcodec/vp8.c vp8_mc_luma(s, td, dst[0] + by_off * s->linesize + bx_off, td 1941 libavcodec/vp8.c vp8_mc_chroma(s, td, dst[1] + by_off * s->uvlinesize + bx_off, td 1974 libavcodec/vp8.c void inter_predict(VP8Context *s, VP8ThreadData *td, uint8_t *dst[3], td 1984 libavcodec/vp8.c vp8_mc_part(s, td, dst, ref, x_off, y_off, td 1994 libavcodec/vp8.c vp8_mc_luma(s, td, dst[0] + 4 * y * s->linesize + x * 4, td 2023 libavcodec/vp8.c vp8_mc_chroma(s, td, dst[1] + 4 * y * s->uvlinesize + x * 4, td 2033 libavcodec/vp8.c vp8_mc_part(s, td, dst, ref, x_off, y_off, td 2035 libavcodec/vp8.c vp8_mc_part(s, td, dst, ref, x_off, y_off, td 2039 libavcodec/vp8.c vp8_mc_part(s, td, dst, ref, x_off, y_off, td 2041 libavcodec/vp8.c vp8_mc_part(s, td, dst, ref, x_off, y_off, td 2045 libavcodec/vp8.c vp8_mc_part(s, td, dst, ref, x_off, y_off, td 2047 libavcodec/vp8.c vp8_mc_part(s, td, dst, ref, x_off, y_off, td 2049 libavcodec/vp8.c vp8_mc_part(s, td, dst, ref, x_off, y_off, td 2051 libavcodec/vp8.c vp8_mc_part(s, td, dst, ref, x_off, y_off, td 2058 libavcodec/vp8.c void idct_mb(VP8Context *s, VP8ThreadData *td, uint8_t *dst[3], VP8Macroblock *mb) td 2065 libavcodec/vp8.c uint32_t nnz4 = AV_RL32(td->non_zero_count_cache[y]); td 2071 libavcodec/vp8.c td->block[y][x], td 2075 libavcodec/vp8.c td->block[y][x], td 2082 libavcodec/vp8.c s->vp8dsp.vp8_idct_dc_add4y(y_dst, td->block[y], s->linesize); td 2090 libavcodec/vp8.c uint32_t nnz4 = AV_RL32(td->non_zero_count_cache[4 + ch]); td 2098 libavcodec/vp8.c td->block[4 + ch][(y << 1) + x], td 2102 libavcodec/vp8.c td->block[4 + ch][(y << 1) + x], td 2111 libavcodec/vp8.c s->vp8dsp.vp8_idct_dc_add4uv(ch_dst, td->block[4 + ch], s->uvlinesize); td 2324 libavcodec/vp8.c #define check_thread_pos(td, otd, mb_x_check, mb_y_check) \ td 2329 libavcodec/vp8.c atomic_store(&td->wait_mb_pos, tmp); \ td 2335 libavcodec/vp8.c atomic_store(&td->wait_mb_pos, INT_MAX); \ td 2340 libavcodec/vp8.c #define update_pos(td, mb_y, mb_x) \ td 2347 libavcodec/vp8.c (next_td != td && pos >= atomic_load(&next_td->wait_mb_pos)) || \ td 2348 libavcodec/vp8.c (prev_td != td && pos >= atomic_load(&prev_td->wait_mb_pos)); \ td 2349 libavcodec/vp8.c atomic_store(&td->thread_mb_pos, pos); \ td 2351 libavcodec/vp8.c pthread_mutex_lock(&td->lock); \ td 2352 libavcodec/vp8.c pthread_cond_broadcast(&td->cond); \ td 2353 libavcodec/vp8.c pthread_mutex_unlock(&td->lock); \ td 2357 libavcodec/vp8.c #define check_thread_pos(td, otd, mb_x_check, mb_y_check) while(0) td 2358 libavcodec/vp8.c #define update_pos(td, mb_y, mb_x) while(0) td 2365 libavcodec/vp8.c VP8ThreadData *prev_td, *next_td, *td = &s->thread_data[threadnr]; td 2366 libavcodec/vp8.c int mb_y = atomic_load(&td->thread_mb_pos) >> 16; td 2382 libavcodec/vp8.c prev_td = td; td 2386 libavcodec/vp8.c next_td = td; td 2403 libavcodec/vp8.c memset(td->left_nnz, 0, sizeof(td->left_nnz)); td 2405 libavcodec/vp8.c td->mv_bounds.mv_min.x = -MARGIN; td 2406 libavcodec/vp8.c td->mv_bounds.mv_max.x = ((s->mb_width - 1) << 6) + MARGIN; td 2412 libavcodec/vp8.c if (prev_td != td) { td 2414 libavcodec/vp8.c check_thread_pos(td, prev_td, td 2418 libavcodec/vp8.c check_thread_pos(td, prev_td, td 2430 libavcodec/vp8.c decode_mb_mode(s, &td->mv_bounds, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy, td 2437 libavcodec/vp8.c decode_mb_coeffs(s, td, c, mb, s->top_nnz[mb_x], td->left_nnz, is_vp7); td 2440 libavcodec/vp8.c intra_predict(s, td, dst, mb, mb_x, mb_y, is_vp7); td 2442 libavcodec/vp8.c inter_predict(s, td, dst, mb, mb_x, mb_y); td 2447 libavcodec/vp8.c idct_mb(s, td, dst, mb); td 2449 libavcodec/vp8.c AV_ZERO64(td->left_nnz); td 2455 libavcodec/vp8.c td->left_nnz[8] = 0; td 2461 libavcodec/vp8.c filter_level_for_mb(s, mb, &td->filter_strength[mb_x], is_vp7); td 2477 libavcodec/vp8.c td->mv_bounds.mv_min.x -= 64; td 2478 libavcodec/vp8.c td->mv_bounds.mv_max.x -= 64; td 2481 libavcodec/vp8.c update_pos(td, mb_y, s->mb_width + 3); td 2483 libavcodec/vp8.c update_pos(td, mb_y, mb_x); td 2505 libavcodec/vp8.c VP8ThreadData *td = &s->thread_data[threadnr]; td 2506 libavcodec/vp8.c int mb_x, mb_y = atomic_load(&td->thread_mb_pos) >> 16, num_jobs = s->num_jobs; td 2522 libavcodec/vp8.c prev_td = td; td 2526 libavcodec/vp8.c next_td = td; td 2531 libavcodec/vp8.c VP8FilterStrength *f = &td->filter_strength[mb_x]; td 2532 libavcodec/vp8.c if (prev_td != td) td 2533 libavcodec/vp8.c check_thread_pos(td, prev_td, td 2535 libavcodec/vp8.c if (next_td != td) td 2537 libavcodec/vp8.c check_thread_pos(td, next_td, mb_x + 1, mb_y + 1); td 2556 libavcodec/vp8.c update_pos(td, mb_y, (s->mb_width + 3) + mb_x); td 2577 libavcodec/vp8.c VP8ThreadData *td = &s->thread_data[jobnr]; td 2583 libavcodec/vp8.c td->thread_nr = threadnr; td 2584 libavcodec/vp8.c td->mv_bounds.mv_min.y = -MARGIN - 64 * threadnr; td 2585 libavcodec/vp8.c td->mv_bounds.mv_max.y = ((s->mb_height - 1) << 6) + MARGIN - 64 * threadnr; td 2587 libavcodec/vp8.c atomic_store(&td->thread_mb_pos, mb_y << 16); td 2590 libavcodec/vp8.c update_pos(td, s->mb_height, INT_MAX & 0xFFFF); td 2595 libavcodec/vp8.c update_pos(td, mb_y, INT_MAX & 0xFFFF); td 2597 libavcodec/vp8.c td->mv_bounds.mv_min.y -= 64 * num_jobs; td 2598 libavcodec/vp8.c td->mv_bounds.mv_max.y -= 64 * num_jobs; td 2773 libavcodec/vp8.c VP8ThreadData *td = &s->thread_data[i]; td 2774 libavcodec/vp8.c atomic_init(&td->thread_mb_pos, 0); td 2775 libavcodec/vp8.c atomic_init(&td->wait_mb_pos, INT_MAX); td 97 libavcodec/vp9.c static void vp9_tile_data_free(VP9TileData *td) td 99 libavcodec/vp9.c av_freep(&td->b_base); td 100 libavcodec/vp9.c av_freep(&td->block_base); td 101 libavcodec/vp9.c av_freep(&td->block_structure); td 291 libavcodec/vp9.c if (s->td) { td 293 libavcodec/vp9.c vp9_tile_data_free(&s->td[i]); td 310 libavcodec/vp9.c VP9TileData *td = &s->td[0]; td 312 libavcodec/vp9.c if (td->b_base && td->block_base && s->block_alloc_using_2pass == s->s.frames[CUR_FRAME].uses_2pass) td 315 libavcodec/vp9.c vp9_tile_data_free(td); td 321 libavcodec/vp9.c td->b_base = av_malloc_array(s->cols * s->rows, sizeof(VP9Block)); td 322 libavcodec/vp9.c td->block_base = av_mallocz(((64 * 64 + 2 * chroma_blocks) * bytesperpixel * sizeof(int16_t) + td 324 libavcodec/vp9.c if (!td->b_base || !td->block_base) td 326 libavcodec/vp9.c td->uvblock_base[0] = td->block_base + sbs * 64 * 64 * bytesperpixel; td 327 libavcodec/vp9.c td->uvblock_base[1] = td->uvblock_base[0] + sbs * chroma_blocks * bytesperpixel; td 328 libavcodec/vp9.c td->eob_base = (uint8_t *) (td->uvblock_base[1] + sbs * chroma_blocks * bytesperpixel); td 329 libavcodec/vp9.c td->uveob_base[0] = td->eob_base + 16 * 16 * sbs; td 330 libavcodec/vp9.c td->uveob_base[1] = td->uveob_base[0] + chroma_eobs * sbs; td 333 libavcodec/vp9.c td->block_structure = av_malloc_array(s->cols * s->rows, sizeof(*td->block_structure)); td 334 libavcodec/vp9.c if (!td->block_structure) td 339 libavcodec/vp9.c vp9_tile_data_free(&s->td[i]); td 342 libavcodec/vp9.c s->td[i].b_base = av_malloc(sizeof(VP9Block)); td 343 libavcodec/vp9.c s->td[i].block_base = av_mallocz((64 * 64 + 2 * chroma_blocks) * bytesperpixel * sizeof(int16_t) + td 345 libavcodec/vp9.c if (!s->td[i].b_base || !s->td[i].block_base) td 347 libavcodec/vp9.c s->td[i].uvblock_base[0] = s->td[i].block_base + 64 * 64 * bytesperpixel; td 348 libavcodec/vp9.c s->td[i].uvblock_base[1] = s->td[i].uvblock_base[0] + chroma_blocks * bytesperpixel; td 349 libavcodec/vp9.c s->td[i].eob_base = (uint8_t *) (s->td[i].uvblock_base[1] + chroma_blocks * bytesperpixel); td 350 libavcodec/vp9.c s->td[i].uveob_base[0] = s->td[i].eob_base + 16 * 16; td 351 libavcodec/vp9.c s->td[i].uveob_base[1] = s->td[i].uveob_base[0] + chroma_eobs; td 354 libavcodec/vp9.c s->td[i].block_structure = av_malloc_array(s->cols * s->rows, sizeof(*td->block_structure)); td 355 libavcodec/vp9.c if (!s->td[i].block_structure) td 789 libavcodec/vp9.c if (s->td) { td 791 libavcodec/vp9.c vp9_tile_data_free(&s->td[i]); td 792 libavcodec/vp9.c av_free(s->td); td 805 libavcodec/vp9.c s->td = av_mallocz_array(s->active_tile_cols, sizeof(VP9TileData) + td 807 libavcodec/vp9.c if (!s->td) td 809 libavcodec/vp9.c rc = (VP56RangeCoder *) &s->td[s->active_tile_cols]; td 811 libavcodec/vp9.c s->td[i].s = s; td 812 libavcodec/vp9.c s->td[i].c_b = rc; td 892 libavcodec/vp9.c memset(s->td[i].counts.coef, 0, sizeof(s->td[0].counts.coef)); td 893 libavcodec/vp9.c memset(s->td[i].counts.eob, 0, sizeof(s->td[0].counts.eob)); td 895 libavcodec/vp9.c memset(&s->td[i].counts, 0, sizeof(s->td[0].counts)); td 897 libavcodec/vp9.c s->td[i].nb_block_structure = 0; td 1088 libavcodec/vp9.c static void decode_sb(VP9TileData *td, int row, int col, VP9Filter *lflvl, td 1091 libavcodec/vp9.c const VP9Context *s = td->s; td 1093 libavcodec/vp9.c (((td->left_partition_ctx[row & 0x7] >> (3 - bl)) & 1) << 1); td 1103 libavcodec/vp9.c bp = vp8_rac_get_tree(td->c, ff_vp9_partition_tree, p); td 1104 libavcodec/vp9.c ff_vp9_decode_block(td, row, col, lflvl, yoff, uvoff, bl, bp); td 1107 libavcodec/vp9.c bp = vp8_rac_get_tree(td->c, ff_vp9_partition_tree, p); td 1110 libavcodec/vp9.c ff_vp9_decode_block(td, row, col, lflvl, yoff, uvoff, bl, bp); td 1113 libavcodec/vp9.c ff_vp9_decode_block(td, row, col, lflvl, yoff, uvoff, bl, bp); td 1116 libavcodec/vp9.c ff_vp9_decode_block(td, row + hbs, col, lflvl, yoff, uvoff, bl, bp); td 1119 libavcodec/vp9.c ff_vp9_decode_block(td, row, col, lflvl, yoff, uvoff, bl, bp); td 1122 libavcodec/vp9.c ff_vp9_decode_block(td, row, col + hbs, lflvl, yoff, uvoff, bl, bp); td 1125 libavcodec/vp9.c decode_sb(td, row, col, lflvl, yoff, uvoff, bl + 1); td 1126 libavcodec/vp9.c decode_sb(td, row, col + hbs, lflvl, td 1131 libavcodec/vp9.c decode_sb(td, row + hbs, col, lflvl, yoff, uvoff, bl + 1); td 1132 libavcodec/vp9.c decode_sb(td, row + hbs, col + hbs, lflvl, td 1139 libavcodec/vp9.c } else if (vp56_rac_get_prob_branchy(td->c, p[1])) { td 1141 libavcodec/vp9.c decode_sb(td, row, col, lflvl, yoff, uvoff, bl + 1); td 1142 libavcodec/vp9.c decode_sb(td, row, col + hbs, lflvl, td 1147 libavcodec/vp9.c ff_vp9_decode_block(td, row, col, lflvl, yoff, uvoff, bl, bp); td 1150 libavcodec/vp9.c if (vp56_rac_get_prob_branchy(td->c, p[2])) { td 1152 libavcodec/vp9.c decode_sb(td, row, col, lflvl, yoff, uvoff, bl + 1); td 1155 libavcodec/vp9.c decode_sb(td, row + hbs, col, lflvl, yoff, uvoff, bl + 1); td 1158 libavcodec/vp9.c ff_vp9_decode_block(td, row, col, lflvl, yoff, uvoff, bl, bp); td 1162 libavcodec/vp9.c decode_sb(td, row, col, lflvl, yoff, uvoff, bl + 1); td 1164 libavcodec/vp9.c td->counts.partition[bl][c][bp]++; td 1167 libavcodec/vp9.c static void decode_sb_mem(VP9TileData *td, int row, int col, VP9Filter *lflvl, td 1170 libavcodec/vp9.c const VP9Context *s = td->s; td 1171 libavcodec/vp9.c VP9Block *b = td->b; td 1179 libavcodec/vp9.c ff_vp9_decode_block(td, row, col, lflvl, yoff, uvoff, b->bl, b->bp); td 1180 libavcodec/vp9.c } else if (td->b->bl == bl) { td 1181 libavcodec/vp9.c ff_vp9_decode_block(td, row, col, lflvl, yoff, uvoff, b->bl, b->bp); td 1185 libavcodec/vp9.c ff_vp9_decode_block(td, row + hbs, col, lflvl, yoff, uvoff, b->bl, b->bp); td 1189 libavcodec/vp9.c ff_vp9_decode_block(td, row, col + hbs, lflvl, yoff, uvoff, b->bl, b->bp); td 1192 libavcodec/vp9.c decode_sb_mem(td, row, col, lflvl, yoff, uvoff, bl + 1); td 1195 libavcodec/vp9.c decode_sb_mem(td, row, col + hbs, lflvl, yoff + 8 * hbs * bytesperpixel, td 1199 libavcodec/vp9.c decode_sb_mem(td, row + hbs, col, lflvl, yoff, uvoff, bl + 1); td 1200 libavcodec/vp9.c decode_sb_mem(td, row + hbs, col + hbs, lflvl, td 1206 libavcodec/vp9.c decode_sb_mem(td, row, col + hbs, lflvl, yoff, uvoff, bl + 1); td 1211 libavcodec/vp9.c decode_sb_mem(td, row + hbs, col, lflvl, yoff, uvoff, bl + 1); td 1230 libavcodec/vp9.c vp9_tile_data_free(&s->td[i]); td 1252 libavcodec/vp9.c av_freep(&s->td); td 1260 libavcodec/vp9.c VP9TileData *td = &s->td[0]; td 1292 libavcodec/vp9.c ret = ff_vp56_init_range_decoder(&td->c_b[tile_col], data, tile_size); td 1295 libavcodec/vp9.c if (vp56_rac_get_prob_branchy(&td->c_b[tile_col], 128)) { // marker bit td 1311 libavcodec/vp9.c td->tile_col_start = tile_col_start; td 1313 libavcodec/vp9.c memset(td->left_partition_ctx, 0, 8); td 1314 libavcodec/vp9.c memset(td->left_skip_ctx, 0, 8); td 1316 libavcodec/vp9.c memset(td->left_mode_ctx, DC_PRED, 16); td 1318 libavcodec/vp9.c memset(td->left_mode_ctx, NEARESTMV, 8); td 1320 libavcodec/vp9.c memset(td->left_y_nnz_ctx, 0, 16); td 1321 libavcodec/vp9.c memset(td->left_uv_nnz_ctx, 0, 32); td 1322 libavcodec/vp9.c memset(td->left_segpred_ctx, 0, 8); td 1324 libavcodec/vp9.c td->c = &td->c_b[tile_col]; td 1338 libavcodec/vp9.c decode_sb_mem(td, row, col, lflvl_ptr, td 1341 libavcodec/vp9.c if (vpX_rac_is_end(td->c)) { td 1344 libavcodec/vp9.c decode_sb(td, row, col, lflvl_ptr, td 1395 libavcodec/vp9.c VP9TileData *td = &s->td[jobnr]; td 1409 libavcodec/vp9.c td->tile_col_start = tile_col_start; td 1418 libavcodec/vp9.c td->c = &td->c_b[tile_row]; td 1424 libavcodec/vp9.c memset(td->left_partition_ctx, 0, 8); td 1425 libavcodec/vp9.c memset(td->left_skip_ctx, 0, 8); td 1427 libavcodec/vp9.c memset(td->left_mode_ctx, DC_PRED, 16); td 1429 libavcodec/vp9.c memset(td->left_mode_ctx, NEARESTMV, 8); td 1431 libavcodec/vp9.c memset(td->left_y_nnz_ctx, 0, 16); td 1432 libavcodec/vp9.c memset(td->left_uv_nnz_ctx, 0, 32); td 1433 libavcodec/vp9.c memset(td->left_segpred_ctx, 0, 8); td 1442 libavcodec/vp9.c decode_sb(td, row, col, lflvl_ptr, td 1506 libavcodec/vp9.c nb_blocks += s->td[tile].nb_block_structure; td 1526 libavcodec/vp9.c VP9TileData *td = &s->td[tile]; td 1528 libavcodec/vp9.c for (block_tile = 0; block_tile < td->nb_block_structure; block_tile++) { td 1530 libavcodec/vp9.c unsigned int row = td->block_structure[block_tile].row; td 1531 libavcodec/vp9.c unsigned int col = td->block_structure[block_tile].col; td 1536 libavcodec/vp9.c b->w = 1 << (3 + td->block_structure[block_tile].block_size_idx_x); td 1537 libavcodec/vp9.c b->h = 1 << (3 + td->block_structure[block_tile].block_size_idx_y); td 1690 libavcodec/vp9.c s->td[i].b = s->td[i].b_base; td 1691 libavcodec/vp9.c s->td[i].block = s->td[i].block_base; td 1692 libavcodec/vp9.c s->td[i].uvblock[0] = s->td[i].uvblock_base[0]; td 1693 libavcodec/vp9.c s->td[i].uvblock[1] = s->td[i].uvblock_base[1]; td 1694 libavcodec/vp9.c s->td[i].eob = s->td[i].eob_base; td 1695 libavcodec/vp9.c s->td[i].uveob[0] = s->td[i].uveob_base[0]; td 1696 libavcodec/vp9.c s->td[i].uveob[1] = s->td[i].uveob_base[1]; td 1697 libavcodec/vp9.c s->td[i].error_info = 0; td 1720 libavcodec/vp9.c ret = ff_vp56_init_range_decoder(&s->td[tile_col].c_b[tile_row], data, tile_size); td 1723 libavcodec/vp9.c if (vp56_rac_get_prob_branchy(&s->td[tile_col].c_b[tile_row], 128)) // marker bit td 1730 libavcodec/vp9.c ff_slice_thread_execute_with_mainfunc(avctx, decode_tiles_mt, loopfilter_proc, s->td, NULL, s->s.h.tiling.tile_cols); td 1744 libavcodec/vp9.c for (j = 0; j < sizeof(s->td[i].counts) / sizeof(unsigned); j++) td 1745 libavcodec/vp9.c ((unsigned *)&s->td[0].counts)[j] += ((unsigned *)&s->td[i].counts)[j]; td 1754 libavcodec/vp9.c if (s->td->error_info < 0) { td 1756 libavcodec/vp9.c s->td->error_info = 0; td 30 libavcodec/vp9_mc_template.c static void FN(inter_pred)(VP9TileData *td) td 36 libavcodec/vp9_mc_template.c VP9Context *s = td->s; td 37 libavcodec/vp9_mc_template.c VP9Block *b = td->b; td 38 libavcodec/vp9_mc_template.c int row = td->row, col = td->col; td 42 libavcodec/vp9_mc_template.c ptrdiff_t ls_y = td->y_stride, ls_uv = td->uv_stride; td 58 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[3][b->filter][0], td->dst[0], ls_y, td 61 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[3][b->filter][0], td 62 libavcodec/vp9_mc_template.c td->dst[0] + 4 * ls_y, ls_y, td 69 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][0], td 70 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 76 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][0], td 77 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 90 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][0], td 91 libavcodec/vp9_mc_template.c td->dst[1] + 4 * ls_uv, td->dst[2] + 4 * ls_uv, ls_uv, td 99 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[3][b->filter][1], td->dst[0], ls_y, td 102 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[3][b->filter][1], td 103 libavcodec/vp9_mc_template.c td->dst[0] + 4 * ls_y, ls_y, td 110 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][1], td 111 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 117 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][1], td 118 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 131 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[3 + s->ss_h][b->filter][1], td 132 libavcodec/vp9_mc_template.c td->dst[1] + 4 * ls_uv, td->dst[2] + 4 * ls_uv, ls_uv, td 140 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], td->dst[0], ls_y, td 143 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], td->dst[0] + 4 * bytesperpixel, ls_y, td 150 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 151 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 157 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 158 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 163 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 164 libavcodec/vp9_mc_template.c td->dst[1] + 4 * bytesperpixel, td 165 libavcodec/vp9_mc_template.c td->dst[2] + 4 * bytesperpixel, ls_uv, td 173 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], td->dst[0], ls_y, td 176 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], td->dst[0] + 4 * bytesperpixel, ls_y, td 183 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 184 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 190 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 191 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 196 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 197 libavcodec/vp9_mc_template.c td->dst[1] + 4 * bytesperpixel, td 198 libavcodec/vp9_mc_template.c td->dst[2] + 4 * bytesperpixel, ls_uv, td 214 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], td->dst[0], ls_y, td 218 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], td->dst[0] + 4 * bytesperpixel, ls_y, td 222 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], td 223 libavcodec/vp9_mc_template.c td->dst[0] + 4 * ls_y, ls_y, td 227 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][0], td 228 libavcodec/vp9_mc_template.c td->dst[0] + 4 * ls_y + 4 * bytesperpixel, ls_y, td 238 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 239 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 246 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 247 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 253 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 254 libavcodec/vp9_mc_template.c td->dst[1] + 4 * bytesperpixel, td 255 libavcodec/vp9_mc_template.c td->dst[2] + 4 * bytesperpixel, ls_uv, td 265 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 266 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 275 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 276 libavcodec/vp9_mc_template.c td->dst[1] + 4 * ls_uv, td->dst[2] + 4 * ls_uv, ls_uv, td 282 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 283 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 288 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 289 libavcodec/vp9_mc_template.c td->dst[1] + 4 * bytesperpixel, td 290 libavcodec/vp9_mc_template.c td->dst[2] + 4 * bytesperpixel, ls_uv, td 295 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 296 libavcodec/vp9_mc_template.c td->dst[1] + 4 * ls_uv, td->dst[2] + 4 * ls_uv, ls_uv, td 301 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][0], td 302 libavcodec/vp9_mc_template.c td->dst[1] + 4 * ls_uv + 4 * bytesperpixel, td 303 libavcodec/vp9_mc_template.c td->dst[2] + 4 * ls_uv + 4 * bytesperpixel, ls_uv, td 312 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], td->dst[0], ls_y, td 315 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], td->dst[0] + 4 * bytesperpixel, ls_y, td 318 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], td 319 libavcodec/vp9_mc_template.c td->dst[0] + 4 * ls_y, ls_y, td 322 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[4][b->filter][1], td 323 libavcodec/vp9_mc_template.c td->dst[0] + 4 * ls_y + 4 * bytesperpixel, ls_y, td 332 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 333 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 340 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 341 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 347 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 348 libavcodec/vp9_mc_template.c td->dst[1] + 4 * bytesperpixel, td 349 libavcodec/vp9_mc_template.c td->dst[2] + 4 * bytesperpixel, ls_uv, td 359 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 360 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 369 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 370 libavcodec/vp9_mc_template.c td->dst[1] + 4 * ls_uv, td->dst[2] + 4 * ls_uv, ls_uv, td 376 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 377 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 382 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 383 libavcodec/vp9_mc_template.c td->dst[1] + 4 * bytesperpixel, td 384 libavcodec/vp9_mc_template.c td->dst[2] + 4 * bytesperpixel, ls_uv, td 389 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 390 libavcodec/vp9_mc_template.c td->dst[1] + 4 * ls_uv, td->dst[2] + 4 * ls_uv, ls_uv, td 395 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[4][b->filter][1], td 396 libavcodec/vp9_mc_template.c td->dst[1] + 4 * ls_uv + 4 * bytesperpixel, td 397 libavcodec/vp9_mc_template.c td->dst[2] + 4 * ls_uv + 4 * bytesperpixel, ls_uv, td 413 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[bwl][b->filter][0], td->dst[0], ls_y, td 418 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[bwl + s->ss_h][b->filter][0], td 419 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 426 libavcodec/vp9_mc_template.c mc_luma_dir(td, mc[bwl][b->filter][1], td->dst[0], ls_y, td 431 libavcodec/vp9_mc_template.c mc_chroma_dir(td, mc[bwl + s->ss_h][b->filter][1], td 432 libavcodec/vp9_mc_template.c td->dst[1], td->dst[2], ls_uv, td 80 libavcodec/vp9block.c static void decode_mode(VP9TileData *td) td 92 libavcodec/vp9block.c VP9Context *s = td->s; td 93 libavcodec/vp9block.c VP9Block *b = td->b; td 94 libavcodec/vp9block.c int row = td->row, col = td->col, row7 = td->row7; td 98 libavcodec/vp9block.c int have_a = row > 0, have_l = col > td->tile_col_start; td 105 libavcodec/vp9block.c vp8_rac_get_tree(td->c, ff_vp9_segmentation_tree, s->s.h.segmentation.prob); td 108 libavcodec/vp9block.c vp56_rac_get_prob_branchy(td->c, td 110 libavcodec/vp9block.c td->left_segpred_ctx[row7]]))) { td 129 libavcodec/vp9block.c memset(&td->left_segpred_ctx[row7], 1, h4); td 131 libavcodec/vp9block.c b->seg_id = vp8_rac_get_tree(td->c, ff_vp9_segmentation_tree, td 135 libavcodec/vp9block.c memset(&td->left_segpred_ctx[row7], 0, h4); td 146 libavcodec/vp9block.c int c = td->left_skip_ctx[row7] + s->above_skip_ctx[col]; td 147 libavcodec/vp9block.c b->skip = vp56_rac_get_prob(td->c, s->prob.p.skip[c]); td 148 libavcodec/vp9block.c td->counts.skip[c][b->skip]++; td 159 libavcodec/vp9block.c c = s->above_intra_ctx[col] + td->left_intra_ctx[row7]; td 163 libavcodec/vp9block.c have_l ? 2 * td->left_intra_ctx[row7] : 0; td 165 libavcodec/vp9block.c bit = vp56_rac_get_prob(td->c, s->prob.p.intra[c]); td 166 libavcodec/vp9block.c td->counts.intra[c][bit]++; td 176 libavcodec/vp9block.c (td->left_skip_ctx[row7] ? max_tx : td 177 libavcodec/vp9block.c td->left_txfm_ctx[row7]) > max_tx; td 183 libavcodec/vp9block.c c = td->left_skip_ctx[row7] ? 1 : td 184 libavcodec/vp9block.c (td->left_txfm_ctx[row7] * 2 > max_tx); td 190 libavcodec/vp9block.c b->tx = vp56_rac_get_prob(td->c, s->prob.p.tx32p[c][0]); td 192 libavcodec/vp9block.c b->tx += vp56_rac_get_prob(td->c, s->prob.p.tx32p[c][1]); td 194 libavcodec/vp9block.c b->tx += vp56_rac_get_prob(td->c, s->prob.p.tx32p[c][2]); td 196 libavcodec/vp9block.c td->counts.tx32p[c][b->tx]++; td 199 libavcodec/vp9block.c b->tx = vp56_rac_get_prob(td->c, s->prob.p.tx16p[c][0]); td 201 libavcodec/vp9block.c b->tx += vp56_rac_get_prob(td->c, s->prob.p.tx16p[c][1]); td 202 libavcodec/vp9block.c td->counts.tx16p[c][b->tx]++; td 205 libavcodec/vp9block.c b->tx = vp56_rac_get_prob(td->c, s->prob.p.tx8p[c]); td 206 libavcodec/vp9block.c td->counts.tx8p[c][b->tx]++; td 218 libavcodec/vp9block.c uint8_t *l = &td->left_mode_ctx[(row7) << 1]; td 226 libavcodec/vp9block.c a[0] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 229 libavcodec/vp9block.c b->mode[1] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 240 libavcodec/vp9block.c a[0] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 243 libavcodec/vp9block.c b->mode[3] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 259 libavcodec/vp9block.c b->mode[0] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 268 libavcodec/vp9block.c b->uvmode = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 273 libavcodec/vp9block.c b->mode[0] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 275 libavcodec/vp9block.c td->counts.y_mode[0][b->mode[0]]++; td 277 libavcodec/vp9block.c b->mode[1] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 279 libavcodec/vp9block.c td->counts.y_mode[0][b->mode[1]]++; td 284 libavcodec/vp9block.c b->mode[2] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 286 libavcodec/vp9block.c td->counts.y_mode[0][b->mode[2]]++; td 288 libavcodec/vp9block.c b->mode[3] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 290 libavcodec/vp9block.c td->counts.y_mode[0][b->mode[3]]++; td 304 libavcodec/vp9block.c b->mode[0] = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 309 libavcodec/vp9block.c td->counts.y_mode[sz][b->mode[3]]++; td 311 libavcodec/vp9block.c b->uvmode = vp8_rac_get_tree(td->c, ff_vp9_intramode_tree, td 313 libavcodec/vp9block.c td->counts.uv_mode[b->mode[3]][b->uvmode]++; td 346 libavcodec/vp9block.c if (s->above_comp_ctx[col] && td->left_comp_ctx[row7]) { td 349 libavcodec/vp9block.c c = 2 + (td->left_intra_ctx[row7] || td 350 libavcodec/vp9block.c td->left_ref_ctx[row7] == s->s.h.fixcompref); td 351 libavcodec/vp9block.c } else if (td->left_comp_ctx[row7]) { td 357 libavcodec/vp9block.c (!td->left_intra_ctx[row7] && td 358 libavcodec/vp9block.c td->left_ref_ctx[row & 7] == s->s.h.fixcompref); td 365 libavcodec/vp9block.c c = td->left_comp_ctx[row7] ? 3 : td 366 libavcodec/vp9block.c (!td->left_intra_ctx[row7] && td->left_ref_ctx[row7] == s->s.h.fixcompref); td 370 libavcodec/vp9block.c b->comp = vp56_rac_get_prob(td->c, s->prob.p.comp[c]); td 371 libavcodec/vp9block.c td->counts.comp[c][b->comp]++; td 385 libavcodec/vp9block.c if (td->left_intra_ctx[row7]) { td 388 libavcodec/vp9block.c c = 1 + 2 * (td->left_ref_ctx[row7] != s->s.h.varcompref[1]); td 390 libavcodec/vp9block.c } else if (td->left_intra_ctx[row7]) { td 393 libavcodec/vp9block.c int refl = td->left_ref_ctx[row7], refa = s->above_ref_ctx[col]; td 397 libavcodec/vp9block.c } else if (!td->left_comp_ctx[row7] && !s->above_comp_ctx[col]) { td 404 libavcodec/vp9block.c } else if (!td->left_comp_ctx[row7]) { td 432 libavcodec/vp9block.c if (td->left_intra_ctx[row7]) { td 434 libavcodec/vp9block.c } else if (td->left_comp_ctx[row7]) { td 435 libavcodec/vp9block.c c = 4 * (td->left_ref_ctx[row7] != s->s.h.varcompref[1]); td 437 libavcodec/vp9block.c c = 3 * (td->left_ref_ctx[row7] != s->s.h.varcompref[1]); td 442 libavcodec/vp9block.c bit = vp56_rac_get_prob(td->c, s->prob.p.comp_ref[c]); td 444 libavcodec/vp9block.c td->counts.comp_ref[c][bit]++; td 449 libavcodec/vp9block.c if (have_l && !td->left_intra_ctx[row7]) { td 450 libavcodec/vp9block.c if (td->left_comp_ctx[row7]) { td 452 libavcodec/vp9block.c c = 1 + (!s->s.h.fixcompref || !td->left_ref_ctx[row7] || td 456 libavcodec/vp9block.c (!s->s.h.fixcompref || !td->left_ref_ctx[row7]); td 459 libavcodec/vp9block.c c = (3 * !td->left_ref_ctx[row7]) + td 462 libavcodec/vp9block.c c = 2 * !td->left_ref_ctx[row7] + 2 * !s->above_ref_ctx[col]; td 471 libavcodec/vp9block.c } else if (have_l && !td->left_intra_ctx[row7]) { td 472 libavcodec/vp9block.c if (td->left_intra_ctx[row7]) { td 474 libavcodec/vp9block.c } else if (td->left_comp_ctx[row7]) { td 475 libavcodec/vp9block.c c = 1 + (!s->s.h.fixcompref || !td->left_ref_ctx[row7]); td 477 libavcodec/vp9block.c c = 4 * (!td->left_ref_ctx[row7]); td 482 libavcodec/vp9block.c bit = vp56_rac_get_prob(td->c, s->prob.p.single_ref[c][0]); td 483 libavcodec/vp9block.c td->counts.single_ref[c][0][bit]++; td 490 libavcodec/vp9block.c if (td->left_intra_ctx[row7]) { td 502 libavcodec/vp9block.c if (td->left_intra_ctx[row7]) { td 504 libavcodec/vp9block.c } else if (td->left_comp_ctx[row7]) { td 506 libavcodec/vp9block.c td->left_ref_ctx[row7] == 1); td 507 libavcodec/vp9block.c } else if (!td->left_ref_ctx[row7]) { td 510 libavcodec/vp9block.c c = 4 * (td->left_ref_ctx[row7] == 1); td 513 libavcodec/vp9block.c if (td->left_comp_ctx[row7]) { td 514 libavcodec/vp9block.c if (td->left_ref_ctx[row7] == s->above_ref_ctx[col]) { td 516 libavcodec/vp9block.c td->left_ref_ctx[row7] == 1); td 520 libavcodec/vp9block.c } else if (!td->left_ref_ctx[row7]) { td 524 libavcodec/vp9block.c c = 3 * (td->left_ref_ctx[row7] == 1) + td 527 libavcodec/vp9block.c } else if (td->left_comp_ctx[row7]) { td 530 libavcodec/vp9block.c td->left_ref_ctx[row7] == 1); td 533 libavcodec/vp9block.c (s->s.h.fixcompref == 1 || td->left_ref_ctx[row7] == 1); td 536 libavcodec/vp9block.c if (!td->left_ref_ctx[row7]) { td 539 libavcodec/vp9block.c c = 4 * (td->left_ref_ctx[row7] == 1); td 541 libavcodec/vp9block.c } else if (!td->left_ref_ctx[row7]) { td 544 libavcodec/vp9block.c c = 2 * (td->left_ref_ctx[row7] == 1) + td 558 libavcodec/vp9block.c if (td->left_intra_ctx[row7] || td 559 libavcodec/vp9block.c (!td->left_comp_ctx[row7] && !td->left_ref_ctx[row7])) { td 561 libavcodec/vp9block.c } else if (td->left_comp_ctx[row7]) { td 562 libavcodec/vp9block.c c = 3 * (s->s.h.fixcompref == 1 || td->left_ref_ctx[row7] == 1); td 564 libavcodec/vp9block.c c = 4 * (td->left_ref_ctx[row7] == 1); td 569 libavcodec/vp9block.c bit = vp56_rac_get_prob(td->c, s->prob.p.single_ref[c][1]); td 570 libavcodec/vp9block.c td->counts.single_ref[c][1][bit]++; td 590 libavcodec/vp9block.c [td->left_mode_ctx[row7 + off[b->bs]]]; td 592 libavcodec/vp9block.c b->mode[0] = vp8_rac_get_tree(td->c, ff_vp9_inter_mode_tree, td 597 libavcodec/vp9block.c td->counts.mv_mode[c][b->mode[0] - 10]++; td 605 libavcodec/vp9block.c if (have_l && td->left_mode_ctx[row7] >= NEARESTMV) { td 606 libavcodec/vp9block.c c = s->above_filter_ctx[col] == td->left_filter_ctx[row7] ? td 607 libavcodec/vp9block.c td->left_filter_ctx[row7] : 3; td 611 libavcodec/vp9block.c } else if (have_l && td->left_mode_ctx[row7] >= NEARESTMV) { td 612 libavcodec/vp9block.c c = td->left_filter_ctx[row7]; td 617 libavcodec/vp9block.c filter_id = vp8_rac_get_tree(td->c, ff_vp9_filter_tree, td 619 libavcodec/vp9block.c td->counts.filter[c][filter_id]++; td 626 libavcodec/vp9block.c int c = inter_mode_ctx_lut[s->above_mode_ctx[col]][td->left_mode_ctx[row7]]; td 628 libavcodec/vp9block.c b->mode[0] = vp8_rac_get_tree(td->c, ff_vp9_inter_mode_tree, td 630 libavcodec/vp9block.c td->counts.mv_mode[c][b->mode[0] - 10]++; td 631 libavcodec/vp9block.c ff_vp9_fill_mv(td, b->mv[0], b->mode[0], 0); td 634 libavcodec/vp9block.c b->mode[1] = vp8_rac_get_tree(td->c, ff_vp9_inter_mode_tree, td 636 libavcodec/vp9block.c td->counts.mv_mode[c][b->mode[1] - 10]++; td 637 libavcodec/vp9block.c ff_vp9_fill_mv(td, b->mv[1], b->mode[1], 1); td 645 libavcodec/vp9block.c b->mode[2] = vp8_rac_get_tree(td->c, ff_vp9_inter_mode_tree, td 647 libavcodec/vp9block.c td->counts.mv_mode[c][b->mode[2] - 10]++; td 648 libavcodec/vp9block.c ff_vp9_fill_mv(td, b->mv[2], b->mode[2], 2); td 651 libavcodec/vp9block.c b->mode[3] = vp8_rac_get_tree(td->c, ff_vp9_inter_mode_tree, td 653 libavcodec/vp9block.c td->counts.mv_mode[c][b->mode[3] - 10]++; td 654 libavcodec/vp9block.c ff_vp9_fill_mv(td, b->mv[3], b->mode[3], 3); td 669 libavcodec/vp9block.c ff_vp9_fill_mv(td, b->mv[0], b->mode[0], -1); td 742 libavcodec/vp9block.c case 1: SET_CTXS(td, left, row7, 1); break; td 743 libavcodec/vp9block.c case 2: SET_CTXS(td, left, row7, 2); break; td 744 libavcodec/vp9block.c case 4: SET_CTXS(td, left, row7, 4); break; td 745 libavcodec/vp9block.c case 8: SET_CTXS(td, left, row7, 8); break; td 754 libavcodec/vp9block.c AV_COPY32(&td->left_mv_ctx[row7 * 2 + 0][0], &b->mv[1][0]); td 755 libavcodec/vp9block.c AV_COPY32(&td->left_mv_ctx[row7 * 2 + 0][1], &b->mv[1][1]); td 756 libavcodec/vp9block.c AV_WN32A(&td->left_mv_ctx[row7 * 2 + 1][0], mv0); td 757 libavcodec/vp9block.c AV_WN32A(&td->left_mv_ctx[row7 * 2 + 1][1], mv1); td 770 libavcodec/vp9block.c AV_WN32A(&td->left_mv_ctx[row7 * 2 + n][0], mv0); td 771 libavcodec/vp9block.c AV_WN32A(&td->left_mv_ctx[row7 * 2 + n][1], mv1); td 924 libavcodec/vp9block.c static int decode_coeffs_b_8bpp(VP9TileData *td, int16_t *coef, int n_coeffs, td 930 libavcodec/vp9block.c return decode_coeffs_b_generic(td->c, coef, n_coeffs, 0, 1, 8, cnt, eob, p, td 934 libavcodec/vp9block.c static int decode_coeffs_b32_8bpp(VP9TileData *td, int16_t *coef, int n_coeffs, td 940 libavcodec/vp9block.c return decode_coeffs_b_generic(td->c, coef, n_coeffs, 1, 1, 8, cnt, eob, p, td 944 libavcodec/vp9block.c static int decode_coeffs_b_16bpp(VP9TileData *td, int16_t *coef, int n_coeffs, td 950 libavcodec/vp9block.c return decode_coeffs_b_generic(td->c, coef, n_coeffs, 0, 0, td->s->s.h.bpp, cnt, eob, p, td 954 libavcodec/vp9block.c static int decode_coeffs_b32_16bpp(VP9TileData *td, int16_t *coef, int n_coeffs, td 960 libavcodec/vp9block.c return decode_coeffs_b_generic(td->c, coef, n_coeffs, 1, 0, td->s->s.h.bpp, cnt, eob, p, td 964 libavcodec/vp9block.c static av_always_inline int decode_coeffs(VP9TileData *td, int is8bitsperpixel) td 966 libavcodec/vp9block.c VP9Context *s = td->s; td 967 libavcodec/vp9block.c VP9Block *b = td->b; td 968 libavcodec/vp9block.c int row = td->row, col = td->col; td 970 libavcodec/vp9block.c unsigned (*c)[6][3] = td->counts.coef[b->tx][0 /* y */][!b->intra]; td 971 libavcodec/vp9block.c unsigned (*e)[6][2] = td->counts.eob[b->tx][0 /* y */][!b->intra]; td 983 libavcodec/vp9block.c uint8_t *l = &td->left_y_nnz_ctx[(row & 7) << 1]; td 1009 libavcodec/vp9block.c (td, td->block + 16 * n * bytesperpixel, 16 * step * step, \ td 1015 libavcodec/vp9block.c AV_WN16A(&td->eob[n], ret); \ td 1017 libavcodec/vp9block.c td->eob[n] = ret; \ td 1083 libavcodec/vp9block.c (td, td->uvblock[pl] + 16 * n * bytesperpixel, \ td 1089 libavcodec/vp9block.c AV_WN16A(&td->uveob[pl][n], ret); \ td 1091 libavcodec/vp9block.c td->uveob[pl][n] = ret; \ td 1097 libavcodec/vp9block.c c = td->counts.coef[b->uvtx][1 /* uv */][!b->intra]; td 1098 libavcodec/vp9block.c e = td->counts.eob[b->uvtx][1 /* uv */][!b->intra]; td 1105 libavcodec/vp9block.c l = &td->left_uv_nnz_ctx[pl][(row & 7) << !s->ss_v]; td 1131 libavcodec/vp9block.c static int decode_coeffs_8bpp(VP9TileData *td) td 1133 libavcodec/vp9block.c return decode_coeffs(td, 1); td 1136 libavcodec/vp9block.c static int decode_coeffs_16bpp(VP9TileData *td) td 1138 libavcodec/vp9block.c return decode_coeffs(td, 0); td 1263 libavcodec/vp9block.c void ff_vp9_decode_block(VP9TileData *td, int row, int col, td 1267 libavcodec/vp9block.c VP9Context *s = td->s; td 1268 libavcodec/vp9block.c VP9Block *b = td->b; td 1275 libavcodec/vp9block.c td->row = row; td 1276 libavcodec/vp9block.c td->row7 = row & 7; td 1277 libavcodec/vp9block.c td->col = col; td 1278 libavcodec/vp9block.c td->col7 = col & 7; td 1280 libavcodec/vp9block.c td->min_mv.x = -(128 + col * 64); td 1281 libavcodec/vp9block.c td->min_mv.y = -(128 + row * 64); td 1282 libavcodec/vp9block.c td->max_mv.x = 128 + (s->cols - col - w4) * 64; td 1283 libavcodec/vp9block.c td->max_mv.y = 128 + (s->rows - row - h4) * 64; td 1289 libavcodec/vp9block.c decode_mode(td); td 1293 libavcodec/vp9block.c if (td->block_structure) { td 1294 libavcodec/vp9block.c td->block_structure[td->nb_block_structure].row = row; td 1295 libavcodec/vp9block.c td->block_structure[td->nb_block_structure].col = col; td 1296 libavcodec/vp9block.c td->block_structure[td->nb_block_structure].block_size_idx_x = av_log2(w4); td 1297 libavcodec/vp9block.c td->block_structure[td->nb_block_structure].block_size_idx_y = av_log2(h4); td 1298 libavcodec/vp9block.c td->nb_block_structure++; td 1305 libavcodec/vp9block.c has_coeffs = decode_coeffs_8bpp(td); td 1307 libavcodec/vp9block.c has_coeffs = decode_coeffs_16bpp(td); td 1312 libavcodec/vp9block.c memset(&td->left_skip_ctx[td->row7], 1, h4); td 1315 libavcodec/vp9block.c int row7 = td->row7; td 1344 libavcodec/vp9block.c case 1: SPLAT_ZERO_YUV(td->left, nnz_ctx, row7, 1, v); break; td 1345 libavcodec/vp9block.c case 2: SPLAT_ZERO_YUV(td->left, nnz_ctx, row7, 2, v); break; td 1346 libavcodec/vp9block.c case 4: SPLAT_ZERO_YUV(td->left, nnz_ctx, row7, 4, v); break; td 1347 libavcodec/vp9block.c case 8: SPLAT_ZERO_YUV(td->left, nnz_ctx, row7, 8, v); break; td 1352 libavcodec/vp9block.c s->td[0].b++; td 1353 libavcodec/vp9block.c s->td[0].block += w4 * h4 * 64 * bytesperpixel; td 1354 libavcodec/vp9block.c s->td[0].uvblock[0] += w4 * h4 * 64 * bytesperpixel >> (s->ss_h + s->ss_v); td 1355 libavcodec/vp9block.c s->td[0].uvblock[1] += w4 * h4 * 64 * bytesperpixel >> (s->ss_h + s->ss_v); td 1356 libavcodec/vp9block.c s->td[0].eob += 4 * w4 * h4; td 1357 libavcodec/vp9block.c s->td[0].uveob[0] += 4 * w4 * h4 >> (s->ss_h + s->ss_v); td 1358 libavcodec/vp9block.c s->td[0].uveob[1] += 4 * w4 * h4 >> (s->ss_h + s->ss_v); td 1372 libavcodec/vp9block.c td->dst[0] = td->tmp_y; td 1373 libavcodec/vp9block.c td->y_stride = 128; td 1375 libavcodec/vp9block.c td->dst[0] = f->data[0] + yoff; td 1376 libavcodec/vp9block.c td->y_stride = f->linesize[0]; td 1379 libavcodec/vp9block.c td->dst[1] = td->tmp_uv[0]; td 1380 libavcodec/vp9block.c td->dst[2] = td->tmp_uv[1]; td 1381 libavcodec/vp9block.c td->uv_stride = 128; td 1383 libavcodec/vp9block.c td->dst[1] = f->data[1] + uvoff; td 1384 libavcodec/vp9block.c td->dst[2] = f->data[2] + uvoff; td 1385 libavcodec/vp9block.c td->uv_stride = f->linesize[1]; td 1389 libavcodec/vp9block.c ff_vp9_intra_recon_16bpp(td, yoff, uvoff); td 1391 libavcodec/vp9block.c ff_vp9_intra_recon_8bpp(td, yoff, uvoff); td 1395 libavcodec/vp9block.c ff_vp9_inter_recon_16bpp(td); td 1397 libavcodec/vp9block.c ff_vp9_inter_recon_8bpp(td); td 1409 libavcodec/vp9block.c td->tmp_y + o * bytesperpixel, 128, h, 0, 0); td 1424 libavcodec/vp9block.c td->tmp_uv[0] + o * bytesperpixel, 128, h, 0, 0); td 1426 libavcodec/vp9block.c td->tmp_uv[1] + o * bytesperpixel, 128, h, 0, 0); td 1437 libavcodec/vp9block.c int skip_inter = !b->intra && b->skip, col7 = td->col7, row7 = td->row7; td 1449 libavcodec/vp9block.c s->td[0].b++; td 1450 libavcodec/vp9block.c s->td[0].block += w4 * h4 * 64 * bytesperpixel; td 1451 libavcodec/vp9block.c s->td[0].uvblock[0] += w4 * h4 * 64 * bytesperpixel >> (s->ss_v + s->ss_h); td 1452 libavcodec/vp9block.c s->td[0].uvblock[1] += w4 * h4 * 64 * bytesperpixel >> (s->ss_v + s->ss_h); td 1453 libavcodec/vp9block.c s->td[0].eob += 4 * w4 * h4; td 1454 libavcodec/vp9block.c s->td[0].uveob[0] += 4 * w4 * h4 >> (s->ss_v + s->ss_h); td 1455 libavcodec/vp9block.c s->td[0].uveob[1] += 4 * w4 * h4 >> (s->ss_v + s->ss_h); td 95 libavcodec/vp9dec.h VP9TileData *td; td 238 libavcodec/vp9dec.h void ff_vp9_fill_mv(VP9TileData *td, VP56mv *mv, int mode, int sb); td 242 libavcodec/vp9dec.h void ff_vp9_decode_block(VP9TileData *td, int row, int col, td 249 libavcodec/vp9dec.h void ff_vp9_intra_recon_8bpp(VP9TileData *td, td 251 libavcodec/vp9dec.h void ff_vp9_intra_recon_16bpp(VP9TileData *td, td 253 libavcodec/vp9dec.h void ff_vp9_inter_recon_8bpp(VP9TileData *td); td 254 libavcodec/vp9dec.h void ff_vp9_inter_recon_16bpp(VP9TileData *td); td 31 libavcodec/vp9mvs.c VP9TileData *td) td 33 libavcodec/vp9mvs.c dst->x = av_clip(src->x, td->min_mv.x, td->max_mv.x); td 34 libavcodec/vp9mvs.c dst->y = av_clip(src->y, td->min_mv.y, td->max_mv.y); td 37 libavcodec/vp9mvs.c static void find_ref_mvs(VP9TileData *td, td 68 libavcodec/vp9mvs.c VP9Context *s = td->s; td 69 libavcodec/vp9mvs.c VP9Block *b = td->b; td 70 libavcodec/vp9mvs.c int row = td->row, col = td->col, row7 = td->row7; td 107 libavcodec/vp9mvs.c clamp_mv(&tmp, &mv, td); \ td 115 libavcodec/vp9mvs.c clamp_mv(&tmp, &mv, td); \ td 128 libavcodec/vp9mvs.c clamp_mv(pmv, &mv, td); \ td 133 libavcodec/vp9mvs.c clamp_mv(pmv, &mv, td); \ td 146 libavcodec/vp9mvs.c if (col > td->tile_col_start) { td 149 libavcodec/vp9mvs.c RETURN_MV(td->left_mv_ctx[2 * row7 + (sb >> 1)][0]); td 151 libavcodec/vp9mvs.c RETURN_MV(td->left_mv_ctx[2 * row7 + (sb >> 1)][1]); td 162 libavcodec/vp9mvs.c if (c >= td->tile_col_start && c < s->cols && td 199 libavcodec/vp9mvs.c if (c >= td->tile_col_start && c < s->cols && r >= 0 && r < s->rows) { td 230 libavcodec/vp9mvs.c clamp_mv(pmv, pmv, td); td 236 libavcodec/vp9mvs.c static av_always_inline int read_mv_component(VP9TileData *td, int idx, int hp) td 238 libavcodec/vp9mvs.c VP9Context *s = td->s; td 239 libavcodec/vp9mvs.c int bit, sign = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].sign); td 240 libavcodec/vp9mvs.c int n, c = vp8_rac_get_tree(td->c, ff_vp9_mv_class_tree, td 243 libavcodec/vp9mvs.c td->counts.mv_comp[idx].sign[sign]++; td 244 libavcodec/vp9mvs.c td->counts.mv_comp[idx].classes[c]++; td 249 libavcodec/vp9mvs.c bit = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].bits[m]); td 251 libavcodec/vp9mvs.c td->counts.mv_comp[idx].bits[m][bit]++; td 254 libavcodec/vp9mvs.c bit = vp8_rac_get_tree(td->c, ff_vp9_mv_fp_tree, td 257 libavcodec/vp9mvs.c td->counts.mv_comp[idx].fp[bit]++; td 259 libavcodec/vp9mvs.c bit = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].hp); td 260 libavcodec/vp9mvs.c td->counts.mv_comp[idx].hp[bit]++; td 266 libavcodec/vp9mvs.c td->counts.mv_comp[idx].hp[1]++; td 270 libavcodec/vp9mvs.c n = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].class0); td 271 libavcodec/vp9mvs.c td->counts.mv_comp[idx].class0[n]++; td 272 libavcodec/vp9mvs.c bit = vp8_rac_get_tree(td->c, ff_vp9_mv_fp_tree, td 274 libavcodec/vp9mvs.c td->counts.mv_comp[idx].class0_fp[n][bit]++; td 277 libavcodec/vp9mvs.c bit = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].class0_hp); td 278 libavcodec/vp9mvs.c td->counts.mv_comp[idx].class0_hp[bit]++; td 284 libavcodec/vp9mvs.c td->counts.mv_comp[idx].class0_hp[1]++; td 291 libavcodec/vp9mvs.c void ff_vp9_fill_mv(VP9TileData *td, VP56mv *mv, int mode, int sb) td 293 libavcodec/vp9mvs.c VP9Context *s = td->s; td 294 libavcodec/vp9mvs.c VP9Block *b = td->b; td 302 libavcodec/vp9mvs.c find_ref_mvs(td, &mv[0], b->ref[0], 0, mode == NEARMV, td 322 libavcodec/vp9mvs.c enum MVJoint j = vp8_rac_get_tree(td->c, ff_vp9_mv_joint_tree, td 325 libavcodec/vp9mvs.c td->counts.mv_joint[j]++; td 327 libavcodec/vp9mvs.c mv[0].y += read_mv_component(td, 0, hp); td 329 libavcodec/vp9mvs.c mv[0].x += read_mv_component(td, 1, hp); td 334 libavcodec/vp9mvs.c find_ref_mvs(td, &mv[1], b->ref[1], 1, mode == NEARMV, td 353 libavcodec/vp9mvs.c enum MVJoint j = vp8_rac_get_tree(td->c, ff_vp9_mv_joint_tree, td 356 libavcodec/vp9mvs.c td->counts.mv_joint[j]++; td 358 libavcodec/vp9mvs.c mv[1].y += read_mv_component(td, 0, hp); td 360 libavcodec/vp9mvs.c mv[1].x += read_mv_component(td, 1, hp); td 59 libavcodec/vp9prob.c unsigned *e = s->td[0].counts.eob[i][j][k][l][m]; td 60 libavcodec/vp9prob.c unsigned *c = s->td[0].counts.coef[i][j][k][l][m]; td 80 libavcodec/vp9prob.c adapt_prob(&p->skip[i], s->td[0].counts.skip[i][0], td 81 libavcodec/vp9prob.c s->td[0].counts.skip[i][1], 20, 128); td 85 libavcodec/vp9prob.c adapt_prob(&p->intra[i], s->td[0].counts.intra[i][0], td 86 libavcodec/vp9prob.c s->td[0].counts.intra[i][1], 20, 128); td 91 libavcodec/vp9prob.c adapt_prob(&p->comp[i], s->td[0].counts.comp[i][0], td 92 libavcodec/vp9prob.c s->td[0].counts.comp[i][1], 20, 128); td 98 libavcodec/vp9prob.c adapt_prob(&p->comp_ref[i], s->td[0].counts.comp_ref[i][0], td 99 libavcodec/vp9prob.c s->td[0].counts.comp_ref[i][1], 20, 128); td 105 libavcodec/vp9prob.c unsigned (*c)[2] = s->td[0].counts.single_ref[i]; td 116 libavcodec/vp9prob.c unsigned *c = s->td[0].counts.partition[i][j]; td 126 libavcodec/vp9prob.c unsigned *c16 = s->td[0].counts.tx16p[i], *c32 = s->td[0].counts.tx32p[i]; td 128 libavcodec/vp9prob.c adapt_prob(&p->tx8p[i], s->td[0].counts.tx8p[i][0], td 129 libavcodec/vp9prob.c s->td[0].counts.tx8p[i][1], 20, 128); td 142 libavcodec/vp9prob.c unsigned *c = s->td[0].counts.filter[i]; td 152 libavcodec/vp9prob.c unsigned *c = s->td[0].counts.mv_mode[i]; td 162 libavcodec/vp9prob.c unsigned *c = s->td[0].counts.mv_joint; td 174 libavcodec/vp9prob.c adapt_prob(&p->mv_comp[i].sign, s->td[0].counts.mv_comp[i].sign[0], td 175 libavcodec/vp9prob.c s->td[0].counts.mv_comp[i].sign[1], 20, 128); td 178 libavcodec/vp9prob.c c = s->td[0].counts.mv_comp[i].classes; td 196 libavcodec/vp9prob.c adapt_prob(&p->mv_comp[i].class0, s->td[0].counts.mv_comp[i].class0[0], td 197 libavcodec/vp9prob.c s->td[0].counts.mv_comp[i].class0[1], 20, 128); td 199 libavcodec/vp9prob.c c2 = s->td[0].counts.mv_comp[i].bits; td 205 libavcodec/vp9prob.c c = s->td[0].counts.mv_comp[i].class0_fp[j]; td 211 libavcodec/vp9prob.c c = s->td[0].counts.mv_comp[i].fp; td 218 libavcodec/vp9prob.c s->td[0].counts.mv_comp[i].class0_hp[0], td 219 libavcodec/vp9prob.c s->td[0].counts.mv_comp[i].class0_hp[1], 20, 128); td 220 libavcodec/vp9prob.c adapt_prob(&p->mv_comp[i].hp, s->td[0].counts.mv_comp[i].hp[0], td 221 libavcodec/vp9prob.c s->td[0].counts.mv_comp[i].hp[1], 20, 128); td 228 libavcodec/vp9prob.c unsigned *c = s->td[0].counts.y_mode[i], sum, s2; td 253 libavcodec/vp9prob.c unsigned *c = s->td[0].counts.uv_mode[i], sum, s2; td 32 libavcodec/vp9recon.c static av_always_inline int check_intra_mode(VP9TileData *td, int mode, uint8_t **a, td 39 libavcodec/vp9recon.c VP9Context *s = td->s; td 41 libavcodec/vp9recon.c int have_left = col > td->tile_col_start || x > 0; td 218 libavcodec/vp9recon.c static av_always_inline void intra_recon(VP9TileData *td, ptrdiff_t y_off, td 221 libavcodec/vp9recon.c VP9Context *s = td->s; td 222 libavcodec/vp9recon.c VP9Block *b = td->b; td 223 libavcodec/vp9recon.c int row = td->row, col = td->col; td 230 libavcodec/vp9recon.c uint8_t *dst = td->dst[0], *dst_r = s->s.frames[CUR_FRAME].tf.f->data[0] + y_off; td 242 libavcodec/vp9recon.c int eob = b->skip ? 0 : b->tx > TX_8X8 ? AV_RN16A(&td->eob[n]) : td->eob[n]; td 244 libavcodec/vp9recon.c mode = check_intra_mode(td, mode, &a, ptr_r, td 246 libavcodec/vp9recon.c ptr, td->y_stride, l, td 248 libavcodec/vp9recon.c s->dsp.intra_pred[b->tx][mode](ptr, td->y_stride, l, a); td 250 libavcodec/vp9recon.c s->dsp.itxfm_add[tx][txtp](ptr, td->y_stride, td 251 libavcodec/vp9recon.c td->block + 16 * n * bytesperpixel, eob); td 254 libavcodec/vp9recon.c dst += 4 * step1d * td->y_stride; td 263 libavcodec/vp9recon.c dst = td->dst[1 + p]; td 271 libavcodec/vp9recon.c int eob = b->skip ? 0 : b->uvtx > TX_8X8 ? AV_RN16A(&td->uveob[p][n]) : td->uveob[p][n]; td 273 libavcodec/vp9recon.c mode = check_intra_mode(td, mode, &a, ptr_r, td 275 libavcodec/vp9recon.c ptr, td->uv_stride, l, col, x, w4, row, y, td 277 libavcodec/vp9recon.c s->dsp.intra_pred[b->uvtx][mode](ptr, td->uv_stride, l, a); td 279 libavcodec/vp9recon.c s->dsp.itxfm_add[uvtx][DCT_DCT](ptr, td->uv_stride, td 280 libavcodec/vp9recon.c td->uvblock[p] + 16 * n * bytesperpixel, eob); td 283 libavcodec/vp9recon.c dst += 4 * uvstep1d * td->uv_stride; td 288 libavcodec/vp9recon.c void ff_vp9_intra_recon_8bpp(VP9TileData *td, ptrdiff_t y_off, ptrdiff_t uv_off) td 290 libavcodec/vp9recon.c intra_recon(td, y_off, uv_off, 1); td 293 libavcodec/vp9recon.c void ff_vp9_intra_recon_16bpp(VP9TileData *td, ptrdiff_t y_off, ptrdiff_t uv_off) td 295 libavcodec/vp9recon.c intra_recon(td, y_off, uv_off, 2); td 298 libavcodec/vp9recon.c static av_always_inline void mc_luma_unscaled(VP9TileData *td, vp9_mc_func (*mc)[2], td 305 libavcodec/vp9recon.c VP9Context *s = td->s; td 323 libavcodec/vp9recon.c s->vdsp.emulated_edge_mc(td->edge_emu_buffer, td 328 libavcodec/vp9recon.c ref = td->edge_emu_buffer + !!my * 3 * 160 + !!mx * 3 * bytesperpixel; td 334 libavcodec/vp9recon.c static av_always_inline void mc_chroma_unscaled(VP9TileData *td, vp9_mc_func (*mc)[2], td 343 libavcodec/vp9recon.c VP9Context *s = td->s; td 362 libavcodec/vp9recon.c s->vdsp.emulated_edge_mc(td->edge_emu_buffer, td 367 libavcodec/vp9recon.c ref_u = td->edge_emu_buffer + !!my * 3 * 160 + !!mx * 3 * bytesperpixel; td 370 libavcodec/vp9recon.c s->vdsp.emulated_edge_mc(td->edge_emu_buffer, td 375 libavcodec/vp9recon.c ref_v = td->edge_emu_buffer + !!my * 3 * 160 + !!mx * 3 * bytesperpixel; td 383 libavcodec/vp9recon.c #define mc_luma_dir(td, mc, dst, dst_ls, src, src_ls, tref, row, col, mv, \ td 385 libavcodec/vp9recon.c mc_luma_unscaled(td, s->dsp.mc, dst, dst_ls, src, src_ls, tref, row, col, \ td 387 libavcodec/vp9recon.c #define mc_chroma_dir(td, mc, dstu, dstv, dst_ls, srcu, srcu_ls, srcv, srcv_ls, tref, \ td 389 libavcodec/vp9recon.c mc_chroma_unscaled(td, s->dsp.mc, dstu, dstv, dst_ls, srcu, srcu_ls, srcv, srcv_ls, tref, \ td 406 libavcodec/vp9recon.c static av_always_inline void mc_luma_scaled(VP9TileData *td, vp9_scaled_mc_func smc, td 416 libavcodec/vp9recon.c VP9Context *s = td->s; td 419 libavcodec/vp9recon.c mc_luma_unscaled(td, mc, dst, dst_stride, ref, ref_stride, ref_frame, td 452 libavcodec/vp9recon.c s->vdsp.emulated_edge_mc(td->edge_emu_buffer, td 457 libavcodec/vp9recon.c ref = td->edge_emu_buffer + 3 * 288 + 3 * bytesperpixel; td 464 libavcodec/vp9recon.c static av_always_inline void mc_chroma_scaled(VP9TileData *td, vp9_scaled_mc_func smc, td 476 libavcodec/vp9recon.c VP9Context *s = td->s; td 479 libavcodec/vp9recon.c mc_chroma_unscaled(td, mc, dst_u, dst_v, dst_stride, ref_u, src_stride_u, td 522 libavcodec/vp9recon.c s->vdsp.emulated_edge_mc(td->edge_emu_buffer, td 527 libavcodec/vp9recon.c ref_u = td->edge_emu_buffer + 3 * 288 + 3 * bytesperpixel; td 530 libavcodec/vp9recon.c s->vdsp.emulated_edge_mc(td->edge_emu_buffer, td 535 libavcodec/vp9recon.c ref_v = td->edge_emu_buffer + 3 * 288 + 3 * bytesperpixel; td 544 libavcodec/vp9recon.c #define mc_luma_dir(td, mc, dst, dst_ls, src, src_ls, tref, row, col, mv, \ td 546 libavcodec/vp9recon.c mc_luma_scaled(td, s->dsp.s##mc, s->dsp.mc, dst, dst_ls, src, src_ls, tref, row, col, \ td 549 libavcodec/vp9recon.c #define mc_chroma_dir(td, mc, dstu, dstv, dst_ls, srcu, srcu_ls, srcv, srcv_ls, tref, \ td 551 libavcodec/vp9recon.c mc_chroma_scaled(td, s->dsp.s##mc, s->dsp.mc, dstu, dstv, dst_ls, srcu, srcu_ls, srcv, srcv_ls, tref, \ td 569 libavcodec/vp9recon.c static av_always_inline void inter_recon(VP9TileData *td, int bytesperpixel) td 571 libavcodec/vp9recon.c VP9Context *s = td->s; td 572 libavcodec/vp9recon.c VP9Block *b = td->b; td 573 libavcodec/vp9recon.c int row = td->row, col = td->col; td 577 libavcodec/vp9recon.c if (!s->td->error_info) { td 578 libavcodec/vp9recon.c s->td->error_info = AVERROR_INVALIDDATA; td 587 libavcodec/vp9recon.c inter_pred_scaled_8bpp(td); td 589 libavcodec/vp9recon.c inter_pred_scaled_16bpp(td); td 593 libavcodec/vp9recon.c inter_pred_8bpp(td); td 595 libavcodec/vp9recon.c inter_pred_16bpp(td); td 608 libavcodec/vp9recon.c uint8_t *dst = td->dst[0]; td 615 libavcodec/vp9recon.c int eob = b->tx > TX_8X8 ? AV_RN16A(&td->eob[n]) : td->eob[n]; td 618 libavcodec/vp9recon.c s->dsp.itxfm_add[tx][DCT_DCT](ptr, td->y_stride, td 619 libavcodec/vp9recon.c td->block + 16 * n * bytesperpixel, eob); td 621 libavcodec/vp9recon.c dst += 4 * td->y_stride * step1d; td 629 libavcodec/vp9recon.c dst = td->dst[p + 1]; td 634 libavcodec/vp9recon.c int eob = b->uvtx > TX_8X8 ? AV_RN16A(&td->uveob[p][n]) : td->uveob[p][n]; td 637 libavcodec/vp9recon.c s->dsp.itxfm_add[uvtx][DCT_DCT](ptr, td->uv_stride, td 638 libavcodec/vp9recon.c td->uvblock[p] + 16 * n * bytesperpixel, eob); td 640 libavcodec/vp9recon.c dst += 4 * uvstep1d * td->uv_stride; td 646 libavcodec/vp9recon.c void ff_vp9_inter_recon_8bpp(VP9TileData *td) td 648 libavcodec/vp9recon.c inter_recon(td, 1); td 651 libavcodec/vp9recon.c void ff_vp9_inter_recon_16bpp(VP9TileData *td) td 653 libavcodec/vp9recon.c inter_recon(td, 2); td 500 libavfilter/af_adeclick.c ThreadData *td = arg; td 501 libavfilter/af_adeclick.c AVFrame *out = td->out; td 569 libavfilter/af_adeclick.c ThreadData td; td 580 libavfilter/af_adeclick.c td.out = out; td 581 libavfilter/af_adeclick.c ret = ctx->internal->execute(ctx, filter_channel, &td, NULL, inlink->channels); td 1089 libavfilter/af_afftdn.c ThreadData *td = arg; td 1090 libavfilter/af_afftdn.c AVFrame *in = td->in; td 1164 libavfilter/af_afftdn.c ThreadData td; td 1220 libavfilter/af_afftdn.c td.in = in; td 1221 libavfilter/af_afftdn.c ctx->internal->execute(ctx, filter_channel, &td, NULL, td 130 libavfilter/af_aiir.c ThreadData *td = arg; \ td 131 libavfilter/af_aiir.c AVFrame *in = td->in, *out = td->out; \ td 186 libavfilter/af_aiir.c ThreadData *td = arg; \ td 187 libavfilter/af_aiir.c AVFrame *in = td->in, *out = td->out; \ td 1078 libavfilter/af_aiir.c ThreadData td; td 1093 libavfilter/af_aiir.c td.in = in; td 1094 libavfilter/af_aiir.c td.out = out; td 1095 libavfilter/af_aiir.c ctx->internal->execute(ctx, s->iir_channel, &td, NULL, outlink->channels); td 1394 libavfilter/af_arnndn.c ThreadData *td = arg; td 1395 libavfilter/af_arnndn.c AVFrame *in = td->in; td 1396 libavfilter/af_arnndn.c AVFrame *out = td->out; td 1414 libavfilter/af_arnndn.c ThreadData td; td 1423 libavfilter/af_arnndn.c td.in = in; td.out = out; td 1424 libavfilter/af_arnndn.c ctx->internal->execute(ctx, rnnoise_channels, &td, NULL, FFMIN(outlink->channels, td 236 libavfilter/af_asoftclip.c ThreadData *td = arg; td 237 libavfilter/af_asoftclip.c AVFrame *out = td->out; td 238 libavfilter/af_asoftclip.c AVFrame *in = td->in; td 239 libavfilter/af_asoftclip.c const int channels = td->channels; td 240 libavfilter/af_asoftclip.c const int nb_samples = td->nb_samples; td 255 libavfilter/af_asoftclip.c ThreadData td; td 277 libavfilter/af_asoftclip.c td.in = in; td 278 libavfilter/af_asoftclip.c td.out = out; td 279 libavfilter/af_asoftclip.c td.nb_samples = nb_samples; td 280 libavfilter/af_asoftclip.c td.channels = channels; td 281 libavfilter/af_asoftclip.c ctx->internal->execute(ctx, filter_channels, &td, NULL, FFMIN(channels, td 465 libavfilter/af_biquads.c ThreadData *td = arg; td 466 libavfilter/af_biquads.c AVFrame *buf = td->in; td 467 libavfilter/af_biquads.c AVFrame *out_buf = td->out; td 495 libavfilter/af_biquads.c ThreadData td; td 509 libavfilter/af_biquads.c td.in = buf; td 510 libavfilter/af_biquads.c td.out = out_buf; td 511 libavfilter/af_biquads.c ctx->internal->execute(ctx, filter_channel, &td, NULL, FFMIN(outlink->channels, ff_filter_get_nb_threads(ctx))); td 88 libavfilter/af_crystalizer.c ThreadData *td = arg; td 89 libavfilter/af_crystalizer.c void **d = td->d; td 90 libavfilter/af_crystalizer.c void **p = td->p; td 91 libavfilter/af_crystalizer.c const void **s = td->s; td 92 libavfilter/af_crystalizer.c const int nb_samples = td->nb_samples; td 93 libavfilter/af_crystalizer.c const int channels = td->channels; td 94 libavfilter/af_crystalizer.c float mult = td->mult; td 95 libavfilter/af_crystalizer.c const int clip = td->clip; td 123 libavfilter/af_crystalizer.c ThreadData *td = arg; td 124 libavfilter/af_crystalizer.c void **d = td->d; td 125 libavfilter/af_crystalizer.c void **p = td->p; td 126 libavfilter/af_crystalizer.c const void **s = td->s; td 127 libavfilter/af_crystalizer.c const int nb_samples = td->nb_samples; td 128 libavfilter/af_crystalizer.c const int channels = td->channels; td 129 libavfilter/af_crystalizer.c float mult = td->mult; td 130 libavfilter/af_crystalizer.c const int clip = td->clip; td 159 libavfilter/af_crystalizer.c ThreadData *td = arg; td 160 libavfilter/af_crystalizer.c void **d = td->d; td 161 libavfilter/af_crystalizer.c void **p = td->p; td 162 libavfilter/af_crystalizer.c const void **s = td->s; td 163 libavfilter/af_crystalizer.c const int nb_samples = td->nb_samples; td 164 libavfilter/af_crystalizer.c const int channels = td->channels; td 165 libavfilter/af_crystalizer.c float mult = td->mult; td 166 libavfilter/af_crystalizer.c const int clip = td->clip; td 192 libavfilter/af_crystalizer.c ThreadData *td = arg; td 193 libavfilter/af_crystalizer.c void **d = td->d; td 194 libavfilter/af_crystalizer.c void **p = td->p; td 195 libavfilter/af_crystalizer.c const void **s = td->s; td 196 libavfilter/af_crystalizer.c const int nb_samples = td->nb_samples; td 197 libavfilter/af_crystalizer.c const int channels = td->channels; td 198 libavfilter/af_crystalizer.c float mult = td->mult; td 199 libavfilter/af_crystalizer.c const int clip = td->clip; td 244 libavfilter/af_crystalizer.c ThreadData td; td 265 libavfilter/af_crystalizer.c td.d = (void **)out->extended_data; td 266 libavfilter/af_crystalizer.c td.s = (const void **)in->extended_data; td 267 libavfilter/af_crystalizer.c td.p = (void **)s->prev->extended_data; td 268 libavfilter/af_crystalizer.c td.nb_samples = in->nb_samples; td 269 libavfilter/af_crystalizer.c td.channels = in->channels; td 270 libavfilter/af_crystalizer.c td.mult = ctx->is_disabled ? 0.f : s->mult; td 271 libavfilter/af_crystalizer.c td.clip = s->clip; td 272 libavfilter/af_crystalizer.c ctx->internal->execute(ctx, s->filter, &td, NULL, FFMIN(inlink->channels, td 168 libavfilter/af_headphone.c ThreadData *td = arg; td 169 libavfilter/af_headphone.c AVFrame *in = td->in, *out = td->out; td 171 libavfilter/af_headphone.c int *write = &td->write[jobnr]; td 172 libavfilter/af_headphone.c const int *const delay = td->delay[jobnr]; td 173 libavfilter/af_headphone.c const float *const ir = td->ir[jobnr]; td 174 libavfilter/af_headphone.c int *n_clippings = &td->n_clippings[jobnr]; td 175 libavfilter/af_headphone.c float *ringbuffer = td->ringbuffer[jobnr]; td 176 libavfilter/af_headphone.c float *temp_src = td->temp_src[jobnr]; td 242 libavfilter/af_headphone.c ThreadData *td = arg; td 243 libavfilter/af_headphone.c AVFrame *in = td->in, *out = td->out; td 245 libavfilter/af_headphone.c int *write = &td->write[jobnr]; td 247 libavfilter/af_headphone.c int *n_clippings = &td->n_clippings[jobnr]; td 248 libavfilter/af_headphone.c float *ringbuffer = td->ringbuffer[jobnr]; td 358 libavfilter/af_headphone.c ThreadData td; td 368 libavfilter/af_headphone.c td.in = in; td.out = out; td.write = s->write; td 369 libavfilter/af_headphone.c td.delay = s->delay; td.ir = s->data_ir; td.n_clippings = n_clippings; td 370 libavfilter/af_headphone.c td.ringbuffer = s->ringbuffer; td.temp_src = s->temp_src; td 371 libavfilter/af_headphone.c td.temp_fft = s->temp_fft; td 372 libavfilter/af_headphone.c td.temp_afft = s->temp_afft; td 375 libavfilter/af_headphone.c ctx->internal->execute(ctx, headphone_convolute, &td, NULL, 2); td 377 libavfilter/af_headphone.c ctx->internal->execute(ctx, headphone_fast_convolute, &td, NULL, 2); td 334 libavfilter/af_sofalizer.c ThreadData *td = arg; td 335 libavfilter/af_sofalizer.c AVFrame *in = td->in, *out = td->out; td 337 libavfilter/af_sofalizer.c int *write = &td->write[jobnr]; td 338 libavfilter/af_sofalizer.c const int *const delay = td->delay[jobnr]; td 339 libavfilter/af_sofalizer.c const float *const ir = td->ir[jobnr]; td 340 libavfilter/af_sofalizer.c int *n_clippings = &td->n_clippings[jobnr]; td 341 libavfilter/af_sofalizer.c float *ringbuffer = td->ringbuffer[jobnr]; td 342 libavfilter/af_sofalizer.c float *temp_src = td->temp_src[jobnr]; td 434 libavfilter/af_sofalizer.c ThreadData *td = arg; td 435 libavfilter/af_sofalizer.c AVFrame *in = td->in, *out = td->out; td 437 libavfilter/af_sofalizer.c int *write = &td->write[jobnr]; td 439 libavfilter/af_sofalizer.c int *n_clippings = &td->n_clippings[jobnr]; td 440 libavfilter/af_sofalizer.c float *ringbuffer = td->ringbuffer[jobnr]; td 575 libavfilter/af_sofalizer.c ThreadData td; td 585 libavfilter/af_sofalizer.c td.in = in; td.out = out; td.write = s->write; td 586 libavfilter/af_sofalizer.c td.delay = s->delay; td.ir = s->data_ir; td.n_clippings = n_clippings; td 587 libavfilter/af_sofalizer.c td.ringbuffer = s->ringbuffer; td.temp_src = s->temp_src; td 588 libavfilter/af_sofalizer.c td.temp_fft = s->temp_fft; td 589 libavfilter/af_sofalizer.c td.temp_afft = s->temp_afft; td 592 libavfilter/af_sofalizer.c ctx->internal->execute(ctx, sofalizer_convolute, &td, NULL, 2); td 594 libavfilter/af_sofalizer.c ctx->internal->execute(ctx, sofalizer_fast_convolute, &td, NULL, 2); td 107 libavfilter/vf_amplify.c ThreadData *td = arg; td 108 libavfilter/vf_amplify.c AVFrame **in = td->in; td 109 libavfilter/vf_amplify.c AVFrame *out = td->out; td 249 libavfilter/vf_amplify.c ThreadData td; td 268 libavfilter/vf_amplify.c td.out = out; td 269 libavfilter/vf_amplify.c td.in = s->frames; td 270 libavfilter/vf_amplify.c ctx->internal->execute(ctx, amplify_frame, &td, NULL, FFMIN(s->height[1], ff_filter_get_nb_threads(ctx))); td 240 libavfilter/vf_atadenoise.c ThreadData *td = arg; td 241 libavfilter/vf_atadenoise.c AVFrame *in = td->in; td 242 libavfilter/vf_atadenoise.c AVFrame *out = td->out; td 346 libavfilter/vf_atadenoise.c ThreadData td; td 365 libavfilter/vf_atadenoise.c td.in = in; td.out = out; td 366 libavfilter/vf_atadenoise.c ctx->internal->execute(ctx, s->filter_slice, &td, NULL, td 71 libavfilter/vf_avgblur.c ThreadData *td = arg; \ td 72 libavfilter/vf_avgblur.c const int height = td->height; \ td 73 libavfilter/vf_avgblur.c const int width = td->width; \ td 77 libavfilter/vf_avgblur.c const int linesize = td->linesize / sizeof(type); \ td 88 libavfilter/vf_avgblur.c src = (const type *)td->ptr + linesize * y; \ td 124 libavfilter/vf_avgblur.c ThreadData *td = arg; \ td 125 libavfilter/vf_avgblur.c const int height = td->height; \ td 126 libavfilter/vf_avgblur.c const int width = td->width; \ td 130 libavfilter/vf_avgblur.c const int linesize = td->linesize / sizeof(type); \ td 131 libavfilter/vf_avgblur.c type *buffer = (type *)td->ptr; \ td 213 libavfilter/vf_avgblur.c ThreadData td; td 215 libavfilter/vf_avgblur.c td.width = width; td 216 libavfilter/vf_avgblur.c td.height = height; td 217 libavfilter/vf_avgblur.c td.ptr = in->data[plane]; td 218 libavfilter/vf_avgblur.c td.linesize = in->linesize[plane]; td 219 libavfilter/vf_avgblur.c ctx->internal->execute(ctx, s->filter_horizontally, &td, NULL, FFMIN(height, nb_threads)); td 220 libavfilter/vf_avgblur.c td.ptr = out->data[plane]; td 221 libavfilter/vf_avgblur.c td.linesize = out->linesize[plane]; td 222 libavfilter/vf_avgblur.c ctx->internal->execute(ctx, s->filter_vertically, &td, NULL, FFMIN(width, nb_threads)); td 580 libavfilter/vf_blend.c ThreadData *td = arg; td 581 libavfilter/vf_blend.c int slice_start = (td->h * jobnr ) / nb_jobs; td 582 libavfilter/vf_blend.c int slice_end = (td->h * (jobnr+1)) / nb_jobs; td 584 libavfilter/vf_blend.c const uint8_t *top = td->top->data[td->plane]; td 585 libavfilter/vf_blend.c const uint8_t *bottom = td->bottom->data[td->plane]; td 586 libavfilter/vf_blend.c uint8_t *dst = td->dst->data[td->plane]; td 589 libavfilter/vf_blend.c values[VAR_N] = td->inlink->frame_count_out; td 590 libavfilter/vf_blend.c values[VAR_T] = td->dst->pts == AV_NOPTS_VALUE ? NAN : td->dst->pts * av_q2d(td->inlink->time_base); td 591 libavfilter/vf_blend.c values[VAR_W] = td->w; td 592 libavfilter/vf_blend.c values[VAR_H] = td->h; td 593 libavfilter/vf_blend.c values[VAR_SW] = td->w / (double)td->dst->width; td 594 libavfilter/vf_blend.c values[VAR_SH] = td->h / (double)td->dst->height; td 596 libavfilter/vf_blend.c td->param->blend(top + slice_start * td->top->linesize[td->plane], td 597 libavfilter/vf_blend.c td->top->linesize[td->plane], td 598 libavfilter/vf_blend.c bottom + slice_start * td->bottom->linesize[td->plane], td 599 libavfilter/vf_blend.c td->bottom->linesize[td->plane], td 600 libavfilter/vf_blend.c dst + slice_start * td->dst->linesize[td->plane], td 601 libavfilter/vf_blend.c td->dst->linesize[td->plane], td 602 libavfilter/vf_blend.c td->w, height, td->param, &values[0], slice_start); td 626 libavfilter/vf_blend.c ThreadData td = { .top = top_buf, .bottom = bottom_buf, .dst = dst_buf, td 630 libavfilter/vf_blend.c ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outh, ff_filter_get_nb_threads(ctx))); td 705 libavfilter/vf_bm3d.c ThreadData *td = arg; td 706 libavfilter/vf_bm3d.c const uint8_t *src = td->src; td 707 libavfilter/vf_bm3d.c const uint8_t *ref = td->ref; td 708 libavfilter/vf_bm3d.c const int src_linesize = td->src_linesize; td 709 libavfilter/vf_bm3d.c const int ref_linesize = td->ref_linesize; td 710 libavfilter/vf_bm3d.c const int plane = td->plane; td 756 libavfilter/vf_bm3d.c ThreadData td; td 765 libavfilter/vf_bm3d.c td.src = in->data[p]; td 766 libavfilter/vf_bm3d.c td.src_linesize = in->linesize[p]; td 767 libavfilter/vf_bm3d.c td.ref = ref->data[p]; td 768 libavfilter/vf_bm3d.c td.ref_linesize = ref->linesize[p]; td 769 libavfilter/vf_bm3d.c td.plane = p; td 770 libavfilter/vf_bm3d.c ctx->internal->execute(ctx, filter_slice, &td, NULL, nb_jobs); td 220 libavfilter/vf_bwdif.c ThreadData *td = arg; td 221 libavfilter/vf_bwdif.c int linesize = yadif->cur->linesize[td->plane]; td 222 libavfilter/vf_bwdif.c int clip_max = (1 << (yadif->csp->comp[td->plane].depth)) - 1; td 223 libavfilter/vf_bwdif.c int df = (yadif->csp->comp[td->plane].depth + 7) / 8; td 225 libavfilter/vf_bwdif.c int slice_start = (td->h * jobnr ) / nb_jobs; td 226 libavfilter/vf_bwdif.c int slice_end = (td->h * (jobnr+1)) / nb_jobs; td 230 libavfilter/vf_bwdif.c if ((y ^ td->parity) & 1) { td 231 libavfilter/vf_bwdif.c uint8_t *prev = &yadif->prev->data[td->plane][y * linesize]; td 232 libavfilter/vf_bwdif.c uint8_t *cur = &yadif->cur ->data[td->plane][y * linesize]; td 233 libavfilter/vf_bwdif.c uint8_t *next = &yadif->next->data[td->plane][y * linesize]; td 234 libavfilter/vf_bwdif.c uint8_t *dst = &td->frame->data[td->plane][y * td->frame->linesize[td->plane]]; td 236 libavfilter/vf_bwdif.c s->filter_intra(dst, cur, td->w, (y + df) < td->h ? refs : -refs, td 238 libavfilter/vf_bwdif.c (y + 3*df) < td->h ? 3 * refs : -refs, td 240 libavfilter/vf_bwdif.c td->parity ^ td->tff, clip_max); td 241 libavfilter/vf_bwdif.c } else if ((y < 4) || ((y + 5) > td->h)) { td 242 libavfilter/vf_bwdif.c s->filter_edge(dst, prev, cur, next, td->w, td 243 libavfilter/vf_bwdif.c (y + df) < td->h ? refs : -refs, td 246 libavfilter/vf_bwdif.c td->parity ^ td->tff, clip_max, td 247 libavfilter/vf_bwdif.c (y < 2) || ((y + 3) > td->h) ? 0 : 1); td 249 libavfilter/vf_bwdif.c s->filter_line(dst, prev, cur, next, td->w, td 252 libavfilter/vf_bwdif.c td->parity ^ td->tff, clip_max); td 255 libavfilter/vf_bwdif.c memcpy(&td->frame->data[td->plane][y * td->frame->linesize[td->plane]], td 256 libavfilter/vf_bwdif.c &yadif->cur->data[td->plane][y * linesize], td->w * df); td 267 libavfilter/vf_bwdif.c ThreadData td = { .frame = dstpic, .parity = parity, .tff = tff }; td 279 libavfilter/vf_bwdif.c td.w = w; td 280 libavfilter/vf_bwdif.c td.h = h; td 281 libavfilter/vf_bwdif.c td.plane = i; td 283 libavfilter/vf_bwdif.c ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(h, ff_filter_get_nb_threads(ctx))); td 161 libavfilter/vf_colorbalance.c ThreadData *td = arg; td 162 libavfilter/vf_colorbalance.c AVFrame *in = td->in; td 163 libavfilter/vf_colorbalance.c AVFrame *out = td->out; td 214 libavfilter/vf_colorbalance.c ThreadData *td = arg; td 215 libavfilter/vf_colorbalance.c AVFrame *in = td->in; td 216 libavfilter/vf_colorbalance.c AVFrame *out = td->out; td 268 libavfilter/vf_colorbalance.c ThreadData *td = arg; td 269 libavfilter/vf_colorbalance.c AVFrame *in = td->in; td 270 libavfilter/vf_colorbalance.c AVFrame *out = td->out; td 319 libavfilter/vf_colorbalance.c ThreadData *td = arg; td 320 libavfilter/vf_colorbalance.c AVFrame *in = td->in; td 321 libavfilter/vf_colorbalance.c AVFrame *out = td->out; td 401 libavfilter/vf_colorbalance.c ThreadData td; td 415 libavfilter/vf_colorbalance.c td.in = in; td 416 libavfilter/vf_colorbalance.c td.out = out; td 417 libavfilter/vf_colorbalance.c ctx->internal->execute(ctx, s->color_balance, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); td 108 libavfilter/vf_colorchannelmixer.c ThreadData *td = arg; td 109 libavfilter/vf_colorchannelmixer.c AVFrame *in = td->in; td 110 libavfilter/vf_colorchannelmixer.c AVFrame *out = td->out; td 167 libavfilter/vf_colorchannelmixer.c ThreadData *td = arg; td 168 libavfilter/vf_colorchannelmixer.c AVFrame *in = td->in; td 169 libavfilter/vf_colorchannelmixer.c AVFrame *out = td->out; td 276 libavfilter/vf_colorchannelmixer.c ThreadData *td = arg; td 277 libavfilter/vf_colorchannelmixer.c AVFrame *in = td->in; td 278 libavfilter/vf_colorchannelmixer.c AVFrame *out = td->out; td 331 libavfilter/vf_colorchannelmixer.c ThreadData *td = arg; td 332 libavfilter/vf_colorchannelmixer.c AVFrame *in = td->in; td 333 libavfilter/vf_colorchannelmixer.c AVFrame *out = td->out; td 514 libavfilter/vf_colorchannelmixer.c ThreadData td; td 528 libavfilter/vf_colorchannelmixer.c td.in = in; td 529 libavfilter/vf_colorchannelmixer.c td.out = out; td 530 libavfilter/vf_colorchannelmixer.c ctx->internal->execute(ctx, s->filter_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); td 188 libavfilter/vf_colorconstancy.c static void cleanup_derivative_buffers(ThreadData *td, int nb_buff, int nb_planes) td 194 libavfilter/vf_colorconstancy.c av_freep(&td->data[b][p]); td 199 libavfilter/vf_colorconstancy.c av_freep(&td->data[b][p]); td 213 libavfilter/vf_colorconstancy.c static int setup_derivative_buffers(AVFilterContext* ctx, ThreadData *td) td 222 libavfilter/vf_colorconstancy.c td->data[b][p] = av_mallocz_array(s->planeheight[p] * s->planewidth[p], sizeof(*td->data[b][p])); td 223 libavfilter/vf_colorconstancy.c if (!td->data[b][p]) { td 224 libavfilter/vf_colorconstancy.c cleanup_derivative_buffers(td, b + 1, p); td 252 libavfilter/vf_colorconstancy.c ThreadData *td = arg; td 253 libavfilter/vf_colorconstancy.c AVFrame *in = td->in; td 254 libavfilter/vf_colorconstancy.c const int ord = td->meta_data[INDEX_ORD]; td 255 libavfilter/vf_colorconstancy.c const int dir = td->meta_data[INDEX_DIR]; td 256 libavfilter/vf_colorconstancy.c const int src_index = td->meta_data[INDEX_SRC]; td 257 libavfilter/vf_colorconstancy.c const int dst_index = td->meta_data[INDEX_DST]; td 266 libavfilter/vf_colorconstancy.c double *dst = td->data[dst_index][plane]; td 287 libavfilter/vf_colorconstancy.c const double *src = td->data[src_index][plane]; td 320 libavfilter/vf_colorconstancy.c ThreadData *td = arg; td 330 libavfilter/vf_colorconstancy.c const double *dx = td->data[INDEX_DX][plane]; td 331 libavfilter/vf_colorconstancy.c const double *dy = td->data[INDEX_DY][plane]; td 332 libavfilter/vf_colorconstancy.c double *norm = td->data[INDEX_NORM][plane]; td 340 libavfilter/vf_colorconstancy.c const double *dxy = td->data[INDEX_DXY][plane]; td 363 libavfilter/vf_colorconstancy.c get_deriv(AVFilterContext *ctx, ThreadData *td, int ord, int dir, td 365 libavfilter/vf_colorconstancy.c td->meta_data[INDEX_ORD] = ord; td 366 libavfilter/vf_colorconstancy.c td->meta_data[INDEX_DIR] = dir; td 367 libavfilter/vf_colorconstancy.c td->meta_data[INDEX_SRC] = src; td 368 libavfilter/vf_colorconstancy.c td->meta_data[INDEX_DST] = dst; td 369 libavfilter/vf_colorconstancy.c ctx->internal->execute(ctx, slice_get_derivative, td, NULL, FFMIN(dim, nb_threads)); td 381 libavfilter/vf_colorconstancy.c static int get_derivative(AVFilterContext *ctx, ThreadData *td) td 391 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 0, DIR_X, 0 , INDEX_NORM, height, nb_threads); td 393 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 0, DIR_X, 0, INDEX_TEMP, height, nb_threads); td 394 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 0, DIR_Y, INDEX_TEMP, INDEX_NORM, width , nb_threads); td 401 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 1, DIR_X, 0, INDEX_TEMP, height, nb_threads); td 402 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 0, DIR_Y, INDEX_TEMP, INDEX_DX, width , nb_threads); td 404 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 0, DIR_X, 0, INDEX_TEMP, height, nb_threads); td 405 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 1, DIR_Y, INDEX_TEMP, INDEX_DY, width , nb_threads); td 409 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 2, DIR_X, 0, INDEX_TEMP, height, nb_threads); td 410 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 0, DIR_Y, INDEX_TEMP, INDEX_DX, width , nb_threads); td 412 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 0, DIR_X, 0, INDEX_TEMP, height, nb_threads); td 413 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 2, DIR_Y, INDEX_TEMP, INDEX_DY, width , nb_threads); td 415 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 1, DIR_X, 0, INDEX_TEMP, height, nb_threads); td 416 libavfilter/vf_colorconstancy.c get_deriv(ctx, td, 1, DIR_Y, INDEX_TEMP, INDEX_DXY, width , nb_threads); td 440 libavfilter/vf_colorconstancy.c ThreadData *td = arg; td 441 libavfilter/vf_colorconstancy.c AVFrame *in = td->in; td 453 libavfilter/vf_colorconstancy.c const double *src = td->data[INDEX_NORM][plane]; td 454 libavfilter/vf_colorconstancy.c double *dst = td->data[INDEX_DST][plane]; td 489 libavfilter/vf_colorconstancy.c ThreadData td; td 496 libavfilter/vf_colorconstancy.c td.in = in; td 497 libavfilter/vf_colorconstancy.c ret = setup_derivative_buffers(ctx, &td); td 501 libavfilter/vf_colorconstancy.c get_derivative(ctx, &td); td 503 libavfilter/vf_colorconstancy.c ctx->internal->execute(ctx, slice_normalize, &td, NULL, nb_jobs); td 506 libavfilter/vf_colorconstancy.c ctx->internal->execute(ctx, filter_slice_grey_edge, &td, NULL, nb_jobs); td 511 libavfilter/vf_colorconstancy.c white[plane] = FFMAX(white[plane] , td.data[INDEX_DST][plane][job]); td 518 libavfilter/vf_colorconstancy.c white[plane] += td.data[INDEX_DST][plane][job]; td 524 libavfilter/vf_colorconstancy.c cleanup_derivative_buffers(&td, difford + 1, NUM_PLANES); td 594 libavfilter/vf_colorconstancy.c ThreadData *td = arg; td 595 libavfilter/vf_colorconstancy.c AVFrame *in = td->in; td 596 libavfilter/vf_colorconstancy.c AVFrame *out = td->out; td 629 libavfilter/vf_colorconstancy.c ThreadData td; td 632 libavfilter/vf_colorconstancy.c td.in = in; td 633 libavfilter/vf_colorconstancy.c td.out = out; td 634 libavfilter/vf_colorconstancy.c ctx->internal->execute(ctx, diagonal_transformation, &td, NULL, nb_jobs); td 125 libavfilter/vf_colorlevels.c const struct thread_data *td = arg;\ td 127 libavfilter/vf_colorlevels.c int process_h = td->h;\ td 131 libavfilter/vf_colorlevels.c const uint8_t *srcrow = td->srcrow;\ td 132 libavfilter/vf_colorlevels.c uint8_t *dstrow = td->dstrow;\ td 134 libavfilter/vf_colorlevels.c const uint8_t offset = td->offset;\ td 136 libavfilter/vf_colorlevels.c int imin = td->imin;\ td 137 libavfilter/vf_colorlevels.c int omin = td->omin;\ td 138 libavfilter/vf_colorlevels.c double coeff = td->coeff;\ td 145 libavfilter/vf_colorlevels.c const uint8_t *src = srcrow + y * td->src_linesize; td 146 libavfilter/vf_colorlevels.c uint8_t *dst = dstrow + y * td->dst_linesize; td 160 libavfilter/vf_colorlevels.c const uint16_t *src = (const uint16_t *)(srcrow + y * td->src_linesize); td 161 libavfilter/vf_colorlevels.c uint16_t *dst = (uint16_t *)(dstrow + y * td->dst_linesize); td 202 libavfilter/vf_colorlevels.c struct thread_data td; td 229 libavfilter/vf_colorlevels.c td.srcrow = srcrow; td 230 libavfilter/vf_colorlevels.c td.dstrow = dstrow; td 231 libavfilter/vf_colorlevels.c td.dst_linesize = out->linesize[0]; td 232 libavfilter/vf_colorlevels.c td.src_linesize = in->linesize[0]; td 233 libavfilter/vf_colorlevels.c td.coeff = coeff; td 234 libavfilter/vf_colorlevels.c td.offset = offset; td 235 libavfilter/vf_colorlevels.c td.h = inlink->h; td 236 libavfilter/vf_colorlevels.c td.imin = imin; td 237 libavfilter/vf_colorlevels.c td.omin = omin; td 239 libavfilter/vf_colorlevels.c ctx->internal->execute(ctx, colorlevel_slice_8, &td, NULL, td 254 libavfilter/vf_colorlevels.c struct thread_data td; td 281 libavfilter/vf_colorlevels.c td.srcrow = srcrow; td 282 libavfilter/vf_colorlevels.c td.dstrow = dstrow; td 283 libavfilter/vf_colorlevels.c td.dst_linesize = out->linesize[0]; td 284 libavfilter/vf_colorlevels.c td.src_linesize = in->linesize[0]; td 285 libavfilter/vf_colorlevels.c td.coeff = coeff; td 286 libavfilter/vf_colorlevels.c td.offset = offset; td 287 libavfilter/vf_colorlevels.c td.h = inlink->h; td 288 libavfilter/vf_colorlevels.c td.imin = imin; td 289 libavfilter/vf_colorlevels.c td.omin = omin; td 291 libavfilter/vf_colorlevels.c ctx->internal->execute(ctx, colorlevel_slice_16, &td, NULL, td 207 libavfilter/vf_colormatrix.c const ThreadData *td = arg; td 208 libavfilter/vf_colormatrix.c const AVFrame *src = td->src; td 209 libavfilter/vf_colormatrix.c AVFrame *dst = td->dst; td 218 libavfilter/vf_colormatrix.c const int c2 = td->c2; td 219 libavfilter/vf_colormatrix.c const int c3 = td->c3; td 220 libavfilter/vf_colormatrix.c const int c4 = td->c4; td 221 libavfilter/vf_colormatrix.c const int c5 = td->c5; td 222 libavfilter/vf_colormatrix.c const int c6 = td->c6; td 223 libavfilter/vf_colormatrix.c const int c7 = td->c7; td 245 libavfilter/vf_colormatrix.c const ThreadData *td = arg; td 246 libavfilter/vf_colormatrix.c const AVFrame *src = td->src; td 247 libavfilter/vf_colormatrix.c AVFrame *dst = td->dst; td 262 libavfilter/vf_colormatrix.c const int c2 = td->c2; td 263 libavfilter/vf_colormatrix.c const int c3 = td->c3; td 264 libavfilter/vf_colormatrix.c const int c4 = td->c4; td 265 libavfilter/vf_colormatrix.c const int c5 = td->c5; td 266 libavfilter/vf_colormatrix.c const int c6 = td->c6; td 267 libavfilter/vf_colormatrix.c const int c7 = td->c7; td 292 libavfilter/vf_colormatrix.c const ThreadData *td = arg; td 293 libavfilter/vf_colormatrix.c const AVFrame *src = td->src; td 294 libavfilter/vf_colormatrix.c AVFrame *dst = td->dst; td 309 libavfilter/vf_colormatrix.c const int c2 = td->c2; td 310 libavfilter/vf_colormatrix.c const int c3 = td->c3; td 311 libavfilter/vf_colormatrix.c const int c4 = td->c4; td 312 libavfilter/vf_colormatrix.c const int c5 = td->c5; td 313 libavfilter/vf_colormatrix.c const int c6 = td->c6; td 314 libavfilter/vf_colormatrix.c const int c7 = td->c7; td 340 libavfilter/vf_colormatrix.c const ThreadData *td = arg; td 341 libavfilter/vf_colormatrix.c const AVFrame *src = td->src; td 342 libavfilter/vf_colormatrix.c AVFrame *dst = td->dst; td 359 libavfilter/vf_colormatrix.c const int c2 = td->c2; td 360 libavfilter/vf_colormatrix.c const int c3 = td->c3; td 361 libavfilter/vf_colormatrix.c const int c4 = td->c4; td 362 libavfilter/vf_colormatrix.c const int c5 = td->c5; td 363 libavfilter/vf_colormatrix.c const int c6 = td->c6; td 364 libavfilter/vf_colormatrix.c const int c7 = td->c7; td 428 libavfilter/vf_colormatrix.c ThreadData td = {0}; td 466 libavfilter/vf_colormatrix.c td.src = in; td 467 libavfilter/vf_colormatrix.c td.dst = out; td 468 libavfilter/vf_colormatrix.c td.c2 = color->yuv_convert[color->mode][0][1]; td 469 libavfilter/vf_colormatrix.c td.c3 = color->yuv_convert[color->mode][0][2]; td 470 libavfilter/vf_colormatrix.c td.c4 = color->yuv_convert[color->mode][1][1]; td 471 libavfilter/vf_colormatrix.c td.c5 = color->yuv_convert[color->mode][1][2]; td 472 libavfilter/vf_colormatrix.c td.c6 = color->yuv_convert[color->mode][2][1]; td 473 libavfilter/vf_colormatrix.c td.c7 = color->yuv_convert[color->mode][2][2]; td 476 libavfilter/vf_colormatrix.c ctx->internal->execute(ctx, process_slice_yuv444p, &td, NULL, td 479 libavfilter/vf_colormatrix.c ctx->internal->execute(ctx, process_slice_yuv422p, &td, NULL, td 482 libavfilter/vf_colormatrix.c ctx->internal->execute(ctx, process_slice_yuv420p, &td, NULL, td 485 libavfilter/vf_colormatrix.c ctx->internal->execute(ctx, process_slice_uyvy422, &td, NULL, td 342 libavfilter/vf_colorspace.c const ThreadData *td = data; td 346 libavfilter/vf_colorspace.c int h_in = (td->in->height + 1) >> 1; td 348 libavfilter/vf_colorspace.c int w = td->in->width, h = h2 - h1; td 350 libavfilter/vf_colorspace.c in_data[0] = td->in->data[0] + td->in_linesize[0] * h1; td 351 libavfilter/vf_colorspace.c in_data[1] = td->in->data[1] + td->in_linesize[1] * (h1 >> td->in_ss_h); td 352 libavfilter/vf_colorspace.c in_data[2] = td->in->data[2] + td->in_linesize[2] * (h1 >> td->in_ss_h); td 353 libavfilter/vf_colorspace.c out_data[0] = td->out->data[0] + td->out_linesize[0] * h1; td 354 libavfilter/vf_colorspace.c out_data[1] = td->out->data[1] + td->out_linesize[1] * (h1 >> td->out_ss_h); td 355 libavfilter/vf_colorspace.c out_data[2] = td->out->data[2] + td->out_linesize[2] * (h1 >> td->out_ss_h); td 368 libavfilter/vf_colorspace.c s->yuv2yuv(out_data, td->out_linesize, in_data, td->in_linesize, w, h, td 390 libavfilter/vf_colorspace.c s->yuv2rgb(rgb, s->rgb_stride, in_data, td->in_linesize, w, h, td 399 libavfilter/vf_colorspace.c s->rgb2yuv_fsb(out_data, td->out_linesize, rgb, s->rgb_stride, w, h, td 402 libavfilter/vf_colorspace.c s->rgb2yuv(out_data, td->out_linesize, rgb, s->rgb_stride, w, h, td 774 libavfilter/vf_colorspace.c ThreadData td; td 856 libavfilter/vf_colorspace.c td.in = in; td 857 libavfilter/vf_colorspace.c td.out = out; td 858 libavfilter/vf_colorspace.c td.in_linesize[0] = in->linesize[0]; td 859 libavfilter/vf_colorspace.c td.in_linesize[1] = in->linesize[1]; td 860 libavfilter/vf_colorspace.c td.in_linesize[2] = in->linesize[2]; td 861 libavfilter/vf_colorspace.c td.out_linesize[0] = out->linesize[0]; td 862 libavfilter/vf_colorspace.c td.out_linesize[1] = out->linesize[1]; td 863 libavfilter/vf_colorspace.c td.out_linesize[2] = out->linesize[2]; td 864 libavfilter/vf_colorspace.c td.in_ss_h = av_pix_fmt_desc_get(in->format)->log2_chroma_h; td 865 libavfilter/vf_colorspace.c td.out_ss_h = av_pix_fmt_desc_get(out->format)->log2_chroma_h; td 874 libavfilter/vf_colorspace.c ctx->internal->execute(ctx, convert, &td, NULL, td 488 libavfilter/vf_convolution.c ThreadData *td = arg; td 489 libavfilter/vf_convolution.c AVFrame *in = td->in; td 490 libavfilter/vf_convolution.c AVFrame *out = td->out; td 618 libavfilter/vf_convolution.c ThreadData td; td 627 libavfilter/vf_convolution.c td.in = in; td 628 libavfilter/vf_convolution.c td.out = out; td 629 libavfilter/vf_convolution.c ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN3(s->planeheight[1], s->planewidth[1], s->nb_threads)); td 169 libavfilter/vf_convolve.c ThreadData *td = arg; td 170 libavfilter/vf_convolve.c FFTComplex *hdata = td->hdata; td 171 libavfilter/vf_convolve.c const int plane = td->plane; td 172 libavfilter/vf_convolve.c const int n = td->n; td 263 libavfilter/vf_convolve.c ThreadData *td = arg; td 264 libavfilter/vf_convolve.c FFTComplex *hdata = td->hdata; td 265 libavfilter/vf_convolve.c FFTComplex *vdata = td->vdata; td 266 libavfilter/vf_convolve.c const int plane = td->plane; td 267 libavfilter/vf_convolve.c const int n = td->n; td 288 libavfilter/vf_convolve.c ThreadData *td = arg; td 289 libavfilter/vf_convolve.c FFTComplex *hdata = td->hdata; td 290 libavfilter/vf_convolve.c FFTComplex *vdata = td->vdata; td 291 libavfilter/vf_convolve.c const int plane = td->plane; td 292 libavfilter/vf_convolve.c const int n = td->n; td 313 libavfilter/vf_convolve.c ThreadData *td = arg; td 314 libavfilter/vf_convolve.c FFTComplex *hdata = td->hdata; td 315 libavfilter/vf_convolve.c const int plane = td->plane; td 316 libavfilter/vf_convolve.c const int n = td->n; td 385 libavfilter/vf_convolve.c ThreadData *td = arg; td 386 libavfilter/vf_convolve.c FFTComplex *input = td->hdata; td 387 libavfilter/vf_convolve.c FFTComplex *filter = td->vdata; td 389 libavfilter/vf_convolve.c const int n = td->n; td 416 libavfilter/vf_convolve.c ThreadData *td = arg; td 417 libavfilter/vf_convolve.c FFTComplex *input = td->hdata; td 418 libavfilter/vf_convolve.c FFTComplex *filter = td->vdata; td 420 libavfilter/vf_convolve.c const int n = td->n; td 466 libavfilter/vf_convolve.c ThreadData td; td 472 libavfilter/vf_convolve.c td.plane = plane, td.n = n; td 475 libavfilter/vf_convolve.c td.hdata = s->fft_hdata[plane]; td 476 libavfilter/vf_convolve.c td.vdata = s->fft_vdata[plane]; td 478 libavfilter/vf_convolve.c ctx->internal->execute(ctx, fft_horizontal, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx))); td 479 libavfilter/vf_convolve.c ctx->internal->execute(ctx, fft_vertical, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx))); td 501 libavfilter/vf_convolve.c td.hdata = s->fft_hdata_impulse[plane]; td 502 libavfilter/vf_convolve.c td.vdata = s->fft_vdata_impulse[plane]; td 504 libavfilter/vf_convolve.c ctx->internal->execute(ctx, fft_horizontal, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx))); td 505 libavfilter/vf_convolve.c ctx->internal->execute(ctx, fft_vertical, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx))); td 510 libavfilter/vf_convolve.c td.hdata = input; td 511 libavfilter/vf_convolve.c td.vdata = filter; td 513 libavfilter/vf_convolve.c ctx->internal->execute(ctx, s->filter, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx))); td 515 libavfilter/vf_convolve.c td.hdata = s->fft_hdata[plane]; td 516 libavfilter/vf_convolve.c td.vdata = s->fft_vdata[plane]; td 518 libavfilter/vf_convolve.c ctx->internal->execute(ctx, ifft_vertical, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx))); td 519 libavfilter/vf_convolve.c ctx->internal->execute(ctx, ifft_horizontal, &td, NULL, FFMIN3(MAX_THREADS, n, ff_filter_get_nb_threads(ctx))); td 540 libavfilter/vf_curves.c const ThreadData *td = arg; td 541 libavfilter/vf_curves.c const AVFrame *in = td->in; td 542 libavfilter/vf_curves.c const AVFrame *out = td->out; td 588 libavfilter/vf_curves.c const ThreadData *td = arg; td 589 libavfilter/vf_curves.c const AVFrame *in = td->in; td 590 libavfilter/vf_curves.c const AVFrame *out = td->out; td 723 libavfilter/vf_curves.c ThreadData td; td 736 libavfilter/vf_curves.c td.in = in; td 737 libavfilter/vf_curves.c td.out = out; td 738 libavfilter/vf_curves.c ctx->internal->execute(ctx, curves->filter_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); td 180 libavfilter/vf_datascope.c ThreadData *td = arg; td 181 libavfilter/vf_datascope.c AVFrame *in = td->in; td 182 libavfilter/vf_datascope.c AVFrame *out = td->out; td 183 libavfilter/vf_datascope.c const int xoff = td->xoff; td 184 libavfilter/vf_datascope.c const int yoff = td->yoff; td 223 libavfilter/vf_datascope.c ThreadData *td = arg; td 224 libavfilter/vf_datascope.c AVFrame *in = td->in; td 225 libavfilter/vf_datascope.c AVFrame *out = td->out; td 226 libavfilter/vf_datascope.c const int xoff = td->xoff; td 227 libavfilter/vf_datascope.c const int yoff = td->yoff; td 262 libavfilter/vf_datascope.c ThreadData *td = arg; td 263 libavfilter/vf_datascope.c AVFrame *in = td->in; td 264 libavfilter/vf_datascope.c AVFrame *out = td->out; td 265 libavfilter/vf_datascope.c const int xoff = td->xoff; td 266 libavfilter/vf_datascope.c const int yoff = td->yoff; td 300 libavfilter/vf_datascope.c ThreadData td = { 0 }; td 352 libavfilter/vf_datascope.c td.in = in; td.out = out, td.yoff = xmaxlen, td.xoff = ymaxlen; td 353 libavfilter/vf_datascope.c ctx->internal->execute(ctx, s->filter, &td, NULL, FFMIN(ff_filter_get_nb_threads(ctx), FFMAX(outlink->w / 20, 1))); td 675 libavfilter/vf_dctdnoiz.c const ThreadData *td = arg; td 687 libavfilter/vf_dctdnoiz.c const float *src = td->src + slice_start_ctx * src_linesize; td 706 libavfilter/vf_dctdnoiz.c dst = td->dst + slice_start * dst_linesize; td 743 libavfilter/vf_dctdnoiz.c ThreadData td = { td 747 libavfilter/vf_dctdnoiz.c ctx->internal->execute(ctx, filter_slice, &td, NULL, s->nb_threads); td 137 libavfilter/vf_deband.c ThreadData *td = arg; td 138 libavfilter/vf_deband.c AVFrame *in = td->in; td 139 libavfilter/vf_deband.c AVFrame *out = td->out; td 186 libavfilter/vf_deband.c ThreadData *td = arg; td 187 libavfilter/vf_deband.c AVFrame *in = td->in; td 188 libavfilter/vf_deband.c AVFrame *out = td->out; td 251 libavfilter/vf_deband.c ThreadData *td = arg; td 252 libavfilter/vf_deband.c AVFrame *in = td->in; td 253 libavfilter/vf_deband.c AVFrame *out = td->out; td 318 libavfilter/vf_deband.c ThreadData *td = arg; td 319 libavfilter/vf_deband.c AVFrame *in = td->in; td 320 libavfilter/vf_deband.c AVFrame *out = td->out; td 417 libavfilter/vf_deband.c ThreadData td; td 426 libavfilter/vf_deband.c td.in = in; td.out = out; td 427 libavfilter/vf_deband.c ctx->internal->execute(ctx, s->deband, &td, NULL, FFMIN3(s->planeheight[1], td 168 libavfilter/vf_dedot.c ThreadData *td = arg; \ td 169 libavfilter/vf_dedot.c AVFrame *out = td->out; \ td 170 libavfilter/vf_dedot.c const int plane = td->plane; \ td 306 libavfilter/vf_dedot.c ThreadData td; td 307 libavfilter/vf_dedot.c td.out = out; td.plane = 1; td 308 libavfilter/vf_dedot.c ctx->internal->execute(ctx, s->derainbow, &td, NULL, td 311 libavfilter/vf_dedot.c td.plane = 2; td 312 libavfilter/vf_dedot.c ctx->internal->execute(ctx, s->derainbow, &td, NULL, td 97 libavfilter/vf_framerate.c ThreadData *td = arg; td 99 libavfilter/vf_framerate.c AVFrame *src1 = td->copy_src1; td 100 libavfilter/vf_framerate.c AVFrame *src2 = td->copy_src2; td 101 libavfilter/vf_framerate.c uint16_t src1_factor = td->src1_factor; td 102 libavfilter/vf_framerate.c uint16_t src2_factor = td->src2_factor; td 135 libavfilter/vf_framerate.c ThreadData td; td 136 libavfilter/vf_framerate.c td.copy_src1 = s->f0; td 137 libavfilter/vf_framerate.c td.copy_src2 = s->f1; td 138 libavfilter/vf_framerate.c td.src2_factor = interpolate; td 139 libavfilter/vf_framerate.c td.src1_factor = s->blend_factor_max - td.src2_factor; td 149 libavfilter/vf_framerate.c ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(FFMAX(1, outlink->h >> 2), ff_filter_get_nb_threads(ctx))); td 80 libavfilter/vf_gblur.c ThreadData *td = arg; td 81 libavfilter/vf_gblur.c const int height = td->height; td 82 libavfilter/vf_gblur.c const int width = td->width; td 133 libavfilter/vf_gblur.c ThreadData *td = arg; td 134 libavfilter/vf_gblur.c const int height = td->height; td 135 libavfilter/vf_gblur.c const int width = td->width; td 159 libavfilter/vf_gblur.c ThreadData *td = arg; td 161 libavfilter/vf_gblur.c const int height = td->height; td 162 libavfilter/vf_gblur.c const int width = td->width; td 184 libavfilter/vf_gblur.c ThreadData td; td 189 libavfilter/vf_gblur.c td.width = width; td 190 libavfilter/vf_gblur.c td.height = height; td 191 libavfilter/vf_gblur.c ctx->internal->execute(ctx, filter_horizontally, &td, NULL, FFMIN(height, nb_threads)); td 192 libavfilter/vf_gblur.c ctx->internal->execute(ctx, filter_vertically, &td, NULL, FFMIN(width, nb_threads)); td 193 libavfilter/vf_gblur.c ctx->internal->execute(ctx, filter_postscale, &td, NULL, FFMIN(width * height, nb_threads)); td 373 libavfilter/vf_geq.c ThreadData *td = arg; td 374 libavfilter/vf_geq.c const int height = td->height; td 375 libavfilter/vf_geq.c const int width = td->width; td 376 libavfilter/vf_geq.c const int plane = td->plane; td 377 libavfilter/vf_geq.c const int linesize = td->linesize; td 440 libavfilter/vf_geq.c ThreadData td; td 450 libavfilter/vf_geq.c td.width = width; td 451 libavfilter/vf_geq.c td.height = height; td 452 libavfilter/vf_geq.c td.plane = plane; td 453 libavfilter/vf_geq.c td.linesize = linesize; td 458 libavfilter/vf_geq.c ctx->internal->execute(ctx, slice_geq_filter, &td, NULL, FFMIN(height, nb_threads)); td 176 libavfilter/vf_hflip.c ThreadData *td = arg; td 177 libavfilter/vf_hflip.c AVFrame *in = td->in; td 178 libavfilter/vf_hflip.c AVFrame *out = td->out; td 207 libavfilter/vf_hflip.c ThreadData td; td 221 libavfilter/vf_hflip.c td.in = in, td.out = out; td 222 libavfilter/vf_hflip.c ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); td 302 libavfilter/vf_hqdn3d.c const ThreadData *td = data; td 303 libavfilter/vf_hqdn3d.c AVFrame *out = td->out; td 304 libavfilter/vf_hqdn3d.c AVFrame *in = td->in; td 305 libavfilter/vf_hqdn3d.c int direct = td->direct; td 325 libavfilter/vf_hqdn3d.c ThreadData td; td 339 libavfilter/vf_hqdn3d.c td.in = in; td 340 libavfilter/vf_hqdn3d.c td.out = out; td 341 libavfilter/vf_hqdn3d.c td.direct = direct; td 343 libavfilter/vf_hqdn3d.c ctx->internal->execute(ctx, do_denoise, &td, NULL, 3); td 383 libavfilter/vf_hqx.c static av_always_inline void hqx_filter(const ThreadData *td, int jobnr, int nb_jobs, int n) td 386 libavfilter/vf_hqx.c AVFrame *in = td->in, *out = td->out; td 387 libavfilter/vf_hqx.c const uint32_t *r2y = td->rgbtoyuv; td 492 libavfilter/vf_hqx.c ThreadData td; td 502 libavfilter/vf_hqx.c td.in = in; td 503 libavfilter/vf_hqx.c td.out = out; td 504 libavfilter/vf_hqx.c td.rgbtoyuv = hqx->rgbtoyuv; td 505 libavfilter/vf_hqx.c ctx->internal->execute(ctx, hqx->func, &td, NULL, FFMIN(inlink->h, ff_filter_get_nb_threads(ctx))); td 84 libavfilter/vf_lagfun.c ThreadData *td = arg; td 85 libavfilter/vf_lagfun.c AVFrame *in = td->in; td 86 libavfilter/vf_lagfun.c AVFrame *out = td->out; td 87 libavfilter/vf_lagfun.c AVFrame *old = td->old; td 120 libavfilter/vf_lagfun.c ThreadData *td = arg; td 121 libavfilter/vf_lagfun.c AVFrame *in = td->in; td 122 libavfilter/vf_lagfun.c AVFrame *out = td->out; td 123 libavfilter/vf_lagfun.c AVFrame *old = td->old; td 180 libavfilter/vf_lagfun.c ThreadData td; td 195 libavfilter/vf_lagfun.c td.out = out; td 196 libavfilter/vf_lagfun.c td.in = in; td 197 libavfilter/vf_lagfun.c td.old = s->old; td 198 libavfilter/vf_lagfun.c ctx->internal->execute(ctx, s->lagfun, &td, NULL, FFMIN(s->height[1], ff_filter_get_nb_threads(ctx))); td 68 libavfilter/vf_lenscorrection.c ThreadData *td = arg; td 69 libavfilter/vf_lenscorrection.c AVFrame *in = td->in; td 70 libavfilter/vf_lenscorrection.c AVFrame *out = td->out; td 72 libavfilter/vf_lenscorrection.c const int w = td->w, h = td->h; td 73 libavfilter/vf_lenscorrection.c const int xcenter = td->xcenter; td 74 libavfilter/vf_lenscorrection.c const int ycenter = td->ycenter; td 77 libavfilter/vf_lenscorrection.c const int plane = td->plane; td 89 libavfilter/vf_lenscorrection.c const int64_t radius_mult = td->correction[j + i*w]; td 164 libavfilter/vf_lenscorrection.c ThreadData td = { td 193 libavfilter/vf_lenscorrection.c td.correction = rect->correction[plane]; td 194 libavfilter/vf_lenscorrection.c ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(h, ff_filter_get_nb_threads(ctx))); td 174 libavfilter/vf_limiter.c ThreadData *td = arg; td 175 libavfilter/vf_limiter.c AVFrame *in = td->in; td 176 libavfilter/vf_limiter.c AVFrame *out = td->out; td 209 libavfilter/vf_limiter.c ThreadData td; td 223 libavfilter/vf_limiter.c td.out = out; td 224 libavfilter/vf_limiter.c td.in = in; td 225 libavfilter/vf_limiter.c ctx->internal->execute(ctx, filter_slice, &td, NULL, td 350 libavfilter/vf_lut.c const struct thread_data *td = arg;\ td 353 libavfilter/vf_lut.c const int w = td->w;\ td 354 libavfilter/vf_lut.c const int h = td->h;\ td 355 libavfilter/vf_lut.c AVFrame *in = td->in;\ td 356 libavfilter/vf_lut.c AVFrame *out = td->out;\ td 431 libavfilter/vf_lut.c const struct thread_data *td = arg;\ td 433 libavfilter/vf_lut.c AVFrame *in = td->in;\ td 434 libavfilter/vf_lut.c AVFrame *out = td->out;\ td 439 libavfilter/vf_lut.c int h = AV_CEIL_RSHIFT(td->h, vsub);\ td 440 libavfilter/vf_lut.c int w = AV_CEIL_RSHIFT(td->w, hsub);\ td 506 libavfilter/vf_lut.c struct thread_data td = {\ td 514 libavfilter/vf_lut.c struct thread_data td = {\ td 544 libavfilter/vf_lut.c ctx->internal->execute(ctx, lut_packed_16bits, &td, NULL, td 549 libavfilter/vf_lut.c ctx->internal->execute(ctx, lut_packed_8bits, &td, NULL, td 554 libavfilter/vf_lut.c ctx->internal->execute(ctx, lut_planar_16bits, &td, NULL, td 559 libavfilter/vf_lut.c ctx->internal->execute(ctx, lut_planar_8bits, &td, NULL, td 250 libavfilter/vf_lut2.c ThreadData *td = arg; \ td 251 libavfilter/vf_lut2.c AVFrame *out = td->out; \ td 252 libavfilter/vf_lut2.c AVFrame *srcx = td->srcx; \ td 253 libavfilter/vf_lut2.c AVFrame *srcy = td->srcy; \ td 308 libavfilter/vf_lut2.c ThreadData td; td 315 libavfilter/vf_lut2.c td.out = out; td 316 libavfilter/vf_lut2.c td.srcx = srcx; td 317 libavfilter/vf_lut2.c td.srcy = srcy; td 318 libavfilter/vf_lut2.c ctx->internal->execute(ctx, s->lut2, &td, NULL, FFMIN(s->heightx[1], ff_filter_get_nb_threads(ctx))); td 588 libavfilter/vf_lut2.c ThreadData td; td 599 libavfilter/vf_lut2.c td.out = out; td 600 libavfilter/vf_lut2.c td.srcx = frame; td 601 libavfilter/vf_lut2.c td.srcy = s->prev_frame; td 602 libavfilter/vf_lut2.c ctx->internal->execute(ctx, s->lut2, &td, NULL, FFMIN(s->heightx[1], ff_filter_get_nb_threads(ctx))); td 281 libavfilter/vf_lut3d.c const ThreadData *td = arg; \ td 282 libavfilter/vf_lut3d.c const AVFrame *in = td->in; \ td 283 libavfilter/vf_lut3d.c const AVFrame *out = td->out; \ td 367 libavfilter/vf_lut3d.c const ThreadData *td = arg; \ td 368 libavfilter/vf_lut3d.c const AVFrame *in = td->in; \ td 369 libavfilter/vf_lut3d.c const AVFrame *out = td->out; \ td 432 libavfilter/vf_lut3d.c const ThreadData *td = arg; \ td 433 libavfilter/vf_lut3d.c const AVFrame *in = td->in; \ td 434 libavfilter/vf_lut3d.c const AVFrame *out = td->out; \ td 1104 libavfilter/vf_lut3d.c ThreadData td; td 1117 libavfilter/vf_lut3d.c td.in = in; td 1118 libavfilter/vf_lut3d.c td.out = out; td 1119 libavfilter/vf_lut3d.c ctx->internal->execute(ctx, lut3d->interp, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); td 1780 libavfilter/vf_lut3d.c const ThreadData *td = arg; \ td 1781 libavfilter/vf_lut3d.c const AVFrame *in = td->in; \ td 1782 libavfilter/vf_lut3d.c const AVFrame *out = td->out; \ td 1876 libavfilter/vf_lut3d.c const ThreadData *td = arg; \ td 1877 libavfilter/vf_lut3d.c const AVFrame *in = td->in; \ td 1878 libavfilter/vf_lut3d.c const AVFrame *out = td->out; \ td 1941 libavfilter/vf_lut3d.c const ThreadData *td = arg; \ td 1942 libavfilter/vf_lut3d.c const AVFrame *in = td->in; \ td 1943 libavfilter/vf_lut3d.c const AVFrame *out = td->out; \ td 2088 libavfilter/vf_lut3d.c ThreadData td; td 2101 libavfilter/vf_lut3d.c td.in = in; td 2102 libavfilter/vf_lut3d.c td.out = out; td 2103 libavfilter/vf_lut3d.c ctx->internal->execute(ctx, lut1d->interp, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); td 93 libavfilter/vf_maskedclamp.c ThreadData *td = arg; td 97 libavfilter/vf_maskedclamp.c const ptrdiff_t blinesize = td->b->linesize[p]; td 98 libavfilter/vf_maskedclamp.c const ptrdiff_t brightlinesize = td->m->linesize[p]; td 99 libavfilter/vf_maskedclamp.c const ptrdiff_t darklinesize = td->o->linesize[p]; td 100 libavfilter/vf_maskedclamp.c const ptrdiff_t dlinesize = td->d->linesize[p]; td 105 libavfilter/vf_maskedclamp.c const uint8_t *bsrc = td->b->data[p] + slice_start * blinesize; td 106 libavfilter/vf_maskedclamp.c const uint8_t *darksrc = td->o->data[p] + slice_start * darklinesize; td 107 libavfilter/vf_maskedclamp.c const uint8_t *brightsrc = td->m->data[p] + slice_start * brightlinesize; td 108 libavfilter/vf_maskedclamp.c uint8_t *dst = td->d->data[p] + slice_start * dlinesize; td 150 libavfilter/vf_maskedclamp.c ThreadData td; td 157 libavfilter/vf_maskedclamp.c td.b = base; td 158 libavfilter/vf_maskedclamp.c td.o = dark; td 159 libavfilter/vf_maskedclamp.c td.m = bright; td 160 libavfilter/vf_maskedclamp.c td.d = out; td 162 libavfilter/vf_maskedclamp.c ctx->internal->execute(ctx, maskedclamp_slice, &td, NULL, FFMIN(s->height[0], td 75 libavfilter/vf_maskedmerge.c ThreadData *td = arg; td 76 libavfilter/vf_maskedmerge.c AVFrame *base = td->base; td 77 libavfilter/vf_maskedmerge.c AVFrame *overlay = td->overlay; td 78 libavfilter/vf_maskedmerge.c AVFrame *mask = td->mask; td 79 libavfilter/vf_maskedmerge.c AVFrame *out = td->out; td 115 libavfilter/vf_maskedmerge.c ThreadData td; td 133 libavfilter/vf_maskedmerge.c td.out = out; td 134 libavfilter/vf_maskedmerge.c td.base = base; td 135 libavfilter/vf_maskedmerge.c td.overlay = overlay; td 136 libavfilter/vf_maskedmerge.c td.mask = mask; td 137 libavfilter/vf_maskedmerge.c ctx->internal->execute(ctx, filter_slice, &td, NULL, td 159 libavfilter/vf_maskedminmax.c ThreadData *td = arg; td 162 libavfilter/vf_maskedminmax.c const ptrdiff_t src_linesize = td->src->linesize[p]; td 163 libavfilter/vf_maskedminmax.c const ptrdiff_t f1_linesize = td->f1->linesize[p]; td 164 libavfilter/vf_maskedminmax.c const ptrdiff_t f2_linesize = td->f2->linesize[p]; td 165 libavfilter/vf_maskedminmax.c const ptrdiff_t dst_linesize = td->dst->linesize[p]; td 170 libavfilter/vf_maskedminmax.c const uint8_t *src = td->src->data[p] + slice_start * src_linesize; td 171 libavfilter/vf_maskedminmax.c const uint8_t *f1 = td->f1->data[p] + slice_start * f1_linesize; td 172 libavfilter/vf_maskedminmax.c const uint8_t *f2 = td->f2->data[p] + slice_start * f2_linesize; td 173 libavfilter/vf_maskedminmax.c uint8_t *dst = td->dst->data[p] + slice_start * dst_linesize; td 212 libavfilter/vf_maskedminmax.c ThreadData td; td 219 libavfilter/vf_maskedminmax.c td.src = src; td 220 libavfilter/vf_maskedminmax.c td.f1 = f1; td 221 libavfilter/vf_maskedminmax.c td.f2 = f2; td 222 libavfilter/vf_maskedminmax.c td.dst = out; td 224 libavfilter/vf_maskedminmax.c ctx->internal->execute(ctx, maskedminmax_slice, &td, NULL, FFMIN(s->planeheight[0], td 134 libavfilter/vf_maskedthreshold.c ThreadData *td = arg; td 137 libavfilter/vf_maskedthreshold.c const ptrdiff_t src_linesize = td->src->linesize[p]; td 138 libavfilter/vf_maskedthreshold.c const ptrdiff_t ref_linesize = td->ref->linesize[p]; td 139 libavfilter/vf_maskedthreshold.c const ptrdiff_t dst_linesize = td->dst->linesize[p]; td 144 libavfilter/vf_maskedthreshold.c const uint8_t *src = td->src->data[p] + slice_start * src_linesize; td 145 libavfilter/vf_maskedthreshold.c const uint8_t *ref = td->ref->data[p] + slice_start * ref_linesize; td 146 libavfilter/vf_maskedthreshold.c uint8_t *dst = td->dst->data[p] + slice_start * dst_linesize; td 183 libavfilter/vf_maskedthreshold.c ThreadData td; td 190 libavfilter/vf_maskedthreshold.c td.src = src; td 191 libavfilter/vf_maskedthreshold.c td.ref = ref; td 192 libavfilter/vf_maskedthreshold.c td.dst = out; td 194 libavfilter/vf_maskedthreshold.c ctx->internal->execute(ctx, threshold_slice, &td, NULL, FFMIN(s->planeheight[2], td 188 libavfilter/vf_median.c ThreadData *td = arg; td 189 libavfilter/vf_median.c AVFrame *in = td->in; td 190 libavfilter/vf_median.c AVFrame *out = td->out; td 223 libavfilter/vf_median.c ThreadData td; td 233 libavfilter/vf_median.c td.in = in; td.out = out; td 234 libavfilter/vf_median.c ctx->internal->execute(ctx, filter_slice, &td, NULL, s->nb_threads); td 138 libavfilter/vf_mix.c ThreadData *td = arg; td 139 libavfilter/vf_mix.c AVFrame **in = td->in; td 140 libavfilter/vf_mix.c AVFrame *out = td->out; td 199 libavfilter/vf_mix.c ThreadData td; td 212 libavfilter/vf_mix.c td.in = in; td 213 libavfilter/vf_mix.c td.out = out; td 214 libavfilter/vf_mix.c ctx->internal->execute(ctx, mix_frames, &td, NULL, FFMIN(s->height[0], ff_filter_get_nb_threads(ctx))); td 354 libavfilter/vf_mix.c ThreadData td; td 383 libavfilter/vf_mix.c td.out = out; td 384 libavfilter/vf_mix.c td.in = s->frames; td 385 libavfilter/vf_mix.c ctx->internal->execute(ctx, mix_frames, &td, NULL, FFMIN(s->height[0], ff_filter_get_nb_threads(ctx))); td 263 libavfilter/vf_neighbor.c ThreadData *td = arg; td 264 libavfilter/vf_neighbor.c AVFrame *out = td->out; td 265 libavfilter/vf_neighbor.c AVFrame *in = td->in; td 319 libavfilter/vf_neighbor.c ThreadData td; td 329 libavfilter/vf_neighbor.c td.in = in; td 330 libavfilter/vf_neighbor.c td.out = out; td 331 libavfilter/vf_neighbor.c ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(s->planeheight[1], ff_filter_get_nb_threads(ctx))); td 347 libavfilter/vf_nlmeans.c const struct thread_data *td = arg; td 348 libavfilter/vf_nlmeans.c const ptrdiff_t src_linesize = td->src_linesize; td 349 libavfilter/vf_nlmeans.c const int process_h = td->endy - td->starty; td 352 libavfilter/vf_nlmeans.c const int starty = td->starty + slice_start; td 353 libavfilter/vf_nlmeans.c const int endy = td->starty + slice_end; td 354 libavfilter/vf_nlmeans.c const int p = td->p; td 355 libavfilter/vf_nlmeans.c const uint32_t *ii = td->ii_start + (starty - p - 1) * s->ii_lz_32 - p - 1; td 361 libavfilter/vf_nlmeans.c const uint8_t *src = td->src + y*src_linesize; td 363 libavfilter/vf_nlmeans.c for (x = td->startx; x < td->endx; x++) { td 447 libavfilter/vf_nlmeans.c struct thread_data td = { td 461 libavfilter/vf_nlmeans.c ctx->internal->execute(ctx, nlmeans_slice, &td, NULL, td 462 libavfilter/vf_nlmeans.c FFMIN(td.endy - td.starty, ff_filter_get_nb_threads(ctx))); td 227 libavfilter/vf_noise.c ThreadData *td = arg; td 234 libavfilter/vf_noise.c noise(td->out->data[plane] + start * td->out->linesize[plane], td 235 libavfilter/vf_noise.c td->in->data[plane] + start * td->in->linesize[plane], td 236 libavfilter/vf_noise.c td->out->linesize[plane], td->in->linesize[plane], td 247 libavfilter/vf_noise.c ThreadData td; td 274 libavfilter/vf_noise.c td.in = inpicref; td.out = out; td 275 libavfilter/vf_noise.c ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(n->height[0], ff_filter_get_nb_threads(ctx))); td 661 libavfilter/vf_overlay.c ThreadData *td = arg; td 662 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 1, 1, 0, s->x, s->y, 1, jobnr, nb_jobs); td 669 libavfilter/vf_overlay.c ThreadData *td = arg; td 670 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 1, 1, 1, s->x, s->y, 1, jobnr, nb_jobs); td 677 libavfilter/vf_overlay.c ThreadData *td = arg; td 678 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 1, 0, 0, s->x, s->y, 1, jobnr, nb_jobs); td 685 libavfilter/vf_overlay.c ThreadData *td = arg; td 686 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 1, 0, 1, s->x, s->y, 1, jobnr, nb_jobs); td 693 libavfilter/vf_overlay.c ThreadData *td = arg; td 694 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 0, 0, 0, s->x, s->y, 1, jobnr, nb_jobs); td 701 libavfilter/vf_overlay.c ThreadData *td = arg; td 702 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 0, 0, 1, s->x, s->y, 1, jobnr, nb_jobs); td 709 libavfilter/vf_overlay.c ThreadData *td = arg; td 710 libavfilter/vf_overlay.c blend_slice_planar_rgb(ctx, td->dst, td->src, 0, 0, 0, s->x, s->y, 1, jobnr, nb_jobs); td 717 libavfilter/vf_overlay.c ThreadData *td = arg; td 718 libavfilter/vf_overlay.c blend_slice_planar_rgb(ctx, td->dst, td->src, 0, 0, 1, s->x, s->y, 1, jobnr, nb_jobs); td 725 libavfilter/vf_overlay.c ThreadData *td = arg; td 726 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 1, 1, 0, s->x, s->y, 0, jobnr, nb_jobs); td 733 libavfilter/vf_overlay.c ThreadData *td = arg; td 734 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 1, 1, 1, s->x, s->y, 0, jobnr, nb_jobs); td 741 libavfilter/vf_overlay.c ThreadData *td = arg; td 742 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 1, 0, 0, s->x, s->y, 0, jobnr, nb_jobs); td 749 libavfilter/vf_overlay.c ThreadData *td = arg; td 750 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 1, 0, 1, s->x, s->y, 0, jobnr, nb_jobs); td 757 libavfilter/vf_overlay.c ThreadData *td = arg; td 758 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 0, 0, 0, s->x, s->y, 0, jobnr, nb_jobs); td 765 libavfilter/vf_overlay.c ThreadData *td = arg; td 766 libavfilter/vf_overlay.c blend_slice_yuv(ctx, td->dst, td->src, 0, 0, 1, s->x, s->y, 0, jobnr, nb_jobs); td 773 libavfilter/vf_overlay.c ThreadData *td = arg; td 774 libavfilter/vf_overlay.c blend_slice_planar_rgb(ctx, td->dst, td->src, 0, 0, 0, s->x, s->y, 0, jobnr, nb_jobs); td 781 libavfilter/vf_overlay.c ThreadData *td = arg; td 782 libavfilter/vf_overlay.c blend_slice_planar_rgb(ctx, td->dst, td->src, 0, 0, 1, s->x, s->y, 0, jobnr, nb_jobs); td 789 libavfilter/vf_overlay.c ThreadData *td = arg; td 790 libavfilter/vf_overlay.c blend_slice_packed_rgb(ctx, td->dst, td->src, 0, s->x, s->y, 1, jobnr, nb_jobs); td 797 libavfilter/vf_overlay.c ThreadData *td = arg; td 798 libavfilter/vf_overlay.c blend_slice_packed_rgb(ctx, td->dst, td->src, 1, s->x, s->y, 1, jobnr, nb_jobs); td 805 libavfilter/vf_overlay.c ThreadData *td = arg; td 806 libavfilter/vf_overlay.c blend_slice_packed_rgb(ctx, td->dst, td->src, 0, s->x, s->y, 0, jobnr, nb_jobs); td 813 libavfilter/vf_overlay.c ThreadData *td = arg; td 814 libavfilter/vf_overlay.c blend_slice_packed_rgb(ctx, td->dst, td->src, 1, s->x, s->y, 0, jobnr, nb_jobs); td 966 libavfilter/vf_overlay.c ThreadData td; td 968 libavfilter/vf_overlay.c td.dst = mainpic; td 969 libavfilter/vf_overlay.c td.src = second; td 970 libavfilter/vf_overlay.c ctx->internal->execute(ctx, s->blend_slice, &td, NULL, FFMIN(FFMAX(1, FFMIN3(s->y + second->height, FFMIN(second->height, mainpic->height), mainpic->height - s->y)), td 286 libavfilter/vf_perspective.c ThreadData *td = arg; td 287 libavfilter/vf_perspective.c uint8_t *dst = td->dst; td 288 libavfilter/vf_perspective.c int dst_linesize = td->dst_linesize; td 289 libavfilter/vf_perspective.c uint8_t *src = td->src; td 290 libavfilter/vf_perspective.c int src_linesize = td->src_linesize; td 291 libavfilter/vf_perspective.c int w = td->w; td 292 libavfilter/vf_perspective.c int h = td->h; td 293 libavfilter/vf_perspective.c int hsub = td->hsub; td 294 libavfilter/vf_perspective.c int vsub = td->vsub; td 365 libavfilter/vf_perspective.c ThreadData *td = arg; td 366 libavfilter/vf_perspective.c uint8_t *dst = td->dst; td 367 libavfilter/vf_perspective.c int dst_linesize = td->dst_linesize; td 368 libavfilter/vf_perspective.c uint8_t *src = td->src; td 369 libavfilter/vf_perspective.c int src_linesize = td->src_linesize; td 370 libavfilter/vf_perspective.c int w = td->w; td 371 libavfilter/vf_perspective.c int h = td->h; td 372 libavfilter/vf_perspective.c int hsub = td->hsub; td 373 libavfilter/vf_perspective.c int vsub = td->vsub; td 474 libavfilter/vf_perspective.c ThreadData td = {.dst = out->data[plane], td 482 libavfilter/vf_perspective.c ctx->internal->execute(ctx, s->perspective, &td, NULL, FFMIN(td.h, ff_filter_get_nb_threads(ctx))); td 101 libavfilter/vf_photosensitivity.c ThreadData_convert_frame *td = arg; td 106 libavfilter/vf_photosensitivity.c int width = td->in->width, height = td->in->height, linesize = td->in->linesize[0], skip = td->skip; td 107 libavfilter/vf_photosensitivity.c const uint8_t *data = td->in->data[0]; td 137 libavfilter/vf_photosensitivity.c td->out->grid[gy][gx][c] = sum[c]; td 145 libavfilter/vf_photosensitivity.c ThreadData_convert_frame td; td 146 libavfilter/vf_photosensitivity.c td.in = in; td 147 libavfilter/vf_photosensitivity.c td.out = out; td 148 libavfilter/vf_photosensitivity.c td.skip = skip; td 149 libavfilter/vf_photosensitivity.c ctx->internal->execute(ctx, convert_frame_partial, &td, NULL, FFMIN(NUM_CELLS, ff_filter_get_nb_threads(ctx))); td 164 libavfilter/vf_photosensitivity.c ThreadData_blend_frame *td = arg; td 165 libavfilter/vf_photosensitivity.c const uint16_t s_mul = td->s_mul; td 167 libavfilter/vf_photosensitivity.c const int slice_start = (td->target->height * jobnr) / nb_jobs; td 168 libavfilter/vf_photosensitivity.c const int slice_end = (td->target->height * (jobnr+1)) / nb_jobs; td 169 libavfilter/vf_photosensitivity.c const int linesize = td->target->linesize[0]; td 172 libavfilter/vf_photosensitivity.c t = td->target->data[0] + y * td->target->linesize[0]; td 173 libavfilter/vf_photosensitivity.c s = td->source->data[0] + y * td->source->linesize[0]; td 184 libavfilter/vf_photosensitivity.c ThreadData_blend_frame td; td 185 libavfilter/vf_photosensitivity.c td.target = target; td 186 libavfilter/vf_photosensitivity.c td.source = source; td 187 libavfilter/vf_photosensitivity.c td.s_mul = (uint16_t)(factor * 0x100); td 188 libavfilter/vf_photosensitivity.c ctx->internal->execute(ctx, blend_frame_partial, &td, NULL, FFMIN(ctx->outputs[0]->h, ff_filter_get_nb_threads(ctx))); td 371 libavfilter/vf_premultiply.c ThreadData *td = arg; td 372 libavfilter/vf_premultiply.c AVFrame *out = td->d; td 373 libavfilter/vf_premultiply.c AVFrame *alpha = td->a; td 374 libavfilter/vf_premultiply.c AVFrame *base = td->m; td 414 libavfilter/vf_premultiply.c ThreadData td; td 521 libavfilter/vf_premultiply.c td.d = *out; td 522 libavfilter/vf_premultiply.c td.a = alpha; td 523 libavfilter/vf_premultiply.c td.m = base; td 524 libavfilter/vf_premultiply.c ctx->internal->execute(ctx, premultiply_slice, &td, NULL, FFMIN(s->height[0], td 149 libavfilter/vf_remap.c const ThreadData *td = arg; \ td 150 libavfilter/vf_remap.c const AVFrame *in = td->in; \ td 151 libavfilter/vf_remap.c const AVFrame *xin = td->xin; \ td 152 libavfilter/vf_remap.c const AVFrame *yin = td->yin; \ td 153 libavfilter/vf_remap.c const AVFrame *out = td->out; \ td 160 libavfilter/vf_remap.c for (plane = 0; plane < td->nb_planes ; plane++) { \ td 200 libavfilter/vf_remap.c const ThreadData *td = arg; \ td 201 libavfilter/vf_remap.c const AVFrame *in = td->in; \ td 202 libavfilter/vf_remap.c const AVFrame *xin = td->xin; \ td 203 libavfilter/vf_remap.c const AVFrame *yin = td->yin; \ td 204 libavfilter/vf_remap.c const AVFrame *out = td->out; \ td 215 libavfilter/vf_remap.c const int step = td->step / div; \ td 220 libavfilter/vf_remap.c for (c = 0; c < td->nb_components; c++) { \ td 301 libavfilter/vf_remap.c ThreadData td; td 308 libavfilter/vf_remap.c td.in = in; td 309 libavfilter/vf_remap.c td.xin = xpic; td 310 libavfilter/vf_remap.c td.yin = ypic; td 311 libavfilter/vf_remap.c td.out = out; td 312 libavfilter/vf_remap.c td.nb_planes = s->nb_planes; td 313 libavfilter/vf_remap.c td.nb_components = s->nb_components; td 314 libavfilter/vf_remap.c td.step = s->step; td 315 libavfilter/vf_remap.c ctx->internal->execute(ctx, s->remap_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); td 526 libavfilter/vf_removegrain.c ThreadData *td = arg; td 527 libavfilter/vf_removegrain.c AVFrame *in = td->in; td 528 libavfilter/vf_removegrain.c AVFrame *out = td->out; td 529 libavfilter/vf_removegrain.c const int i = td->plane; td 596 libavfilter/vf_removegrain.c ThreadData td; td 620 libavfilter/vf_removegrain.c td.in = in; td.out = out; td.plane = i; td 621 libavfilter/vf_removegrain.c ctx->internal->execute(ctx, filter_slice, &td, NULL, td 422 libavfilter/vf_rotate.c ThreadData *td = arg; td 423 libavfilter/vf_rotate.c AVFrame *in = td->in; td 424 libavfilter/vf_rotate.c AVFrame *out = td->out; td 426 libavfilter/vf_rotate.c const int outw = td->outw, outh = td->outh; td 427 libavfilter/vf_rotate.c const int inw = td->inw, inh = td->inh; td 428 libavfilter/vf_rotate.c const int plane = td->plane; td 429 libavfilter/vf_rotate.c const int xi = td->xi, yi = td->yi; td 430 libavfilter/vf_rotate.c const int c = td->c, s = td->s; td 433 libavfilter/vf_rotate.c int xprime = td->xprime + start * s; td 434 libavfilter/vf_rotate.c int yprime = td->yprime + start * c; td 547 libavfilter/vf_rotate.c ThreadData td = { .in = in, .out = out, td 557 libavfilter/vf_rotate.c ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outh, ff_filter_get_nb_threads(ctx))); td 83 libavfilter/vf_scroll.c ThreadData *td = arg; td 84 libavfilter/vf_scroll.c AVFrame *in = td->in; td 85 libavfilter/vf_scroll.c AVFrame *out = td->out; td 114 libavfilter/vf_scroll.c ThreadData td; td 133 libavfilter/vf_scroll.c td.in = in; td.out = out; td 134 libavfilter/vf_scroll.c ctx->internal->execute(ctx, scroll_slice, &td, NULL, td 317 libavfilter/vf_selectivecolor.c static inline int selective_color_##nbits(AVFilterContext *ctx, ThreadData *td, \ td 321 libavfilter/vf_selectivecolor.c const AVFrame *in = td->in; \ td 322 libavfilter/vf_selectivecolor.c AVFrame *out = td->out; \ td 412 libavfilter/vf_selectivecolor.c typedef int (*selective_color_func_type)(AVFilterContext *ctx, void *td, int jobnr, int nb_jobs); td 420 libavfilter/vf_selectivecolor.c ThreadData td; td 445 libavfilter/vf_selectivecolor.c td.in = in; td 446 libavfilter/vf_selectivecolor.c td.out = out; td 448 libavfilter/vf_selectivecolor.c &td, NULL, FFMIN(inlink->h, ff_filter_get_nb_threads(ctx))); td 222 libavfilter/vf_signalstats.c ThreadData *td = arg; td 224 libavfilter/vf_signalstats.c const AVFrame *in = td->in; td 225 libavfilter/vf_signalstats.c AVFrame *out = td->out; td 256 libavfilter/vf_signalstats.c ThreadData *td = arg; td 258 libavfilter/vf_signalstats.c const AVFrame *in = td->in; td 259 libavfilter/vf_signalstats.c AVFrame *out = td->out; td 296 libavfilter/vf_signalstats.c ThreadData *td = arg; td 298 libavfilter/vf_signalstats.c const AVFrame *in = td->in; td 299 libavfilter/vf_signalstats.c AVFrame *out = td->out; td 344 libavfilter/vf_signalstats.c ThreadData *td = arg; td 346 libavfilter/vf_signalstats.c const AVFrame *in = td->in; td 347 libavfilter/vf_signalstats.c AVFrame *out = td->out; td 387 libavfilter/vf_signalstats.c ThreadData *td = arg; td 389 libavfilter/vf_signalstats.c const AVFrame *in = td->in; td 390 libavfilter/vf_signalstats.c AVFrame *out = td->out; td 421 libavfilter/vf_signalstats.c ThreadData *td = arg; td 423 libavfilter/vf_signalstats.c const AVFrame *in = td->in; td 424 libavfilter/vf_signalstats.c AVFrame *out = td->out; td 468 libavfilter/vf_signalstats.c ThreadDataHueSatMetrics *td = arg; td 470 libavfilter/vf_signalstats.c const AVFrame *src = td->src; td 471 libavfilter/vf_signalstats.c AVFrame *dst_sat = td->dst_sat; td 472 libavfilter/vf_signalstats.c AVFrame *dst_hue = td->dst_hue; td 506 libavfilter/vf_signalstats.c ThreadDataHueSatMetrics *td = arg; td 508 libavfilter/vf_signalstats.c const AVFrame *src = td->src; td 509 libavfilter/vf_signalstats.c AVFrame *dst_sat = td->dst_sat; td 510 libavfilter/vf_signalstats.c AVFrame *dst_hue = td->dst_hue; td 646 libavfilter/vf_signalstats.c ThreadData td = { td 652 libavfilter/vf_signalstats.c &td, s->jobs_rets, s->nb_jobs); td 868 libavfilter/vf_signalstats.c ThreadData td = { td 874 libavfilter/vf_signalstats.c &td, s->jobs_rets, s->nb_jobs); td 612 libavfilter/vf_stereo3d.c ThreadData *td = arg; td 613 libavfilter/vf_stereo3d.c AVFrame *ileft = td->ileft; td 614 libavfilter/vf_stereo3d.c AVFrame *iright = td->iright; td 615 libavfilter/vf_stereo3d.c AVFrame *out = td->out; td 941 libavfilter/vf_stereo3d.c ThreadData td; td 943 libavfilter/vf_stereo3d.c td.ileft = ileft; td.iright = iright; td.out = out; td 944 libavfilter/vf_stereo3d.c ctx->internal->execute(ctx, filter_slice, &td, NULL, td 82 libavfilter/vf_threshold.c ThreadData *td = arg; td 83 libavfilter/vf_threshold.c AVFrame *min = td->min; td 84 libavfilter/vf_threshold.c AVFrame *max = td->max; td 85 libavfilter/vf_threshold.c AVFrame *threshold = td->threshold; td 86 libavfilter/vf_threshold.c AVFrame *in = td->in; td 87 libavfilter/vf_threshold.c AVFrame *out = td->out; td 123 libavfilter/vf_threshold.c ThreadData td; td 142 libavfilter/vf_threshold.c td.out = out; td 143 libavfilter/vf_threshold.c td.in = in; td 144 libavfilter/vf_threshold.c td.threshold = threshold; td 145 libavfilter/vf_threshold.c td.min = min; td 146 libavfilter/vf_threshold.c td.max = max; td 147 libavfilter/vf_threshold.c ctx->internal->execute(ctx, filter_slice, &td, NULL, td 203 libavfilter/vf_tonemap.c ThreadData *td = arg; td 204 libavfilter/vf_tonemap.c AVFrame *in = td->in; td 205 libavfilter/vf_tonemap.c AVFrame *out = td->out; td 206 libavfilter/vf_tonemap.c const AVPixFmtDescriptor *desc = td->desc; td 209 libavfilter/vf_tonemap.c double peak = td->peak; td 223 libavfilter/vf_tonemap.c ThreadData td; td 274 libavfilter/vf_tonemap.c td.out = out; td 275 libavfilter/vf_tonemap.c td.in = in; td 276 libavfilter/vf_tonemap.c td.desc = desc; td 277 libavfilter/vf_tonemap.c td.peak = peak; td 278 libavfilter/vf_tonemap.c ctx->internal->execute(ctx, tonemap_slice, &td, NULL, FFMIN(in->height, ff_filter_get_nb_threads(ctx))); td 271 libavfilter/vf_transpose.c ThreadData *td = arg; td 272 libavfilter/vf_transpose.c AVFrame *out = td->out; td 273 libavfilter/vf_transpose.c AVFrame *in = td->in; td 334 libavfilter/vf_transpose.c ThreadData td; td 354 libavfilter/vf_transpose.c td.in = in, td.out = out; td 355 libavfilter/vf_transpose.c ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); td 62 libavfilter/vf_unsharp.c ThreadData *td = arg; td 63 libavfilter/vf_unsharp.c UnsharpFilterParam *fp = td->fp; td 73 libavfilter/vf_unsharp.c uint8_t *dst = td->dst; td 74 libavfilter/vf_unsharp.c const uint8_t *src = td->src; td 75 libavfilter/vf_unsharp.c const int dst_stride = td->dst_stride; td 76 libavfilter/vf_unsharp.c const int src_stride = td->src_stride; td 77 libavfilter/vf_unsharp.c const int width = td->width; td 78 libavfilter/vf_unsharp.c const int height = td->height; td 142 libavfilter/vf_unsharp.c ThreadData td; td 151 libavfilter/vf_unsharp.c td.fp = fp[i]; td 152 libavfilter/vf_unsharp.c td.dst = out->data[i]; td 153 libavfilter/vf_unsharp.c td.src = in->data[i]; td 154 libavfilter/vf_unsharp.c td.width = plane_w[i]; td 155 libavfilter/vf_unsharp.c td.height = plane_h[i]; td 156 libavfilter/vf_unsharp.c td.dst_stride = out->linesize[i]; td 157 libavfilter/vf_unsharp.c td.src_stride = in->linesize[i]; td 158 libavfilter/vf_unsharp.c ctx->internal->execute(ctx, unsharp_slice, &td, NULL, FFMIN(plane_h[i], s->nb_threads)); td 274 libavfilter/vf_v360.c ThreadData *td = arg; \ td 276 libavfilter/vf_v360.c const AVFrame *in = td->in; \ td 277 libavfilter/vf_v360.c AVFrame *out = td->out; \ td 4251 libavfilter/vf_v360.c ThreadData td; td 4260 libavfilter/vf_v360.c td.in = in; td 4261 libavfilter/vf_v360.c td.out = out; td 4263 libavfilter/vf_v360.c ctx->internal->execute(ctx, s->remap_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); td 36 libavfilter/vf_vidstabtransform.c VSTransformData td; td 120 libavfilter/vf_vidstabtransform.c vsTransformDataCleanup(&tc->td); td 151 libavfilter/vf_vidstabtransform.c VSTransformData *td = &(tc->td); td 188 libavfilter/vf_vidstabtransform.c if (vsTransformDataInit(td, &tc->conf, &fi_src, &fi_dest) != VS_OK) { td 193 libavfilter/vf_vidstabtransform.c vsTransformGetConfig(&tc->conf, td); td 221 libavfilter/vf_vidstabtransform.c if (vsLocalmotions2Transforms(td, &mlms, &tc->trans) != VS_OK) { td 226 libavfilter/vf_vidstabtransform.c if (!vsReadOldTransforms(td, f, &tc->trans)) { /* read input file */ td 234 libavfilter/vf_vidstabtransform.c if (vsPreprocessTransforms(td, &tc->trans) != VS_OK) { td 248 libavfilter/vf_vidstabtransform.c VSTransformData* td = &(tc->td); td 268 libavfilter/vf_vidstabtransform.c for (plane = 0; plane < vsTransformGetSrcFrameInfo(td)->planes; plane++) { td 273 libavfilter/vf_vidstabtransform.c vsTransformPrepare(td, &inframe, &inframe); td 276 libavfilter/vf_vidstabtransform.c for (plane = 0; plane < vsTransformGetDestFrameInfo(td)->planes; plane++) { td 280 libavfilter/vf_vidstabtransform.c vsTransformPrepare(td, &inframe, &outframe); td 283 libavfilter/vf_vidstabtransform.c vsDoTransform(td, vsGetNextTransform(td, &tc->trans)); td 285 libavfilter/vf_vidstabtransform.c vsTransformFinish(td); td 355 libavfilter/vf_w3fdif.c ThreadData *td = arg; td 356 libavfilter/vf_w3fdif.c AVFrame *out = td->out; td 357 libavfilter/vf_w3fdif.c AVFrame *cur = td->cur; td 358 libavfilter/vf_w3fdif.c AVFrame *adj = td->adj; td 359 libavfilter/vf_w3fdif.c const int plane = td->plane; td 462 libavfilter/vf_w3fdif.c ThreadData td; td 486 libavfilter/vf_w3fdif.c td.out = out; td.cur = s->cur; td.adj = adj; td 488 libavfilter/vf_w3fdif.c td.plane = plane; td 489 libavfilter/vf_w3fdif.c ctx->internal->execute(ctx, deinterlace_slice, &td, NULL, FFMIN(s->planeheight[plane], s->nb_threads)); td 801 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 802 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 803 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 804 libavfilter/vf_waveform.c int component = td->component; \ td 805 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 806 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 938 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 939 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 940 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 941 libavfilter/vf_waveform.c int component = td->component; \ td 942 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 943 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 1077 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 1078 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 1079 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 1080 libavfilter/vf_waveform.c int component = td->component; \ td 1081 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 1082 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 1214 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 1215 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 1216 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 1217 libavfilter/vf_waveform.c int component = td->component; \ td 1218 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 1219 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 1239 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 1240 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 1241 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 1242 libavfilter/vf_waveform.c int component = td->component; \ td 1243 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 1244 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 1373 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 1374 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 1375 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 1376 libavfilter/vf_waveform.c int component = td->component; \ td 1377 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 1378 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 1612 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 1613 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 1614 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 1615 libavfilter/vf_waveform.c int component = td->component; \ td 1616 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 1617 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 1716 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 1717 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 1718 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 1719 libavfilter/vf_waveform.c int component = td->component; \ td 1720 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 1721 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 1849 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 1850 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 1851 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 1852 libavfilter/vf_waveform.c int component = td->component; \ td 1853 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 1854 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 1981 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 1982 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 1983 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 1984 libavfilter/vf_waveform.c int component = td->component; \ td 1985 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 1986 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 2115 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 2116 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 2117 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 2118 libavfilter/vf_waveform.c int component = td->component; \ td 2119 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 2120 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 2248 libavfilter/vf_waveform.c ThreadData *td = arg; \ td 2249 libavfilter/vf_waveform.c AVFrame *in = td->in; \ td 2250 libavfilter/vf_waveform.c AVFrame *out = td->out; \ td 2251 libavfilter/vf_waveform.c int component = td->component; \ td 2252 libavfilter/vf_waveform.c int offset_y = td->offset_y; \ td 2253 libavfilter/vf_waveform.c int offset_x = td->offset_x; \ td 3410 libavfilter/vf_waveform.c ThreadData td; td 3422 libavfilter/vf_waveform.c td.in = in; td 3423 libavfilter/vf_waveform.c td.out = out; td 3424 libavfilter/vf_waveform.c td.component = k; td 3425 libavfilter/vf_waveform.c td.offset_y = offset_y; td 3426 libavfilter/vf_waveform.c td.offset_x = offset_x; td 3427 libavfilter/vf_waveform.c ctx->internal->execute(ctx, s->waveform_slice, &td, NULL, ff_filter_get_nb_threads(ctx)); td 215 libavfilter/vf_xbr.c static av_always_inline void xbr_filter(const ThreadData *td, int jobnr, int nb_jobs, int n) td 218 libavfilter/vf_xbr.c const AVFrame *input = td->in; td 219 libavfilter/vf_xbr.c AVFrame *output = td->out; td 220 libavfilter/vf_xbr.c const uint32_t *r2y = td->rgbtoyuv; td 361 libavfilter/vf_xbr.c ThreadData td; td 371 libavfilter/vf_xbr.c td.in = in; td 372 libavfilter/vf_xbr.c td.out = out; td 373 libavfilter/vf_xbr.c td.rgbtoyuv = s->rgbtoyuv; td 374 libavfilter/vf_xbr.c ctx->internal->execute(ctx, s->func, &td, NULL, FFMIN(inlink->h, ff_filter_get_nb_threads(ctx))); td 1457 libavfilter/vf_xfade.c ThreadData *td = arg; td 1461 libavfilter/vf_xfade.c s->transitionf(ctx, td->xf[0], td->xf[1], td->out, td->progress, slice_start, slice_end, jobnr); td 1471 libavfilter/vf_xfade.c ThreadData td; td 1478 libavfilter/vf_xfade.c td.xf[0] = a, td.xf[1] = b, td.out = out, td.progress = progress; td 1479 libavfilter/vf_xfade.c ctx->internal->execute(ctx, xfade_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); td 147 libavfilter/vf_xmedian.c ThreadData *td = arg; td 148 libavfilter/vf_xmedian.c AVFrame **in = td->in; td 149 libavfilter/vf_xmedian.c AVFrame *out = td->out; td 192 libavfilter/vf_xmedian.c ThreadData *td = arg; td 193 libavfilter/vf_xmedian.c AVFrame **in = td->in; td 194 libavfilter/vf_xmedian.c AVFrame *out = td->out; td 239 libavfilter/vf_xmedian.c ThreadData td; td 252 libavfilter/vf_xmedian.c td.in = in; td 253 libavfilter/vf_xmedian.c td.out = out; td 254 libavfilter/vf_xmedian.c ctx->internal->execute(ctx, s->median_frames, &td, NULL, FFMIN(s->height[1], ff_filter_get_nb_threads(ctx))); td 390 libavfilter/vf_xmedian.c ThreadData td; td 416 libavfilter/vf_xmedian.c td.out = out; td 417 libavfilter/vf_xmedian.c td.in = s->frames; td 418 libavfilter/vf_xmedian.c ctx->internal->execute(ctx, s->median_frames, &td, NULL, FFMIN(s->height[0], ff_filter_get_nb_threads(ctx))); td 193 libavfilter/vf_yadif.c ThreadData *td = arg; td 194 libavfilter/vf_yadif.c int refs = s->cur->linesize[td->plane]; td 195 libavfilter/vf_yadif.c int df = (s->csp->comp[td->plane].depth + 7) / 8; td 197 libavfilter/vf_yadif.c int slice_start = (td->h * jobnr ) / nb_jobs; td 198 libavfilter/vf_yadif.c int slice_end = (td->h * (jobnr+1)) / nb_jobs; td 206 libavfilter/vf_yadif.c if ((y ^ td->parity) & 1) { td 207 libavfilter/vf_yadif.c uint8_t *prev = &s->prev->data[td->plane][y * refs]; td 208 libavfilter/vf_yadif.c uint8_t *cur = &s->cur ->data[td->plane][y * refs]; td 209 libavfilter/vf_yadif.c uint8_t *next = &s->next->data[td->plane][y * refs]; td 210 libavfilter/vf_yadif.c uint8_t *dst = &td->frame->data[td->plane][y * td->frame->linesize[td->plane]]; td 211 libavfilter/vf_yadif.c int mode = y == 1 || y + 2 == td->h ? 2 : s->mode; td 213 libavfilter/vf_yadif.c next + pix_3, td->w - edge, td 214 libavfilter/vf_yadif.c y + 1 < td->h ? refs : -refs, td 216 libavfilter/vf_yadif.c td->parity ^ td->tff, mode); td 217 libavfilter/vf_yadif.c s->filter_edges(dst, prev, cur, next, td->w, td 218 libavfilter/vf_yadif.c y + 1 < td->h ? refs : -refs, td 220 libavfilter/vf_yadif.c td->parity ^ td->tff, mode); td 222 libavfilter/vf_yadif.c memcpy(&td->frame->data[td->plane][y * td->frame->linesize[td->plane]], td 223 libavfilter/vf_yadif.c &s->cur->data[td->plane][y * refs], td->w * df); td 233 libavfilter/vf_yadif.c ThreadData td = { .frame = dstpic, .parity = parity, .tff = tff }; td 246 libavfilter/vf_yadif.c td.w = w; td 247 libavfilter/vf_yadif.c td.h = h; td 248 libavfilter/vf_yadif.c td.plane = i; td 250 libavfilter/vf_yadif.c ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(h, ff_filter_get_nb_threads(ctx))); td 102 libavfilter/vf_yaepblur.c ThreadData *td = arg; \ td 105 libavfilter/vf_yaepblur.c const int width = td->width; \ td 106 libavfilter/vf_yaepblur.c const int height = td->height; \ td 107 libavfilter/vf_yaepblur.c const int linesize = td->src_linesize / sizeof(type); \ td 115 libavfilter/vf_yaepblur.c const type *src = (const type *)td->src + starty * linesize; \ td 138 libavfilter/vf_yaepblur.c ThreadData *td = arg; td 141 libavfilter/vf_yaepblur.c const int width = td->width; td 142 libavfilter/vf_yaepblur.c const int height = td->height; td 168 libavfilter/vf_yaepblur.c ThreadData *td = arg; \ td 171 libavfilter/vf_yaepblur.c const int width = td->width; \ td 172 libavfilter/vf_yaepblur.c const int height = td->height; \ td 173 libavfilter/vf_yaepblur.c const int src_linesize = td->src_linesize / sizeof(type); \ td 174 libavfilter/vf_yaepblur.c const int dst_linesize = td->dst_linesize / sizeof(type); \ td 181 libavfilter/vf_yaepblur.c const type *src = (const type *)td->src; \ td 182 libavfilter/vf_yaepblur.c type *dst = (type *)td->dst; \ td 228 libavfilter/vf_yaepblur.c ThreadData td; td 252 libavfilter/vf_yaepblur.c td.width = s->planewidth[plane]; td 253 libavfilter/vf_yaepblur.c td.height = s->planeheight[plane]; td 254 libavfilter/vf_yaepblur.c td.src = in->data[plane]; td 255 libavfilter/vf_yaepblur.c td.src_linesize = in->linesize[plane]; td 256 libavfilter/vf_yaepblur.c ctx->internal->execute(ctx, s->pre_calculate_row, &td, NULL, FFMIN(td.height, nb_threads)); td 257 libavfilter/vf_yaepblur.c ctx->internal->execute(ctx, pre_calculate_col, &td, NULL, FFMIN(td.width, nb_threads)); td 259 libavfilter/vf_yaepblur.c td.dst = out->data[plane]; td 260 libavfilter/vf_yaepblur.c td.dst_linesize = out->linesize[plane]; td 261 libavfilter/vf_yaepblur.c ctx->internal->execute(ctx, s->filter_slice, &td, NULL, FFMIN(td.height, nb_threads)); td 216 tests/api/api-threadmessage-test.c struct type##_data *td = &type##s[i]; \ td 218 tests/api/api-threadmessage-test.c td->id = i; \ td 219 tests/api/api-threadmessage-test.c td->queue = queue; \ td 220 tests/api/api-threadmessage-test.c td->workload = get_workload(type##_min_load, type##_max_load); \ td 222 tests/api/api-threadmessage-test.c ret = pthread_create(&td->tid, NULL, type##_thread, td); \ td 234 tests/api/api-threadmessage-test.c struct type##_data *td = &type##s[i]; \ td 236 tests/api/api-threadmessage-test.c ret = pthread_join(td->tid, NULL); \