Browse code

Merge remote-tracking branch 'qatar/master'

* qatar/master:
cosmetics: remove some stray comments from AVCodec declarations
cosmetics: fix indentation/alignment in AVCodec declarations
arm: Avoid using the movw instruction needlessly
Move an int64_t down in MpegEncContext

Conflicts:
libavcodec/arm/ac3dsp_armv6.S

Merged-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/08/04 08:40:29
Showing 9 changed files
... ...
@@ -230,5 +230,5 @@ AVCodec ff_eightbps_decoder = {
230 230
     .close          = decode_end,
231 231
     .decode         = decode_frame,
232 232
     .capabilities   = CODEC_CAP_DR1,
233
-        .long_name = NULL_IF_CONFIG_SMALL("QuickTime 8BPS video"),
233
+    .long_name      = NULL_IF_CONFIG_SMALL("QuickTime 8BPS video"),
234 234
 };
... ...
@@ -37,7 +37,7 @@ function ff_ac3_bit_alloc_calc_bap_armv6, export=1
37 37
         ldrb            r10, [r4], #1
38 38
 1:
39 39
         ldrsh           r9,  [r0], #2                   @ mask[band]
40
-        ldr             r8,  =0x1fe0
40
+        mov             r8,  #0xff0
41 41
         sub             r9,  r9,  r12                   @   - snr_offset
42 42
         mov             r11, r10
43 43
         ldrb            r10, [r4], #1                   @ band_start_tab[band++]
... ...
@@ -45,7 +45,7 @@ function ff_ac3_bit_alloc_calc_bap_armv6, export=1
45 45
         it              lt
46 46
         movlt           r9,  #0
47 47
         cmp             r10, r3                         @   - end
48
-        and             r9,  r9,  r8                    @   & 0x1fe0
48
+        and             r9,  r9,  r8, lsl #1            @   & 0x1fe0
49 49
         ite             gt
50 50
         subgt           r8,  r3,  r11
51 51
         suble           r8,  r10, r11
... ...
@@ -29,11 +29,11 @@
29 29
 #endif
30 30
 
31 31
 /* MpegEncContext */
32
-#define Y_DC_SCALE               0xb4
33
-#define C_DC_SCALE               0xb8
34
-#define AC_PRED                  0xbc
35
-#define BLOCK_LAST_INDEX         0xc0
36
-#define H263_AIC                 0xf0
37
-#define INTER_SCANTAB_RASTER_END 0x138
32
+#define Y_DC_SCALE               0xa8
33
+#define C_DC_SCALE               0xac
34
+#define AC_PRED                  0xb0
35
+#define BLOCK_LAST_INDEX         0xb4
36
+#define H263_AIC                 0xe4
37
+#define INTER_SCANTAB_RASTER_END 0x12c
38 38
 
39 39
 #endif /* AVCODEC_ARM_ASM_OFFSETS_H */
... ...
@@ -160,7 +160,6 @@ AVCodec ff_cljr_encoder = {
160 160
     .priv_data_size = sizeof(CLJRContext),
161 161
     .init           = encode_init,
162 162
     .encode         = encode_frame,
163
-    //encode_end,
164 163
     .long_name = NULL_IF_CONFIG_SMALL("Cirrus Logic AccuPak"),
165 164
 };
166 165
 #endif
... ...
@@ -235,7 +235,6 @@ typedef struct MpegEncContext {
235 235
     int picture_number;       //FIXME remove, unclear definition
236 236
     int picture_in_gop_number; ///< 0-> first pic in gop, ...
237 237
     int b_frames_since_non_b;  ///< used for encoding, relative to not yet reordered input
238
-    int64_t user_specified_pts;///< last non zero pts from AVFrame which was passed into avcodec_encode_video()
239 238
     int mb_width, mb_height;   ///< number of MBs horizontally & vertically
240 239
     int mb_stride;             ///< mb_width+1 used for some arrays to allow simple addressing of left & top MBs without sig11
241 240
     int b8_stride;             ///< 2*mb_width+1 used for some 8x8 block arrays to allow simple addressing
... ...
@@ -262,6 +261,8 @@ typedef struct MpegEncContext {
262 262
     /* WARNING: changes above this line require updates to hardcoded
263 263
      *          offsets used in asm. */
264 264
 
265
+    int64_t user_specified_pts;///< last non zero pts from AVFrame which was passed into avcodec_encode_video()
266
+
265 267
     /** bit output */
266 268
     PutBitContext pb;
267 269
 
... ...
@@ -208,6 +208,6 @@ AVCodec ff_tscc_decoder = {
208 208
     .close          = decode_end,
209 209
     .decode         = decode_frame,
210 210
     .capabilities   = CODEC_CAP_DR1,
211
-        .long_name = NULL_IF_CONFIG_SMALL("TechSmith Screen Capture Codec"),
211
+    .long_name      = NULL_IF_CONFIG_SMALL("TechSmith Screen Capture Codec"),
212 212
 };
213 213
 
... ...
@@ -197,7 +197,6 @@ AVCodec ff_vcr1_encoder = {
197 197
     .priv_data_size = sizeof(VCR1Context),
198 198
     .init           = encode_init,
199 199
     .encode         = encode_frame,
200
-    //encode_end,
201 200
     .long_name = NULL_IF_CONFIG_SMALL("ATI VCR1"),
202 201
 };
203 202
 #endif
... ...
@@ -136,10 +136,10 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
136 136
 }
137 137
 
138 138
 AVCodec ff_xsub_decoder = {
139
-    .name           = "xsub",
140
-    .type           = AVMEDIA_TYPE_SUBTITLE,
141
-    .id             = CODEC_ID_XSUB,
142
-    .init           = decode_init,
143
-    .decode         = decode_frame,
139
+    .name      = "xsub",
140
+    .type      = AVMEDIA_TYPE_SUBTITLE,
141
+    .id        = CODEC_ID_XSUB,
142
+    .init      = decode_init,
143
+    .decode    = decode_frame,
144 144
     .long_name = NULL_IF_CONFIG_SMALL("XSUB"),
145 145
 };
... ...
@@ -211,10 +211,10 @@ static av_cold int xsub_encoder_init(AVCodecContext *avctx)
211 211
 }
212 212
 
213 213
 AVCodec ff_xsub_encoder = {
214
-    .name           = "xsub",
215
-    .type           = AVMEDIA_TYPE_SUBTITLE,
216
-    .id             = CODEC_ID_XSUB,
217
-    .init           = xsub_encoder_init,
218
-    .encode         = xsub_encode,
214
+    .name      = "xsub",
215
+    .type      = AVMEDIA_TYPE_SUBTITLE,
216
+    .id        = CODEC_ID_XSUB,
217
+    .init      = xsub_encoder_init,
218
+    .encode    = xsub_encode,
219 219
     .long_name = NULL_IF_CONFIG_SMALL("DivX subtitles (XSUB)"),
220 220
 };