comparison snow.c @ 5910:85a976d59f17 libavcodec

Add comments to some #endif directives.
author diego
date Sat, 10 Nov 2007 16:44:37 +0000
parents 4e3c522ca492
children ae61a5713584
comparison
equal deleted inserted replaced
5909:4e3c522ca492 5910:85a976d59f17
337 0, 4, 12, 24, 32, 44, 52, 56, 56, 52, 44, 32, 24, 12, 4, 0, 337 0, 4, 12, 24, 32, 44, 52, 56, 56, 52, 44, 32, 24, 12, 4, 0,
338 0, 0, 4, 8, 12, 16, 20, 20, 20, 20, 16, 12, 8, 4, 0, 0, 338 0, 0, 4, 8, 12, 16, 20, 20, 20, 20, 16, 12, 8, 4, 0, 0,
339 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 339 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0,
340 //error:0.000022 340 //error:0.000022
341 }; 341 };
342 #endif 342 #endif /* 0 */
343 343
344 //linear *64 344 //linear *64
345 static const uint8_t obmc8[64]={ 345 static const uint8_t obmc8[64]={
346 4, 12, 20, 28, 28, 20, 12, 4, 346 4, 12, 20, 28, 28, 20, 12, 4,
347 12, 36, 60, 84, 84, 60, 36, 12, 347 12, 36, 60, 84, 84, 60, 36, 12,
655 } 655 }
656 656
657 if(is_signed) 657 if(is_signed)
658 put_rac(c, state+11 + FFMIN(e,10), v < 0); //11..21 658 put_rac(c, state+11 + FFMIN(e,10), v < 0); //11..21
659 } 659 }
660 #endif 660 #endif /* 1 */
661 }else{ 661 }else{
662 put_rac(c, state+0, 1); 662 put_rac(c, state+0, 1);
663 } 663 }
664 } 664 }
665 665
1076 b[width -1] = A3; 1076 b[width -1] = A3;
1077 b[width2-1] = A2; 1077 b[width2-1] = A2;
1078 #else 1078 #else
1079 inv_lift(temp , b , b+w2, 1, 1, 1, width, 1, 2, 2, 0, 1); 1079 inv_lift(temp , b , b+w2, 1, 1, 1, width, 1, 2, 2, 0, 1);
1080 inv_lift(temp+w2, b+w2, temp, 1, 1, 1, width, -1, 0, 1, 1, 1); 1080 inv_lift(temp+w2, b+w2, temp, 1, 1, 1, width, -1, 0, 1, 1, 1);
1081 #endif 1081 #endif /* 0 */
1082 for(x=0; x<width2; x++){ 1082 for(x=0; x<width2; x++){
1083 b[2*x ]= temp[x ]; 1083 b[2*x ]= temp[x ];
1084 b[2*x + 1]= temp[x+w2]; 1084 b[2*x + 1]= temp[x+w2];
1085 } 1085 }
1086 if(width&1) 1086 if(width&1)
2619 }else{ 2619 }else{
2620 dst[x + y*dst_stride] -= v; 2620 dst[x + y*dst_stride] -= v;
2621 } 2621 }
2622 } 2622 }
2623 } 2623 }
2624 #endif 2624 #endif /* 0 */
2625 } 2625 }
2626 2626
2627 static av_always_inline void predict_slice_buffered(SnowContext *s, slice_buffer * sb, IDWTELEM * old_buffer, int plane_index, int add, int mb_y){ 2627 static av_always_inline void predict_slice_buffered(SnowContext *s, slice_buffer * sb, IDWTELEM * old_buffer, int plane_index, int add, int mb_y){
2628 Plane *p= &s->plane[plane_index]; 2628 Plane *p= &s->plane[plane_index];
2629 const int mb_w= s->b_width << s->block_max_depth; 2629 const int mb_w= s->b_width << s->block_max_depth;
4035 } 4035 }
4036 } 4036 }
4037 memcpy(s->spatial_idwt_buffer, best_dequant, height * stride * sizeof(IDWTELEM)); //FIXME work with that directly insteda of copy at the end 4037 memcpy(s->spatial_idwt_buffer, best_dequant, height * stride * sizeof(IDWTELEM)); //FIXME work with that directly insteda of copy at the end
4038 } 4038 }
4039 4039
4040 #endif 4040 #endif /* QUANTIZE2==1 */
4041 4041
4042 static int encode_init(AVCodecContext *avctx) 4042 static int encode_init(AVCodecContext *avctx)
4043 { 4043 {
4044 SnowContext *s = avctx->priv_data; 4044 SnowContext *s = avctx->priv_data;
4045 int plane_index; 4045 int plane_index;
4910 } 4910 }
4911 4911
4912 } 4912 }
4913 return 0; 4913 return 0;
4914 } 4914 }
4915 #endif 4915 #endif /* 0 */
4916