TRVCAmMultView different behavior on x32 and x64

RVMedia support and discussion (components for displaying and controlling IP cameras, webcams, video conferencing, video chats, recording audio and video files)
Post Reply
medreis
Posts: 2
Joined: Wed Nov 14, 2018 11:28 am

TRVCAmMultView different behavior on x32 and x64

Post by medreis »

Hi Sergey,

Using the example FFMpeg on x32 it works correctly.

However, when using the same example in x64, the divisions are incorrect and the Videos too.

Is this problem in the example or in the TRVCamMulview component?
Attachments
Compilado x64
Compilado x64
x64.jpg (55.63 KiB) Viewed 11293 times
Compilado x32
Compilado x32
x32.jpg (53.61 KiB) Viewed 11293 times
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: TRVCAmMultView different behavior on x32 and x64

Post by Sergey Tkachenko »

Probably, it is a problem related to a high DPI display mode, I'll check it tomorrow.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: TRVCAmMultView different behavior on x32 and x64

Post by Sergey Tkachenko »

Yes, the problem is in high-DPI display mode.
In the original 32-bit project, in Appearance | Manifest project options, DPI awareness = None, so the application works in 96 DPI even on high-DPI displays. You can see, text is blurred in the application window, because it is scaled by the system.
When you added a 64-bit platform, it received the option DPI awareness = Per Monitor v2.
And this demo does not take into account, that sizes and positions of viewers in CamMultiView.Viewers[] are measured in pixels at 96 DPI.
So, in this demo, in procedure TfrmMain.MakeGrid(nX, nY: Integer), instead of

Code: Select all

    w := rvcmv.ClientWidth div nX;
    h := rvcmv.ClientHeight div nY;
must be:

Code: Select all

    w := RVConvertTo96DPI(rvcmv.ClientWidth div nX, rvcmv);
    h := RVConvertTo96DPI(rvcmv.ClientHeight div nY, rvcmv);
where RVConvertTo96DPI is defined in MRVCore unit.

But, unfortunately, this change is not enough, some corrections are needed in RVMedia code as well.
I'll try to upload a fixed version of RVMedia ASAP, today or tomorrow.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: TRVCAmMultView different behavior on x32 and x64

Post by Sergey Tkachenko »

Fixed in RVMedia 8.1
Post Reply