Home
last modified time | relevance | path

Searched refs:nb_blocks (Results 1 – 18 of 18) sorted by relevance

/third_party/ffmpeg/libavutil/
Dvideo_enc_params.c30 unsigned int nb_blocks, size_t *out_size) in av_video_enc_params_alloc() argument
36 if (nb_blocks > (SIZE_MAX - size) / sizeof(AVVideoBlockParams)) in av_video_enc_params_alloc()
38 size += sizeof(AVVideoBlockParams) * nb_blocks; in av_video_enc_params_alloc()
45 par->nb_blocks = nb_blocks; in av_video_enc_params_alloc()
57 unsigned int nb_blocks) in av_video_enc_params_create_side_data() argument
63 par = av_video_enc_params_alloc(type, nb_blocks, &size); in av_video_enc_params_create_side_data()
Dvideo_enc_params.h81 unsigned int nb_blocks; member
145 av_assert0(idx < par->nb_blocks); in av_video_enc_params_block()
159 unsigned int nb_blocks, size_t *out_size);
169 unsigned int nb_blocks);
/third_party/ffmpeg/libavfilter/
Dvf_shufflepixels.c49 int nb_blocks; member
80 const int nb_blocks = s->nb_blocks; in make_horizontal_map() local
86 int rand = av_lfg_get(c) % nb_blocks; in make_horizontal_map()
118 const int nb_blocks = s->nb_blocks; in make_vertical_map() local
124 int rand = av_lfg_get(c) % nb_blocks; in make_vertical_map()
156 const int nb_blocks = s->nb_blocks; in make_block_map() local
162 for (int i = 0; i < nb_blocks;) { in make_block_map()
163 int rand = av_lfg_get(c) % nb_blocks; in make_block_map()
336 s->nb_blocks = (s->planewidth[0] + s->block_w - 1) / s->block_w; in config_output()
340 s->nb_blocks = (s->planeheight[0] + s->block_h - 1) / s->block_h; in config_output()
[all …]
Dqp_table.c47 (par->nb_blocks != 0 && par->nb_blocks != nb_mb)) in ff_qp_table_extract()
60 if (par->nb_blocks == 0) { in ff_qp_table_extract()
Dvf_qp.c114 (par_in->nb_blocks == s->h * s->qstride || !par_in->nb_blocks)) { in filter_frame()
116 if (!par_in->nb_blocks) in filter_frame()
Dvf_showinfo.c306 if (par->nb_blocks) in dump_video_enc_params()
307 av_log(ctx, AV_LOG_INFO, "%u blocks; ", par->nb_blocks); in dump_video_enc_params()
/third_party/ffmpeg/libavcodec/
Dlscrdec.c115 int ret, nb_blocks, offset = 0; in decode_frame_lscr() local
124 nb_blocks = bytestream2_get_le16(gb); in decode_frame_lscr()
125 if (bytestream2_get_bytes_left(gb) < 2 + nb_blocks * (12 + 8)) in decode_frame_lscr()
129 nb_blocks ? 0 : FF_REGET_BUFFER_FLAG_READONLY); in decode_frame_lscr()
133 for (int b = 0; b < nb_blocks; b++) { in decode_frame_lscr()
164 frame->key_frame = (nb_blocks == 1) && in decode_frame_lscr()
169 bytestream2_seek(gb, 2 + nb_blocks * 12 + offset, SEEK_SET); in decode_frame_lscr()
Dfmvc.c51 unsigned nb_blocks; member
447 unsigned block, nb_blocks; in decode_frame() local
453 for (block = 0; block < s->nb_blocks; block++) in decode_frame()
456 nb_blocks = bytestream2_get_le16(gb); in decode_frame()
457 if (nb_blocks > s->nb_blocks) in decode_frame()
463 for (block = 0; block < nb_blocks; block++) { in decode_frame()
468 if (offset >= s->nb_blocks) in decode_frame()
575 s->nb_blocks = s->xb * s->yb; in decode_init()
576 if (!s->nb_blocks) in decode_init()
578 s->blocks = av_calloc(s->nb_blocks, sizeof(*s->blocks)); in decode_init()
Dmidivid.c59 uint32_t nb_blocks; in decode_mvdv() local
64 nb_blocks = (avctx->width / 2) * (avctx->height / 2); in decode_mvdv()
68 nb_blocks = bytestream2_get_le32(gb); in decode_mvdv()
101 if (bytestream2_get_bytes_left(gb) < (nb_blocks + 7 * !intra_flag) / 8) in decode_mvdv()
103 …bytestream2_init(&idx9, gb->buffer_start + bytestream2_tell(gb), (nb_blocks + 7 * !intra_flag) / 8… in decode_mvdv()
104 bytestream2_skip(gb, (nb_blocks + 7 * !intra_flag) / 8); in decode_mvdv()
Dmjpegdec.h101 int nb_blocks[MAX_COMPONENTS]; member
Dexr.c2034 int nb_blocks; /* nb scanline or nb tile */ in decode_frame() local
2142 nb_blocks = ((s->xdelta + s->tile_attr.xSize - 1) / s->tile_attr.xSize) * in decode_frame()
2145 nb_blocks = (s->ydelta + s->scan_lines_per_block - 1) / in decode_frame()
2152 if (bytestream2_get_bytes_left(gb)/8 < nb_blocks) in decode_frame()
2160 start_next_scanline = start_offset_table + nb_blocks * 8; in decode_frame()
2161 … bytestream2_init_writer(&offset_table_writer, &avpkt->data[start_offset_table], nb_blocks * 8); in decode_frame()
2163 for (y = 0; y < nb_blocks; y++) { in decode_frame()
2189 avctx->execute2(avctx, decode_block, s->thread_data, NULL, nb_blocks); in decode_frame()
Dmjpegdec.c1263 n = s->nb_blocks[i]; in ljpeg_decode_yuv_scan()
1334 n = s->nb_blocks[i]; in ljpeg_decode_yuv_scan()
1467 n = s->nb_blocks[i]; in mjpeg_decode_scan()
1681 s->nb_blocks[i] = s->h_count[index] * s->v_count[index]; in ff_mjpeg_decode_sos()
1717 s->nb_blocks[0] = 1; in ff_mjpeg_decode_sos()
Dvp9.c1505 unsigned int tile, nb_blocks = 0; in vp9_export_enc_params() local
1509 nb_blocks += s->td[tile].nb_block_structure; in vp9_export_enc_params()
1513 AV_VIDEO_ENC_PARAMS_VP9, nb_blocks); in vp9_export_enc_params()
1524 if (nb_blocks) { in vp9_export_enc_params()
/third_party/ffmpeg/libavformat/
Dargo_asf.c43 int64_t nb_blocks; member
406 int nb_blocks = pkt->size / par->block_align; in argo_asf_write_packet() local
411 if (ctx->nb_blocks + nb_blocks > UINT32_MAX) in argo_asf_write_packet()
416 ctx->nb_blocks += nb_blocks; in argo_asf_write_packet()
428 avio_wl32(s->pb, (uint32_t)ctx->nb_blocks); in argo_asf_write_trailer()
/third_party/ffmpeg/tools/
Dvenc_data_dump.c59 if (par->nb_blocks) { in decode_read()
60 fprintf(stdout, "nb_blocks %d\n", par->nb_blocks); in decode_read()
61 for (int i = 0; i < par->nb_blocks; i++) { in decode_read()
/third_party/ffmpeg/tests/ref/fate/
Dvp9-encparams4 nb_blocks 731
739 nb_blocks 37
780 nb_blocks 40
824 nb_blocks 39
867 nb_blocks 70
Dh264-encparams8 nb_blocks 396
/third_party/quickjs/
Dlibbf.c7545 limb_t nb_blocks, fft_per_block, p, k, n, stride_in, i, j; in ntt_fft() local
7607 nb_blocks = n / 4; in ntt_fft()
7611 while (nb_blocks != 2) { in ntt_fft()
7612 nb_blocks >>= 1; in ntt_fft()
7618 for(i = 0; i < nb_blocks; i++) { in ntt_fft()
7725 limb_t nb_blocks, fft_per_block, p, k, n, stride_in, i, j, m, m2; in ntt_fft() local
7732 nb_blocks = n; in ntt_fft()
7738 while (nb_blocks != 2) { in ntt_fft()
7739 nb_blocks >>= 1; in ntt_fft()
7745 for(i = 0; i < nb_blocks; i++) { in ntt_fft()