Home
last modified time | relevance | path

Searched refs:yuv (Results 1 – 21 of 21) sorted by relevance

/AliOS-Things-master/components/SDL2/test/
A Dtestyuv_cvt.c28 yuv[1] = (int)((rgb[2] - yuv[0]) * 0.565 + 128); in RGBtoYUV()
29 yuv[2] = (int)((rgb[0] - yuv[0]) * 0.713 + 128); in RGBtoYUV()
65 yuv[1] = 128; in RGBtoYUV()
66 yuv[2] = 128; in RGBtoYUV()
70 yuv[0] = yuv[0] * luminance / 100; in RGBtoYUV()
79 int yuv[4][3]; in ConvertRGBtoPlanar2x2() local
134 *U = (Uint8)SDL_floorf((yuv[0][1] + yuv[1][1] + yuv[2][1] + yuv[3][1])/4.0f + 0.5f); in ConvertRGBtoPlanar2x2()
137 *V = (Uint8)SDL_floorf((yuv[0][2] + yuv[1][2] + yuv[2][2] + yuv[3][2])/4.0f + 0.5f); in ConvertRGBtoPlanar2x2()
150 *U = (Uint8)SDL_floorf((yuv[0][1] + yuv[2][1])/2.0f + 0.5f); in ConvertRGBtoPlanar2x2()
153 *V = (Uint8)SDL_floorf((yuv[0][2] + yuv[2][2])/2.0f + 0.5f); in ConvertRGBtoPlanar2x2()
[all …]
A Dtestyuv.c74 static SDL_bool verify_yuv_data(Uint32 format, const Uint8 *yuv, int yuv_pitch, SDL_Surface *surfac… in verify_yuv_data() argument
87 …if (SDL_ConvertPixels(surface->w, surface->h, format, yuv, yuv_pitch, surface->format->format, rgb… in verify_yuv_data()
/AliOS-Things-master/components/SDL2/src/render/metal/
A DSDL_shaders_metal.metal77 float3 yuv;
78 yuv.x = texY.sample(s, vert.texcoord).r;
82 yuv += decode.offset;
84 …return col * float4(dot(yuv, decode.Rcoeff), dot(yuv, decode.Gcoeff), dot(yuv, decode.Bcoeff), 1.0…
94 float3 yuv;
95 yuv.x = texY.sample(s, vert.texcoord).r;
98 yuv += decode.offset;
100 …return col * float4(dot(yuv, decode.Rcoeff), dot(yuv, decode.Gcoeff), dot(yuv, decode.Bcoeff), 1.0…
110 float3 yuv;
114 yuv += decode.offset;
[all …]
A DSDL_render_metal.m162 @property (nonatomic, assign) BOOL yuv; property
591 … BOOL yuv = (texture->format == SDL_PIXELFORMAT_IYUV) || (texture->format == SDL_PIXELFORMAT_YV12);
594 if (yuv) {
606 if (yuv || nv12) {
625 texturedata.yuv = yuv;
628 if (yuv) {
638 if (yuv || nv12) {
764 if (texturedata.yuv) {
846 if (texturedata.yuv || texturedata.nv12) {
903 if (texturedata.yuv) {
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/imageio/
A Dimage_enc.c471 const uint8_t* src_y = yuv->y; in WebPWritePGM()
472 const uint8_t* src_u = yuv->u; in WebPWritePGM()
473 const uint8_t* src_v = yuv->v; in WebPWritePGM()
488 src_y += yuv->y_stride; in WebPWritePGM()
493 src_u += yuv->u_stride; in WebPWritePGM()
494 src_v += yuv->v_stride; in WebPWritePGM()
499 src_a += yuv->a_stride; in WebPWritePGM()
529 src_y += yuv->y_stride; in WebPWriteYUV()
533 src_u += yuv->u_stride; in WebPWriteYUV()
537 src_v += yuv->v_stride; in WebPWriteYUV()
[all …]
/AliOS-Things-master/components/SDL2/src/video/yuv2rgb/
A DREADME.md23 To generate a raw yuv file, you can use avconv:
25 avconv -i example.jpg -c:v rawvideo -pix_fmt yuv420p example.yuv
33 ./test_yuv_rgb yuv2rgb image.yuv 4096 2160 image
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/
A DMakefile.am36 COMMON_SOURCES += yuv.c
37 COMMON_SOURCES += yuv.h
A DMakefile.in115 libwebpdsp_la-yuv.lo
192 lossless_common.h rescaler.c upsampling.c yuv.c yuv.h
314 ./$(DEPDIR)/libwebpdsp_la-yuv.Plo \
340 ./$(DEPDIR)/libwebpdspdecode_la-yuv.Plo \
622 rescaler.c upsampling.c yuv.c yuv.h
950 libwebpdsp_la-yuv.lo: yuv.c
952 …fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libwebpdsp_la-yuv.Tpo $(DEPDIR)/libwebpdsp_la-yuv.Plo
1160 libwebpdspdecode_la-yuv.lo: yuv.c
1162 …TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libwebpdspdecode_la-yuv.Tpo $(DEPDIR)/libwebpdspdecode_la-yuv.…
1565 -rm -f ./$(DEPDIR)/libwebpdsp_la-yuv.Plo
[all …]
/AliOS-Things-master/components/SDL2/src/render/direct3d/
A DSDL_render_d3d.c101 SDL_bool yuv; member
542 texturedata->yuv = SDL_TRUE; in D3D_CreateTexture()
569 if (texturedata->yuv) { in D3D_RecreateTexture()
597 if (texturedata->yuv) { in D3D_UpdateTexture()
656 if (texturedata->yuv) { in D3D_LockTexture()
703 if (texturedata->yuv) { in D3D_UnlockTexture()
717 if (texturedata->yuv) { in D3D_UnlockTexture()
1090 if (texturedata->yuv) { in SetupTextureState()
1135 if ((!newtexturedata || !newtexturedata->yuv) && (oldtexturedata && oldtexturedata->yuv)) { in SetDrawState()
1155 if (texturedata->yuv) { in SetDrawState()
[all …]
/AliOS-Things-master/components/SDL2/src/render/opengl/
A DSDL_render_gl.c133 SDL_bool yuv; member
583 data->yuv = SDL_TRUE; in GL_CreateTexture()
655 if (data->yuv) { in GL_UpdateTexture()
1059 if (texturedata->yuv || texturedata->nv12) { in SetCopyState()
1062 if (texturedata->yuv) { in SetCopyState()
1071 if (texturedata->yuv) { in SetCopyState()
1080 if (texturedata->yuv) { in SetCopyState()
1099 if (texturedata->yuv) { in SetCopyState()
1447 if (data->yuv) { in GL_DestroyTexture()
1504 if (texturedata->yuv) { in GL_BindTexture()
[all …]
/AliOS-Things-master/components/SDL2/src/video/
A DSDL_yuv.c94 static int GetYUVPlanes(int width, int height, Uint32 format, const void *yuv, int yuv_pitch, in GetYUVPlanes() argument
106 planes[0] = (const Uint8 *)yuv; in GetYUVPlanes()
114 planes[0] = (const Uint8 *)yuv; in GetYUVPlanes()
120 planes[0] = (const Uint8 *)yuv; in GetYUVPlanes()
1229 … __m128i yuv = _mm_loadu_si128((__m128i*)srcYUV); \
1230 … __m128i lo = _mm_unpacklo_epi8(yuv, _mm_setzero_si128()); \
1231 … __m128i hi = _mm_unpackhi_epi8(yuv, _mm_setzero_si128()); \
1236yuv = _mm_packus_epi16(lo, hi); \
1237 … _mm_storeu_si128((__m128i*)dstYUV, yuv); \
/AliOS-Things-master/components/SDL2/src/render/
A DSDL_render.c1124 texture->yuv = SDL_SW_CreateYUVTexture(format, w, h); in SDL_CreateTexture()
1128 if (!texture->yuv) { in SDL_CreateTexture()
1457 SDL_SW_CopyYUVToRGB(texture->yuv, rect, native->format, in SDL_UpdateTextureYUV()
1546 } else if (texture->yuv) { in SDL_UpdateTexture()
1592 SDL_SW_CopyYUVToRGB(texture->yuv, rect, native->format, in SDL_UpdateTextureYUVPlanar()
1661 if (texture->yuv) { in SDL_UpdateYUVTexture()
1723 if (texture->yuv) { in SDL_LockTexture()
1796 SDL_SW_CopyYUVToRGB(texture->yuv, &rect, native->format, in SDL_UnlockTextureYUV()
1832 if (texture->yuv) { in SDL_UnlockTexture()
3192 if (texture->yuv) { in SDL_DestroyTexture()
[all …]
A DSDL_sysrender.h52 SDL_SW_YUVTexture *yuv; member
/AliOS-Things-master/components/SDL2/src/render/opengles2/
A DSDL_render_gles2.c63 SDL_bool yuv; member
999 if (tdata->yuv) { in SetDrawState()
1452 …data->yuv = ((texture->format == SDL_PIXELFORMAT_IYUV) || (texture->format == SDL_PIXELFORMAT_YV12… in GLES2_CreateTexture()
1463 if (data->yuv) { in GLES2_CreateTexture()
1480 if (data->yuv) { in GLES2_CreateTexture()
1615 if (tdata->yuv) { in GLES2_UpdateTexture()
1753 if (data->yuv) { in GLES2_SetTextureScaleMode()
/AliOS-Things-master/components/SDL2/src/render/direct3d11/
A DSDL_render_d3d11.c89 SDL_bool yuv; member
1100 textureData->yuv = SDL_TRUE; in D3D11_CreateTexture()
1165 if (textureData->yuv) { in D3D11_CreateTexture()
1348 if (textureData->yuv) { in D3D11_UpdateTexture()
1416 if (textureData->yuv || textureData->nv12) { in D3D11_LockTexture()
1499 if (textureData->yuv || textureData->nv12) { in D3D11_UnlockTexture()
2139 if (textureData->yuv) { in D3D11_SetCopyState()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/
A DAndroid.mk89 src/dsp/yuv.c \
A Dmakefile.unix177 src/dsp/yuv.o \
308 src/dsp/yuv.h \
A Dbuild.gradle156 include "yuv.c"
A DChangeLog329 0c83a8bc Merge "yuv: harmonize suffix naming"
332 73ea9f27 yuv: harmonize suffix naming
419 f7682189 yuv: rationalize the C/SSE2 function naming
1185 f7c507a5 Merge "remove unnecessary #include "yuv.h""
1187 14e4043b remove unnecessary #include "yuv.h"
1399 cecf5096 dsp/yuv*.c: rework WEBP_USE_<arch> ifdef
1937 bdfeebaa dsp/yuv: move sse2 functions to yuv_sse2.c
1975 a05dc140 SSE2: yuv->rgb speed-up for point-sampling
2402 b25a6fbf yuv.h: fix indent
2854 090b708a NEON optimised yuv to rgb conversion
[all …]
A DMakefile.vc230 $(DIROBJ)\dsp\yuv.obj \
A DREADME352 -yuv ......... save the raw YUV samples in flat layout

Completed in 67 milliseconds