Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 298854 Details for
Bug 438605
PATCH: stop pwlib from causing crash when rescaling bayer v4l data to yuv420
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
PATCH: stop pwlib from causing crash when rescaling bayer v4l data to yuv420
pwlib-1.10.10-rescale-bayer.patch (text/plain), 1.36 KB, created by
Hans de Goede
on 2008-03-22 18:53:39 UTC
(
hide
)
Description:
PATCH: stop pwlib from causing crash when rescaling bayer v4l data to yuv420
Filename:
MIME Type:
Creator:
Hans de Goede
Created:
2008-03-22 18:53:39 UTC
Size:
1.36 KB
patch
obsolete
>diff -up pwlib-1.10.10/src/ptlib/common/vconvert.cxx.rescale pwlib-1.10.10/src/ptlib/common/vconvert.cxx >--- pwlib-1.10.10/src/ptlib/common/vconvert.cxx.rescale 2007-06-18 21:23:27.000000000 +0200 >+++ pwlib-1.10.10/src/ptlib/common/vconvert.cxx 2008-03-22 19:22:15.000000000 +0100 >@@ -1384,7 +1384,8 @@ BOOL PStandardColourConverter::SBGGR8toY > #define USE_SBGGR8_NATIVE 1 // set to 0 to use the double conversion algorithm (Bayer->RGB->YUV420P) > > #if USE_SBGGR8_NATIVE >- >+if ((srcFrameWidth == dstFrameWidth) && (srcFrameHeight == dstFrameHeight)) >+{ > // kernels for Y conversion, normalised by 2^16 > const int kR[]={1802,9667,1802,9667,19661,9667,1802,9667,1802}; > const int kG1[]={7733,9830,7733,3604,7733,3604,7733,9830,7733}; >@@ -1467,17 +1468,17 @@ BOOL PStandardColourConverter::SBGGR8toY > *bytesReturned = srcFrameHeight*srcFrameWidth+2*hSize*vSize; > > return true; >- >-#else //USE_SBGGR8_NATIVE >- >+} >+else >+#endif //USE_SBGGR8_NATIVE >+{ > // shortest but less efficient (one malloc per conversion!) > BYTE * tempDest=(BYTE*)malloc(3*srcFrameWidth*srcFrameHeight); > SBGGR8toRGB(src, tempDest, NULL); >- BOOL r = RGBtoYUV420P(tempDest, dst, bytesReturned, 3, 2, 0); >+ BOOL r = RGBtoYUV420P(tempDest, dst, bytesReturned, 3, 0, 2); > free(tempDest); > return r; >- >-#endif //USE_SBGGR8_NATIVE >+} > } > > BOOL PStandardColourConverter::SBGGR8toRGB(const BYTE * src,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 438605
: 298854