- matus.jurecka
- Posts: 14
- Joined: Tue Apr 14, 2020 6:54 am
camera component fillBufferDone callback
I am using openmax IL (no mmal) to get YUV pixel data from camera video port 71. I am not using tunneling to other component. I just enabled port, allocated buffers for it and set FillBufferDone callback. It works ok but I found out that FillBufferDone callback function is triggered every 16 lines. That's 54 times per one 1536x864 frame. Is it possible to somehow decrease this callback triggering frequency?
- 6by9
- Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator - Posts: 18476
- Joined: Wed Dec 04, 2013 11:27 am
Re: camera component fillBufferDone callback
Set nSliceHeight in the port format appropriately. If you leave it at the default of 16, then you will get 16 lines per slice. Set it to (nFrameHeight+15)&~15 and you should get the full frame.
(NB It must be a multiple of 16, hence the maths).
(NB It must be a multiple of 16, hence the maths).
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.
I'm not interested in doing contracts for bespoke functionality - please don't ask.
- matus.jurecka
- Posts: 14
- Joined: Tue Apr 14, 2020 6:54 am
Re: camera component fillBufferDone callback
Thank you very much. That's exactly what I was looking for. Now fillBufferDone is called once per frame and it works perfect.
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion