History log of /haiku/src/add-ons/media/media-add-ons/usb_webcam/Producer.cpp
Revision Date Author Comments
# 103e774d 05-Jul-2019 Murai Takashi <tmurai01@gmail.com>

media-add-ons/usb_webcam: Fix -Wformat=

Change-Id: I85734ac3b01beb6e6a69ebda5050715c1fa1342d
Reviewed-on: https://review.haiku-os.org/c/1562
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>


# c5a66905 07-Apr-2011 Jérôme Duval <korli@users.berlios.de>

* style fixes.
* added SuggestVideoFrame() so that this can be overriden.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41195 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 02af02f9 12-Apr-2010 Jérôme Duval <korli@users.berlios.de>

partial clean up


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36198 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b289aaf6 12-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* A BBuffer does not know where it came from, so
BBufferConsumer::BufferReceived() cannot know whom to send the "buffer is
late" notification (unless we only have a single input). To solve this, the
media_header now contains extra fields that can be used to create a
media_source object.
* Unfortunately, BBufferProducer::SendBuffer() cannot know the output either in
case there is more than one. Hence, I deprecated the existing SendBuffer()
call and moved it into "private" - IOW old sources using it won't compile
anymore under Haiku.
* I introduced a new SendBuffer() variant that also gets the media_source as
argument.
* Updated all sources (that are part of the image) to use the new variant.
* Removed some purposely commented out code in the audio mixer.
* Implemented late buffer notification, as well as late buffer handling in the
audio mixer; this is a bit of work in progress, so the debug output is left
in there.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36184 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2c4e929f 13-Mar-2009 François Revol <revol@free.fr>

- force 320x240 for now
- fixed uninitialized fields in CamDeframer, it works also in Haiku now :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29507 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a1830cbd 30-Sep-2008 François Revol <revol@free.fr>

Add missing copyrights.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27812 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0866ac7e 07-May-2008 François Revol <revol@free.fr>

- point to logitech opensource website
- cleanup
- handle frame size suggestions (Codycam gets QVGA now, and eXposer doesn't complain), though the picture is not centered nor scaled yet.
- added a stat text parameter to show actual frame rate.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25359 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a486abdc 04-May-2008 François Revol <revol@free.fr>

- don't hardcode frame size, use the maximum available instead. Setting it at connection won't work yet.
- Added hooks to handle device and sensor-specific parameters
- Added gain controls for my webcam, oddly none seem to work correctly except green gain :^)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25315 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e53032e5 08-Mar-2008 François Revol <revol@free.fr>

Fix warnings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24319 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6bb8b29f 09-Jan-2008 François Revol <revol@free.fr>

Make CamFrame a subclass of BMallocIO to add a timestamp field.
Set the field on allocation and pass it around.
Still disabled as CodyCam drops everything, I should probably drop old frames from the buffer...
for now it uses system_time() to make CodyCam happy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23307 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 61064c3b 12-May-2007 François Revol <revol@free.fr>

Better locking: CamDevice::Start/StopTransfer() should be called with lock held.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21125 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2c9bd703 28-Aug-2006 François Revol <revol@free.fr>

Current version of my USB Webcam driver. WORK IN PROGRESS!
Uses the USB Kit (userland API, needs libusb) to publish a
media node representing the webcam.
It currently only works with my Sonix webcam (3Euro cheapo
cam), but is modular enough to easily expand it, some code
is already there to detect Quickcams.
For now you should be able to build it under Zeta with the
makefile provided.
Making a Jamfile might get tricky as several source files are
created by the makefile itself to include addons and censors
in the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18670 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c5a669052f4a927ac82f9d8bc3134e680601c9ce 07-Apr-2011 Jérôme Duval <korli@users.berlios.de>

* style fixes.
* added SuggestVideoFrame() so that this can be overriden.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41195 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 02af02f93ae67777d65cce1eda1c5f21aaed3446 12-Apr-2010 Jérôme Duval <korli@users.berlios.de>

partial clean up


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36198 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b289aaf66bbf6e173aa90fa194fc256965f1b34d 12-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* A BBuffer does not know where it came from, so
BBufferConsumer::BufferReceived() cannot know whom to send the "buffer is
late" notification (unless we only have a single input). To solve this, the
media_header now contains extra fields that can be used to create a
media_source object.
* Unfortunately, BBufferProducer::SendBuffer() cannot know the output either in
case there is more than one. Hence, I deprecated the existing SendBuffer()
call and moved it into "private" - IOW old sources using it won't compile
anymore under Haiku.
* I introduced a new SendBuffer() variant that also gets the media_source as
argument.
* Updated all sources (that are part of the image) to use the new variant.
* Removed some purposely commented out code in the audio mixer.
* Implemented late buffer notification, as well as late buffer handling in the
audio mixer; this is a bit of work in progress, so the debug output is left
in there.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36184 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2c4e929f5416c6ad2b6b8afd731c29754a13870c 13-Mar-2009 François Revol <revol@free.fr>

- force 320x240 for now
- fixed uninitialized fields in CamDeframer, it works also in Haiku now :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29507 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a1830cbd577f57e8c92e5fea206d5dbf777a67a0 30-Sep-2008 François Revol <revol@free.fr>

Add missing copyrights.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27812 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0866ac7e91ed776223ec00160e60faaa8a9682e6 07-May-2008 François Revol <revol@free.fr>

- point to logitech opensource website
- cleanup
- handle frame size suggestions (Codycam gets QVGA now, and eXposer doesn't complain), though the picture is not centered nor scaled yet.
- added a stat text parameter to show actual frame rate.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25359 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a486abdce0e5725976184dd2752d42caa432fbb3 04-May-2008 François Revol <revol@free.fr>

- don't hardcode frame size, use the maximum available instead. Setting it at connection won't work yet.
- Added hooks to handle device and sensor-specific parameters
- Added gain controls for my webcam, oddly none seem to work correctly except green gain :^)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25315 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e53032e55dd3ce646da788cd78ee86a293d491c2 08-Mar-2008 François Revol <revol@free.fr>

Fix warnings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24319 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6bb8b29f4808742e25b256451e77ada26ed136a4 09-Jan-2008 François Revol <revol@free.fr>

Make CamFrame a subclass of BMallocIO to add a timestamp field.
Set the field on allocation and pass it around.
Still disabled as CodyCam drops everything, I should probably drop old frames from the buffer...
for now it uses system_time() to make CodyCam happy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23307 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 61064c3beae028e5a269ccaf610dde46e5cbd9e0 12-May-2007 François Revol <revol@free.fr>

Better locking: CamDevice::Start/StopTransfer() should be called with lock held.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21125 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2c9bd70310636a2ce913fba5ef02a51008c06ef5 28-Aug-2006 François Revol <revol@free.fr>

Current version of my USB Webcam driver. WORK IN PROGRESS!
Uses the USB Kit (userland API, needs libusb) to publish a
media node representing the webcam.
It currently only works with my Sonix webcam (3Euro cheapo
cam), but is modular enough to easily expand it, some code
is already there to detect Quickcams.
For now you should be able to build it under Zeta with the
makefile provided.
Making a Jamfile might get tricky as several source files are
created by the makefile itself to include addons and censors
in the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18670 a95241bf-73f2-0310-859d-f6bbb57e9c96