mpeg2.h File Reference

Go to the source code of this file.

Classes

struct  mpeg2_sequence_s
struct  mpeg2_gop_s
struct  mpeg2_picture_s
struct  mpeg2_fbuf_s
struct  mpeg2_info_s
struct  mpeg2_convert_init_s

Typedefs

typedef struct mpeg2_sequence_s mpeg2_sequence_t
typedef struct mpeg2_gop_s mpeg2_gop_t
typedef struct mpeg2_picture_s mpeg2_picture_t
typedef struct mpeg2_fbuf_s mpeg2_fbuf_t
typedef struct mpeg2_info_s mpeg2_info_t
typedef struct mpeg2dec_s mpeg2dec_t
typedef struct mpeg2_decoder_s mpeg2_decoder_t
typedef struct mpeg2_convert_init_s mpeg2_convert_init_t
typedef int mpeg2_convert_t (int stage, void *id, const mpeg2_sequence_t *sequence, int stride, uint32_t accel, void *arg, mpeg2_convert_init_t *result)

Enumerations

enum  mpeg2_state_t {
  STATE_BUFFER = 0, STATE_SEQUENCE = 1, STATE_SEQUENCE_REPEATED = 2, STATE_SEQUENCE_MODIFIED = 3,
  STATE_GOP = 4, STATE_PICTURE = 5, STATE_SLICE_1ST = 6, STATE_PICTURE_2ND = 7,
  STATE_SLICE = 8, STATE_END = 9, STATE_INVALID = 10, STATE_INVALID_END = 11
}
enum  mpeg2_convert_stage_t { MPEG2_CONVERT_SET = 0, MPEG2_CONVERT_STRIDE = 1, MPEG2_CONVERT_START = 2 }
enum  mpeg2_alloc_t {
  MPEG2_ALLOC_MPEG2DEC = 0, MPEG2_ALLOC_CHUNK = 1, MPEG2_ALLOC_YUV = 2, MPEG2_ALLOC_CONVERT_ID = 3,
  MPEG2_ALLOC_CONVERTED = 4
}

Functions

int mpeg2_convert (mpeg2dec_t *mpeg2dec, mpeg2_convert_t convert, void *arg)
int mpeg2_stride (mpeg2dec_t *mpeg2dec, int stride)
void mpeg2_set_buf (mpeg2dec_t *mpeg2dec, uint8_t *buf[3], void *id)
void mpeg2_custom_fbuf (mpeg2dec_t *mpeg2dec, int custom_fbuf)
uint32_t mpeg2_accel (uint32_t accel)
mpeg2dec_tmpeg2_init (void)
const mpeg2_info_tmpeg2_info (mpeg2dec_t *mpeg2dec)
void mpeg2_close (mpeg2dec_t *mpeg2dec)
void mpeg2_buffer (mpeg2dec_t *mpeg2dec, uint8_t *start, uint8_t *end)
int mpeg2_getpos (mpeg2dec_t *mpeg2dec)
mpeg2_state_t mpeg2_parse (mpeg2dec_t *mpeg2dec)
void mpeg2_reset (mpeg2dec_t *mpeg2dec, int full_reset)
void mpeg2_skip (mpeg2dec_t *mpeg2dec, int skip)
void mpeg2_slice_region (mpeg2dec_t *mpeg2dec, int start, int end)
void mpeg2_tag_picture (mpeg2dec_t *mpeg2dec, uint32_t tag, uint32_t tag2)
void mpeg2_init_fbuf (mpeg2_decoder_t *decoder, uint8_t *current_fbuf[3], uint8_t *forward_fbuf[3], uint8_t *backward_fbuf[3])
void mpeg2_slice (mpeg2_decoder_t *decoder, int code, const uint8_t *buffer)
int mpeg2_guess_aspect (const mpeg2_sequence_t *sequence, unsigned int *pixel_width, unsigned int *pixel_height)
void * mpeg2_malloc (unsigned size, mpeg2_alloc_t reason)
void mpeg2_free (void *buf)
void mpeg2_malloc_hooks (void *malloc(unsigned, mpeg2_alloc_t), int free(void *))


Typedef Documentation

typedef struct mpeg2_gop_s mpeg2_gop_t

typedef struct mpeg2_fbuf_s mpeg2_fbuf_t

typedef struct mpeg2_info_s mpeg2_info_t

typedef struct mpeg2dec_s mpeg2dec_t

Definition at line 117 of file mpeg2.h.

Definition at line 118 of file mpeg2.h.

typedef int mpeg2_convert_t(int stage, void *id, const mpeg2_sequence_t *sequence, int stride, uint32_t accel, void *arg, mpeg2_convert_init_t *result)

