| @@ -665,6 +665,13 @@ static void read_ayuv64le_Y_c(uint8_t *dst, const uint8_t *src, const uint8_t *u · 664 unmodified lines |
| 665 | AV_WN16(dst + i * 2, AV_RL16(src + i * 8 + 2)); | 665 | AV_WN16(dst + i * 2, AV_RL16(src + i * 8 + 2)); |
| 666 | } | 666 | } |
| 667 | | 667 | |
| | 668 | static void read_ayuv64be_Y_c(uint8_t *dst, const uint8_t *src, const uint8_t *unused0, const uint8_t *unused1, int width, |
| | 669 | uint32_t *unused2, void *opq) |
| | 670 | { |
| | 671 | int i; |
| | 672 | for (i = 0; i < width; i++) |
| | 673 | AV_WN16(dst + i * 2, AV_RB16(src + i * 8 + 2)); |
| | 674 | } |
| 668 | | 675 | |
| 669 | static void read_ayuv64le_UV_c(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src, | 676 | static void read_ayuv64le_UV_c(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src, |
| 670 | const uint8_t *unused1, int width, uint32_t *unused2, void *opq) | 677 | const uint8_t *unused1, int width, uint32_t *unused2, void *opq) |
| @@ -676,6 +683,16 @@ static void read_ayuv64le_UV_c(uint8_t *dstU, uint8_t *dstV, const uint8_t *unus · 5 unmodified lines |
| 676 | } | 683 | } |
| 677 | } | 684 | } |
| 678 | | 685 | |
| | 686 | static void read_ayuv64be_UV_c(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src, |
| | 687 | const uint8_t *unused1, int width, uint32_t *unused2, void *opq) |
| | 688 | { |
| | 689 | int i; |
| | 690 | for (i = 0; i < width; i++) { |
| | 691 | AV_WN16(dstU + i * 2, AV_RB16(src + i * 8 + 4)); |
| | 692 | AV_WN16(dstV + i * 2, AV_RB16(src + i * 8 + 6)); |
| | 693 | } |
| | 694 | } |
| | 695 | |
| 679 | static void read_ayuv64le_A_c(uint8_t *dst, const uint8_t *src, const uint8_t *unused0, const uint8_t *unused1, int width, | 696 | static void read_ayuv64le_A_c(uint8_t *dst, const uint8_t *src, const uint8_t *unused0, const uint8_t *unused1, int width, |
| 680 | uint32_t *unused2, void *opq) | 697 | uint32_t *unused2, void *opq) |
| 681 | { | 698 | { |
| @@ -684,6 +701,14 @@ static void read_ayuv64le_A_c(uint8_t *dst, const uint8_t *src, const uint8_t *u · 2 unmodified lines |
| 684 | AV_WN16(dst + i * 2, AV_RL16(src + i * 8)); | 701 | AV_WN16(dst + i * 2, AV_RL16(src + i * 8)); |
| 685 | } | 702 | } |
| 686 | | 703 | |
| | 704 | static void read_ayuv64be_A_c(uint8_t *dst, const uint8_t *src, const uint8_t *unused0, const uint8_t *unused1, int width, |
| | 705 | uint32_t *unused2, void *opq) |
| | 706 | { |
| | 707 | int i; |
| | 708 | for (i = 0; i < width; i++) |
| | 709 | AV_WN16(dst + i * 2, AV_RB16(src + i * 8)); |
| | 710 | } |
| | 711 | |
| 687 | static void read_vuyx_UV_c(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src, | 712 | static void read_vuyx_UV_c(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src, |
| 688 | const uint8_t *unused1, int width, uint32_t *unused2, void *opq) | 713 | const uint8_t *unused1, int width, uint32_t *unused2, void *opq) |
| 689 | { | 714 | { |
| @@ -1684,6 +1709,9 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c, · 994 unmodified lines |
| 1684 | case AV_PIX_FMT_AYUV64LE: | 1709 | case AV_PIX_FMT_AYUV64LE: |
| 1685 | *chrToYV12 = read_ayuv64le_UV_c; | 1710 | *chrToYV12 = read_ayuv64le_UV_c; |
| 1686 | break; | 1711 | break; |
| | 1712 | case AV_PIX_FMT_AYUV64BE: |
| | 1713 | *chrToYV12 = read_ayuv64be_UV_c; |
| | 1714 | break; |
| 1687 | case AV_PIX_FMT_UYVA: | 1715 | case AV_PIX_FMT_UYVA: |
| 1688 | *chrToYV12 = read_uyva_UV_c; | 1716 | *chrToYV12 = read_uyva_UV_c; |
| 1689 | break; | 1717 | break; |
| @@ -2116,6 +2144,9 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c, · 426 unmodified lines |
| 2116 | case AV_PIX_FMT_AYUV64LE: | 2144 | case AV_PIX_FMT_AYUV64LE: |
| 2117 | *lumToYV12 = read_ayuv64le_Y_c; | 2145 | *lumToYV12 = read_ayuv64le_Y_c; |
| 2118 | break; | 2146 | break; |
| | 2147 | case AV_PIX_FMT_AYUV64BE: |
| | 2148 | *lumToYV12 = read_ayuv64be_Y_c; |
| | 2149 | break; |
| 2119 | case AV_PIX_FMT_XV36LE: | 2150 | case AV_PIX_FMT_XV36LE: |
| 2120 | *lumToYV12 = read_xv36le_Y_c; | 2151 | *lumToYV12 = read_xv36le_Y_c; |
| 2121 | break; | 2152 | break; |
| @@ -2324,6 +2355,9 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c, · 202 unmodified lines |
| 2324 | case AV_PIX_FMT_AYUV64LE: | 2355 | case AV_PIX_FMT_AYUV64LE: |
| 2325 | *alpToYV12 = read_ayuv64le_A_c; | 2356 | *alpToYV12 = read_ayuv64le_A_c; |
| 2326 | break; | 2357 | break; |
| | 2358 | case AV_PIX_FMT_AYUV64BE: |
| | 2359 | *alpToYV12 = read_ayuv64be_A_c; |
| | 2360 | break; |
| 2327 | case AV_PIX_FMT_PAL8 : | 2361 | case AV_PIX_FMT_PAL8 : |
| 2328 | *alpToYV12 = palToA_c; | 2362 | *alpToYV12 = palToA_c; |
| 2329 | break; | 2363 | break; |