SDL  2.0
yuv_rgb.h File Reference
#include "SDL_stdinc.h"
+ Include dependency graph for yuv_rgb.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  YCbCrType {
  YCBCR_JPEG,
  YCBCR_601,
  YCBCR_709
}
 

Functions

void yuv420_rgb565_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_rgb24_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_rgba_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_bgra_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_argb_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_abgr_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_rgb565_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_rgb24_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_rgba_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_bgra_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_argb_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_abgr_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_rgb565_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_rgb24_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_rgba_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_bgra_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_argb_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_abgr_std (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_rgb565_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_rgb24_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_rgba_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_bgra_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_argb_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_abgr_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_rgb565_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_rgb24_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_rgba_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_bgra_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_argb_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_abgr_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_rgb565_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_rgb24_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_rgba_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_bgra_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_argb_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_abgr_sse (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_rgb565_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_rgb24_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_rgba_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_bgra_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_argb_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv420_abgr_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_rgb565_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_rgb24_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_rgba_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_bgra_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_argb_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuv422_abgr_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_rgb565_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_rgb24_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_rgba_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_bgra_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_argb_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void yuvnv12_abgr_sseu (uint32_t width, uint32_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, uint32_t y_stride, uint32_t uv_stride, uint8_t *rgb, uint32_t rgb_stride, YCbCrType yuv_type)
 
void rgb24_yuv420_std (uint32_t width, uint32_t height, const uint8_t *rgb, uint32_t rgb_stride, uint8_t *y, uint8_t *u, uint8_t *v, uint32_t y_stride, uint32_t uv_stride, YCbCrType yuv_type)
 
void rgb24_yuv420_sse (uint32_t width, uint32_t height, const uint8_t *rgb, uint32_t rgb_stride, uint8_t *y, uint8_t *u, uint8_t *v, uint32_t y_stride, uint32_t uv_stride, YCbCrType yuv_type)
 
void rgb24_yuv420_sseu (uint32_t width, uint32_t height, const uint8_t *rgb, uint32_t rgb_stride, uint8_t *y, uint8_t *u, uint8_t *v, uint32_t y_stride, uint32_t uv_stride, YCbCrType yuv_type)
 

Enumeration Type Documentation

◆ YCbCrType

enum YCbCrType
Enumerator
YCBCR_JPEG 
YCBCR_601 
YCBCR_709 

Definition at line 22 of file yuv_rgb.h.

23 {
24  YCBCR_JPEG,
25  YCBCR_601,
26  YCBCR_709
27 } YCbCrType;

Function Documentation

◆ rgb24_yuv420_sse()

void rgb24_yuv420_sse ( uint32_t  width,
uint32_t  height,
const uint8_t rgb,
uint32_t  rgb_stride,
uint8_t y,
uint8_t u,
uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
YCbCrType  yuv_type 
)

◆ rgb24_yuv420_sseu()

void rgb24_yuv420_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t rgb,
uint32_t  rgb_stride,
uint8_t y,
uint8_t u,
uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
YCbCrType  yuv_type 
)

◆ rgb24_yuv420_std()

void rgb24_yuv420_std ( uint32_t  width,
uint32_t  height,
const uint8_t rgb,
uint32_t  rgb_stride,
uint8_t y,
uint8_t u,
uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
YCbCrType  yuv_type 
)

Definition at line 188 of file yuv_rgb.c.

193 {
194  const RGB2YUVParam *const param = &(RGB2YUV[yuv_type]);
195 
196  uint32_t x, y;
197  for(y=0; y<(height-1); y+=2)
198  {
199  const uint8_t *rgb_ptr1=RGB+y*RGB_stride,
200  *rgb_ptr2=RGB+(y+1)*RGB_stride;
201 
202  uint8_t *y_ptr1=Y+y*Y_stride,
203  *y_ptr2=Y+(y+1)*Y_stride,
204  *u_ptr=U+(y/2)*UV_stride,
205  *v_ptr=V+(y/2)*UV_stride;
206 
207  for(x=0; x<(width-1); x+=2)
208  {
209  // compute yuv for the four pixels, u and v values are summed
210  int32_t y_tmp, u_tmp, v_tmp;
211 
212  y_tmp = param->matrix[0][0]*rgb_ptr1[0] + param->matrix[0][1]*rgb_ptr1[1] + param->matrix[0][2]*rgb_ptr1[2];
213  u_tmp = param->matrix[1][0]*rgb_ptr1[0] + param->matrix[1][1]*rgb_ptr1[1] + param->matrix[1][2]*rgb_ptr1[2];
214  v_tmp = param->matrix[2][0]*rgb_ptr1[0] + param->matrix[2][1]*rgb_ptr1[1] + param->matrix[2][2]*rgb_ptr1[2];
215  y_ptr1[0]=clampU8(y_tmp+((param->y_shift)<<PRECISION));
216 
217  y_tmp = param->matrix[0][0]*rgb_ptr1[3] + param->matrix[0][1]*rgb_ptr1[4] + param->matrix[0][2]*rgb_ptr1[5];
218  u_tmp += param->matrix[1][0]*rgb_ptr1[3] + param->matrix[1][1]*rgb_ptr1[4] + param->matrix[1][2]*rgb_ptr1[5];
219  v_tmp += param->matrix[2][0]*rgb_ptr1[3] + param->matrix[2][1]*rgb_ptr1[4] + param->matrix[2][2]*rgb_ptr1[5];
220  y_ptr1[1]=clampU8(y_tmp+((param->y_shift)<<PRECISION));
221 
222  y_tmp = param->matrix[0][0]*rgb_ptr2[0] + param->matrix[0][1]*rgb_ptr2[1] + param->matrix[0][2]*rgb_ptr2[2];
223  u_tmp += param->matrix[1][0]*rgb_ptr2[0] + param->matrix[1][1]*rgb_ptr2[1] + param->matrix[1][2]*rgb_ptr2[2];
224  v_tmp += param->matrix[2][0]*rgb_ptr2[0] + param->matrix[2][1]*rgb_ptr2[1] + param->matrix[2][2]*rgb_ptr2[2];
225  y_ptr2[0]=clampU8(y_tmp+((param->y_shift)<<PRECISION));
226 
227  y_tmp = param->matrix[0][0]*rgb_ptr2[3] + param->matrix[0][1]*rgb_ptr2[4] + param->matrix[0][2]*rgb_ptr2[5];
228  u_tmp += param->matrix[1][0]*rgb_ptr2[3] + param->matrix[1][1]*rgb_ptr2[4] + param->matrix[1][2]*rgb_ptr2[5];
229  v_tmp += param->matrix[2][0]*rgb_ptr2[3] + param->matrix[2][1]*rgb_ptr2[4] + param->matrix[2][2]*rgb_ptr2[5];
230  y_ptr2[1]=clampU8(y_tmp+((param->y_shift)<<PRECISION));
231 
232  u_ptr[0] = clampU8(u_tmp/4+(128<<PRECISION));
233  v_ptr[0] = clampU8(v_tmp/4+(128<<PRECISION));
234 
235  rgb_ptr1 += 6;
236  rgb_ptr2 += 6;
237  y_ptr1 += 2;
238  y_ptr2 += 2;
239  u_ptr += 1;
240  v_ptr += 1;
241  }
242  }
243 }

References clampU8(), PRECISION, RGB, RGB2YUV, V, and Y.

Referenced by SDL_ConvertPixels_RGB_to_YUV().

◆ yuv420_abgr_sse()

void yuv420_abgr_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv420_abgr_sseu()

void yuv420_abgr_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv420_abgr_std()

void yuv420_abgr_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuv420_argb_sse()

void yuv420_argb_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv420_argb_sseu()

void yuv420_argb_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv420_argb_std()

void yuv420_argb_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuv420_bgra_sse()

void yuv420_bgra_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv420_bgra_sseu()

void yuv420_bgra_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv420_bgra_std()

void yuv420_bgra_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuv420_rgb24_sse()

void yuv420_rgb24_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv420_rgb24_sseu()

void yuv420_rgb24_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv420_rgb24_std()

void yuv420_rgb24_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuv420_rgb565_sse()

void yuv420_rgb565_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv420_rgb565_sseu()

void yuv420_rgb565_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv420_rgb565_std()

void yuv420_rgb565_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuv420_rgba_sse()

void yuv420_rgba_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv420_rgba_sseu()

void yuv420_rgba_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv420_rgba_std()

void yuv420_rgba_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuv422_abgr_sse()

void yuv422_abgr_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv422_abgr_sseu()

void yuv422_abgr_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv422_abgr_std()

void yuv422_abgr_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuv422_argb_sse()

void yuv422_argb_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv422_argb_sseu()

void yuv422_argb_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv422_argb_std()

void yuv422_argb_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuv422_bgra_sse()

void yuv422_bgra_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv422_bgra_sseu()

void yuv422_bgra_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv422_bgra_std()

void yuv422_bgra_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuv422_rgb24_sse()

void yuv422_rgb24_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv422_rgb24_sseu()

void yuv422_rgb24_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv422_rgb24_std()

void yuv422_rgb24_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuv422_rgb565_sse()

void yuv422_rgb565_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv422_rgb565_sseu()

void yuv422_rgb565_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv422_rgb565_std()

void yuv422_rgb565_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuv422_rgba_sse()

void yuv422_rgba_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuv422_rgba_sseu()

void yuv422_rgba_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuv422_rgba_std()

void yuv422_rgba_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuvnv12_abgr_sse()

void yuvnv12_abgr_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuvnv12_abgr_sseu()

void yuvnv12_abgr_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuvnv12_abgr_std()

void yuvnv12_abgr_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuvnv12_argb_sse()

void yuvnv12_argb_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuvnv12_argb_sseu()

void yuvnv12_argb_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuvnv12_argb_std()

void yuvnv12_argb_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuvnv12_bgra_sse()

void yuvnv12_bgra_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuvnv12_bgra_sseu()

void yuvnv12_bgra_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuvnv12_bgra_std()

void yuvnv12_bgra_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuvnv12_rgb24_sse()

void yuvnv12_rgb24_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuvnv12_rgb24_sseu()

void yuvnv12_rgb24_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuvnv12_rgb24_std()

void yuvnv12_rgb24_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuvnv12_rgb565_sse()

void yuvnv12_rgb565_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuvnv12_rgb565_sseu()

void yuvnv12_rgb565_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuvnv12_rgb565_std()

void yuvnv12_rgb565_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

◆ yuvnv12_rgba_sse()

void yuvnv12_rgba_sse ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

◆ yuvnv12_rgba_sseu()

void yuvnv12_rgba_sseu ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_sse().

◆ yuvnv12_rgba_std()

void yuvnv12_rgba_std ( uint32_t  width,
uint32_t  height,
const uint8_t y,
const uint8_t u,
const uint8_t v,
uint32_t  y_stride,
uint32_t  uv_stride,
uint8_t rgb,
uint32_t  rgb_stride,
YCbCrType  yuv_type 
)

Referenced by yuv_rgb_std().

clampU8
static uint8_t clampU8(int32_t v)
Definition: yuv_rgb.c:77
width
GLint GLint GLsizei width
Definition: SDL_opengl.h:1572
YCBCR_JPEG
@ YCBCR_JPEG
Definition: yuv_rgb.h:24
RGB
@ RGB
Definition: edid.h:20
RGB2YUV
static const RGB2YUVParam RGB2YUV[3]
Definition: yuv_rgb.c:53
RGB2YUVParam
Definition: yuv_rgb.c:16
V
#define V(value)
Definition: yuv_rgb.c:37
YCBCR_601
@ YCBCR_601
Definition: yuv_rgb.h:25
x
GLint GLint GLint GLint GLint x
Definition: SDL_opengl.h:1574
int32_t
signed int int32_t
Definition: SDL_config_windows.h:62
height
GLint GLint GLsizei GLsizei height
Definition: SDL_opengl.h:1572
YCBCR_709
@ YCBCR_709
Definition: yuv_rgb.h:26
param
GLfloat param
Definition: SDL_opengl_glext.h:373
y
GLint GLint GLint GLint GLint GLint y
Definition: SDL_opengl.h:1574
PRECISION
#define PRECISION
Definition: yuv_rgb.c:12
uint32_t
unsigned int uint32_t
Definition: SDL_config_windows.h:63
uint8_t
unsigned char uint8_t
Definition: SDL_config_windows.h:59
Y
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF base if bpp PF set rept prefetch_distance PF set OFFSET endr endif endm macro preload_leading_step2 base if bpp ifc DST PF PF else if bpp lsl PF PF lsl PF PF lsl PF PF PF else PF lsl PF lsl PF lsl PF endif SIZE macro preload_middle scratch_holds_offset if bpp if else PF PF endif endif endif endm macro preload_trailing base if bpp if bpp *pix_per_block PF PF lsl PF PF PF PF PF else PF lsl PF lsl PF PF PF PF PF base if bpp if narrow_case &&bpp<=dst_w_bpp) PF bic, WK0, base, #31 PF pld,[WK0] PF add, WK1, base, X, LSL #bpp_shift PF sub, WK1, WK1, #1 PF bic, WK1, WK1, #31 PF cmp, WK1, WK0 PF beq, 90f PF pld,[WK1]90:.else PF bic, WK0, base, #31 PF pld,[WK0] PF add, WK1, base, X, lsl #bpp_shift PF sub, WK1, WK1, #1 PF bic, WK1, WK1, #31 PF cmp, WK1, WK0 PF beq, 92f91:PF add, WK0, WK0, #32 PF cmp, WK0, WK1 PF pld,[WK0] PF bne, 91b92:.endif .endif.endm.macro conditional_process1_helper cond, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx process_head cond, numbytes, firstreg, unaligned_src, unaligned_mask, 0 .if decrementx sub &cond X, X, #8 *numbytes/dst_w_bpp .endif process_tail cond, numbytes, firstreg .if !((flags) &FLAG_PROCESS_DOES_STORE) pixst cond, numbytes, firstreg, DST .endif.endm.macro conditional_process1 cond, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx .if(flags) &FLAG_BRANCH_OVER .ifc cond, mi bpl 100f .endif .ifc cond, cs bcc 100f .endif .ifc cond, ne beq 100f .endif conditional_process1_helper, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx100:.else conditional_process1_helper cond, process_head, process_tail, numbytes, firstreg, unaligned_src, unaligned_mask, decrementx .endif.endm.macro conditional_process2 test, cond1, cond2, process_head, process_tail, numbytes1, numbytes2, firstreg1, firstreg2, unaligned_src, unaligned_mask, decrementx .if(flags) &(FLAG_DST_READWRITE|FLAG_BRANCH_OVER|FLAG_PROCESS_CORRUPTS_PSR|FLAG_PROCESS_DOES_STORE) test conditional_process1 cond1, process_head, process_tail, numbytes1, firstreg1, unaligned_src, unaligned_mask, decrementx .if(flags) &FLAG_PROCESS_CORRUPTS_PSR test .endif conditional_process1 cond2, process_head, process_tail, numbytes2, firstreg2, unaligned_src, unaligned_mask, decrementx .else test process_head cond1, numbytes1, firstreg1, unaligned_src, unaligned_mask, 0 process_head cond2, numbytes2, firstreg2, unaligned_src, unaligned_mask, 0 .if decrementx sub &cond1 X, X, #8 *numbytes1/dst_w_bpp sub &cond2 X, X, #8 *numbytes2/dst_w_bpp .endif process_tail cond1, numbytes1, firstreg1 process_tail cond2, numbytes2, firstreg2 pixst cond1, numbytes1, firstreg1, DST pixst cond2, numbytes2, firstreg2, DST .endif.endm.macro test_bits_1_0_ptr .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 movs SCRATCH, X, lsl #32-1 .else movs SCRATCH, WK0, lsl #32-1 .endif.endm.macro test_bits_3_2_ptr .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 movs SCRATCH, X, lsl #32-3 .else movs SCRATCH, WK0, lsl #32-3 .endif.endm.macro leading_15bytes process_head, process_tail .set DECREMENT_X, 1 .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 .set DECREMENT_X, 0 sub X, X, WK0, lsr #dst_bpp_shift str X,[sp, #LINE_SAVED_REG_COUNT *4] mov X, WK0 .endif .if dst_w_bpp==8 conditional_process2 test_bits_1_0_ptr, mi, cs, process_head, process_tail, 1, 2, 1, 2, 1, 1, DECREMENT_X .elseif dst_w_bpp==16 test_bits_1_0_ptr conditional_process1 cs, process_head, process_tail, 2, 2, 1, 1, DECREMENT_X .endif conditional_process2 test_bits_3_2_ptr, mi, cs, process_head, process_tail, 4, 8, 1, 2, 1, 1, DECREMENT_X .if(flags) &FLAG_PROCESS_CORRUPTS_WK0 ldr X,[sp, #LINE_SAVED_REG_COUNT *4] .endif.endm.macro test_bits_3_2_pix movs SCRATCH, X, lsl #dst_bpp_shift+32-3.endm.macro test_bits_1_0_pix .if dst_w_bpp==8 movs SCRATCH, X, lsl #dst_bpp_shift+32-1 .else movs SCRATCH, X, lsr #1 .endif.endm.macro trailing_15bytes process_head, process_tail, unaligned_src, unaligned_mask conditional_process2 test_bits_3_2_pix, cs, mi, process_head, process_tail, 8, 4, 0, 2, unaligned_src, unaligned_mask, 0 .if dst_w_bpp==16 test_bits_1_0_pix conditional_process1 cs, process_head, process_tail, 2, 0, unaligned_src, unaligned_mask, 0 .elseif dst_w_bpp==8 conditional_process2 test_bits_1_0_pix, cs, mi, process_head, process_tail, 2, 1, 0, 1, unaligned_src, unaligned_mask, 0 .endif.endm.macro wide_case_inner_loop process_head, process_tail, unaligned_src, unaligned_mask, dst_alignment110:.set SUBBLOCK, 0 .rept pix_per_block *dst_w_bpp/128 process_head, 16, 0, unaligned_src, unaligned_mask, 1 .if(src_bpp > 0) &&(mask_bpp==0) &&((flags) &FLAG_PROCESS_PRESERVES_SCRATCH) preload_middle src_bpp, SRC, 1 .elseif(src_bpp==0) &&(mask_bpp > 0) &&((flags) &FLAG_PROCESS_PRESERVES_SCRATCH) preload_middle mask_bpp, MASK, 1 .else preload_middle src_bpp, SRC, 0 preload_middle mask_bpp, MASK, 0 .endif .if(dst_r_bpp > 0) &&((SUBBLOCK % 2)==0) &&(((flags) &FLAG_NO_PRELOAD_DST)==0) PF pld,[DST, #32 *prefetch_distance - dst_alignment] .endif process_tail, 16, 0 .if !((flags) &FLAG_PROCESS_DOES_STORE) pixst, 16, 0, DST .endif .set SUBBLOCK, SUBBLOCK+1 .endr subs X, X, #pix_per_block bhs 110b.endm.macro wide_case_inner_loop_and_trailing_pixels process_head, process_tail, process_inner_loop, exit_label, unaligned_src, unaligned_mask .if dst_r_bpp > tst bne process_inner_loop DST_PRELOAD_BIAS endif preload_trailing SRC preload_trailing MASK DST endif add medium_case_inner_loop_and_trailing_pixels unaligned_mask endm macro medium_case_inner_loop_and_trailing_pixels DST endif subs bhs tst beq exit_label trailing_15bytes unaligned_mask endm macro narrow_case_inner_loop_and_trailing_pixels unaligned_mask tst conditional_process1 trailing_15bytes unaligned_mask endm macro switch_on_alignment exit_label if bne endif if bne endif action if endif if bne endif action if endif endif endm macro end_of_line last_one if SINGLE_SCANLINE ifc b endif else if vars_spilled word LINE_SAVED_REGS endif subs Y
Definition: pixman-arm-simd-asm.h:554
YCbCrType
YCbCrType
Definition: yuv_rgb.h:23