Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
26451188
Commit
26451188
authored
Jul 22, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
juggling with files
parent
a9b5e6c7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
153 deletions
+0
-153
cherokee_%.bbappend
recipes-httpd/cherokee/cherokee_%.bbappend
+0
-1
linux-xlnx_2018.3.bbappend
recipes-kernel/linux/linux-xlnx_2018.3.bbappend
+0
-0
framing.c.patch
recipes-multimedia/libogg/files/framing.c.patch
+0
-70
ogg.h.patch
recipes-multimedia/libogg/files/ogg.h.patch
+0
-52
libogg_1.3.2.bbappend
recipes-multimedia/libogg/libogg_1.3.2.bbappend
+0
-4
mariadb-native_5.5.%.bbappend
recipes-support/mysql/mariadb-native_5.5.%.bbappend
+0
-13
mariadb_5.5.%.bbappend
recipes-support/mysql/mariadb_5.5.%.bbappend
+0
-13
No files found.
recipes-httpd/cherokee/cherokee_%.bbappend
deleted
100644 → 0
View file @
a9b5e6c7
DEPENDS := "libpcre openssl ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
\ No newline at end of file
recipes-kernel/linux/linux-xlnx_201
7
.3.bbappend
→
recipes-kernel/linux/linux-xlnx_201
8
.3.bbappend
View file @
26451188
File moved
recipes-multimedia/libogg/files/framing.c.patch
deleted
100644 → 0
View file @
a9b5e6c7
--- ./src/framing.c 2005-11-27 21:26:05.000000000 -0700
+++ ./src/framing.c 2007-11-11 13:36:15.000000000 -0700
@@ -315,6 +315,67 @@
return(0);
}
+#ifdef ELPHEL_OGG
+//! Support for a packet structure to use packets consisting of several memory chunks each (like MJPEG header
+//! and data in circular buffer of Elphel cameras (for now counting on copying packets in libogg)
+//int ogg_stream_packetin(ogg_stream_state *os,ogg_packet *op){
+ int ogg_stream_packetin_elph(ogg_stream_state *os, elph_ogg_packet *op) {
+
+ int lacing_vals=op->bytes/255+1,i;
+
+ if(os->body_returned){
+ /* advance packet data according to the body_returned pointer. We
+ had to keep it around to return a pointer into the buffer last
+ call */
+
+ os->body_fill-=os->body_returned;
+ if(os->body_fill)
+ memmove(os->body_data,os->body_data+os->body_returned,
+ os->body_fill);
+ os->body_returned=0;
+ }
+
+ /* make sure we have the buffer storage */
+ _os_body_expand(os,op->bytes);
+ _os_lacing_expand(os,lacing_vals);
+
+ /*! Copy in the submitted packet. Yes, the copy is a waste; this is
+ the liability of overly clean abstraction for the time being. It
+ will actually be fairly easy to eliminate the extra copy in the
+ future */
+// memcpy(os->body_data+os->body_fill,op->packet,op->bytes);
+// os->body_fill+=op->bytes;
+ long bytes_left=op->bytes;
+ int chunk_index=0;
+ while (bytes_left>0) {
+ memcpy(os->body_data+os->body_fill,op->packet[chunk_index].chunk,op->packet[chunk_index].bytes);
+ os->body_fill+=op->packet[chunk_index].bytes;
+ bytes_left-=op->packet[chunk_index].bytes;
+ chunk_index++;
+ }
+
+ /* Store lacing vals for this packet */
+ for(i=0;i<lacing_vals-1;i++){
+ os->lacing_vals[os->lacing_fill+i]=255;
+ os->granule_vals[os->lacing_fill+i]=os->granulepos;
+ }
+ os->lacing_vals[os->lacing_fill+i]=(op->bytes)%255;
+ os->granulepos=os->granule_vals[os->lacing_fill+i]=op->granulepos;
+
+ /* flag the first segment as the beginning of the packet */
+ os->lacing_vals[os->lacing_fill]|= 0x100;
+
+ os->lacing_fill+=lacing_vals;
+
+ /* for the sake of completeness */
+ os->packetno++;
+
+ if(op->e_o_s)os->e_o_s=1;
+
+ return(0);
+}
+#endif
+
/* This will flush remaining packets into a page (returning nonzero),
even if there is not enough data to trigger a flush normally
recipes-multimedia/libogg/files/ogg.h.patch
deleted
100644 → 0
View file @
a9b5e6c7
--- ./include/ogg/ogg.h 2005-11-27 21:26:05.000000000 -0700
+++ ./include/ogg/ogg.h 2007-11-11 13:33:16.000000000 -0700
@@ -16,7 +16,7 @@
********************************************************************/
#ifndef _OGG_H
#define _OGG_H
-
+#define ELPHEL_OGG y
#ifdef __cplusplus
extern "C" {
#endif
@@ -95,6 +95,29 @@
(which is in a seperate abstraction
layer) also knows about the gap */
} ogg_packet;
+#ifdef ELPHEL_OGG
+//! New packet structure that supports packets consisting of several memory chunks each (like MJPEG header
+//! and data in circular buffer of Elphel cameras
+typedef struct {
+ unsigned char *chunk;
+ long bytes;
+} elph_packet_chunk;
+
+typedef struct {
+ elph_packet_chunk *packet;
+ long bytes;
+ long b_o_s;
+ long e_o_s;
+
+ ogg_int64_t granulepos;
+
+ ogg_int64_t packetno; /* sequence number for decode; the framing
+ knows where there's a hole in the data,
+ but we need coupling so that the codec
+ (which is in a seperate abstraction
+ layer) also knows about the gap */
+} elph_ogg_packet;
+#endif
typedef struct {
unsigned char *data;
@@ -148,6 +171,12 @@
/* Ogg BITSTREAM PRIMITIVES: encoding **************************/
+#ifdef ELPHEL_OGG
+//! Support for a packet structure to use packets consisting of several memory chunks each (like MJPEG header
+//! and data in circular buffer of Elphel cameras (for now counting on copying packets in libogg)
+extern int ogg_stream_packetin_elph(ogg_stream_state *os, elph_ogg_packet *op);
+#endif
+
extern int ogg_stream_packetin(ogg_stream_state *os, ogg_packet *op);
extern int ogg_stream_iovecin(ogg_stream_state *os, ogg_iovec_t *iov,
recipes-multimedia/libogg/libogg_1.3.2.bbappend
deleted
100644 → 0
View file @
a9b5e6c7
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append += "file://framing.c.patch \
file://ogg.h.patch"
\ No newline at end of file
recipes-support/mysql/mariadb-native_5.5.%.bbappend
deleted
100644 → 0
View file @
a9b5e6c7
SRC_URI = "http://downloads.mariadb.com/MariaDB/mariadb-${PV}/source/mariadb-${PV}.tar.gz \
file://fix-cmake-module-path.patch \
file://remove-bad-path.patch \
file://fix-mysqlclient-r-version.patch \
file://my.cnf \
file://mysqld.service \
file://install_db.service \
file://install_db \
file://mysql-systemd-start \
file://configure.cmake-fix-valgrind.patch \
file://fix-a-building-failure.patch \
"
\ No newline at end of file
recipes-support/mysql/mariadb_5.5.%.bbappend
deleted
100644 → 0
View file @
a9b5e6c7
SRC_URI = "http://downloads.mariadb.com/MariaDB/mariadb-${PV}/source/mariadb-${PV}.tar.gz \
file://fix-cmake-module-path.patch \
file://remove-bad-path.patch \
file://fix-mysqlclient-r-version.patch \
file://my.cnf \
file://mysqld.service \
file://install_db.service \
file://install_db \
file://mysql-systemd-start \
file://configure.cmake-fix-valgrind.patch \
file://fix-a-building-failure.patch \
"
\ No newline at end of file
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