History

Use the correct pix_fmt for 32bit x11grab.

Remove adding a constant value to each pixel to make it opaque.

Carl Eugen Hoyos committed 14 years ago

Commit de05e411 parent b8b77ab1 file · +1 −3Browse files

Unified · Split

libavdevice/x11grab.c+1−3
@@ -295,7 +295,7 @@ x11grab_read_header(AVFormatContext *s1) · 294 unmodified lines
295 }295 }
296 break;296 break;
297 case 32:297 case 32:
298 input_pixfmt = PIX_FMT_RGB32;298 input_pixfmt = PIX_FMT_0RGB32;
299 break;299 break;
300 default:300 default:
301 av_log(s1, AV_LOG_ERROR, "image depth %i not supported ... aborting\n", image->bits_per_pixel);301 av_log(s1, AV_LOG_ERROR, "image depth %i not supported ... aborting\n", image->bits_per_pixel);
@@ -539,8 +539,6 @@ x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt) · 237 unmodified lines
539 av_log (s1, AV_LOG_INFO, "XGetZPixmap() failed\n");539 av_log (s1, AV_LOG_INFO, "XGetZPixmap() failed\n");
540 }540 }
541 }541 }
542 if (image->bits_per_pixel == 32)
543 XAddPixel(image, 0xFF000000);
544 542
545 if (s->draw_mouse) {543 if (s->draw_mouse) {
546 paint_mouse_pointer(image, s);544 paint_mouse_pointer(image, s);

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