/third_party/ffmpeg/libavcodec/ |
H A D | dxva2_vc1.c | 35 unsigned slice_count; member 229 for (i = 0; i < ctx_pic->slice_count; i++) { in commit_bitstream_and_slice_buffer() 240 if (i < ctx_pic->slice_count - 1) in commit_bitstream_and_slice_buffer() 279 if (i < ctx_pic->slice_count) in commit_bitstream_and_slice_buffer() 308 ctx_pic->slice_count * sizeof(*ctx_pic->slice), in commit_bitstream_and_slice_buffer() 326 ctx_pic->slice_count = 0; in dxva2_vc1_start_frame() 341 if (ctx_pic->slice_count >= MAX_SLICES) { in dxva2_vc1_decode_slice() 343 ctx_pic->slice_count); in dxva2_vc1_decode_slice() 358 fill_slice(avctx, &ctx_pic->slice[ctx_pic->slice_count++], position, size); in dxva2_vc1_decode_slice() 368 if (ctx_pic->slice_count < in dxva2_vc1_end_frame() [all...] |
H A D | dxva2_mpeg2.c | 35 unsigned slice_count; member 192 for (i = 0; i < ctx_pic->slice_count; i++) { in commit_bitstream_and_slice_buffer() 202 if (i < ctx_pic->slice_count - 1) in commit_bitstream_and_slice_buffer() 222 if (i < ctx_pic->slice_count) in commit_bitstream_and_slice_buffer() 251 ctx_pic->slice_count * sizeof(*ctx_pic->slice), in commit_bitstream_and_slice_buffer() 271 ctx_pic->slice_count = 0; in dxva2_mpeg2_start_frame() 285 if (ctx_pic->slice_count >= MAX_SLICES) { in dxva2_mpeg2_decode_slice() 287 ctx_pic->slice_count); in dxva2_mpeg2_decode_slice() 295 fill_slice(avctx, s, &ctx_pic->slice[ctx_pic->slice_count++], position, in dxva2_mpeg2_decode_slice() 307 if (ctx_pic->slice_count < in dxva2_mpeg2_end_frame() [all...] |
H A D | dxva2_h264.c | 36 unsigned slice_count; member 343 for (i = 0; i < ctx_pic->slice_count; i++) { in commit_bitstream_and_slice_buffer() 370 if (i < ctx_pic->slice_count - 1) in commit_bitstream_and_slice_buffer() 400 if (i < ctx_pic->slice_count) in commit_bitstream_and_slice_buffer() 432 slice_size = ctx_pic->slice_count * sizeof(*ctx_pic->slice_short); in commit_bitstream_and_slice_buffer() 435 slice_size = ctx_pic->slice_count * sizeof(*ctx_pic->slice_long); in commit_bitstream_and_slice_buffer() 461 ctx_pic->slice_count = 0; in dxva2_h264_start_frame() 478 if (ctx_pic->slice_count >= MAX_SLICES) in dxva2_h264_decode_slice() 487 fill_slice_short(&ctx_pic->slice_short[ctx_pic->slice_count], in dxva2_h264_decode_slice() 490 fill_slice_long(avctx, &ctx_pic->slice_long[ctx_pic->slice_count], in dxva2_h264_decode_slice() [all...] |
H A D | proresdec2.c | 329 int i, hdr_size, slice_count; in decode_picture_header() local 362 // slice_count = AV_RB16(buf + 5); in decode_picture_header() 363 slice_count = ctx->mb_height * ((ctx->mb_width >> log2_slice_mb_width) + in decode_picture_header() 366 if (ctx->slice_count != slice_count || !ctx->slices) { in decode_picture_header() 368 ctx->slice_count = 0; in decode_picture_header() 369 ctx->slices = av_calloc(slice_count, sizeof(*ctx->slices)); in decode_picture_header() 372 ctx->slice_count = slice_count; in decode_picture_header() 375 if (!slice_count) in decode_picture_header() [all...] |
H A D | dxva2_hevc.c | 36 unsigned slice_count; member 282 for (i = 0; i < ctx_pic->slice_count; i++) { in commit_bitstream_and_slice_buffer() 322 if (i < ctx_pic->slice_count) in commit_bitstream_and_slice_buffer() 349 slice_size = ctx_pic->slice_count * sizeof(*ctx_pic->slice_short); in commit_bitstream_and_slice_buffer() 376 ctx_pic->slice_count = 0; in dxva2_hevc_start_frame() 391 if (ctx_pic->slice_count >= MAX_SLICES) in dxva2_hevc_decode_slice() 399 fill_slice_short(&ctx_pic->slice_short[ctx_pic->slice_count], position, size); in dxva2_hevc_decode_slice() 400 ctx_pic->slice_count++; in dxva2_hevc_decode_slice() 412 if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0) in dxva2_hevc_end_frame()
|
H A D | rv10.c | 590 if (avctx->slice_count) in get_slice_offset() 603 int slice_count; in rv10_decode_frame() local 613 if (!avctx->slice_count) { in rv10_decode_frame() 614 slice_count = (*buf++) + 1; in rv10_decode_frame() 617 if (!slice_count || buf_size <= 8 * slice_count) { in rv10_decode_frame() 619 slice_count); in rv10_decode_frame() 624 buf += 8 * slice_count; in rv10_decode_frame() 625 buf_size -= 8 * slice_count; in rv10_decode_frame() 627 slice_count in rv10_decode_frame() [all...] |
H A D | texturedsp_template.c | 32 int base_blocks_per_slice = h_block / ctx->slice_count; in TEXTUREDSP_FUNC_NAME() 33 int remainder_blocks = h_block % ctx->slice_count; in TEXTUREDSP_FUNC_NAME()
|
H A D | ffv1dec.c | 759 f->slice_count = f->max_slice_count; in read_header() 761 f->slice_count = get_symbol(c, state, 0); in read_header() 764 for (f->slice_count = 0; in read_header() 765 f->slice_count < MAX_SLICES && 3 + 5*!!f->ec < p - c->bytestream_start; in read_header() 766 f->slice_count++) { in read_header() 774 if (f->slice_count > (unsigned)MAX_SLICES || f->slice_count <= 0 || f->slice_count > f->max_slice_count) { in read_header() 775 av_log(f->avctx, AV_LOG_ERROR, "slice count %d is invalid (max=%d)\n", f->slice_count, f->max_slice_count); in read_header() 779 for (j = 0; j < f->slice_count; in read_header() [all...] |
H A D | vdpau_mpeg12.c | 59 info->slice_count = 0; in vdpau_mpeg_start_frame() 98 pic_ctx->info.mpeg.slice_count++; in vdpau_mpeg_decode_slice()
|
H A D | vdpau_vc1.c | 64 info->slice_count = 0; in vdpau_vc1_start_frame() 115 pic_ctx->info.vc1.slice_count++; in vdpau_vc1_decode_slice()
|
H A D | hapdec.c | 326 avctx->execute2(avctx, ff_texturedsp_decompress_thread, &ctx->dec[t], NULL, ctx->dec[t].slice_count); in hap_decode() 357 ctx->dec[0].slice_count = av_clip(avctx->thread_count, 1, in hap_init() 393 ctx->dec[1].slice_count = ctx->dec[0].slice_count; in hap_init()
|
H A D | rv34.c | 1550 static int get_slice_offset(AVCodecContext *avctx, const uint8_t *buf, int n, int slice_count, int buf_size) in get_slice_offset() argument 1552 if (n < slice_count) { in get_slice_offset() 1553 if(avctx->slice_count) return avctx->slice_offset[n]; in get_slice_offset() 1608 int slice_count; in ff_rv34_decode_frame() local 1627 if(!avctx->slice_count){ in ff_rv34_decode_frame() 1628 slice_count = (*buf++) + 1; in ff_rv34_decode_frame() 1630 buf += 8 * slice_count; in ff_rv34_decode_frame() 1631 buf_size -= 1 + 8 * slice_count; in ff_rv34_decode_frame() 1633 slice_count = avctx->slice_count; in ff_rv34_decode_frame() [all...] |
H A D | proresdec.h | 46 int slice_count; ///< number of slices in the current picture member
|
H A D | vbnenc.c | 67 ctx->enc.slice_count = av_clip(avctx->thread_count, 1, avctx->height / TEXTURE_BLOCK_H); in vbn_encode() 117 avctx->execute2(avctx, ff_texturedsp_compress_thread, &ctx->enc, NULL, ctx->enc.slice_count); in vbn_encode()
|
H A D | vbndec.c | 160 ctx->dec.slice_count = av_clip(avctx->thread_count, 1, avctx->coded_height / TEXTURE_BLOCK_H); in vbn_decode_frame() 165 avctx->execute2(avctx, ff_texturedsp_decompress_thread, &ctx->dec, NULL, ctx->dec.slice_count); in vbn_decode_frame()
|
H A D | ffv1enc.c | 372 put_symbol(c, state, f->slice_count, 0); in write_header() 373 for (i = 0; i < f->slice_count; i++) { in write_header() 881 s->slice_count = s->max_slice_count; in encode_init() 1118 av_assert0(f->slice_count == f->max_slice_count); in encode_frame() 1119 for (j = 0; j < f->slice_count; j++) { in encode_frame() 1190 for (i = 0; i < f->slice_count; i++) { in encode_frame() 1192 uint8_t *start = pkt->data + pkt->size * (int64_t)i / f->slice_count; in encode_frame() 1193 int len = pkt->size / f->slice_count; in encode_frame() 1203 f->slice_count, sizeof(void *)); in encode_frame() 1206 for (i = 0; i < f->slice_count; in encode_frame() [all...] |
H A D | pthread_frame.c | 384 if (src->slice_count && src->slice_offset) { in update_context_from_user() 385 if (dst->slice_count < src->slice_count) { in update_context_from_user() 386 int err = av_reallocp_array(&dst->slice_offset, src->slice_count, in update_context_from_user() 392 src->slice_count * sizeof(*dst->slice_offset)); in update_context_from_user() 394 dst->slice_count = src->slice_count; in update_context_from_user()
|
H A D | texturedsp.h | 77 int slice_count; // Number of slices for threaded operations member
|
H A D | hapenc.c | 66 avctx->execute2(avctx, ff_texturedsp_compress_thread, &ctx->enc, NULL, ctx->enc.slice_count); in compress_texture() 276 ctx->enc.slice_count = av_clip(avctx->thread_count, 1, avctx->height / TEXTURE_BLOCK_H); in hap_init()
|
H A D | vdpau_h264.c | 134 info->slice_count = 0; in vdpau_h264_start_frame() 197 pic_ctx->info.h264.slice_count++; in vdpau_h264_decode_slice()
|
/third_party/mesa3d/src/gallium/frontends/va/ |
H A D | picture_vc1.c | 35 context->desc.vc1.slice_count = 0; in vlVaHandlePictureParameterBufferVC1() 73 context->desc.vc1.slice_count += buf->num_elements; in vlVaHandleSliceParameterBufferVC1()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/ |
H A D | nouveau_vp3_video.h | 191 nouveau_vp3_inter_sizes(struct nouveau_vp3_decoder *dec, uint32_t slice_count, in nouveau_vp3_inter_sizes() argument 195 *slice_size = (SLICE_SIZE * slice_count)>>8; in nouveau_vp3_inter_sizes()
|
H A D | nouveau_vp3_video_bsp.c | 165 uint32_t caps = (d->slice_count << 4)&0xfff0; in nouveau_vp3_fill_picparm_vc1_bsp() 197 uint32_t caps = (d->slice_count << 4)&0xfff0; in nouveau_vp3_fill_picparm_h264_bsp() 199 assert(!(d->slice_count & ~0xfff)); in nouveau_vp3_fill_picparm_h264_bsp() 200 if (d->slice_count & 0x1000) in nouveau_vp3_fill_picparm_h264_bsp()
|
/third_party/mesa3d/src/gallium/frontends/vdpau/ |
H A D | decode.c | 248 picture->num_slices = picture_info->slice_count; in vlVdpDecoderRenderMpeg12() 316 picture->slice_count = picture_info->slice_count; in vlVdpDecoderRenderVC1() 382 picture->slice_count = picture_info->slice_count; in vlVdpDecoderRenderH264()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_video_dec_h264.cpp | 141 picture_h264->slice_count); in d3d12_video_decoder_prepare_dxva_slices_control_h264() 172 } while (sliceFound && (sliceIdx < picture_h264->slice_count)); in d3d12_video_decoder_prepare_dxva_slices_control_h264() 173 assert(pOutSliceControlBuffers.size() == picture_h264->slice_count); in d3d12_video_decoder_prepare_dxva_slices_control_h264()
|