Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VSs > VSs__H264__App
diff libavcodec/h264_misc.h @ 2:897f711a7157
rearrange to work with autoconf
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Tue, 25 Sep 2012 15:55:33 +0200 |
| parents | |
| children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libavcodec/h264_misc.h Tue Sep 25 15:55:33 2012 +0200 1.3 @@ -0,0 +1,52 @@ 1.4 +#ifndef H264_MISC_H 1.5 +#define H264_MISC_H 1.6 + 1.7 +#include "avcodec.h" 1.8 +#include "h264_types.h" 1.9 + 1.10 +void start_timer(H264Context *h, int stage); 1.11 +void stop_timer(H264Context *h, int stage); 1.12 + 1.13 +void init_sb_entry(H264Context *h, SliceBufferEntry *sbe); 1.14 +void free_sb_entry(SliceBufferEntry *sb); 1.15 +SliceBufferEntry *get_sb_entry(H264Context *h); 1.16 +void release_sb_entry(H264Context *h, SliceBufferEntry *sb); 1.17 + 1.18 +DecodedPicture *get_dpb_entry(H264Context *h, H264Slice *s); 1.19 +void release_dpb_entry(H264Context *h, DecodedPicture *pic, int mode); 1.20 + 1.21 +void draw_edges(MBRecContext *d, H264Slice *s, int line); 1.22 + 1.23 +int ff_init_slice(NalContext *n, H264Slice *s); 1.24 +void free_picture(PictureInfo *pic); 1.25 +void free_dp(DecodedPicture *pic); 1.26 + 1.27 +void av_start_timer(); 1.28 +int copyEDtoH264Slice(H264Slice *ms, H264Slice *es); 1.29 +void print_report(int frame_number, uint64_t video_size, int is_last_report, int verbose); 1.30 + 1.31 +int ff_alloc_picture_info(NalContext *n, H264Slice *s, PictureInfo *pic); 1.32 +DecodedPicture *output_frame(H264Context *h, OutputContext *oc, DecodedPicture *pic, int fd, int frame_width, int frame_height); 1.33 +OutputContext *get_output_context(H264Context *h); 1.34 +void free_output_context(OutputContext *oc); 1.35 + 1.36 +void freeSuperMBContext(SuperMBContext *smbc); 1.37 +SuperMBContext *getSuperMBContext(H264Context *h, int smb_width, int smb_height); 1.38 +void release_smbc(H264Context *h, SuperMBContext *smbc); 1.39 +SuperMBContext * acquire_smbc(H264Context *h ); 1.40 + 1.41 +#if HAVE_LIBSDL2 1.42 +void signal_sdl_exit(H264Context *h); 1.43 +void *sdl_thread(void *arg); 1.44 +SDLContext *get_SDL_context(H264Context *h); 1.45 +void free_SDL_context(SDLContext *sdlc); 1.46 +#endif 1.47 + 1.48 +/** 1.49 +* gets the chroma qp. 1.50 +*/ 1.51 +static inline int get_chroma_qp(H264Slice *s, int t, int qscale){ 1.52 + return s->pps.chroma_qp_table[t][qscale]; 1.53 +} 1.54 + 1.55 +#endif
