Home
last modified time | relevance | path

Searched refs:ycbcr (Results 1 – 10 of 10) sorted by relevance

/external/opencv3/3rdparty/libtiff/
Dtif_color.c183 TIFFYCbCrtoRGB(TIFFYCbCrToRGB *ycbcr, uint32 Y, int32 Cb, int32 Cr, in TIFFYCbCrtoRGB() argument
191 i = ycbcr->Y_tab[Y] + ycbcr->Cr_r_tab[Cr]; in TIFFYCbCrtoRGB()
193 i = ycbcr->Y_tab[Y] in TIFFYCbCrtoRGB()
194 + (int)((ycbcr->Cb_g_tab[Cb] + ycbcr->Cr_g_tab[Cr]) >> SHIFT); in TIFFYCbCrtoRGB()
196 i = ycbcr->Y_tab[Y] + ycbcr->Cb_b_tab[Cb]; in TIFFYCbCrtoRGB()
217 TIFFYCbCrToRGBInit(TIFFYCbCrToRGB* ycbcr, float *luma, float *refBlackWhite) in TIFFYCbCrToRGBInit() argument
227 (uint8*) ycbcr+TIFFroundup_32(sizeof (TIFFYCbCrToRGB), sizeof (long))); in TIFFYCbCrToRGBInit()
229 ycbcr->clamptab = (clamptab += 256); in TIFFYCbCrToRGBInit()
233 ycbcr->Cr_r_tab = (int*) (clamptab + 3*256); in TIFFYCbCrToRGBInit()
234 ycbcr->Cb_b_tab = ycbcr->Cr_r_tab + 256; in TIFFYCbCrToRGBInit()
[all …]
Dtif_getimage.c205 if (img->ycbcr) in TIFFRGBAImageEnd()
206 _TIFFfree(img->ycbcr), img->ycbcr = NULL; in TIFFRGBAImageEnd()
438 img->ycbcr = NULL; in TIFFRGBAImageBegin()
1668 TIFFYCbCrtoRGB(img->ycbcr, (Y), Cb, Cr, &r, &g, &b); \
2133 TIFFYCbCrtoRGB(img->ycbcr,*r++,*g++,*b++,&dr,&dg,&db); in DECLARESepPutFunc()
2149 if (img->ycbcr == NULL) { in initYCbCrConversion()
2150 img->ycbcr = (TIFFYCbCrToRGB*) _TIFFmalloc( in initYCbCrConversion()
2156 if (img->ycbcr == NULL) { in initYCbCrConversion()
2166 if (TIFFYCbCrToRGBInit(img->ycbcr, luma, refBlackWhite) < 0) in initYCbCrConversion()
Dtiffio.h225 TIFFYCbCrToRGB* ycbcr; /* YCbCr conversion state */ member
DChangeLog975 fails on oddly sized 12bit jpeg compressed ycbcr images.
3752 * tools/ycbcr.c: fixed main() declaration as per:
/external/pdfium/third_party/libtiff/
Dtif_color.c183 TIFFYCbCrtoRGB(TIFFYCbCrToRGB *ycbcr, uint32 Y, int32 Cb, int32 Cr, in TIFFYCbCrtoRGB() argument
191 i = ycbcr->Y_tab[Y] + ycbcr->Cr_r_tab[Cr]; in TIFFYCbCrtoRGB()
193 i = ycbcr->Y_tab[Y] in TIFFYCbCrtoRGB()
194 + (int)((ycbcr->Cb_g_tab[Cb] + ycbcr->Cr_g_tab[Cr]) >> SHIFT); in TIFFYCbCrtoRGB()
196 i = ycbcr->Y_tab[Y] + ycbcr->Cb_b_tab[Cb]; in TIFFYCbCrtoRGB()
217 TIFFYCbCrToRGBInit(TIFFYCbCrToRGB* ycbcr, float *luma, float *refBlackWhite) in TIFFYCbCrToRGBInit() argument
227 (uint8*) ycbcr+TIFFroundup_32(sizeof (TIFFYCbCrToRGB), sizeof (long))); in TIFFYCbCrToRGBInit()
229 ycbcr->clamptab = (clamptab += 256); in TIFFYCbCrToRGBInit()
233 ycbcr->Cr_r_tab = (int*) (clamptab + 3*256); in TIFFYCbCrToRGBInit()
234 ycbcr->Cb_b_tab = ycbcr->Cr_r_tab + 256; in TIFFYCbCrToRGBInit()
[all …]
Dtif_getimage.c220 if (img->ycbcr) in TIFFRGBAImageEnd()
221 _TIFFfree(img->ycbcr), img->ycbcr = NULL; in TIFFRGBAImageEnd()
453 img->ycbcr = NULL; in TIFFRGBAImageBegin()
1727 TIFFYCbCrtoRGB(img->ycbcr, (Y), Cb, Cr, &r, &g, &b); \
2194 TIFFYCbCrtoRGB(img->ycbcr,*r++,*g++,*b++,&dr,&dg,&db); in DECLARESepPutFunc()
2210 if (img->ycbcr == NULL) { in initYCbCrConversion()
2211 img->ycbcr = (TIFFYCbCrToRGB*) _TIFFmalloc( in initYCbCrConversion()
2217 if (img->ycbcr == NULL) { in initYCbCrConversion()
2227 if (TIFFYCbCrToRGBInit(img->ycbcr, luma, refBlackWhite) < 0) in initYCbCrConversion()
Dtiffio.h225 TIFFYCbCrToRGB* ycbcr; /* YCbCr conversion state */ member
/external/drm_gralloc/
Dgralloc.cpp114 int usage, int x, int y, int w, int h, struct android_ycbcr *ycbcr) in drm_mod_lock_ycbcr() argument
139 ycbcr->y = ptr; in drm_mod_lock_ycbcr()
140 ycbcr->cb = (uint8_t *)ptr + handle->stride * handle->height; in drm_mod_lock_ycbcr()
141 ycbcr->cr = (uint8_t *)ycbcr->cb + 1; in drm_mod_lock_ycbcr()
142 ycbcr->ystride = handle->stride; in drm_mod_lock_ycbcr()
143 ycbcr->cstride = handle->stride; in drm_mod_lock_ycbcr()
144 ycbcr->chroma_step = 2; in drm_mod_lock_ycbcr()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_vertex_buffers.c221 buffer->ycbcr[i].resource = pipe_buffer_create in vl_vb_init()
228 if (!buffer->ycbcr[i].resource) in vl_vb_init()
253 pipe_resource_reference(&buffer->ycbcr[i].resource, NULL); in vl_vb_init()
272 buf.buffer = buffer->ycbcr[component].resource; in vl_vb_get_ycbcr()
301 buffer->ycbcr[i].vertex_stream = pipe_buffer_map in vl_vb_map()
304 buffer->ycbcr[i].resource, in vl_vb_map()
306 &buffer->ycbcr[i].transfer in vl_vb_map()
328 return buffer->ycbcr[component].vertex_stream; in vl_vb_get_ycbcr_stream()
356 pipe_buffer_unmap(pipe, buffer->ycbcr[i].transfer); in vl_vb_unmap()
372 pipe_resource_reference(&buffer->ycbcr[i].resource, NULL); in vl_vb_cleanup()
Dvl_vertex_buffers.h99 } ycbcr[VL_NUM_COMPONENTS]; member