Mercurial > libavcodec.hg
comparison mpegvideo.h @ 1218:358bbc952e27 libavcodec
10l (returning negative number of consumed bytes if the first startcode of a frame was split between 2 buffers)
author | michaelni |
---|---|
date | Sun, 27 Apr 2003 01:11:26 +0000 |
parents | fea03d2c4946 |
children | 2fa34e615c76 |
comparison
equal
deleted
inserted
replaced
1217:eb2affe57a2a | 1218:358bbc952e27 |
---|---|
203 typedef struct ParseContext{ | 203 typedef struct ParseContext{ |
204 uint8_t *buffer; | 204 uint8_t *buffer; |
205 int index; | 205 int index; |
206 int last_index; | 206 int last_index; |
207 int buffer_size; | 207 int buffer_size; |
208 int state; | 208 uint32_t state; ///< contains the last few bytes in MSB order |
209 int frame_start_found; | 209 int frame_start_found; |
210 int overread; ///< the number of bytes which where irreversibly read from the next frame | |
211 int overread_index; ///< the index into ParseContext.buffer of the overreaded bytes | |
210 } ParseContext; | 212 } ParseContext; |
211 | 213 |
212 struct MpegEncContext; | 214 struct MpegEncContext; |
213 | 215 |
214 /** | 216 /** |
707 void ff_init_scantable(MpegEncContext *s, ScanTable *st, const uint8_t *src_scantable); | 709 void ff_init_scantable(MpegEncContext *s, ScanTable *st, const uint8_t *src_scantable); |
708 void ff_draw_horiz_band(MpegEncContext *s, int y, int h); | 710 void ff_draw_horiz_band(MpegEncContext *s, int y, int h); |
709 void ff_emulated_edge_mc(MpegEncContext *s, uint8_t *src, int linesize, int block_w, int block_h, | 711 void ff_emulated_edge_mc(MpegEncContext *s, uint8_t *src, int linesize, int block_w, int block_h, |
710 int src_x, int src_y, int w, int h); | 712 int src_x, int src_y, int w, int h); |
711 char ff_get_pict_type_char(int pict_type); | 713 char ff_get_pict_type_char(int pict_type); |
714 #define END_NOT_FOUND -100 | |
712 int ff_combine_frame( MpegEncContext *s, int next, uint8_t **buf, int *buf_size); | 715 int ff_combine_frame( MpegEncContext *s, int next, uint8_t **buf, int *buf_size); |
713 void ff_print_debug_info(MpegEncContext *s, Picture *pict); | 716 void ff_print_debug_info(MpegEncContext *s, Picture *pict); |
714 | 717 |
715 void ff_er_frame_start(MpegEncContext *s); | 718 void ff_er_frame_start(MpegEncContext *s); |
716 void ff_er_frame_end(MpegEncContext *s); | 719 void ff_er_frame_end(MpegEncContext *s); |