Showing the changes to libavdevice/decklink_dec.cpp (1 of 1 file). Show all
Unified · Split
| @@ -310,17 +310,17 @@ HRESULT decklink_input_callback::VideoInputFrameArrived( · 309 unmodified lines | |||
| 310 | 310 | ||
| 311 | if (videoFrame->GetFlags() & bmdFrameHasNoInputSource) { | 311 | if (videoFrame->GetFlags() & bmdFrameHasNoInputSource) { |
| 312 | if (ctx->draw_bars && videoFrame->GetPixelFormat() == bmdFormat8BitYUV) { | 312 | if (ctx->draw_bars && videoFrame->GetPixelFormat() == bmdFormat8BitYUV) { |
| 313 | unsigned bars[8] = { | 313 | unsigned bars[8] = { |
| 314 | 0xEA80EA80, 0xD292D210, 0xA910A9A5, 0x90229035, | 314 | 0xEA80EA80, 0xD292D210, 0xA910A9A5, 0x90229035, |
| 315 | 0x6ADD6ACA, 0x51EF515A, 0x286D28EF, 0x10801080 }; | 315 | 0x6ADD6ACA, 0x51EF515A, 0x286D28EF, 0x10801080 }; |
| 316 | int width = videoFrame->GetWidth(); | 316 | int width = videoFrame->GetWidth(); |
| 317 | int height = videoFrame->GetHeight(); | 317 | int height = videoFrame->GetHeight(); |
| 318 | unsigned *p = (unsigned *)frameBytes; | 318 | unsigned *p = (unsigned *)frameBytes; |
| 319 | 319 | ||
| 320 | for (int y = 0; y < height; y++) { | 320 | for (int y = 0; y < height; y++) { |
| 321 | for (int x = 0; x < width; x += 2) | 321 | for (int x = 0; x < width; x += 2) |
| 322 | *p++ = bars[(x * 8) / width]; | 322 | *p++ = bars[(x * 8) / width]; |
| 323 | } | 323 | } |
| 324 | } | 324 | } |
| 325 | 325 | ||
| 326 | if (!no_video) { | 326 | if (!no_video) { |