I added WaitWindowEvent() inside the main loop.
500 ms and it was no longer laboring, but I can't have video at 2 frames per second. I can delay it no more than about 29 ms and it still labors.
I commented out all the "Plot" commands. Didn't make much difference.
I understand Intel CPU's run hot ...
Search found 768 matches
- Mon Dec 18, 2023 9:16 pm
- Forum: Coding Questions
- Topic: Big Webcam Project: Computer is Laboring
- Replies: 12
- Views: 1791
- Mon Dec 18, 2023 4:15 am
- Forum: Coding Questions
- Topic: Big Webcam Project: Computer is Laboring
- Replies: 12
- Views: 1791
Re: Big Webcam Project: Computer is Laboring
I added this to my main loop:
event = WaitWindowEvent(29)
It didn't help very much. CPU consumption dropped by about 1%, from 18% to 17%.
Note that the delay can't be longer than about 33 ms in order to make the desired 30 fps frame rate.
My CPU is an Intel Core i7, apparently not powerful ...
event = WaitWindowEvent(29)
It didn't help very much. CPU consumption dropped by about 1%, from 18% to 17%.
Note that the delay can't be longer than about 33 ms in order to make the desired 30 fps frame rate.
My CPU is an Intel Core i7, apparently not powerful ...
- Sun Dec 17, 2023 8:16 pm
- Forum: Coding Questions
- Topic: Big Webcam Project: Computer is Laboring
- Replies: 12
- Views: 1791
Big Webcam Project: Computer is Laboring
This is a big Windows 10 project to ask help for.
The program uses ESCAPI to read a webcam and display the webcam's image in a small window. It also draws a video waveform monitor.
The problem I'm having is that the program makes my computer labor and causes the cooling fan to race. CPU ...
The program uses ESCAPI to read a webcam and display the webcam's image in a small window. It also draws a video waveform monitor.
The problem I'm having is that the program makes my computer labor and causes the cooling fan to race. CPU ...
- Wed Aug 23, 2023 2:30 pm
- Forum: Coding Questions
- Topic: 10-Bit Color Packing
- Replies: 7
- Views: 1534
Re: 10-Bit Color Packing
Better?
https://www.1stvision.com/cameras/IDS/IDS-manuals/en/basics-color-pixel-formats.html
Global red1.u = 1023
Global green1.u = 1023
Global blue1.u = 1023
Global red2.u = 1023
Global green2.u = 1023
Global blue2.u =1023
;RGB10p32
Procedure.q RGB10pa32 (red1, green1, blue1, red2, green2 ...
https://www.1stvision.com/cameras/IDS/IDS-manuals/en/basics-color-pixel-formats.html
Global red1.u = 1023
Global green1.u = 1023
Global blue1.u = 1023
Global red2.u = 1023
Global green2.u = 1023
Global blue2.u =1023
;RGB10p32
Procedure.q RGB10pa32 (red1, green1, blue1, red2, green2 ...
- Tue Aug 22, 2023 11:45 pm
- Forum: Coding Questions
- Topic: 10-Bit Color Packing
- Replies: 7
- Views: 1534
Re: 10-Bit Color Packing
How is this?
I was reluctant previously to left-shift a 16-bit varaible.
Global red1.u = 1023
Global green1.u = 1023
Global blue1.u = 1023
Global red2.u = 1023
Global green2.u = 1023
Global blue2.u =1023
;RGB10p32
Procedure.q RGB10pa32 (red1, green1, blue1, red2, green2, blue2)
sampleP.q = 0 ...
I was reluctant previously to left-shift a 16-bit varaible.
Global red1.u = 1023
Global green1.u = 1023
Global blue1.u = 1023
Global red2.u = 1023
Global green2.u = 1023
Global blue2.u =1023
;RGB10p32
Procedure.q RGB10pa32 (red1, green1, blue1, red2, green2, blue2)
sampleP.q = 0 ...
- Mon Aug 21, 2023 9:24 pm
- Forum: Coding Questions
- Topic: 10-Bit Color Packing
- Replies: 7
- Views: 1534
Re: 10-Bit Color Packing
Did you read the web page I linked to? It gives two formats: packed and non-packed. The pixels MUST conform to either of those formats. Note that there are unused bits.What is the aim of RGB10p32() and rgb10() ?
- Mon Aug 21, 2023 12:52 pm
- Forum: Coding Questions
- Topic: 10-Bit Color Packing
- Replies: 7
- Views: 1534
10-Bit Color Packing
Hello -
I am starting to work with 10-bit color (10 bits each red, green, blue, no alpha. I have written two procedures to encode r, g and b values into packed and unpacked 64-bit quads.
Could somebody please check my code? Does anyone have a faster, more efficient way of doing this?
Here are the ...
I am starting to work with 10-bit color (10 bits each red, green, blue, no alpha. I have written two procedures to encode r, g and b values into packed and unpacked 64-bit quads.
Could somebody please check my code? Does anyone have a faster, more efficient way of doing this?
Here are the ...
- Thu Jul 20, 2023 1:28 pm
- Forum: Feature Requests and Wishlists
- Topic: > 8-Bit Graphics
- Replies: 2
- Views: 975
Re: > 8-Bit Graphics
Code: Select all
Structure pixl
R.c
G.c
B.c
EndStructure
- Thu Jul 20, 2023 1:19 pm
- Forum: Coding Questions
- Topic: 10-Bit Graphics
- Replies: 8
- Views: 1055
Re: 10-Bit Graphics
10 bits per channel.You are referring to 30bit depth images, not to 10bit.
There is also 12 bpc.
https://www.datavideo.com/us/article/41 ... %208%2Dbit.
- Thu Jul 20, 2023 12:34 am
- Forum: Feature Requests and Wishlists
- Topic: > 8-Bit Graphics
- Replies: 2
- Views: 975
> 8-Bit Graphics
Requesting support for graphics with > 8 bits per channel (RGB) depth.
Existing functions could be modified like so:
10- and 12-bit depths are starting to be used in video and high-end graphics.
Existing functions could be modified like so:
Code: Select all
Result = Red(Color[,Depth])
Code: Select all
Result = Red(Color,10)
- Wed Jul 19, 2023 11:26 pm
- Forum: Coding Questions
- Topic: 10-Bit Graphics
- Replies: 8
- Views: 1055
Re: 10-Bit Graphics
I can't get this to return the values I think it should.
I am trying to plot a pixel with R-G-B 940-940-940
img = CreateImage(1,100,100,24)
StartDrawing(ImageOutput(1))
Plot (50,50,RGB(940,940,940))
color = Red(Point(50,50))
Debug "Red "+Str(color)
color = Point(50,50)
color = Point(50,50 ...
I am trying to plot a pixel with R-G-B 940-940-940
img = CreateImage(1,100,100,24)
StartDrawing(ImageOutput(1))
Plot (50,50,RGB(940,940,940))
color = Red(Point(50,50))
Debug "Red "+Str(color)
color = Point(50,50)
color = Point(50,50 ...
- Wed Jul 19, 2023 10:42 pm
- Forum: Coding Questions
- Topic: 10-Bit Graphics
- Replies: 8
- Views: 1055
10-Bit Graphics
Can PB handle 10-bit images, either on screen or in a file?
This would include RGB() and all similar 2D graphics functions.
This would include RGB() and all similar 2D graphics functions.
- Sat May 13, 2023 5:16 am
- Forum: Coding Questions
- Topic: Video capture issues
- Replies: 33
- Views: 5238
Re: Video capture issues
I have fixed the bottleneck that was giving me a slow frame rate. I made a lookup table for gamma and eliminated the floating point. Will post the source code later.
- Fri May 12, 2023 8:21 pm
- Forum: Coding Questions
- Topic: Windowed Screens
- Replies: 4
- Views: 641
Re: Windowed Screens
I didn't read your post
But next is a simple way to switch between the 2 Window
Adapt it for your need
If InitSprite() = 0
MessageRequester("Error", "Can't open screen & sprite environment!", 0)
End
EndIf
OpenWindow(1,0,0,500,500,"W #1",#PB_Window_SystemMenu)
SetWindowColor(1,$0000FF ...
- Fri May 12, 2023 7:45 pm
- Forum: Coding Questions
- Topic: Windowed Screens
- Replies: 4
- Views: 641
Re: Windowed Screens
I got it to work, sort of. Here is the code. You will need escapi.pbi and escapi.dll
The problem now is that in full-screen mode, there is tearing in the first 50 - 100 scan lines when the subject moves. If I switch to #PB_Screen_WaitSynchronization the frame rate drops to an unacceptably low rate ...
The problem now is that in full-screen mode, there is tearing in the first 50 - 100 scan lines when the subject moves. If I switch to #PB_Screen_WaitSynchronization the frame rate drops to an unacceptably low rate ...