[FFmpeg-cvslog] r25571 - trunk/libavcodec/ffv1.c

michael subversion
Tue Oct 26 03:59:15 CEST 2010


Author: michael
Date: Tue Oct 26 03:59:14 2010
New Revision: 25571

Log:
Increase ffv1 encoding speed from 65 to 80 fps by forcing some inlining.

Modified:
   trunk/libavcodec/ffv1.c

Modified: trunk/libavcodec/ffv1.c
==============================================================================
--- trunk/libavcodec/ffv1.c	Tue Oct 26 03:59:03 2010	(r25570)
+++ trunk/libavcodec/ffv1.c	Tue Oct 26 03:59:14 2010	(r25571)
@@ -299,7 +299,7 @@ static inline int get_context(PlaneConte
         return p->quant_table[0][(L-LT) & 0xFF] + p->quant_table[1][(LT-T) & 0xFF] + p->quant_table[2][(T-RT) & 0xFF];
 }
 
-static inline void put_symbol_inline(RangeCoder *c, uint8_t *state, int v, int is_signed, uint64_t rc_stat[256][2]){
+static av_always_inline av_flatten void put_symbol_inline(RangeCoder *c, uint8_t *state, int v, int is_signed, uint64_t rc_stat[256][2]){
     int i;
 
 #define put_rac(C,S,B) \
@@ -459,7 +459,7 @@ static inline int get_vlc_symbol(GetBitC
 }
 
 #if CONFIG_FFV1_ENCODER
-static inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){
+static av_always_inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){
     PlaneContext * const p= &s->plane[plane_index];
     RangeCoder * const c= &s->c;
     int x;



More information about the ffmpeg-cvslog mailing list