mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	Fix bug: brightness and .. are calculated wrong.
This commit is contained in:
		| @@ -1,6 +1,7 @@ | |||||||
| User johns | User johns | ||||||
| Date: | Date: | ||||||
|  |  | ||||||
|  |     Fix bug: brightness and .. are calculated wrong. | ||||||
|     Add automatic frame rate detection for older ffmpeg versions. |     Add automatic frame rate detection for older ffmpeg versions. | ||||||
|     Fix bug: destroyed vdpau surfaces still used in queue. |     Fix bug: destroyed vdpau surfaces still used in queue. | ||||||
|     Fix bug: need signed char, if compiler has unsigned chars. |     Fix bug: need signed char, if compiler has unsigned chars. | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								video.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								video.c
									
									
									
									
									
								
							| @@ -10861,7 +10861,7 @@ void VideoSetBrightness(int brightness) | |||||||
|     // FIXME: test to check if working, than make module function |     // FIXME: test to check if working, than make module function | ||||||
| #ifdef USE_VDPAU | #ifdef USE_VDPAU | ||||||
|     if (VideoUsedModule == &VdpauModule) { |     if (VideoUsedModule == &VdpauModule) { | ||||||
| 	VdpauDecoders[0]->Procamp.brightness = brightness / 1000; | 	VdpauDecoders[0]->Procamp.brightness = (double)brightness / 1000; | ||||||
|     } |     } | ||||||
| #endif | #endif | ||||||
|     // FIXME: VA-API support |     // FIXME: VA-API support | ||||||
| @@ -10879,7 +10879,7 @@ void VideoSetContrast(int contrast) | |||||||
|     // FIXME: test to check if working, than make module function |     // FIXME: test to check if working, than make module function | ||||||
| #ifdef USE_VDPAU | #ifdef USE_VDPAU | ||||||
|     if (VideoUsedModule == &VdpauModule) { |     if (VideoUsedModule == &VdpauModule) { | ||||||
| 	VdpauDecoders[0]->Procamp.contrast = contrast / 1000; | 	VdpauDecoders[0]->Procamp.contrast = (double)contrast / 1000; | ||||||
|     } |     } | ||||||
| #endif | #endif | ||||||
|     // FIXME: VA-API support |     // FIXME: VA-API support | ||||||
| @@ -10897,7 +10897,7 @@ void VideoSetSaturation(int saturation) | |||||||
|     // FIXME: test to check if working, than make module function |     // FIXME: test to check if working, than make module function | ||||||
| #ifdef USE_VDPAU | #ifdef USE_VDPAU | ||||||
|     if (VideoUsedModule == &VdpauModule) { |     if (VideoUsedModule == &VdpauModule) { | ||||||
| 	VdpauDecoders[0]->Procamp.saturation = saturation / 1000; | 	VdpauDecoders[0]->Procamp.saturation = (double)saturation / 1000; | ||||||
|     } |     } | ||||||
| #endif | #endif | ||||||
|     // FIXME: VA-API support |     // FIXME: VA-API support | ||||||
| @@ -10915,7 +10915,7 @@ void VideoSetHue(int hue) | |||||||
|     // FIXME: test to check if working, than make module function |     // FIXME: test to check if working, than make module function | ||||||
| #ifdef USE_VDPAU | #ifdef USE_VDPAU | ||||||
|     if (VideoUsedModule == &VdpauModule) { |     if (VideoUsedModule == &VdpauModule) { | ||||||
| 	VdpauDecoders[0]->Procamp.hue = hue / 1000; | 	VdpauDecoders[0]->Procamp.hue = (double)hue / 1000; | ||||||
|     } |     } | ||||||
| #endif | #endif | ||||||
|     // FIXME: VA-API support |     // FIXME: VA-API support | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user