MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / toggle_audio_display

Function toggle_audio_display

ffplay.c:2774–2784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2772}
2773
2774static void toggle_audio_display(void)
2775{
2776 if (cur_stream) {
2777 int bgcolor = SDL_MapRGB(screen->format, 0x00, 0x00, 0x00);
2778 cur_stream->show_audio = (cur_stream->show_audio + 1) % 3;
2779 fill_rectangle(screen,
2780 cur_stream->xleft, cur_stream->ytop, cur_stream->width, cur_stream->height,
2781 bgcolor);
2782 SDL_UpdateRect(screen, cur_stream->xleft, cur_stream->ytop, cur_stream->width, cur_stream->height);
2783 }
2784}
2785
2786/* handle an event sent by the GUI */
2787static void event_loop(void)

Callers 1

event_loopFunction · 0.85

Calls 1

fill_rectangleFunction · 0.70

Tested by

no test coverage detected