/third_party/ffmpeg/libavcodec/ |
D | vaapi_decode.c | 70 av_assert0(pic->nb_slices <= pic->slices_allocated); in ff_vaapi_decode_make_slice_buffer() 71 if (pic->nb_slices == pic->slices_allocated) { in ff_vaapi_decode_make_slice_buffer() 84 av_assert0(pic->nb_slices + 1 <= pic->slices_allocated); in ff_vaapi_decode_make_slice_buffer() 86 index = 2 * pic->nb_slices; in ff_vaapi_decode_make_slice_buffer() 99 "is %#x.\n", pic->nb_slices, params_size, in ff_vaapi_decode_make_slice_buffer() 116 "is %#x.\n", pic->nb_slices, slice_size, in ff_vaapi_decode_make_slice_buffer() 119 ++pic->nb_slices; in ff_vaapi_decode_make_slice_buffer() 140 for (i = 0; i < 2 * pic->nb_slices; i++) { in ff_vaapi_decode_destroy_buffers() 180 pic->slice_buffers, 2 * pic->nb_slices); in ff_vaapi_decode_issue() 218 pic->nb_slices = 0; in ff_vaapi_decode_issue() [all …]
|
D | vaapi_encode.c | 174 for (i = 0; i < pic->nb_slices; i++) in vaapi_encode_make_row_slice() 177 rounding = ctx->slice_block_rows - ctx->nb_slices * ctx->slice_size; in vaapi_encode_make_row_slice() 180 av_assert0(rounding < pic->nb_slices); in vaapi_encode_make_row_slice() 189 ++pic->slices[pic->nb_slices - i - 1].row_size; in vaapi_encode_make_row_slice() 196 pic->slices[pic->nb_slices - 1].row_size += rounding; in vaapi_encode_make_row_slice() 199 for (i = 0; i < pic->nb_slices; i++) { in vaapi_encode_make_row_slice() 429 if (pic->nb_slices == 0) in vaapi_encode_issue() 430 pic->nb_slices = ctx->nb_slices; in vaapi_encode_issue() 431 if (pic->nb_slices > 0) { in vaapi_encode_issue() 432 pic->slices = av_mallocz_array(pic->nb_slices, sizeof(*pic->slices)); in vaapi_encode_issue() [all …]
|
D | magicyuv.c | 58 int nb_slices; member 575 s->nb_slices = (avctx->coded_height + s->slice_height - 1) / s->slice_height; in magy_decode_frame() 576 if (s->nb_slices > INT_MAX / FFMAX(sizeof(Slice), 4 * 5)) { in magy_decode_frame() 578 "invalid number of slices: %d\n", s->nb_slices); in magy_decode_frame() 593 if (bytestream2_get_bytes_left(&gb) <= s->nb_slices * s->planes * 5) in magy_decode_frame() 596 av_fast_malloc(&s->slices[i], &s->slices_size[i], s->nb_slices * sizeof(Slice)); in magy_decode_frame() 607 for (j = 0; j < s->nb_slices - 1; j++) { in magy_decode_frame() 630 bytestream2_skipu(&gb, s->nb_slices * s->planes); in magy_decode_frame() 649 avctx->execute2(avctx, s->magy_decode_slice, NULL, NULL, s->nb_slices); in magy_decode_frame()
|
D | magicyuvenc.c | 60 int nb_slices; member 199 s->nb_slices = 1; in magy_encode_init() 418 ret = ff_alloc_packet2(avctx, pkt, (256 + 4 * s->nb_slices + width * height) * in magy_encode_frame() 444 for (j = 1; j < s->nb_slices; j++) { in magy_encode_frame() 452 for (slice = 0; slice < s->nb_slices; slice++) { in magy_encode_frame() 477 for (slice = 0; slice < s->nb_slices; slice++) { in magy_encode_frame() 486 for (slice = 0; slice < s->nb_slices; slice++) { in magy_encode_frame()
|
D | nvdec_h264.c | 147 (ctx->nb_slices + 1) * sizeof(*ctx->slice_offsets)); in nvdec_h264_decode_slice() 154 ctx->slice_offsets[ctx->nb_slices] = ctx->bitstream_len ; in nvdec_h264_decode_slice() 156 ctx->nb_slices++; in nvdec_h264_decode_slice()
|
D | nvdec.c | 272 ctx->nb_slices = 0; in ff_nvdec_decode_uninit() 567 ctx->nb_slices = 0; in ff_nvdec_start_frame() 648 pp->nNumSlices = ctx->nb_slices; in ff_nvdec_end_frame() 680 (ctx->nb_slices + 1) * sizeof(*ctx->slice_offsets)); in ff_nvdec_simple_decode_slice() 688 ctx->slice_offsets[ctx->nb_slices] = buffer - ctx->bitstream; in ff_nvdec_simple_decode_slice() 690 ctx->nb_slices++; in ff_nvdec_simple_decode_slice()
|
D | nvdec_av1.c | 294 ctx->nb_slices = frame_header->tile_cols * frame_header->tile_rows; in nvdec_av1_decode_slice() 297 ctx->nb_slices * 2 * sizeof(*ctx->slice_offsets)); in nvdec_av1_decode_slice() 304 if (ctx->nb_slices == s->tg_end - s->tg_start + 1) { in nvdec_av1_decode_slice() 308 for (int i = 0; i < ctx->nb_slices; ++i) { in nvdec_av1_decode_slice()
|
D | vaapi_encode.h | 126 int nb_slices; member 305 int nb_slices; member
|
D | nvdec_hevc.c | 283 (ctx->nb_slices + 1) * sizeof(*ctx->slice_offsets)); in nvdec_hevc_decode_slice() 290 ctx->slice_offsets[ctx->nb_slices] = ctx->bitstream_len ; in nvdec_hevc_decode_slice() 292 ctx->nb_slices++; in nvdec_hevc_decode_slice()
|
D | mpegvideo.c | 416 int nb_slices = s->slice_context_count, ret; in init_duplicate_contexts() local 421 for (int i = 1; i < nb_slices; i++) { in init_duplicate_contexts() 428 (s->mb_height * (i ) + nb_slices / 2) / nb_slices; in init_duplicate_contexts() 430 (s->mb_height * (i + 1) + nb_slices / 2) / nb_slices; in init_duplicate_contexts() 433 s->end_mb_y = nb_slices > 1 ? (s->mb_height + nb_slices / 2) / nb_slices in init_duplicate_contexts() 916 int nb_slices = (HAVE_THREADS && in ff_mpv_common_init() local 923 nb_slices = s->avctx->slices; in ff_mpv_common_init() 936 if (nb_slices > MAX_THREADS || (nb_slices > s->mb_height && s->mb_height)) { in ff_mpv_common_init() 943 " reducing to %d\n", nb_slices, max_slices); in ff_mpv_common_init() 944 nb_slices = max_slices; in ff_mpv_common_init() [all …]
|
D | nvdec.h | 65 int nb_slices; member
|
D | vaapi_decode.h | 50 int nb_slices; member
|
D | huffyuvdec.c | 1198 int slice, table_size = 0, ret, nb_slices; in decode_frame() local 1232 nb_slices = AV_RL32(avpkt->data + buf_size - 12); in decode_frame() 1233 if (nb_slices * 8LL + slices_info_offset > buf_size - 16 || in decode_frame() 1235 slice_height <= 0 || nb_slices * (uint64_t)slice_height > height) in decode_frame() 1239 nb_slices = 1; in decode_frame() 1242 for (slice = 0; slice < nb_slices; slice++) { in decode_frame() 1245 if (nb_slices > 1) { in decode_frame()
|
D | vaapi_encode_mjpeg.c | 409 pic->nb_slices = 1; in vaapi_encode_mjpeg_init_picture_params()
|
D | vaapi_encode_h265.c | 332 ctx->nb_slices, ctx->tile_rows, ctx->tile_cols, in vaapi_encode_h265_init_sequence_params() 1037 .last_slice_of_pic_flag = slice->index == pic->nb_slices - 1, in vaapi_encode_h265_init_slice_params()
|
D | vaapi_encode_mpeg2.c | 550 ctx->nb_slices = ctx->slice_block_rows; in vaapi_encode_mpeg2_configure()
|
/third_party/ffmpeg/libavfilter/ |
D | vf_scale.c | 152 int nb_slices; member 808 } else if (scale->nb_slices) { in scale_frame() 810 const int nb_slices = FFMIN(scale->nb_slices, link->h); in scale_frame() local 811 for (i = 0; i < nb_slices; i++) { in scale_frame() 813 slice_end = (link->h * (i+1)) / nb_slices; in scale_frame() 953 …{ "nb_slices", "set the number of slices (debug purpose only)", OFFSET(nb_slices), AV_OPT_TYPE_INT…
|