File: tc_lzo.h

package info (click to toggle)
transcode 3%3A1.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 11,644 kB
  • sloc: ansic: 116,927; sh: 11,468; xml: 2,849; makefile: 1,891; perl: 1,492; pascal: 526; php: 191; python: 144; sed: 43
file content (49 lines) | stat: -rw-r--r-- 1,194 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * tc_lzo.h - LZO extra (meta) data used by transcode
 *
 * This file is part of transcode, a video stream processing tool.
 * transcode is free software, distributable under the terms of the GNU
 * General Public License (version 2 or later).  See the file COPYING
 * for details.
 */

#ifndef TC_LZO_H
#define TC_LZO_H

#include <lzo/lzo1x.h>
#include <lzo/lzoutil.h>

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <stdint.h>
#include <sys/types.h>

/* flags */
#define TC_LZO_FORMAT_YV12    	1  /* obsolete */
#define TC_LZO_FORMAT_RGB24     2
#define TC_LZO_FORMAT_YUY2      4
#define TC_LZO_NOT_COMPRESSIBLE 8
#define TC_LZO_FORMAT_YUV420P   16

#define TC_LZO_HDR_SIZE		16
/* 
 * bytes; sum of sizes of tc_lzo_header_t members;
 * _can_ be different from sizeof(tc_lzo_header_t)
 * because structure can be padded (even if it's unlikely
 * since it's already 32-bit and 64-bit aligned).
 * I don't like __attribute__(packed).
 */

typedef struct tc_lzo_header_t {
    uint32_t magic;
    uint32_t size;
    uint32_t flags;
    uint8_t method; /* compression method */
    uint8_t level;  /* compression level */
    uint16_t pad;
} tc_lzo_header_t;


#endif /* TC_LZO_H */