~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-updates

« back to all changes in this revision

Viewing changes to libavcodec/rv34.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-02-05 21:45:05 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090205214505-fvn0jkiv3lrkaaq4
Tags: 3:0.svn20090204-2ubuntu1+unstripped1
rebuild using a clean, uncrippled ffmpeg tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 */
21
21
 
22
22
/**
23
 
 * @file rv34.c
 
23
 * @file libavcodec/rv34.c
24
24
 * RV30/40 decoder common data
25
25
 */
26
26
 
65
65
 * Generate VLC from codeword lengths.
66
66
 * @param bits   codeword lengths (zeroes are accepted)
67
67
 * @param size   length of input data
 
68
 * @param vlc    output VLC
68
69
 * @param insyms symbols for input codes (NULL for default ones)
69
70
 */
70
71
static void rv34_gen_vlc(const uint8_t *bits, int size, VLC *vlc, const uint8_t *insyms)
100
101
/**
101
102
 * Initialize all tables.
102
103
 */
103
 
static av_cold void rv34_init_tables()
 
104
static av_cold void rv34_init_tables(void)
104
105
{
105
106
    int i, j, k;
106
107
 
222
223
    int ones;
223
224
    static const int cbp_masks[3] = {0x100000, 0x010000, 0x110000};
224
225
    static const int shifts[4] = { 0, 2, 8, 10 };
225
 
    int *curshift = shifts;
 
226
    const int *curshift = shifts;
226
227
    int i, t, mask;
227
228
 
228
229
    code = get_vlc2(gb, vlc->cbppattern[table].table, 9, 2);
618
619
 * @param mv_off offset to the motion vector information
619
620
 * @param width width of the current partition in 8x8 blocks
620
621
 * @param height height of the current partition in 8x8 blocks
 
622
 * @param dir motion compensation direction (i.e. from the last or the next reference frame)
 
623
 * @param thirdpel motion vectors are specified in 1/3 of pixel
 
624
 * @param qpel_mc a set of functions used to perform luma motion compensation
 
625
 * @param chroma_mc a set of functions used to perform chroma motion compensation
621
626
 */
622
627
static inline void rv34_mc(RV34DecContext *r, const int block_type,
623
628
                          const int xoff, const int yoff, int mv_off,
878
883
    }
879
884
    if(!right && up){
880
885
        topleft = dst[-stride + 3] * 0x01010101;
881
 
        prev = &topleft;
 
886
        prev = (uint8_t*)&topleft;
882
887
    }
883
888
    r->h.pred4x4[itype](dst, prev, stride);
884
889
}