Home | History | Annotate | Download | only in include
      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 */
      8 typedef 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 
     16 typedef 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 
     23 uint32_t viddec_parse_sc(void *in, void *pcxt, void *sc_state);
     24 #endif
     25