Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blondejamtart committed Apr 6, 2020
1 parent bdec741 commit 780819e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion raspiraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ uint32_t order_and_bit_depth_to_encoding(enum bayer_order order, int bit_depth)
return 0;
}

int camera_main(RASPIRAW_PARAMS_T cfg, void (*callback)())
int camera_main(RASPIRAW_PARAMS_T cfg, void (*callback)(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer))
{
// RASPIRAW_PARAMS_T cfg = {
// .mode = 0,
Expand Down
14 changes: 7 additions & 7 deletions raspiraw.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "interface/vcos/vcos.h"
#include "bcm_host.h"

extern "C" {
#include "ov5647_modes.h"
#include "imx219_modes.h"
#include "adv7282m_modes.h"
}

#include "interface/mmal/mmal.h"
#include "interface/mmal/mmal_buffer.h"
#include "interface/mmal/mmal_logging.h"
Expand Down Expand Up @@ -152,12 +158,6 @@ struct sensor_def

#define NUM_ELEMENTS(a) (sizeof(a) / sizeof(a[0]))

extern "C" {
#include "ov5647_modes.h"
#include "imx219_modes.h"
#include "adv7282m_modes.h"
}

const struct sensor_def *sensors[] = {
&ov5647,
&imx219,
Expand Down Expand Up @@ -273,7 +273,7 @@ uint32_t order_and_bit_depth_to_encoding(enum bayer_order order, int bit_depth);

void modReg(struct mode_def *mode, uint16_t reg, int startBit, int endBit, int value, enum operation op);

int camera_main(RASPIRAW_PARAMS_T cfg, void (*callback)());
int camera_main(RASPIRAW_PARAMS_T cfg, void (*callback)(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer));

void modRegBit(struct mode_def *mode, uint16_t reg, int bit, int value, enum operation op);

Expand Down

0 comments on commit 780819e

Please sign in to comment.