GPMF Parser library include. More...
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | bitstream |
struct | rlv |
struct | RLVTABLE |
Macros | |
#define | _BITMASK(n) ((((BITSTREAM_WORD_TYPE )1 << (n))) - 1) |
#define | BITMASK(n) _bitmask[n] |
#define | BITSTREAM_ERROR_OVERFLOW 1 |
#define | BITSTREAM_WORD_SIZE 16 |
#define | BITSTREAM_WORD_TYPE uint16_t |
#define | HUFF_END_CODE_ENTRY 1 |
#define | HUFF_ESC_CODE_ENTRY 0 |
Typedefs | |
typedef struct bitstream | BITSTREAM |
typedef struct rlv | RLV |
Variables | |
static const BITSTREAM_WORD_TYPE | _bitmask [] |
static RLVTABLE | enccontrolcodestable |
static RLVTABLE | enchuftable |
static RLVTABLE | enczerorunstable |
GPMF Parser library include.
Some GPMF streams may contain compressed data, this is useful for high frequency sensor data that is highly correlated like IMU data. The compression is Huffman coding of the delta between samples, with addition codewords for runs of zeros, and optional quantization. The compression scheme is similar to the Huffman coding in JPEG. As it intended for lossless compression (with quantize set to 1) it can only compress/decompress integer based streams.
(C) Copyright 2017 GoPro Inc (http://gopro.com/).
Licensed under either:
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file GPMF_bitstream.h.
#define _BITMASK | ( | n | ) | ((((BITSTREAM_WORD_TYPE )1 << (n))) - 1) |
Definition at line 58 of file GPMF_bitstream.h.
Definition at line 57 of file GPMF_bitstream.h.
#define BITSTREAM_ERROR_OVERFLOW 1 |
Definition at line 55 of file GPMF_bitstream.h.
#define BITSTREAM_WORD_SIZE 16 |
Definition at line 54 of file GPMF_bitstream.h.
#define BITSTREAM_WORD_TYPE uint16_t |
Definition at line 53 of file GPMF_bitstream.h.
#define HUFF_END_CODE_ENTRY 1 |
Definition at line 141 of file GPMF_bitstream.h.
#define HUFF_ESC_CODE_ENTRY 0 |
Definition at line 140 of file GPMF_bitstream.h.
|
static |
|
static |
Definition at line 142 of file GPMF_bitstream.h.
|
static |
Definition at line 83 of file GPMF_bitstream.h.
|
static |
Definition at line 130 of file GPMF_bitstream.h.