Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Conversation

6by9
Copy link
Contributor

@6by9 6by9 commented Jul 25, 2018

No description provided.

6by9 added 5 commits July 25, 2018 17:40
It was using assumed knowledge of the padding instead.
The requirements on video_encode have recently been reduced
and the assumptions were therefore invalid and caused a segfault
The code was calling ilclient_get_output_buffer to retrieve a
filled buffer, and then immediately returning it via OMX_FillThisBuffer
before looking at the contents.
OMX_FillThisBuffer does not block, but relies on waiting for the
FillBufferDone callback instead.

The correct order of doing things is to call ilclient_get_output_buffer
(which waits on FillBufferDone if necessary), process the buffer,
and then call OMX_FillThisBuffer to pass it back to OMX for filling
again.

The recent improvements to video_encode mean that it is faster at
processing buffers and would often have reset the buffer header before
hello_encode had a chance to save the data.
Adds extra fields to the IL and MMAL parameters to set justification
as centre/left/right, and add an x and y offset.
Retains backwards compatibility
Camera annotation can now support left and right justification of
the text, and setting an x and y offset.
Update the raspicam apps to allow taking these via the command
line.
@6by9 6by9 requested a review from JamesH65 July 26, 2018 10:07
@JamesH65
Copy link
Collaborator

Not actually tried it but LGTM, although the mixed in whitespace changes made it a bit confusing to read. I assume there is a matching vc4 firmware change - what happens with older firmware, does it fall back or just not annotate anything?

@6by9
Copy link
Contributor Author

6by9 commented Jul 26, 2018

If you look at the commits instead of the combined changes, then they are clean patches.
Yes, there's a firmware patch incoming. Merged to our tree but not released via rpi-update. Old firmware will just ignore the 3 new fields as they are on the end (done that way deliberately!)

@JamesH65
Copy link
Collaborator

Cool, so it's a yes from me!

@popcornmix popcornmix merged commit f74ea7f into raspberrypi:master Jul 26, 2018
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jul 30, 2018
kernel: overlays: Fix vc4-kms-kippah-7inch

kernel: dwc-otg: FIQ: Fix bad mode in data abort handler
See: raspberrypi/linux#2450

bootcode: Re-enable the pull down on SD CLK pin immediately.

firmware: Rawcam: Fixup buffering issues on fast fps

firmware: MMAL alignment changes, plus a couple of minor fixes

userland: Raspicam annotate updates and hello_encode fixes
See: raspberrypi/userland#481

userland: Raspicam: Segment timestamp
See: raspberrypi/userland#479

userland: Raspicam: Two more Raspicam fixes
See: raspberrypi/userland#478

userland: Raspicam: Raspicam Tweaks
See: raspberrypi/userland#477

userland: Raspicam: Fixed up initial timelapse delay
See: raspberrypi/userland#476
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Jul 30, 2018
kernel: overlays: Fix vc4-kms-kippah-7inch

kernel: dwc-otg: FIQ: Fix bad mode in data abort handler
See: raspberrypi/linux#2450

bootcode: Re-enable the pull down on SD CLK pin immediately.

firmware: Rawcam: Fixup buffering issues on fast fps

firmware: MMAL alignment changes, plus a couple of minor fixes

userland: Raspicam annotate updates and hello_encode fixes
See: raspberrypi/userland#481

userland: Raspicam: Segment timestamp
See: raspberrypi/userland#479

userland: Raspicam: Two more Raspicam fixes
See: raspberrypi/userland#478

userland: Raspicam: Raspicam Tweaks
See: raspberrypi/userland#477

userland: Raspicam: Fixed up initial timelapse delay
See: raspberrypi/userland#476
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants