viddec_pm_parse.h revision bd8388b4555645b3d29abc6a94c303638064d69a
1#ifndef VIDDEC_PM_PARSE_H
2#define VIDDEC_PM_PARSE_H
3
4#include <stdint.h>
5/* This structure is used by first pass parsing(sc detect), the pm passes information on number of bytes
6   that needs to be parsed and if start code found then sc_end_pos contains the index of last sc code byte
7   in the current buffer */
8typedef struct
9{
10    uint32_t size; /* size pointed to by buf */
11    uint8_t *buf;  /* ptr to data */
12    int32_t sc_end_pos; /* return value end position of sc */
13    uint32_t phase; /* phase information(state) for sc */
14}viddec_sc_parse_cubby_cxt_t;
15
16typedef struct
17{
18    uint16_t next_sc;
19    uint8_t  second_scprfx_length;
20    uint8_t  first_sc_detect;
21}viddec_sc_prefix_state_t;
22
23uint32_t viddec_parse_sc(void *in, void *pcxt, void *sc_state);
24#endif
25