Home
last modified time | relevance | path

Searched refs:luma (Results 1 – 25 of 94) sorted by relevance

1234

/third_party/ffmpeg/libavcodec/
Dvcr1.c75 uint8_t *luma = &p->data[0][y * p->linesize[0]]; in vcr1_decode_frame() local
88 luma[0] = offset += a->delta[bytestream[2] & 0xF]; in vcr1_decode_frame()
89 luma[1] = offset += a->delta[bytestream[2] >> 4]; in vcr1_decode_frame()
90 luma[2] = offset += a->delta[bytestream[0] & 0xF]; in vcr1_decode_frame()
91 luma[3] = offset += a->delta[bytestream[0] >> 4]; in vcr1_decode_frame()
92 luma += 4; in vcr1_decode_frame()
105 luma[0] = offset += a->delta[bytestream[2] & 0xF]; in vcr1_decode_frame()
106 luma[1] = offset += a->delta[bytestream[2] >> 4]; in vcr1_decode_frame()
107 luma[2] = offset += a->delta[bytestream[3] & 0xF]; in vcr1_decode_frame()
108 luma[3] = offset += a->delta[bytestream[3] >> 4]; in vcr1_decode_frame()
[all …]
Dcljrenc.c66 uint8_t *luma = &p->data[0][y * p->linesize[0]]; in encode_frame() local
78 memcpy(luma_tmp, luma, avctx->width - x); in encode_frame()
79 luma = luma_tmp; in encode_frame()
81 put_bits(&pb, 5, (249*(luma[3] + (dither>>29) )) >> 11); in encode_frame()
82 put_bits(&pb, 5, (249*(luma[2] + ((dither>>26)&7))) >> 11); in encode_frame()
83 put_bits(&pb, 5, (249*(luma[1] + ((dither>>23)&7))) >> 11); in encode_frame()
84 put_bits(&pb, 5, (249*(luma[0] + ((dither>>20)&7))) >> 11); in encode_frame()
85 luma += 4; in encode_frame()
Dcljrdec.c59 uint8_t *luma = &p->data[0][y * p->linesize[0]]; in decode_frame() local
63 luma[3] = (get_bits(&gb, 5)*33) >> 2; in decode_frame()
64 luma[2] = (get_bits(&gb, 5)*33) >> 2; in decode_frame()
65 luma[1] = (get_bits(&gb, 5)*33) >> 2; in decode_frame()
66 luma[0] = (get_bits(&gb, 5)*33) >> 2; in decode_frame()
67 luma += 4; in decode_frame()
Dm101.c85 uint16_t *luma = (uint16_t*)&frame->data[0][y*frame->linesize[0]]; in m101_decode_frame() local
93 luma [xd] = (4*buf_src[2*x + 0]) + ((buf_src[32 + (x>>1)]>>4)&3); in m101_decode_frame()
95 luma [xd] = (4*buf_src[2*x + 0]) + (buf_src[32 + (x>>1)] &3); in m101_decode_frame()
/third_party/ffmpeg/libavfilter/
Dvf_lumakey.c50 const uint8_t *luma = frame->data[0] + slice_start * frame->linesize[0]; in do_lumakey_slice8() local
58 if (luma[x] >= b && luma[x] <= w) { in do_lumakey_slice8()
60 } else if (luma[x] > b - so && luma[x] < w + so) { in do_lumakey_slice8()
61 if (luma[x] < b) { in do_lumakey_slice8()
62 alpha[x] = 255 - (luma[x] - b + so) * 255 / so; in do_lumakey_slice8()
64 alpha[x] = (luma[x] - w) * 255 / so; in do_lumakey_slice8()
68 luma += frame->linesize[0]; in do_lumakey_slice8()
82 const uint16_t *luma = (const uint16_t *)(frame->data[0] + slice_start * frame->linesize[0]); in do_lumakey_slice16() local
91 if (luma[x] >= b && luma[x] <= w) { in do_lumakey_slice16()
93 } else if (luma[x] > b - so && luma[x] < w + so) { in do_lumakey_slice16()
[all …]
Dvf_histeq.c132 int x, y, i, luthi, lutlo, lut, luma, oluma, m; in filter_frame() local
155 luma = (55 * r + 182 * g + 19 * b) >> 8; in filter_frame()
156 dst[x + histeq->rgba_map[A]] = luma; in filter_frame()
157 histeq->in_histogram[luma]++; in filter_frame()
191 luma = dst[x + histeq->rgba_map[A]]; in filter_frame()
192 if (luma == 0) { in filter_frame()
197 lut = histeq->LUT[luma]; in filter_frame()
199 if (luma > 0) { in filter_frame()
201 (histeq->LUT[luma] + histeq->LUT[luma - 1]) / 2 : in filter_frame()
202 histeq->LUT[luma - 1]; in filter_frame()
[all …]
Dvf_smartblur.c55 FilterParam luma; member
66 …{ "luma_radius", "set luma radius", OFFSET(luma.radius), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, R…
67 …{ "lr" , "set luma radius", OFFSET(luma.radius), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, R…
68 …{ "luma_strength", "set luma strength", OFFSET(luma.strength), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, S…
69 …{ "ls", "set luma strength", OFFSET(luma.strength), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, S…
70 …{ "luma_threshold", "set luma threshold", OFFSET(luma.threshold), AV_OPT_TYPE_INT, {.i64=0}, THR…
71 …{ "lt", "set luma threshold", OFFSET(luma.threshold), AV_OPT_TYPE_INT, {.i64=0}, THR…
91 s->chroma.radius = s->luma.radius; in init()
93 s->chroma.strength = s->luma.strength; in init()
95 s->chroma.threshold = s->luma.threshold; in init()
[all …]
Dvf_sab.c51 FilterParam luma; member
80 …{ "luma_radius", "set luma radius", OFFSET(luma.radius), AV_OPT_TYPE_FLOAT, {.dbl=1.0},…
81 …{ "lr" , "set luma radius", OFFSET(luma.radius), AV_OPT_TYPE_FLOAT, {.dbl=1.0},…
82 …{ "luma_pre_filter_radius", "set luma pre-filter radius", OFFSET(luma.pre_filter_radius), AV_OPT_T…
83 …{ "lpfr", "set luma pre-filter radius", OFFSET(luma.pre_filter_radius), AV_OPT_T…
84 …{ "luma_strength", "set luma strength", OFFSET(luma.strength), AV_OPT_TYPE_FLOAT, {.dbl=1…
85 …{ "ls", "set luma strength", OFFSET(luma.strength), AV_OPT_TYPE_FLOAT, {.dbl=1…
107 s->chroma.radius = s->luma.radius; in init()
109 s->chroma.pre_filter_radius = s->luma.pre_filter_radius; in init()
111 s->chroma.strength = s->luma.strength; in init()
[all …]
Dvf_vibrance.c89 float luma = g * gc + r * rc + b * bc; in vibrance_slice8() local
94 g = lerpf(luma, g, cg); in vibrance_slice8()
95 b = lerpf(luma, b, cb); in vibrance_slice8()
96 r = lerpf(luma, r, cr); in vibrance_slice8()
148 float luma = g * gc + r * rc + b * bc; in vibrance_slice16() local
153 g = lerpf(luma, g, cg); in vibrance_slice16()
154 b = lerpf(luma, b, cb); in vibrance_slice16()
155 r = lerpf(luma, r, cr); in vibrance_slice16()
205 float luma = g * gc + r * rc + b * bc; in vibrance_slice8p() local
210 g = lerpf(luma, g, cg); in vibrance_slice8p()
[all …]
Dvf_tonemap.c129 …float luma = av_q2d(s->coeffs->cr) * *r_in + av_q2d(s->coeffs->cg) * *g_in + av_q2d(s->coeffs->cb)… in tonemap() local
130 float overbright = FFMAX(luma - s->desat, 1e-6) / FFMAX(luma, 1e-6); in tonemap()
131 *r_out = MIX(*r_in, luma, overbright); in tonemap()
132 *g_out = MIX(*g_in, luma, overbright); in tonemap()
133 *b_out = MIX(*b_in, luma, overbright); in tonemap()
Dvf_unsharp.c157 fp[0] = &s->luma; in apply_unsharp_c()
190 set_filter_param(&s->luma, s->lmsize_x, s->lmsize_y, s->lamount); in init()
194 if (s->luma.scalebits >= 26 || s->chroma.scalebits >= 26 || s->alpha.scalebits >= 26) { in init()
261 inlink->h / (4 * s->luma.steps_y)); in config_input()
263 ret = init_filter_param(inlink->dst, &s->luma, "luma", inlink->w); in config_input()
289 free_filter_param(&s->luma, s->nb_threads); in uninit()
/third_party/skia/src/core/
DSkMaskGamma.cpp20 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override { in fromLuma()
22 return luma; in fromLuma()
30 SkScalar fromLuma(SkScalar gamma, SkScalar luma) const override { in fromLuma()
31 return SkScalarPow(luma, SkScalarInvert(gamma)); in fromLuma()
46 SkScalar fromLuma(SkScalar SkDEBUGCODE(gamma), SkScalar luma) const override { in fromLuma()
50 if (luma <= 0.0031308f) { in fromLuma()
51 return luma * 12.92f; in fromLuma()
53 return 1.055f * SkScalarPow(luma, SkScalarInvert(2.4f)) in fromLuma()
DSkMaskGamma.h31 virtual SkScalar fromLuma(SkScalar gamma, SkScalar luma) const = 0;
39 SkScalar luma = r * SK_LUM_COEFF_R + in computeLuminance() local
42 SkASSERT(luma <= SK_Scalar1); in computeLuminance()
43 return SkScalarRoundToInt(luminance.fromLuma(gamma, luma) * 255); in computeLuminance()
/third_party/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_video.c149 bool luma) in nouveau_vpe_mb_dct_header() argument
154 unsigned y = luma ? mb->y * 16 : mb->y * 8; in nouveau_vpe_mb_dct_header()
169 if (luma && mb->macroblock_modes.bits.dct_type == PIPE_MPEG12_DCT_TYPE_FIELD) in nouveau_vpe_mb_dct_header()
178 if (luma) { in nouveau_vpe_mb_dct_header()
191 nouveau_vpe_mb_mv_flags(bool luma, int mv_h, int mv_v, bool forward, bool first, bool vert) in nouveau_vpe_mb_mv_flags() argument
194 if (luma) in nouveau_vpe_mb_mv_flags()
233 bool luma, bool frame, bool forward, bool vert, in nouveau_vpe_mb_mv() argument
250 if (!luma) { in nouveau_vpe_mb_mv()
255 mc_header |= nouveau_vpe_mb_mv_flags(luma, mv_horizontal, mv_vertical, forward, first, vert); in nouveau_vpe_mb_mv()
259 if (luma) in nouveau_vpe_mb_mv()
[all …]
/third_party/openGLES/extensions/NV/
DNV_vdpau_interop2.txt106 …A_TYPE_420 4 0 0 w x h/2 R8 Top-field luma
107 … 1 w x h/2 R8 Bottom-field luma
110 …A_TYPE_422 4 0 0 w x h/2 R8 Top-field luma
111 … 1 w x h/2 R8 Bottom-field luma
114 …A_TYPE_444 4 0 0 w x h/2 R8 Top-field luma
115 … 1 w x h/2 R8 Bottom-field luma
124 …A_TYPE_420_FIELD 4 0 0 w x h/2 R8 Top-field luma
125 … 1 w x h/2 R8 Bottom-field luma
128 …A_TYPE_422_FIELD 4 0 0 w x h/2 R8 Top-field luma
129 … 1 w x h/2 R8 Bottom-field luma
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dradeon_vce_40_2_2.c85 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encRefPicLumaPitch in create()
87 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16) / 8); // encRefYHeightInQw in create()
311 … (uint64_t)enc->luma->u.legacy.level[0].offset_256B * 256); // inputPictureLumaAddressHi/Lo in encode()
314 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16)); // encInputFrameYPitch in encode()
315 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encInputPicLumaPitch in encode()
Dsi_uvd.c93 struct si_texture *luma = (struct si_texture *)buf->resources[0]; 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()
102 return luma->buffer.buf; in si_uvd_set_dtb()
Dradeon_vce_52.c194 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encRefPicLumaPitch in create()
196 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16) / 8); // encRefYHeightInQw in create()
198 RVCE_CS(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe); // encRefPicLumaPitch in create()
200 RVCE_CS(align(enc->luma->u.gfx9.surf_height, 16) / 8); // encRefYHeightInQw in create()
266 … (uint64_t)enc->luma->u.legacy.level[0].offset_256B * 256); // inputPictureLumaAddressHi/Lo in encode()
269 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16)); // encInputFrameYPitch in encode()
270 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encInputPicLumaPitch in encode()
274 enc->luma->u.gfx9.surf_offset); // inputPictureLumaAddressHi/Lo in encode()
277 RVCE_CS(align(enc->luma->u.gfx9.surf_height, 16)); // encInputFrameYPitch in encode()
278 RVCE_CS(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe); // encInputPicLumaPitch in encode()
Dradeon_vce_50.c121 … (uint64_t)enc->luma->u.legacy.level[0].offset_256B * 256); // inputPictureLumaAddressHi/Lo in encode()
124 RVCE_CS(align(enc->luma->u.legacy.level[0].nblk_y, 16)); // encInputFrameYPitch in encode()
125 RVCE_CS(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe); // encInputPicLumaPitch in encode()
Dradeon_vce.c223 pitch = align(enc->luma->u.legacy.level[0].nblk_x * enc->luma->bpe, 128); in si_vce_frame_offset()
224 vpitch = align(enc->luma->u.legacy.level[0].nblk_y, 16); in si_vce_frame_offset()
226 pitch = align(enc->luma->u.gfx9.surf_pitch * enc->luma->bpe, 256); in si_vce_frame_offset()
227 vpitch = align(enc->luma->u.gfx9.surf_height, 16); in si_vce_frame_offset()
275 enc->get_buffer(vid_buf->resources[0], &enc->handle, &enc->luma); in rvce_begin_frame()
Dradeon_uvd.c1436 void si_uvd_set_dt_surfaces(struct ruvd_msg *msg, struct radeon_surf *luma, in si_uvd_set_dt_surfaces() argument
1442 msg->body.decode.dt_pitch = luma->u.legacy.level[0].nblk_x * luma->blk_w; in si_uvd_set_dt_surfaces()
1443 switch (luma->u.legacy.level[0].mode) { in si_uvd_set_dt_surfaces()
1461 msg->body.decode.dt_luma_top_offset = texture_offset(luma, 0, type); in si_uvd_set_dt_surfaces()
1465 msg->body.decode.dt_luma_bottom_offset = texture_offset(luma, 1, type); in si_uvd_set_dt_surfaces()
1474 assert(luma->u.legacy.bankw == chroma->u.legacy.bankw); in si_uvd_set_dt_surfaces()
1475 assert(luma->u.legacy.bankh == chroma->u.legacy.bankh); in si_uvd_set_dt_surfaces()
1476 assert(luma->u.legacy.mtilea == chroma->u.legacy.mtilea); in si_uvd_set_dt_surfaces()
1479 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_WIDTH(bank_wh(luma->u.legacy.bankw)); in si_uvd_set_dt_surfaces()
1480 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_HEIGHT(bank_wh(luma->u.legacy.bankh)); in si_uvd_set_dt_surfaces()
[all …]
/third_party/ffmpeg/libavcodec/x86/
Dh264dsp_init.c103 LF_FUNC(h, luma, depth, sse2) \
105 LF_FUNC(v, luma, depth, sse2) \
113 LF_FUNC(h, luma, depth, avx) \
115 LF_FUNC(v, luma, depth, avx) \
130 LF_FUNC(v, luma, 10, mmxext)
131 LF_FUNC(h, luma, 10, mmxext)
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_uvd.c162 struct r600_texture *luma = (struct r600_texture *)buf->resources[0]; in r600_uvd_set_dtb() local
168 ruvd_set_dt_surfaces(msg, &luma->surface, &chroma->surface); in r600_uvd_set_dtb()
170 return luma->resource.buf; in r600_uvd_set_dtb()
Dradeon_uvd.c1206 void ruvd_set_dt_surfaces(struct ruvd_msg *msg, struct radeon_surf *luma, in ruvd_set_dt_surfaces() argument
1209 msg->body.decode.dt_pitch = luma->u.legacy.level[0].nblk_x * luma->blk_w; in ruvd_set_dt_surfaces()
1210 switch (luma->u.legacy.level[0].mode) { in ruvd_set_dt_surfaces()
1228 msg->body.decode.dt_luma_top_offset = texture_offset(luma, 0); in ruvd_set_dt_surfaces()
1232 msg->body.decode.dt_luma_bottom_offset = texture_offset(luma, 1); 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->u.legacy.mtilea); in ruvd_set_dt_surfaces()
1246 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_WIDTH(bank_wh(luma->u.legacy.bankw)); in ruvd_set_dt_surfaces()
1247 msg->body.decode.dt_surf_tile_config |= RUVD_BANK_HEIGHT(bank_wh(luma->u.legacy.bankh)); in ruvd_set_dt_surfaces()
[all …]
/third_party/openh264/codec/common/x86/
Dexpand_picture.asm142 %macro exp_top_bottom_sse2 1 ; iPaddingSize [luma(32)/chroma(16)]
147 %if %1 == 32 ; for luma
230 %macro exp_left_right_sse2 2 ; iPaddingSize [luma(32)/chroma(16)], u/a
235 %if %1 == 32 ; for luma
278 %macro exp_cross_sse2 2 ; iPaddingSize [luma(32)/chroma(16)], u/a
282 %if %1 == 32 ; luma
413 lea r5,[r0-32] ;left border dst luma =32 chroma = -16
454 add r6,32 ;height +32(16) ,luma = 32, chroma = 16
541 lea r5,[r0-16] ;left border dst luma =32 chroma = -16
581 add r6,16 ;height +32(16) ,luma = 32, chroma = 16
[all …]

1234