~ubuntu-branches/debian/experimental/libav/experimental

« back to all changes in this revision

Viewing changes to libavcodec/mathtables.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2014-08-10 09:45:02 UTC
  • mfrom: (1.1.28) (2.1.45 sid)
  • Revision ID: package-import@ubuntu.com-20140810094502-p8pds4kq0zpig5oq
Tags: 6:11~alpha1-1
* New upstream Release v11
  - Fixes Unchecked conversion from double to enum (Closes: #749164)
* Add some post v11_alpha1 patches from upstream
* All SONAMEs bumped because of internal changes, but external API is
  promised to have not changed

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,