~ubuntu-branches/ubuntu/utopic/libav/utopic-proposed

« back to all changes in this revision

Viewing changes to libavcodec/mathtables.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler, Reinhard Tartler, Rico Tzschichholz
  • Date: 2014-08-30 11:02:45 UTC
  • mfrom: (1.3.47 sid)
  • Revision ID: package-import@ubuntu.com-20140830110245-io3dg7q85wfr7125
Tags: 6:11~beta1-2
[ Reinhard Tartler ]
* Make libavcodec-dev depend on libavresample-dev

[ Rico Tzschichholz ]
* Some fixes and leftovers from soname bumps

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
#include <stdint.h>
20
20
 
 
21
#include "mathops.h"
 
22
 
21
23
/* a*inverse[b]>>32 == a/b for all 0<=a<=16909558 && 2<=b<=256
22
24
 * for a>16909558, is an overestimate by less than 1 part in 1<<24 */
23
25
const uint32_t ff_inverse[257]={
89
91
#define times4(x) x, x, x, x
90
92
#define times256(x) times4(times4(times4(times4(times4(x)))))
91
93
 
92
 
const uint8_t ff_cropTbl[256 + 2 * 1024] = {
 
94
const uint8_t ff_crop_tab[256 + 2 * MAX_NEG_CROP] = {
93
95
times256(0x00),
94
96
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,
95
97
0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,