Commit Graph

427 Commits

Author SHA1 Message Date
popcornmix
c8ed769bc3 vcos: Implement vcos_strdup directly 2016-06-27 17:44:53 +01:00
Lorenzo Stoakes
1cd52053c7 khronos: Use vchiq_get_client_id to determine global PID. (#315)
PID namespacing breaks VCHIQ as it uses PIDs as unique identifiers for VCHIQ
services, meaning messages sent from userland will contain a different ID than
the one expected by the GPU.

This patch addresses the problem uses the existing GET_CLIENT_ID ioctl to
retrieve the global PID as seen by the kernel rather than using the process's
reported PID.
2016-06-27 13:36:58 +01:00
Andrew Scheller
0147f98bdd Update raspicam helptext (#322)
Valid --drc options are mentioned in the Notes (just like the valid options for --exposure, --awb, --imxfx and --metering)
2016-06-20 19:02:26 +01:00
ethanol100
c82c6515d4 RaspiStill: Update annotation before capture (#321) 2016-06-19 11:43:55 +01:00
ethanol100
8daf8dd493 Add option -lev/--level to raspvid to select H264 Level (#318)
Enable selection of Level 4, 4.1 and 4.2 for H264 codec.
Level will be automatically increased if necessary.
Additional preview buffer will be allocated for higher framerates.
2016-06-13 13:07:13 +01:00
Dave Stevenson
7c026fa7a4 RaspiStillYuv: Detect and amend request for RGB pixel ordering
Firmware has been corrected to return the correct pixel ordering
for RGB24 and BGR24 pixel formats - they were reversed before.
When in RGB mode, query the supported encodings and choose the
right one.
mmal_util function added to make it easy from client apps.
2016-06-02 16:27:26 +01:00
John Greb
826b0b1b08 Adjust include paths for Linux/BSD
See: https://github.com/raspberrypi/userland/pull/298
2016-06-02 16:25:35 +01:00
popcornmix
ed59ee1f17 dtoverlay: Run scripts before and after changes 2016-05-31 19:55:46 +01:00
Khem Raj
05d60a01d5 cmake: generate and install pkgconfig files
many packages expect packageconfig support especially for detecting EGL
libraries. This patch helps in compiling those packages on RPi

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-05-31 19:52:34 +01:00
popcornmix
1eac015380 IL Components: Documentation update 2016-05-31 19:22:52 +01:00
popcornmix
17c28b9d1d firmware: vcos: Fix incorrect licence 2016-04-25 10:38:17 +01:00
Ryan Finnie
dff576057c Allow command-line overriding of VMCS_PLUGIN_DIR (#309) 2016-04-24 18:40:00 +01:00
Naushir Patuck
f824ef5530 raspistill: Use camera_info component to set the sensor name and output resolution of the captures. This queries the VC firmware for the camera currently attached. 2016-04-22 20:50:45 +01:00
Phil Elwell
38f9c7ef46 dtoverlay: Require sudo for destructive operations 2016-04-22 20:48:28 +01:00
Phil Elwell
d023ba6537 dtoverlay: command line tweaks
dtoverlay -r   # Remove the most recent overlay or dtparam
dtoverlay -R   # Remove all overlays and dtparams
dtparam        # List all parameters
dtparam -h     # Show usage
dtparam -r     # Remove the most recent dtparam or overlay
dtparam -R     # Remove all dtparams and overlays
2016-04-22 20:47:27 +01:00
popcornmix
52eca998aa vc_image: Remove ifdefs for obsolete platforms 2016-04-19 21:17:05 +01:00
Phil Elwell
ae68bb115b dtmerge: Don't crash if the overlay fails to load 2016-04-19 21:17:05 +01:00
Phil Elwell
8b5cb841d0 dtoverlay: Copy overrides before applying
dtoverlay: Refactor applying overlays to permit snooping
dtoverlay: Add dtparam command
dtoverlay: Integer overrides can create and extend properties
2016-04-19 21:17:05 +01:00
Phil Elwell
6732ebd370 vcilcs: Warn as message queue approaches fullness
See: https://github.com/raspberrypi/firmware/issues/449
2016-04-17 13:46:47 +01:00
Phil Elwell
01414db13a vcilcs: Increase ILCS queue size to prevent(?) deadlock
See: https://github.com/raspberrypi/firmware/issues/449
2016-04-17 13:46:31 +01:00
Phil Elwell
346195a99c dtmerge: Pack the merged DTB before writing 2016-04-17 13:45:29 +01:00
Phil Elwell
0fac82c74d dtoverlay: Copy overrides before applying
Override data can move as the overrides are applied, so copy it before
application.
2016-04-17 13:44:34 +01:00
Ray
506017f970 Fix unixtime '1900' typo in raspistill --help (#308)
* Fix unixtime '1900' typo in raspistill --help

* Clarify printf pattern usage in --help

* Trying to isolate why we lost correct spacing between
Dynamic Range Compression and Preview parameter in --help

root@rays-pi /tmp/ray/temp/git/userland/build/bin # diff -u <(cat old.out ) <(raspistill)  | tail

 -awb, --awb	: Set AWB mode (see Notes)
 -ifx, --imxfx	: Set image effect (see Notes)
@@ -84,7 +85,6 @@

 Dynamic Range Compression (DRC) options :
 off,low,med,high
-
 Preview parameter commands

 -gs, --glscene	: GL scene square,teapot,mirror,yuv,sobel

* minor output consistency fix
corrected code comment to state debug/verbose output goes to stderr
2016-04-17 10:56:48 +01:00
popcornmix
cfd971c630 Merge pull request #306 from 6by9/PR20160407
Raspivid: Add option for MJPEG codec
2016-04-08 15:22:41 +01:00
Dave Stevenson
4e259dcbec Raspivid: Add option for MJPEG codec 2016-04-07 20:49:54 +00:00
popcornmix
770f2bd9cc Merge pull request #299 from stweil/master
Fix some typos found by codespell
2016-04-07 12:56:00 +01:00
popcornmix
6ce5faffba Merge pull request #136 from ethanol100/fixIf
Wrong sign in if condition
2016-04-07 12:51:35 +01:00
Stefan Weil
8b0a23de21 host_applications: Fix typos in comments
Most of them were found and fixed using codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-04-06 22:11:34 +02:00
popcornmix
e0fc99d48f hello_video: Remove the timout, to avoid the application quits before the ending of some videos
See: https://github.com/raspberrypi/firmware/pull/475
2016-04-06 19:47:08 +01:00
popcornmix
68424c0013 hello_pi: Use absolute path for libs 2016-04-06 19:47:08 +01:00
Phil Elwell
c236548aa8 host_applications: Add dtmerge application
dtmerge allows an overlay to be applied to a specified base DTB, with
parameters, saving the result as another DTB. This makes it easy to
test an overlay without the need to reboot.
2016-04-06 19:47:08 +01:00
Phil Elwell
ffb6c70445 dtoverlay: Multiple overlay instances
Allow dtoverlay to load the same overlay multiple times. Removing an
overlay by name removes the most recent instance. Removing by index
(position in the list) works as expected. Use '-R' to remove all overlays
from a specified index or named overlay. dtoverlay -R 0 will remove all
overlays.
2016-04-06 19:47:08 +01:00
Phil Elwell
a52bb28834 dtoverlay: Support disabled (__dormant__) fragments
Fragments where the __overlay__ node is named __dormant__ will
automatically be ignored. The new 'overlay-level overrides variant,
indicated by a 0 phandle, allows numbered fragments to be enabled or
disabled, either absolutely or dependent on the override value.

Example:
    just_one = <0>,"+1-2";    // Enable 1, disable 2
    conditional = <0>,"=3!4"; // Enable 3, disable 4 if value is true
                              // otherwise disable 3, enable 4.
2016-04-06 19:47:08 +01:00
Phil Elwell
191f9f8720 dtoverlay: Allow aliases to be used with target-path
The target-path property normally refers to an absolute path, but
this commit allows an alias to be used instead, making it possible
to refer to use:
   target-path = "i2c_arm";
2016-04-06 19:47:08 +01:00
popcornmix
481fcfbcf8 Fix some typos found by codespell
See: https://github.com/raspberrypi/userland/pull/299
2016-04-06 19:47:08 +01:00
popcornmix
33a096b436 Merge pull request #294 from ggardet/master
Allow to override VMCS_INSTALL_PREFIX
2016-04-06 16:58:14 +01:00
popcornmix
260168c290 Merge pull request #283 from atupone/master
Fix strict-aliasing
2016-04-06 16:55:00 +01:00
popcornmix
2f805f4ea7 Merge pull request #164 from lurch/patch-1
Fix comment markup typos
2016-04-06 16:51:03 +01:00
popcornmix
c5dc00542e Merge pull request #116 from jipe/master
Fixed variable name error in code example doc
2016-04-06 16:50:13 +01:00
popcornmix
1c5f4075fd Merge pull request #296 from 6by9/PR20160228
Raspivid: Add -pts to save timecodes to file
2016-04-06 16:41:13 +01:00
Phil Elwell
703a2c4b35 dtoverlay: Compile libfdt into libdtovl
Compile the static library libfdt into libdtovl, rather than deferring
its linking to clients of libdtovl.
2016-03-30 13:27:40 +01:00
Phil Elwell
33f6e668bc dtoverlay: Actually use the result of fread...
...because void casts are no longer sufficient on return values marked
with attribute warn_unused_result.

See: https://github.com/raspberrypi/userland/pull/300
     https://github.com/raspberrypi/userland/issues/302
2016-03-30 09:50:31 +01:00
Phil Elwell
964deab3d7 dtoverlay: Fixing numerous compiler nit-picks
See: https://github.com/raspberrypi/userland/pull/300
     https://github.com/raspberrypi/userland/pull/301
     https://github.com/raspberrypi/userland/issues/302
2016-03-30 08:58:44 +01:00
Phil Elwell
e8de525fa4 vchiq_lib: Don't overwrite loop count mid-loop 2016-03-23 14:12:45 +00:00
popcornmix
2f56a2943a MMAL Examples: Some fixups for the Pi tree 2016-03-16 00:34:25 +00:00
popcornmix
930ecc100b dtoverlay: Add makefile updates 2016-03-16 00:32:53 +00:00
popcornmix
e93c382c4e dtoverlay: Add source for libs 2016-03-15 21:52:00 +00:00
popcornmix
84c6c4c0d3 dtoverlay: Add source for dtoverlay utility 2016-03-15 18:55:40 +00:00
popcornmix
8369e39099 Merge pull request #297 from kfitzgerald/raspiyuv-flush
raspiyuv: Flush stdout to ensure image is fully sent
2016-03-05 20:43:41 +00:00
Kevin M Fitzgerald
96ebe93f8b Flush stdout to ensure image is fully sent
Flush stdout when dumping image data over stdout. Without the flush, using signals to stream image data over stdout would result in the missing data, if the buffer didn't fill the 65536 chunk.
2016-03-04 22:42:32 -06:00