Definition at line 147 of file mpeg2.h.


Enumeration Type Documentation

Enumerator:
STATE_BUFFER 
STATE_SEQUENCE 
STATE_SEQUENCE_REPEATED 
STATE_SEQUENCE_MODIFIED 
STATE_GOP 
STATE_PICTURE 
STATE_SLICE_1ST 
STATE_PICTURE_2ND 
STATE_SLICE 
STATE_END 
STATE_INVALID 
STATE_INVALID_END 

Definition at line 120 of file mpeg2.h.

Enumerator:
MPEG2_CONVERT_SET 
MPEG2_CONVERT_STRIDE 
MPEG2_CONVERT_START 

Definition at line 142 of file mpeg2.h.

Enumerator:
MPEG2_ALLOC_MPEG2DEC 
MPEG2_ALLOC_CHUNK 
MPEG2_ALLOC_YUV 
MPEG2_ALLOC_CONVERT_ID 
MPEG2_ALLOC_CONVERTED 

Definition at line 190 of file mpeg2.h.


Function Documentation

int mpeg2_convert ( mpeg2dec_t mpeg2dec,
mpeg2_convert_t  convert,
void *  arg 
)

Definition at line 293 of file mythtv/libs/libmythmpeg2/decode.c.

int mpeg2_stride ( mpeg2dec_t mpeg2dec,
int  stride 
)

Definition at line 309 of file mythtv/libs/libmythmpeg2/decode.c.

void mpeg2_set_buf ( mpeg2dec_t mpeg2dec,
uint8_t *  buf[3],
void *  id 
)

void mpeg2_custom_fbuf ( mpeg2dec_t mpeg2dec,
int  custom_fbuf 
)

uint32_t mpeg2_accel ( uint32_t  accel  ) 

Definition at line 379 of file mythtv/libs/libmythmpeg2/decode.c.

Referenced by mpeg2_init().

mpeg2dec_t* mpeg2_init ( void   ) 

const mpeg2_info_t* mpeg2_info ( mpeg2dec_t mpeg2dec  ) 

void mpeg2_close ( mpeg2dec_t mpeg2dec  ) 

void mpeg2_buffer ( mpeg2dec_t mpeg2dec,
uint8_t *  start,
uint8_t *  end 
)

int mpeg2_getpos ( mpeg2dec_t mpeg2dec  ) 

Definition at line 117 of file mythtv/libs/libmythmpeg2/decode.c.

Referenced by MPEG2fixup::ProcessVideo().

mpeg2_state_t mpeg2_parse ( mpeg2dec_t mpeg2dec  ) 

void mpeg2_reset ( mpeg2dec_t mpeg2dec,
int  full_reset 
)

void mpeg2_skip ( mpeg2dec_t mpeg2dec,
int  skip 
)

Definition at line 355 of file mythtv/libs/libmythmpeg2/decode.c.

void mpeg2_slice_region ( mpeg2dec_t mpeg2dec,
int  start,
int  end 
)

Definition at line 361 of file mythtv/libs/libmythmpeg2/decode.c.

void mpeg2_tag_picture ( mpeg2dec_t mpeg2dec,
uint32_t  tag,
uint32_t  tag2 
)

Definition at line 369 of file mythtv/libs/libmythmpeg2/decode.c.

void mpeg2_init_fbuf ( mpeg2_decoder_t decoder,
uint8_t *  current_fbuf[3],
uint8_t *  forward_fbuf[3],
uint8_t *  backward_fbuf[3] 
)

Definition at line 1590 of file slice.c.

Referenced by mpeg2_header_slice_start().

void mpeg2_slice ( mpeg2_decoder_t decoder,
int  code,
const uint8_t *  buffer 
)

Definition at line 1775 of file slice.c.

Referenced by mpeg2_parse().

int mpeg2_guess_aspect ( const mpeg2_sequence_t sequence,
unsigned int *  pixel_width,
unsigned int *  pixel_height 
)

Definition at line 338 of file header.c.

void* mpeg2_malloc ( unsigned  size,
mpeg2_alloc_t  reason 
)

Definition at line 32 of file alloc.c.

Referenced by mpeg2_header_picture_finalize(), and mpeg2_init().

void mpeg2_free ( void *  buf  ) 

Definition at line 56 of file alloc.c.

Referenced by mpeg2_close(), and mpeg2_header_state_init().

void mpeg2_malloc_hooks ( void *  mallocunsigned, mpeg2_alloc_t,
int   freevoid * 
)

Definition at line 65 of file alloc.c.

Referenced by MPEG2fixup::MPEG2fixup().


Generated on Sat Dec 18 05:15:54 2010 for MythTV by  doxygen 1.5.5