History

swscale/input: add Y216LE input support

James Almer committed 2 years ago

Commit 7756cd91 parent f462ba02 files · +8 −0Browse files

Unified · Split

2 files
  1. libswscale/input.c +7 −0
  2. libswscale/utils.c +1 −0
libswscale/input.c+7−0
@@ -601,6 +601,7 @@ static void yvy2ToUV_c(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, con · 600 unmodified lines
601 601
602y21xle_wrapper(10, 6)602y21xle_wrapper(10, 6)
603y21xle_wrapper(12, 4)603y21xle_wrapper(12, 4)
604y21xle_wrapper(16, 0)
604 605
605static void bswap16Y_c(uint8_t *_dst, const uint8_t *_src, const uint8_t *unused1, const uint8_t *unused2, int width,606static void bswap16Y_c(uint8_t *_dst, const uint8_t *_src, const uint8_t *unused1, const uint8_t *unused2, int width,
606 uint32_t *unused, void *opq)607 uint32_t *unused, void *opq)
@@ -1757,6 +1758,9 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c, · 1150 unmodified lines
1757 case AV_PIX_FMT_Y212LE:1758 case AV_PIX_FMT_Y212LE:
1758 *chrToYV12 = y212le_UV_c;1759 *chrToYV12 = y212le_UV_c;
1759 break;1760 break;
1761 case AV_PIX_FMT_Y216LE:
1762 *chrToYV12 = y216le_UV_c;
1763 break;
1760 case AV_PIX_FMT_RGBF32LE:1764 case AV_PIX_FMT_RGBF32LE:
1761 *chrToYV12 = rgbf32le_to_uv_c;1765 *chrToYV12 = rgbf32le_to_uv_c;
1762 break;1766 break;
@@ -2287,6 +2291,9 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c, · 524 unmodified lines
2287 case AV_PIX_FMT_Y212LE:2291 case AV_PIX_FMT_Y212LE:
2288 *lumToYV12 = y212le_Y_c;2292 *lumToYV12 = y212le_Y_c;
2289 break;2293 break;
2294 case AV_PIX_FMT_Y216LE:
2295 *lumToYV12 = y216le_Y_c;
2296 break;
2290 case AV_PIX_FMT_X2RGB10LE:2297 case AV_PIX_FMT_X2RGB10LE:
2291 *lumToYV12 = rgb30leToY_c;2298 *lumToYV12 = rgb30leToY_c;
2292 break;2299 break;
libswscale/utils.c+1−0
@@ -248,6 +248,7 @@ static const FormatEntry format_entries[] = { · 247 unmodified lines
248 [AV_PIX_FMT_NV42] = { 1, 1 },248 [AV_PIX_FMT_NV42] = { 1, 1 },
249 [AV_PIX_FMT_Y210LE] = { 1, 1 },249 [AV_PIX_FMT_Y210LE] = { 1, 1 },
250 [AV_PIX_FMT_Y212LE] = { 1, 1 },250 [AV_PIX_FMT_Y212LE] = { 1, 1 },
251 [AV_PIX_FMT_Y216LE] = { 1, 0 },
251 [AV_PIX_FMT_X2RGB10LE] = { 1, 1 },252 [AV_PIX_FMT_X2RGB10LE] = { 1, 1 },
252 [AV_PIX_FMT_X2BGR10LE] = { 1, 1 },253 [AV_PIX_FMT_X2BGR10LE] = { 1, 1 },
253 [AV_PIX_FMT_P210BE] = { 1, 1 },254 [AV_PIX_FMT_P210BE] = { 1, 1 },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t