|
|
@ -2397,7 +2397,7 @@ static void RENAME(yuyvtoyuv420)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, co |
|
|
|
int lumStride, int chromStride, int srcStride) |
|
|
|
int lumStride, int chromStride, int srcStride) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int y; |
|
|
|
int y; |
|
|
|
const int chromWidth= -((-width)>>1); |
|
|
|
const int chromWidth = AV_CEIL_RSHIFT(width, 1); |
|
|
|
|
|
|
|
|
|
|
|
for (y=0; y<height; y++) { |
|
|
|
for (y=0; y<height; y++) { |
|
|
|
RENAME(extract_even)(src, ydst, width); |
|
|
|
RENAME(extract_even)(src, ydst, width); |
|
|
@ -2423,7 +2423,7 @@ static void RENAME(yuyvtoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, co |
|
|
|
int lumStride, int chromStride, int srcStride) |
|
|
|
int lumStride, int chromStride, int srcStride) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int y; |
|
|
|
int y; |
|
|
|
const int chromWidth= -((-width)>>1); |
|
|
|
const int chromWidth = AV_CEIL_RSHIFT(width, 1); |
|
|
|
|
|
|
|
|
|
|
|
for (y=0; y<height; y++) { |
|
|
|
for (y=0; y<height; y++) { |
|
|
|
RENAME(extract_even)(src, ydst, width); |
|
|
|
RENAME(extract_even)(src, ydst, width); |
|
|
@ -2447,7 +2447,7 @@ static void RENAME(uyvytoyuv420)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, co |
|
|
|
int lumStride, int chromStride, int srcStride) |
|
|
|
int lumStride, int chromStride, int srcStride) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int y; |
|
|
|
int y; |
|
|
|
const int chromWidth= -((-width)>>1); |
|
|
|
const int chromWidth = AV_CEIL_RSHIFT(width, 1); |
|
|
|
|
|
|
|
|
|
|
|
for (y=0; y<height; y++) { |
|
|
|
for (y=0; y<height; y++) { |
|
|
|
RENAME(extract_even)(src+1, ydst, width); |
|
|
|
RENAME(extract_even)(src+1, ydst, width); |
|
|
@ -2473,7 +2473,7 @@ static void RENAME(uyvytoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, co |
|
|
|
int lumStride, int chromStride, int srcStride) |
|
|
|
int lumStride, int chromStride, int srcStride) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int y; |
|
|
|
int y; |
|
|
|
const int chromWidth= -((-width)>>1); |
|
|
|
const int chromWidth = AV_CEIL_RSHIFT(width, 1); |
|
|
|
|
|
|
|
|
|
|
|
for (y=0; y<height; y++) { |
|
|
|
for (y=0; y<height; y++) { |
|
|
|
RENAME(extract_even)(src+1, ydst, width); |
|
|
|
RENAME(extract_even)(src+1, ydst, width); |
|
|
|