Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC set Control color question Pin
econy17-Mar-14 1:58
econy17-Mar-14 1:58 
GeneralRe: MFC set Control color question Pin
CPallini17-Mar-14 2:52
mveCPallini17-Mar-14 2:52 
QuestionCompiling DLL - what is the sequence of compilation? SOLVED Pin
Vaclav_16-Mar-14 8:53
Vaclav_16-Mar-14 8:53 
AnswerRe: Compiling DLL - what is the sequence of compilation? Pin
Richard MacCutchan16-Mar-14 23:11
mveRichard MacCutchan16-Mar-14 23:11 
GeneralRe: Compiling DLL - what is the sequence of compilation? Pin
Vaclav_17-Mar-14 3:47
Vaclav_17-Mar-14 3:47 
GeneralRe: Compiling DLL - what is the sequence of compilation? Pin
Gisle Vanem17-Mar-14 4:00
Gisle Vanem17-Mar-14 4:00 
GeneralRe: Compiling DLL - what is the sequence of compilation? Pin
Richard MacCutchan17-Mar-14 4:16
mveRichard MacCutchan17-Mar-14 4:16 
GeneralRe: Compiling DLL - what is the sequence of compilation? Pin
Vaclav_17-Mar-14 7:42
Vaclav_17-Mar-14 7:42 
GeneralRe: Compiling DLL - what is the sequence of compilation? Pin
Richard MacCutchan17-Mar-14 7:54
mveRichard MacCutchan17-Mar-14 7:54 
QuestionDrawText() blinking problem Pin
econy15-Mar-14 1:36
econy15-Mar-14 1:36 
AnswerRe: DrawText() blinking problem Pin
PJ Arends15-Mar-14 6:07
professionalPJ Arends15-Mar-14 6:07 
GeneralRe: DrawText() blinking problem Pin
econy15-Mar-14 6:33
econy15-Mar-14 6:33 
AnswerRe: DrawText() blinking problem Pin
Richard MacCutchan15-Mar-14 6:39
mveRichard MacCutchan15-Mar-14 6:39 
GeneralRe: DrawText() blinking problem Pin
econy15-Mar-14 6:44
econy15-Mar-14 6:44 
GeneralRe: DrawText() blinking problem Pin
Richard MacCutchan15-Mar-14 6:54
mveRichard MacCutchan15-Mar-14 6:54 
GeneralRe: DrawText() blinking problem Pin
econy15-Mar-14 6:54
econy15-Mar-14 6:54 
GeneralRe: DrawText() blinking problem Pin
Richard MacCutchan15-Mar-14 6:56
mveRichard MacCutchan15-Mar-14 6:56 
GeneralRe: DrawText() blinking problem Pin
econy15-Mar-14 7:24
econy15-Mar-14 7:24 
GeneralRe: DrawText() blinking problem Pin
Richard MacCutchan15-Mar-14 7:39
mveRichard MacCutchan15-Mar-14 7:39 
GeneralRe: DrawText() blinking problem Pin
econy15-Mar-14 8:00
econy15-Mar-14 8:00 
QuestionWhat this function does? Pin
Django_Untaken14-Mar-14 19:56
Django_Untaken14-Mar-14 19:56 
Hello Audio/Video Gurus. I don't seem to understand what following does. Here is the function.
void TransformImage_YUY2( BYTE* pDest,
    LONG  lDestStride,
    const BYTE* pSrc,
    LONG  lSrcStride,
    DWORD dwWidthInPixels,
    DWORD dwHeightInPixels)
{
    for (DWORD y = 0; y < dwHeightInPixels; y++)
    {
        RGBQUAD *pDestPel = (RGBQUAD*)pDest;
        WORD    *pSrcPel = (WORD*)pSrc;

        for (DWORD x = 0; x < dwWidthInPixels; x += 2)
        {
            // Byte order is U0 Y0 V0 Y1

            int y0 = (int)LOBYTE(pSrcPel[x]); 
            int u0 = (int)HIBYTE(pSrcPel[x]);
            int y1 = (int)LOBYTE(pSrcPel[x + 1]);
            int v0 = (int)HIBYTE(pSrcPel[x + 1]);

            pDestPel[x] = ConvertYCrCbToRGB(y0, v0, u0);
            pDestPel[x + 1] = ConvertYCrCbToRGB(y1, v0, u0);
        }

        pSrc += lSrcStride;
        pDest += lDestStride;
    }

}

So, whether above function converts YUV to RGB32 or vice versa. Thanks for your input.
AnswerRe: What this function does? Pin
Jochen Arndt14-Mar-14 23:42
professionalJochen Arndt14-Mar-14 23:42 
Question"Shift+Delete" and "Ctrl+X" Pin
Member 802179614-Mar-14 11:41
Member 802179614-Mar-14 11:41 
AnswerRe: "Shift+Delete" and "Ctrl+X" Pin
Richard MacCutchan15-Mar-14 0:51
mveRichard MacCutchan15-Mar-14 0:51 
GeneralRe: "Shift+Delete" and "Ctrl+X" Pin
Member 802179617-Mar-14 6:25
Member 802179617-Mar-14 6:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.