Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-camogm
Commits
fa0a09c9
Commit
fa0a09c9
authored
Sep 14, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'framepars'
parents
d589ff4f
e029dc0d
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
94 additions
and
95 deletions
+94
-95
.gitignore
.gitignore
+10
-4
Makefile
Makefile
+15
-7
camogm.c
camogm.c
+23
-7
camogm.h
camogm.h
+4
-2
.cproject
eclipse_project_setup/.cproject
+42
-25
bitbake apps-camogm -c compile -f.launch
...rnalToolBuilders/bitbake apps-camogm -c compile -f.launch
+0
-9
org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder (1).launch
...e.cdt.managedbuilder.core.ScannerConfigBuilder (1).launch
+0
-7
.project
eclipse_project_setup/.project
+0
-24
language.settings.xml
eclipse_project_setup/.settings/language.settings.xml
+0
-10
No files found.
.gitignore
View file @
fa0a09c9
html/*
.project
.cproject
.externalToolBuilders
.settings
attic/*
/.project
/.cproject
/.pydevproject
/.externalToolBuilders
/.settings
.directory
generated*
sysroots
bitbake-logs
\ No newline at end of file
Makefile
View file @
fa0a09c9
PROGS
=
camogm
PHP
FILES
=
camogmstate.php
PHP
SCRIPTS
=
camogmstate.php
CONFIGS
=
qt_source
SRCS
=
camogm.c camogm_ogm.c camogm_jpeg.c camogm_mov.c camogm_kml.c camogm_read.c index_list.c
...
...
@@ -8,6 +8,11 @@ OBJS = $(SRCS:.c=.o)
CFLAGS
+=
-Wall
-I
$(STAGING_KERNEL_DIR)
/include/elphel
-I
$(STAGING_DIR_HOST)
/usr/include-uapi
LDLIBS
+=
-logg
-pthread
-lm
INSTALL
=
install
INSTMODE
=
0755
INSTDOCS
=
0644
OWN
=
-o
root
-g
root
SYSCONFDIR
=
/etc/
BINDIR
=
/usr/bin/
WWW_PAGES
=
/www/pages
...
...
@@ -17,12 +22,15 @@ all: $(PROGS)
$(PROGS)
:
$(OBJS)
$(CC)
$(LDFLAGS)
$^
$(LDLIBS)
-o
$@
install
:
install
-d
$(DESTDIR)$(BINDIR)
install
-m
0755
-t
$(DESTDIR)$(BINDIR)
$(PROGS)
install
-d
$(DESTDIR)$(SYSCONFDIR)
install
-m
0644
-t
$(DESTDIR)$(SYSCONFDIR)
$(CONFIGS)
install
:
$(PROGS) $(PHPSCRIPTS) $(CONFIGS)
$(INSTALL)
$(OWN)
-d
$(DESTDIR)$(BINDIR)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(PROGS)
$(DESTDIR)$(BINDIR)
$(INSTALL)
$(OWN)
-d
$(DESTDIR)$(SYSCONFDIR)
$(INSTALL)
$(OWN)
-m
$(INSTDOCS)
$(CONFIGS)
$(DESTDIR)$(SYSCONFDIR)
$(INSTALL)
$(OWN)
-d
$(DESTDIR)$(WWW_PAGES)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(PHPSCRIPTS)
$(DESTDIR)$(WWW_PAGES)
clean
:
rm
-rf
$(PROGS)
*
.o
*
~
#TODO: implement automatic dependencies!
camogm.c
:
$(STAGING_DIR_HOST)/usr/include-uapi/elphel/x393_devices.h
camogm.c
View file @
fa0a09c9
...
...
@@ -38,7 +38,7 @@
/** @brief Default debug level */
#define DEFAULT_DEBUG_LVL 6
/** @brief JPEG trailer s
y
ze in bytes */
/** @brief JPEG trailer s
i
ze in bytes */
#define TRAILER_SIZE 0x02
/** @brief Default segment duration in seconds */
#define DEFAULT_DURATION 600
...
...
@@ -64,19 +64,35 @@
char
trailer
[
TRAILER_SIZE
]
=
{
0xff
,
0xd9
};
const
char
*
exifFileNames
[]
=
{
"/dev/exif_exif0"
,
"/dev/exif_exif1"
,
"/dev/exif_exif2"
,
"/dev/exif_exif3"
#if 0
const char *exifFileNames[] = { "/dev/exif_exif0", "/dev/exif_exif1",
"/dev/exif_exif2", "/dev/exif_exif3"
};
const
char
*
headFileNames
[]
=
{
"/dev/jpeghead0"
,
"/dev/jpeghead1"
,
"/dev/jpeghead2"
,
"/dev/jpeghead3"
const char *headFileNames[] = {
"/dev/jpeghead0", "/dev/jpeghead1",
"/dev/jpeghead2", "/dev/jpeghead3"
};
const char *ctlFileNames[] = { "/dev/frameparsall0", "/dev/frameparsall1",
"/dev/frameparsall2"
,
"/de/framepars3"
"/dev/frameparsall2", "/de/framepars3"
};
const char *circbufFileNames[] = {"/dev/circbuf0", "/dev/circbuf1",
"/dev/circbuf2"
,
"/dev/circbuf3"
"/dev/circbuf2", "/dev/circbuf3"
};
#else
const
char
*
exifFileNames
[]
=
{
DEV393_PATH
(
DEV393_EXIF0
),
DEV393_PATH
(
DEV393_EXIF1
),
DEV393_PATH
(
DEV393_EXIF2
),
DEV393_PATH
(
DEV393_EXIF3
)
};
const
char
*
headFileNames
[]
=
{
DEV393_PATH
(
DEV393_JPEGHEAD0
),
DEV393_PATH
(
DEV393_JPEGHEAD1
),
DEV393_PATH
(
DEV393_JPEGHEAD2
),
DEV393_PATH
(
DEV393_JPEGHEAD3
)
};
const
char
*
ctlFileNames
[]
=
{
DEV393_PATH
(
DEV393_FRAMEPARS0
),
DEV393_PATH
(
DEV393_FRAMEPARS1
),
DEV393_PATH
(
DEV393_FRAMEPARS2
),
DEV393_PATH
(
DEV393_FRAMEPARS3
)
};
const
char
*
circbufFileNames
[]
=
{
DEV393_PATH
(
DEV393_CIRCBUF0
),
DEV393_PATH
(
DEV393_CIRCBUF1
),
DEV393_PATH
(
DEV393_CIRCBUF2
),
DEV393_PATH
(
DEV393_CIRCBUF3
)
};
#endif
int
lastDaemonBit
[
SENSOR_PORTS
]
=
{
DAEMON_BIT_CAMOGM
};
struct
framepars_all_t
*
frameParsAll
[
SENSOR_PORTS
];
...
...
camogm.h
View file @
fa0a09c9
...
...
@@ -21,10 +21,12 @@
#include <pthread.h>
#include <stdbool.h>
#include <exifa.h>
#include <c313a.h>
#include <ogg/ogg.h>
#include "ogmstreams.h"
#include <elphel/exifa.h>
#include <elphel/c313a.h>
#include <elphel/x393_devices.h>
#define CAMOGM_FRAME_NOT_READY 1 ///< frame pointer valid, but not yet acquired
#define CAMOGM_FRAME_INVALID 2 ///< invalid frame pointer
...
...
eclipse_project_setup/.cproject
View file @
fa0a09c9
This diff is collapsed.
Click to expand it.
eclipse_project_setup/.externalToolBuilders/bitbake apps-camogm -c compile -f.launch
deleted
100644 → 0
View file @
d589ff4f
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration
type=
"org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType"
>
<booleanAttribute
key=
"org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND"
value=
"false"
/>
<booleanAttribute
key=
"org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED"
value=
"false"
/>
<stringAttribute
key=
"org.eclipse.ui.externaltools.ATTR_LOCATION"
value=
"${workspace_loc:/elphel-apps-camogm/run_bitbake.sh}"
/>
<stringAttribute
key=
"org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS"
value=
"incremental,"
/>
<stringAttribute
key=
"org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"
value=
"apps-camogm -c compile -f"
/>
<booleanAttribute
key=
"org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED"
value=
"true"
/>
</launchConfiguration>
eclipse_project_setup/.externalToolBuilders/org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder (1).launch
deleted
100644 → 0
View file @
d589ff4f
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration
type=
"org.eclipse.ant.AntBuilderLaunchConfigurationType"
>
<booleanAttribute
key=
"org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED"
value=
"false"
/>
<stringAttribute
key=
"org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER"
value=
"org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder"
/>
<mapAttribute
key=
"org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"
/>
<booleanAttribute
key=
"org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED"
value=
"true"
/>
</launchConfiguration>
eclipse_project_setup/.project
View file @
fa0a09c9
...
...
@@ -7,32 +7,8 @@
<buildSpec>
<buildCommand>
<name>
org.eclipse.cdt.managedbuilder.core.genmakebuilder
</name>
<triggers>
clean,full,incremental,
</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.ui.externaltools.ExternalToolBuilder
</name>
<triggers>
full,incremental,
</triggers>
<arguments>
<dictionary>
<key>
LaunchConfigHandle
</key>
<value>
<
project
>
/.externalToolBuilders/org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder (1).launch
</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.ui.externaltools.ExternalToolBuilder
</name>
<triggers>
full,incremental,
</triggers>
<arguments>
<dictionary>
<key>
LaunchConfigHandle
</key>
<value>
<
project
>
/.externalToolBuilders/bitbake apps-camogm -c compile -f.launch
</value>
</dictionary>
<dictionary>
<key>
incclean
</key>
<value>
true
</value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec>
...
...
eclipse_project_setup/.settings/language.settings.xml
deleted
100644 → 0
View file @
d589ff4f
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project>
<configuration
id=
"0.531211255"
name=
"Default"
>
<extension
point=
"org.eclipse.cdt.core.LanguageSettingsProvider"
>
<provider
class=
"org.eclipse.cdt.core.language.settings.providers.LanguageSettingsGenericProvider"
id=
"org.eclipse.cdt.ui.UserLanguageSettingsProvider"
name=
"CDT User Setting Entries"
prefer-non-shared=
"true"
/>
<provider-reference
id=
"org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider"
ref=
"shared-provider"
/>
<provider-reference
id=
"org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider"
ref=
"shared-provider"
/>
</extension>
</configuration>
</project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment