/third_party/ffmpeg/libavfilter/ |
H A D | vf_smartblur.c | 56 FilterParam chroma; member 73 { "chroma_radius", "set chroma radius", OFFSET(chroma.radius), AV_OPT_TYPE_FLOAT, {.dbl=RADIUS_MIN-1}, RADIUS_MIN-1, RADIUS_MAX, .flags=FLAGS }, 74 { "cr", "set chroma radius", OFFSET(chroma.radius), AV_OPT_TYPE_FLOAT, {.dbl=RADIUS_MIN-1}, RADIUS_MIN-1, RADIUS_MAX, .flags=FLAGS }, 75 { "chroma_strength", "set chroma strength", OFFSET(chroma.strength), AV_OPT_TYPE_FLOAT, {.dbl=STRENGTH_MIN-1}, STRENGTH_MIN-1, STRENGTH_MAX, .flags=FLAGS }, 76 { "cs", "set chroma strength", OFFSET(chroma.strength), AV_OPT_TYPE_FLOAT, {.dbl=STRENGTH_MIN-1}, STRENGTH_MIN-1, STRENGTH_MAX, .flags=FLAGS }, 77 { "chroma_threshold", "set chroma threshol [all...] |
H A D | vf_sab.c | 52 FilterParam chroma; member 87 { "chroma_radius", "set chroma radius", OFFSET(chroma.radius), AV_OPT_TYPE_FLOAT, {.dbl=RADIUS_MIN-1}, RADIUS_MIN-1, RADIUS_MAX, .flags=FLAGS }, 88 { "cr", "set chroma radius", OFFSET(chroma.radius), AV_OPT_TYPE_FLOAT, {.dbl=RADIUS_MIN-1}, RADIUS_MIN-1, RADIUS_MAX, .flags=FLAGS }, 89 { "chroma_pre_filter_radius", "set chroma pre-filter radius", OFFSET(chroma.pre_filter_radius), AV_OPT_TYPE_FLOAT, {.dbl=PRE_FILTER_RADIUS_MIN-1}, 91 { "cpfr", "set chroma pre-filter radius", OFFSET(chroma.pre_filter_radius), AV_OPT_TYPE_FLOAT, {.dbl=PRE_FILTER_RADIUS_MIN-1}, 93 { "chroma_strength", "set chroma strengt [all...] |
H A D | vf_unsharp.c | 158 fp[1] = fp[2] = &s->chroma; in apply_unsharp_c() 191 set_filter_param(&s->chroma, s->cmsize_x, s->cmsize_y, s->camount); in init() 194 if (s->luma.scalebits >= 26 || s->chroma.scalebits >= 26 || s->alpha.scalebits >= 26) { in init() 195 av_log(ctx, AV_LOG_ERROR, "luma or chroma or alpha matrix size too big\n"); in init() 266 ret = init_filter_param(inlink->dst, &s->chroma, "chroma", AV_CEIL_RSHIFT(inlink->w, s->hsub)); in config_input() 290 free_filter_param(&s->chroma, s->nb_threads); in uninit() 329 { "chroma_msize_x", "set chroma matrix horizontal size", OFFSET(cmsize_x), AV_OPT_TYPE_INT, { .i64 = 5 }, MIN_SIZE, MAX_SIZE, FLAGS }, 330 { "cx", "set chroma matrix horizontal size", OFFSET(cmsize_x), AV_OPT_TYPE_INT, { .i64 = 5 }, MIN_SIZE, MAX_SIZE, FLAGS }, 331 { "chroma_msize_y", "set chroma matri [all...] |
H A D | vf_vignette.c | 256 const int chroma = plane == 1 || plane == 2; in filter_frame() local 257 const int hsub = chroma ? s->desc->log2_chroma_w : 0; in filter_frame() 258 const int vsub = chroma ? s->desc->log2_chroma_h : 0; in filter_frame() 268 if (chroma) *dstp++ = av_clip_uint8(fmap[x << hsub] * (*srcp++ - 127) + 127 + dv); in filter_frame()
|
H A D | unsharp.h | 51 UnsharpFilterParam chroma; ///< chroma parameters (width, height, amount) member
|
/third_party/ffmpeg/libavcodec/ |
H A D | ulti.c | 80 /* Lookup tables for luma and chroma - used by ulti_convert_yuv() */ 96 two 4-bit chroma samples) into standard YUV and put it into frame */ 98 uint8_t *luma,int chroma) in ulti_convert_yuv() 107 cr_plane[0] = ulti_chromas[chroma >> 4]; in ulti_convert_yuv() 109 cb_plane[0] = ulti_chromas[chroma & 0xF]; in ulti_convert_yuv() 122 int f0, int f1, int Y0, int Y1, int chroma) in ulti_pattern() 140 ulti_convert_yuv(frame, x, y, Luma, chroma); in ulti_pattern() 144 static void ulti_grad(AVFrame *frame, int x, int y, uint8_t *Y, int chroma, int angle) in ulti_grad() argument 214 ulti_convert_yuv(frame, x, y, Luma, chroma); in ulti_grad() 282 int chroma in ulti_decode_frame() local 97 ulti_convert_yuv(AVFrame *frame, int x, int y, uint8_t *luma,int chroma) ulti_convert_yuv() argument 121 ulti_pattern(AVFrame *frame, int x, int y, int f0, int f1, int Y0, int Y1, int chroma) ulti_pattern() argument [all...] |
H A D | intrax8.c | 288 static int x8_setup_spatial_predictor(IntraX8Context *const w, const int chroma) in x8_setup_spatial_predictor() argument 294 w->dsp.setup_spatial_compensation(w->dest[chroma], w->scratchpad, in x8_setup_spatial_predictor() 295 w->frame->linesize[chroma > 0], in x8_setup_spatial_predictor() 297 if (chroma) { in x8_setup_spatial_predictor() 316 if (chroma) in x8_setup_spatial_predictor() 360 w->edges |= 4 * (w->mb_x >= (2 * w->mb_width - 1)); // mb_x for chroma would always be odd in x8_get_prediction_chroma() 533 static int x8_decode_intra_mb(IntraX8Context *const w, const int chroma) in x8_decode_intra_mb() argument 546 if (chroma) in x8_decode_intra_mb() 557 if (chroma) { in x8_decode_intra_mb() 612 int32_t divide_quant = !chroma in x8_decode_intra_mb() [all...] |
H A D | h264_loopfilter.c | 244 int chroma = CHROMA(h) && !(CONFIG_GRAY && (h->flags & AV_CODEC_FLAG_GRAY)); in h264_filter_mb_fast_internal() local 291 if(chroma){ in h264_filter_mb_fast_internal() 382 if(chroma){\ in h264_filter_mb_fast_internal() 474 int chroma, int dir) in filter_mb_dir() 533 if (chroma) { in filter_mb_dir() 600 if (chroma) { in filter_mb_dir() 611 if (chroma) { in filter_mb_dir() 683 if (chroma) { in filter_mb_dir() 696 if (chroma) { in filter_mb_dir() 702 if (chroma) { in filter_mb_dir() 468 filter_mb_dir(const H264Context *h, H264SliceContext *sl, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int mb_xy, int mb_type, int mvy_limit, int first_vertical_edge_done, int a, int b, int chroma, int dir) filter_mb_dir() argument 725 int chroma = CHROMA(h) && !(CONFIG_GRAY && (h->flags & AV_CODEC_FLAG_GRAY)); ff_h264_filter_mb() local [all...] |
H A D | avs2_parser.c | 69 int chroma, sample_precision, encoding_precision = 1; in parse_avs2_seq_header() local 96 chroma = get_bits(&gb, 2); in parse_avs2_seq_header() 124 "chroma %d, sample_precision %d bits, encoding_precision %d bits, " in parse_avs2_seq_header() 128 chroma, precision[sample_precision], precision[encoding_precision], in parse_avs2_seq_header()
|
H A D | hevc_filter.c | 489 int chroma, beta; in deblocking_filter_CTB() local 590 for (chroma = 1; chroma <= 2; chroma++) { in deblocking_filter_CTB() 591 int h = 1 << s->ps.sps->hshift[chroma]; in deblocking_filter_CTB() 592 int v = 1 << s->ps.sps->vshift[chroma]; in deblocking_filter_CTB() 594 // vertical filtering chroma in deblocking_filter_CTB() 604 c_tc[0] = (bs0 == 2) ? chroma_tc(s, qp0, chroma, tc_offset) : 0; in deblocking_filter_CTB() 605 c_tc[1] = (bs1 == 2) ? chroma_tc(s, qp1, chroma, tc_offset) : 0; in deblocking_filter_CTB() 606 src = &s->frame->data[chroma][( in deblocking_filter_CTB() [all...] |
H A D | fic.c | 222 uint8_t chroma[3][256]; in fic_draw_cursor() local 235 /* Subsample chroma. */ in fic_draw_cursor() 239 chroma[p][16 * (i / 2) + j / 2] = (planes[p + 1][32 * i + j ] + in fic_draw_cursor() 260 chroma[0] + (i / 2) * 16, csize, chroma[2] + (i / 2) * 16); in fic_draw_cursor() 262 chroma[1] + (i / 2) * 16, csize, chroma[2] + (i / 2) * 16); in fic_draw_cursor()
|
/third_party/ffmpeg/libswscale/arm/ |
H A D | rgb2yuv_neon_common.S | 66 /* ()_to_()_neon(const uint8_t *src, uint8_t *y, uint8_t *chroma 76 alias chroma, r2, \set 127 \kernel \s_fmt, \d_fmt, src0, src1, y0, y1, chroma, header 130 \kernel \s_fmt, \d_fmt, src0, src1, y0, y1, chroma 137 add chroma, chroma, c_padding 268 .macro kernel_420_16x2 rgb_fmt, yuv_fmt, rgb0, rgb1, y0, y1, chroma, count 287 store_chroma_\yuv_fmt\()_8x1 \chroma, \count
|
H A D | yuv2rgb_neon.S | 166 vld2.8 {d2, d3}, [r6]! @ q1: interleaved chroma line 174 vld2.8 {d2, d3}, [r6]! @ q1: interleaved chroma line 183 vld1.8 d2, [r6]! @ d2: chroma red line 184 vld1.8 d3, [r10]! @ d3: chroma blue line 192 vld1.8 d2, [r6]! @ d2: chroma red line 193 vld1.8 d3, [r10]! @ d3: chroma blue line
|
H A D | swscale_unscaled.c | 27 extern void rgbx_to_nv12_neon_32(const uint8_t *src, uint8_t *y, uint8_t *chroma, 32 extern void rgbx_to_nv12_neon_16(const uint8_t *src, uint8_t *y, uint8_t *chroma,
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_uvd.c | 94 struct si_texture *chroma = (struct si_texture *)buf->resources[1]; in si_uvd_set_dtb() local 100 si_uvd_set_dt_surfaces(msg, &luma->surface, (chroma) ? &chroma->surface : NULL, type); in si_uvd_set_dtb()
|
H A D | radeon_vce_40_2_2.c | 86 RVCE_CS(enc->chroma->u.legacy.level[0].nblk_x * enc->chroma->bpe); // encRefPicChromaPitch in create() 313 (uint64_t)enc->chroma->u.legacy.level[0].offset_256B * 256); // inputPictureChromaAddressHi/Lo in encode() 316 RVCE_CS(enc->chroma->u.legacy.level[0].nblk_x * enc->chroma->bpe); // encInputPicChromaPitch in encode()
|
H A D | radeon_uvd_enc_1_1.c | 762 (enc->chroma->u.legacy.level[0].nblk_x * enc->chroma->bpe); in radeon_uvd_enc_ctx() 765 enc->enc_pic.ctx_buf.rec_chroma_pitch = enc->chroma->u.gfx9.surf_pitch * enc->chroma->bpe; in radeon_uvd_enc_ctx() 881 (enc->chroma->u.legacy.level[0].nblk_x * enc->chroma->bpe); in radeon_uvd_enc_encode_params_hevc() 885 enc->chroma->u.gfx9.surf_pitch * enc->chroma->bpe; in radeon_uvd_enc_encode_params_hevc() 902 RADEON_ENC_READ(enc->handle, RADEON_DOMAIN_VRAM, (uint64_t)enc->chroma->u.legacy.level[0].offset_256B * 256); in radeon_uvd_enc_encode_params_hevc() 905 RADEON_ENC_READ(enc->handle, RADEON_DOMAIN_VRAM, enc->chroma in radeon_uvd_enc_encode_params_hevc() [all...] |
H A D | radeon_vce_52.c | 195 RVCE_CS(enc->chroma->u.legacy.level[0].nblk_x * enc->chroma->bpe); // encRefPicChromaPitch in create() 199 RVCE_CS(enc->chroma->u.gfx9.surf_pitch * enc->chroma->bpe); // encRefPicChromaPitch in create() 268 (uint64_t)enc->chroma->u.legacy.level[0].offset_256B * 256); // inputPictureChromaAddressHi/Lo in encode() 271 RVCE_CS(enc->chroma->u.legacy.level[0].nblk_x * enc->chroma->bpe); // encInputPicChromaPitch in encode() 276 enc->chroma->u.gfx9.surf_offset); // inputPictureChromaAddressHi/Lo in encode() 279 RVCE_CS(enc->chroma->u.gfx9.surf_pitch * enc->chroma in encode() [all...] |
H A D | radeon_vce_50.c | 123 (uint64_t)enc->chroma->u.legacy.level[0].offset_256B * 256); // inputPictureChromaAddressHi/Lo in encode() 126 RVCE_CS(enc->chroma->u.legacy.level[0].nblk_x * enc->chroma->bpe); // encInputPicChromaPitch in encode()
|
H A D | radeon_uvd.h | 44 /* fill decoding target field from the luma and chroma surfaces */ 46 struct radeon_surf *chroma, enum ruvd_surface_type type);
|
/third_party/ffmpeg/tests/checkasm/ |
H A D | vp8dsp.c | 167 int i, chroma; in check_idct_dc4() local 172 for (chroma = 0; chroma <= 1; chroma++) { in check_idct_dc4() 173 void (*idct4dc)(uint8_t *, int16_t[4][16], ptrdiff_t) = chroma ? d.vp8_idct_dc_add4uv : d.vp8_idct_dc_add4y; in check_idct_dc4() 174 if (check_func(idct4dc, "vp8_idct_dc_add4%s", chroma ? "uv" : "y")) { in check_idct_dc4() 175 ptrdiff_t stride = chroma ? 8 : 16; in check_idct_dc4() 176 int w = chroma ? 2 : 4; in check_idct_dc4()
|
/third_party/node/deps/npm/node_modules/color-convert/ |
H A D | conversions.js | 649 const chroma = (max - min); 653 if (chroma < 1) { 654 grayscale = min / (1 - chroma); 659 if (chroma <= 0) { 663 hue = ((g - b) / chroma) % 6; 666 hue = 2 + (b - r) / chroma; 668 hue = 4 + (r - g) / chroma; 674 return [hue * 360, chroma * 100, grayscale * 100];
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_uvd.c | 163 struct r600_texture *chroma = (struct r600_texture *)buf->resources[1]; in r600_uvd_set_dtb() local 168 ruvd_set_dt_surfaces(msg, &luma->surface, &chroma->surface); in r600_uvd_set_dtb()
|
H A D | radeon_uvd.c | 1204 * fill decoding target field from the luma and chroma surfaces 1207 struct radeon_surf *chroma) in ruvd_set_dt_surfaces() 1229 if (chroma) in ruvd_set_dt_surfaces() 1230 msg->body.decode.dt_chroma_top_offset = texture_offset(chroma, 0); in ruvd_set_dt_surfaces() 1233 if (chroma) in ruvd_set_dt_surfaces() 1234 msg->body.decode.dt_chroma_bottom_offset = texture_offset(chroma, 1); in ruvd_set_dt_surfaces() 1240 if (chroma) { in ruvd_set_dt_surfaces() 1241 assert(luma->u.legacy.bankw == chroma->u.legacy.bankw); in ruvd_set_dt_surfaces() 1242 assert(luma->u.legacy.bankh == chroma->u.legacy.bankh); in ruvd_set_dt_surfaces() 1243 assert(luma->u.legacy.mtilea == chroma in ruvd_set_dt_surfaces() 1206 ruvd_set_dt_surfaces(struct ruvd_msg *msg, struct radeon_surf *luma, struct radeon_surf *chroma) ruvd_set_dt_surfaces() argument [all...] |
/third_party/ffmpeg/libavcodec/x86/ |
H A D | h264dsp_init.c | 107 LF_FUNC(h, chroma, depth, sse2) \ 111 LF_FUNC(v, chroma, depth, sse2) \ 117 LF_FUNC(h, chroma, depth, avx) \ 121 LF_FUNC(v, chroma, depth, avx) \
|