Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VSs > VSs__H264__App
view 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 source
1 #ifndef H264_MISC_H
2 #define H264_MISC_H
4 #include "avcodec.h"
5 #include "h264_types.h"
7 void start_timer(H264Context *h, int stage);
8 void stop_timer(H264Context *h, int stage);
10 void init_sb_entry(H264Context *h, SliceBufferEntry *sbe);
11 void free_sb_entry(SliceBufferEntry *sb);
12 SliceBufferEntry *get_sb_entry(H264Context *h);
13 void release_sb_entry(H264Context *h, SliceBufferEntry *sb);
15 DecodedPicture *get_dpb_entry(H264Context *h, H264Slice *s);
16 void release_dpb_entry(H264Context *h, DecodedPicture *pic, int mode);
18 void draw_edges(MBRecContext *d, H264Slice *s, int line);
20 int ff_init_slice(NalContext *n, H264Slice *s);
21 void free_picture(PictureInfo *pic);
22 void free_dp(DecodedPicture *pic);
24 void av_start_timer();
25 int copyEDtoH264Slice(H264Slice *ms, H264Slice *es);
26 void print_report(int frame_number, uint64_t video_size, int is_last_report, int verbose);
28 int ff_alloc_picture_info(NalContext *n, H264Slice *s, PictureInfo *pic);
29 DecodedPicture *output_frame(H264Context *h, OutputContext *oc, DecodedPicture *pic, int fd, int frame_width, int frame_height);
30 OutputContext *get_output_context(H264Context *h);
31 void free_output_context(OutputContext *oc);
33 void freeSuperMBContext(SuperMBContext *smbc);
34 SuperMBContext *getSuperMBContext(H264Context *h, int smb_width, int smb_height);
35 void release_smbc(H264Context *h, SuperMBContext *smbc);
36 SuperMBContext * acquire_smbc(H264Context *h );
38 #if HAVE_LIBSDL2
39 void signal_sdl_exit(H264Context *h);
40 void *sdl_thread(void *arg);
41 SDLContext *get_SDL_context(H264Context *h);
42 void free_SDL_context(SDLContext *sdlc);
43 #endif
45 /**
46 * gets the chroma qp.
47 */
48 static inline int get_chroma_qp(H264Slice *s, int t, int qscale){
49 return s->pps.chroma_qp_table[t][qscale];
50 }
52 #endif
