mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
swscale/rgb2rgb: Don't cast const away
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
41e5555a00
commit
da668fa7d2
@ -317,7 +317,7 @@ void rgb15tobgr15(const uint8_t *src, uint8_t *dst, int src_size)
|
||||
void rgb12tobgr12(const uint8_t *src, uint8_t *dst, int src_size)
|
||||
{
|
||||
uint16_t *d = (uint16_t *)dst;
|
||||
uint16_t *s = (uint16_t *)src;
|
||||
const uint16_t *s = (const uint16_t *)src;
|
||||
int i, num_pixels = src_size >> 1;
|
||||
|
||||
for (i = 0; i < num_pixels; i++) {
|
||||
@ -331,7 +331,7 @@ void rgb48tobgr48_ ## need_bswap(const uint8_t *src, \
|
||||
uint8_t *dst, int src_size) \
|
||||
{ \
|
||||
uint16_t *d = (uint16_t *)dst; \
|
||||
uint16_t *s = (uint16_t *)src; \
|
||||
const uint16_t *s = (const uint16_t *)src; \
|
||||
int i, num_pixels = src_size >> 1; \
|
||||
\
|
||||
for (i = 0; i < num_pixels; i += 3) { \
|
||||
@ -349,7 +349,7 @@ void rgb64tobgr48_ ## need_bswap(const uint8_t *src, \
|
||||
uint8_t *dst, int src_size) \
|
||||
{ \
|
||||
uint16_t *d = (uint16_t *)dst; \
|
||||
uint16_t *s = (uint16_t *)src; \
|
||||
const uint16_t *s = (const uint16_t *)src; \
|
||||
int i, num_pixels = src_size >> 3; \
|
||||
\
|
||||
for (i = 0; i < num_pixels; i++) { \
|
||||
@ -367,7 +367,7 @@ void rgb64to48_ ## need_bswap(const uint8_t *src, \
|
||||
uint8_t *dst, int src_size) \
|
||||
{ \
|
||||
uint16_t *d = (uint16_t *)dst; \
|
||||
uint16_t *s = (uint16_t *)src; \
|
||||
const uint16_t *s = (const uint16_t *)src; \
|
||||
int i, num_pixels = src_size >> 3; \
|
||||
\
|
||||
for (i = 0; i < num_pixels; i++) { \
|
||||
@ -385,7 +385,7 @@ void rgb48tobgr64_ ## need_bswap(const uint8_t *src, \
|
||||
uint8_t *dst, int src_size) \
|
||||
{ \
|
||||
uint16_t *d = (uint16_t *)dst; \
|
||||
uint16_t *s = (uint16_t *)src; \
|
||||
const uint16_t *s = (const uint16_t *)src; \
|
||||
int i, num_pixels = src_size / 6; \
|
||||
\
|
||||
for (i = 0; i < num_pixels; i++) { \
|
||||
@ -404,7 +404,7 @@ void rgb48to64_ ## need_bswap(const uint8_t *src, \
|
||||
uint8_t *dst, int src_size) \
|
||||
{ \
|
||||
uint16_t *d = (uint16_t *)dst; \
|
||||
uint16_t *s = (uint16_t *)src; \
|
||||
const uint16_t *s = (const uint16_t *)src; \
|
||||
int i, num_pixels = src_size / 6; \
|
||||
\
|
||||
for (i = 0; i < num_pixels; i++) { \
|
||||
|
Loading…
Reference in New Issue
Block a user