Home
last modified time | relevance | path

Searched refs:bpc (Results 1 – 25 of 61) sorted by relevance

123

/third_party/ffmpeg/libavcodec/
Dbmp_parser.c42 BMPParseContext *bpc = s->priv_data; in bmp_parse() local
43 uint64_t state = bpc->pc.state64; in bmp_parse()
51 if (bpc->pc.frame_start_found <= 2+4+4) { in bmp_parse()
54 if (bpc->pc.frame_start_found == 0) { in bmp_parse()
56 bpc->fsize = av_bswap32(state >> 16); in bmp_parse()
57 if (bpc->fsize > 17) in bmp_parse()
58 bpc->pc.frame_start_found = 1; in bmp_parse()
60 } else if (bpc->pc.frame_start_found == 2+4+4) { in bmp_parse()
64 bpc->pc.frame_start_found = 0; in bmp_parse()
67 bpc->pc.frame_start_found++; in bmp_parse()
[all …]
Dcri_parser.c49 CRIParser *bpc = s->priv_data; in cri_parse() local
50 uint64_t state = bpc->pc.state64; in cri_parse()
62 bpc->read_bytes++; in cri_parse()
64 if (bpc->skip_bytes > 0) { in cri_parse()
65 bpc->skip_bytes--; in cri_parse()
66 if (bpc->skip_bytes == 0) in cri_parse()
67 bpc->read_bytes = 0; in cri_parse()
73 if (bpc->skip_bytes == 0 && bpc->read_bytes >= 8) { in cri_parse()
74 bpc->skip_bytes = av_bswap32(state & 0xFFFFFFFF); in cri_parse()
75 bpc->chunk = state >> 32; in cri_parse()
[all …]
Dxbm_parser.c46 XBMParseContext *bpc = s->priv_data; in xbm_init() local
48 bpc->count = 1; in xbm_init()
57 XBMParseContext *bpc = s->priv_data; in xbm_parse() local
58 uint64_t state = bpc->pc.state64; in xbm_parse()
59 uint16_t state16 = bpc->state16; in xbm_parse()
74 bpc->count++; in xbm_parse()
76 if ((state == KEY && bpc->count == 1)) { in xbm_parse()
81 bpc->count = 0; in xbm_parse()
86 bpc->pc.state64 = state; in xbm_parse()
87 bpc->state16 = state16; in xbm_parse()
[all …]
Dvideodsp.c39 av_cold void ff_videodsp_init(VideoDSPContext *ctx, int bpc) in ff_videodsp_init() argument
42 if (bpc <= 8) { in ff_videodsp_init()
49 ff_videodsp_init_aarch64(ctx, bpc); in ff_videodsp_init()
51 ff_videodsp_init_arm(ctx, bpc); in ff_videodsp_init()
53 ff_videodsp_init_ppc(ctx, bpc); in ff_videodsp_init()
55 ff_videodsp_init_x86(ctx, bpc); in ff_videodsp_init()
57 ff_videodsp_init_mips(ctx, bpc); in ff_videodsp_init()
59 ff_videodsp_init_loongarch(ctx, bpc); in ff_videodsp_init()
Dvideodsp.h78 void ff_videodsp_init(VideoDSPContext *ctx, int bpc);
81 void ff_videodsp_init_aarch64(VideoDSPContext *ctx, int bpc);
82 void ff_videodsp_init_arm(VideoDSPContext *ctx, int bpc);
83 void ff_videodsp_init_ppc(VideoDSPContext *ctx, int bpc);
84 void ff_videodsp_init_x86(VideoDSPContext *ctx, int bpc);
85 void ff_videodsp_init_mips(VideoDSPContext *ctx, int bpc);
86 void ff_videodsp_init_loongarch(VideoDSPContext *ctx, int bpc);
/third_party/ffmpeg/libavfilter/
Dvf_neighbor.c47 int bpc; member
236 s->bpc = (s->depth + 7) / 8; in config_input()
266 const int bpc = s->bpc; in filter_slice() local
278 av_image_copy_plane(dst, dstride, src, stride, width * bpc, slice_end - slice_start); in filter_slice()
285 …nst uint8_t *coordinates[] = { src - nh * stride, src + 1 * bpc - nh * stride, src + 2 * bpc - nh … in filter_slice()
286 … src, src + 2 * bpc, in filter_slice()
287 … src + ph * stride, src + 1 * bpc + ph * stride, src + 2 * bpc + ph * stride}; in filter_slice()
289 …const uint8_t *coordinateslb[] = { src + 1 * bpc - nh * stride, src - nh * stride, src + 1 * bpc -… in filter_slice()
290 … src + 1 * bpc, src + 1 * bpc, in filter_slice()
291 … src + 1 * bpc + ph * stride, src + ph * stride, src + 1 * bpc + ph * stride}; in filter_slice()
[all …]
Dvf_convolution.c556 int x, int w, int y, int h, int bpc) in setup_3x3() argument
567 c[i] = src + xoff * bpc + yoff * stride; in setup_3x3()
572 int x, int w, int y, int h, int bpc) in setup_5x5() argument
583 c[i] = src + xoff * bpc + yoff * stride; in setup_5x5()
588 int x, int w, int y, int h, int bpc) in setup_7x7() argument
599 c[i] = src + xoff * bpc + yoff * stride; in setup_7x7()
604 int x, int w, int y, int h, int bpc) in setup_row() argument
613 c[i] = src + xoff * bpc + y * stride; in setup_row()
618 int x, int w, int y, int h, int bpc) in setup_column() argument
627 c[i] = src + y * bpc + xoff * stride; in setup_column()
[all …]
Dconvolution.h46 int bpc; member
56 int x, int width, int y, int height, int bpc);
Dvf_deblock.c53 int bpc; member
271 s->bpc = (s->depth + 7) / 8; in config_output()
331 width * s->bpc, height); in filter_frame()
337 s->deblockv(dst + x * s->bpc, out->linesize[plane], in filter_frame()
348 s->deblockh(dst + x * s->bpc, out->linesize[plane], in filter_frame()
351 s->deblockv(dst + x * s->bpc, out->linesize[plane], in filter_frame()
359 s->deblockv(dst + x * s->bpc, out->linesize[plane], in filter_frame()
Dvf_libvmaf.c60 unsigned bpc; member
109 static int copy_picture_data(AVFrame *src, VmafPicture *dst, unsigned bpc) in copy_picture_data() argument
111 int err = vmaf_picture_alloc(dst, pix_fmt_map(src->format), bpc, in copy_picture_data()
143 err = copy_picture_data(ref, &pic_ref, s->bpc); in do_vmaf()
149 err = copy_picture_data(dist, &pic_dist, s->bpc); in do_vmaf()
572 s->bpc = desc->comp[0].depth; in config_input_ref()
Dvf_threshold_init.h81 s->bpc = 1; in ff_threshold_init()
84 s->bpc = 2; in ff_threshold_init()
/third_party/mesa3d/src/compiler/nir/
Dnir_convert_ycbcr.c30 int bpc, in y_range() argument
40 nir_imm_float(b, pow(2, bpc) - 1)), in y_range()
41 nir_imm_float(b, -16.0f * pow(2, bpc - 8))), in y_range()
42 nir_frcp(b, nir_imm_float(b, 219.0f * pow(2, bpc - 8)))); in y_range()
52 int bpc, in chroma_range() argument
58 nir_imm_float(b, -pow(2, bpc - 1) / (pow(2, bpc) - 1.0f))); in chroma_range()
63 nir_imm_float(b, pow(2, bpc) - 1)), in chroma_range()
64 nir_imm_float(b, -128.0f * pow(2, bpc - 8))), in chroma_range()
65 nir_frcp(b, nir_imm_float(b, 224.0f * pow(2, bpc - 8)))); in chroma_range()
/third_party/cups-filters/filter/
Drastertops.c83 int bpc) /* I - Original bits per color of data */ in find_bits() argument
85 if (bpc == 1 && in find_bits()
92 if (bpc == 16) in find_bits()
95 return bpc; in find_bits()
105 int bpc, /* I - bits per color */ in writeImage() argument
133 if (bpc == 16) in writeImage()
140 "/BitsPerComponent %d\n", pixwidth, pixheight, find_bits(mode, bpc)); in writeImage()
166 if(bpc==16) in writeImage()
Drastertopdf.cpp280 bpp(0), bpc(0), in pdf_info()
304 unsigned bpc; member
357 void modify_pdf_color(struct pdf_info * info, int bpp, int bpc, convertFunction fn) in modify_pdf_color() argument
360 unsigned old_bpc = info->bpc; in modify_pdf_color()
365 double new_ncolor = (bpp/bpc); in modify_pdf_color()
369 info->bpc = bpc; in modify_pdf_color()
618 unsigned width, std::vector<unsigned>& strip_height, cups_cspace_t cs, unsigned bpc) in makePclmStrips() argument
630 dict["/BitsPerComponent"]=QPDFObjectHandle::newInteger(bpc); in makePclmStrips()
707 … unsigned height, std::string render_intent, cups_cspace_t cs, unsigned bpc) in makeImage() argument
720 dict["/BitsPerComponent"]=QPDFObjectHandle::newInteger(bpc); in makeImage()
[all …]
/third_party/ffmpeg/libavformat/
Ddxa.c34 int bpc; member
121 c->bpc = (fsize + (int64_t)c->frames - 1) / c->frames; in dxa_read_header()
123 if (c->bpc > INT_MAX - ast->codecpar->block_align + 1) in dxa_read_header()
125 …c->bpc = ((c->bpc + ast->codecpar->block_align - 1) / ast->codecpar->block_align) * ast->codecpar-… in dxa_read_header()
166 size = FFMIN(c->bytes_left, c->bpc); in dxa_read_packet()
Drawutils.c31 int64_t bpc = par->bits_per_coded_sample != 15 ? par->bits_per_coded_sample : 16; in ff_reshuffle_raw_rgb() local
32 int min_stride = (par->width * bpc + 7) >> 3; in ff_reshuffle_raw_rgb()
34 int contains_pal = bpc == 8 && pkt->size == with_pal_size; in ff_reshuffle_raw_rgb()
/third_party/lame/libmp3lame/
Dutil.c551 int bpc; /* number of convolution functions to pre-compute */ in fill_buffer_resample() local
552 bpc = cfg->samplerate_out / gcd(cfg->samplerate_out, cfg->samplerate_in); in fill_buffer_resample()
553 if (bpc > BPC) in fill_buffer_resample()
554 bpc = BPC; in fill_buffer_resample()
569 for (i = 0; i <= 2 * bpc; ++i) in fill_buffer_resample()
576 for (j = 0; j <= 2 * bpc; j++) { in fill_buffer_resample()
578 offset = (j - bpc) / (2. * bpc); in fill_buffer_resample()
608 joff = floor((offset * 2 * bpc) + bpc + .5); in fill_buffer_resample()
/third_party/ffmpeg/libavcodec/arm/
Dvideodsp_init_arm.c26 av_cold void ff_videodsp_init_arm(VideoDSPContext *ctx, int bpc) in ff_videodsp_init_arm() argument
29 if (have_armv5te(cpu_flags)) ff_videodsp_init_armv5te(ctx, bpc); in ff_videodsp_init_arm()
Dvideodsp_arm.h27 void ff_videodsp_init_armv5te(VideoDSPContext* ctx, int bpc);
Dvideodsp_init_armv5te.c28 av_cold void ff_videodsp_init_armv5te(VideoDSPContext *ctx, int bpc) in ff_videodsp_init_armv5te() argument
/third_party/ffmpeg/libavcodec/x86/
Dcfhddsp_init.c38 …z_filter_clip10_sse2(int16_t *output, const int16_t *low, const int16_t *high, int width, int bpc);
39 …z_filter_clip12_sse2(int16_t *output, const int16_t *low, const int16_t *high, int width, int bpc);
Dvideodsp_init.c220 av_cold void ff_videodsp_init_x86(VideoDSPContext *ctx, int bpc) in ff_videodsp_init_x86() argument
228 if (EXTERNAL_SSE2(cpu_flags) && bpc <= 8) { in ff_videodsp_init_x86()
232 if (EXTERNAL_AVX2(cpu_flags) && bpc <= 8) { in ff_videodsp_init_x86()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUSearchableTables.td33 class GcnBufferFormatBase<bits<8> f, bits<8> bpc, bits<8> numc, bits<8> nfmt, bits<8> dfmt> {
35 bits<8> BitsPerComp = bpc;
41 …ss Gfx9BufferFormat<bits<8> f, bits<8> bpc, bits<8> numc, bits<8> nfmt, bits<8> dfmt> : GcnBufferF…
42 …x10PlusBufferFormat<bits<8> f, bits<8> bpc, bits<8> numc, bits<8> nfmt, bits<8> dfmt> : GcnBufferF…
/third_party/ffmpeg/libavcodec/aarch64/
Dvideodsp_init.c26 av_cold void ff_videodsp_init_aarch64(VideoDSPContext *ctx, int bpc) in ff_videodsp_init_aarch64() argument
/third_party/ffmpeg/libavcodec/ppc/
Dvideodsp.c33 av_cold void ff_videodsp_init_ppc(VideoDSPContext *ctx, int bpc) in ff_videodsp_init_ppc() argument

123