29 #if defined(__FDPIC__) && CONFIG_SRAM
30 #define L1CODE __attribute__((l1_text))
56 c->oc = 128 * 0x01010101
U;
57 c->oy = oy * 0x01010101
U;
76 c->rmask = 0x001f * 0x00010001
U;
77 c->gmask = 0x03e0 * 0x00010001
U;
78 c->bmask = 0x7c00 * 0x00010001
U;
79 }
else if (masks == 565) {
80 c->rmask = 0x001f * 0x00010001
U;
81 c->gmask = 0x07e0 * 0x00010001
U;
82 c->bmask = 0xf800 * 0x00010001
U;
87 int srcSliceY,
int srcSliceH,
uint8_t **oplanes,
94 int h2 = srcSliceH >> 1;
100 pu = in[1 + (1 ^ rgb)];
101 pv = in[1 + (0 ^ rgb)];
103 op = oplanes[0] + srcSliceY * outstrides[0];
105 for (i = 0; i < h2; i++) {
106 lcscf(py, pu, pv, op, w, &c->oy);
111 lcscf(py, pu, pv, op, w, &c->oy);
123 int srcSliceY,
int srcSliceH,
124 uint8_t **oplanes,
int *outstrides)
126 return core_yuv420_rgb(c, in, instrides, srcSliceY, srcSliceH, oplanes,
131 int srcSliceY,
int srcSliceH,
132 uint8_t **oplanes,
int *outstrides)
134 return core_yuv420_rgb(c, in, instrides, srcSliceY, srcSliceH, oplanes,
139 int srcSliceY,
int srcSliceH,
140 uint8_t **oplanes,
int *outstrides)
142 return core_yuv420_rgb(c, in, instrides, srcSliceY, srcSliceH, oplanes,
147 int srcSliceY,
int srcSliceH,
148 uint8_t **oplanes,
int *outstrides)
150 return core_yuv420_rgb(c, in, instrides, srcSliceY, srcSliceH, oplanes,
155 int srcSliceY,
int srcSliceH,
156 uint8_t **oplanes,
int *outstrides)
158 return core_yuv420_rgb(c, in, instrides, srcSliceY, srcSliceH, oplanes,
163 int srcSliceY,
int srcSliceH,
164 uint8_t **oplanes,
int *outstrides)
166 return core_yuv420_rgb(c, in, instrides, srcSliceY, srcSliceH, oplanes,
const char * sws_format_name(enum AVPixelFormat format)
#define AV_PIX_FMT_BGR565
static const int16_t coeffs[28]
static int core_yuv420_rgb(SwsContext *c, const uint8_t **in, int *instrides, int srcSliceY, int srcSliceH, uint8_t **oplanes, int *outstrides, ltransform lcscf, int rgb, int masks)
packed RGB 8:8:8, 24bpp, RGBRGB...
#define AV_PIX_FMT_BGR555
#define AV_PIX_FMT_RGB555
static int bfin_yuv420_rgb24(SwsContext *c, const uint8_t **in, int *instrides, int srcSliceY, int srcSliceH, uint8_t **oplanes, int *outstrides)
enum AVPixelFormat dstFormat
Destination pixel format.
#define AV_PIX_FMT_RGB565
void av_log(void *avcl, int level, const char *fmt,...)
static int bfin_yuv420_rgb565(SwsContext *c, const uint8_t **in, int *instrides, int srcSliceY, int srcSliceH, uint8_t **oplanes, int *outstrides)
void ff_bfin_yuv2rgb555_line(const uint8_t *Y, const uint8_t *U, const uint8_t *V, uint8_t *out, int w, uint32_t *coeffs) L1CODE
static int bfin_yuv420_bgr555(SwsContext *c, const uint8_t **in, int *instrides, int srcSliceY, int srcSliceH, uint8_t **oplanes, int *outstrides)
static void bfin_prepare_coefficients(SwsContext *c, int rgb, int masks)
packed RGB 8:8:8, 24bpp, BGRBGR...
void ff_bfin_yuv2rgb24_line(const uint8_t *Y, const uint8_t *U, const uint8_t *V, uint8_t *out, int w, uint32_t *coeffs) L1CODE
SwsFunc ff_yuv2rgb_get_func_ptr_bfin(SwsContext *c)
static int bfin_yuv420_rgb555(SwsContext *c, const uint8_t **in, int *instrides, int srcSliceY, int srcSliceH, uint8_t **oplanes, int *outstrides)
static void(WINAPI *cond_broadcast)(pthread_cond_t *cond)
int(* SwsFunc)(struct SwsContext *context, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
void ff_bfin_yuv2rgb565_line(const uint8_t *Y, const uint8_t *U, const uint8_t *V, uint8_t *out, int w, uint32_t *coeffs) L1CODE
static int op(uint8_t **dst, const uint8_t *dst_end, GetByteContext *gb, int pixel, int count, int *x, int width, int linesize)
Perform decode operation.
void(* ltransform)(const uint8_t *Y, const uint8_t *U, const uint8_t *V, uint8_t *out, int w, uint32_t *coeffs)
static int bfin_yuv420_bgr565(SwsContext *c, const uint8_t **in, int *instrides, int srcSliceY, int srcSliceH, uint8_t **oplanes, int *outstrides)
static int bfin_yuv420_bgr24(SwsContext *c, const uint8_t **in, int *instrides, int srcSliceY, int srcSliceH, uint8_t **oplanes, int *outstrides)