linux/drivers/media
Mauro Carvalho Chehab 559addc25b [media] fixp-arith: replace sin/cos table by a better precision one
The cos table used at fixp-arith.h has only 8 bits of precision.
That causes problems if it is reused on other drivers.

As some media drivers require a higher precision sin/cos
implementation, replace the current implementation by one that
will provide 32 bits precision.

The values generated by the new implementation matches the
32 bit precision of glibc's sin for an angle measured in
integer degrees.

It also provides support for fractional angles via linear
interpolation. On experimental calculus, when used a table
with a 0.001 degree angle, the maximum error for sin is
0.000038, which is likely good enough for practical purposes.

There are some logic there that seems to be specific to the
usage inside ff-memless.c. Move those logic to there, as they're
not needed elsewhere.

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Prashant Laddha <prladdha@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-03-02 14:50:06 -03:00
..
common [media] use a function for DVB media controller register 2015-03-02 11:29:39 -03:00
dvb-core [media] use a function for DVB media controller register 2015-03-02 11:29:39 -03:00
dvb-frontends [media] stb0899: use sign_extend32() for sign extension 2015-02-03 18:16:18 -02:00
firewire [media] firewire: Deletion of an unnecessary check before the function call "dvb_unregister_device" 2014-11-25 13:30:31 -02:00
i2c [media] cx25840: better document the media pads 2015-02-26 08:45:58 -03:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] cx88: Fix possible leak in cx8802_probe() 2015-03-02 14:47:19 -03:00
platform [media] sh_vou: fix memory leak on error paths in sh_vou_open() 2015-03-02 14:46:48 -03:00
radio [media] radio/aimslab: use mdelay instead of udelay 2015-02-02 11:07:09 -02:00
rc [media] ir-hix5hd2: remove writel/readl_relaxed define 2015-02-11 20:23:52 -02:00
tuners [media] si2157: change firmware variable name and type 2015-01-29 18:50:28 -02:00
usb [media] fixp-arith: replace sin/cos table by a better precision one 2015-03-02 14:50:06 -03:00
v4l2-core [media] tuner-core: fix compilation if the media controller is not defined 2015-02-26 08:44:04 -03:00
Kconfig [media] dvbdev: add support for media controller 2015-02-13 21:10:12 -02:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c [media] media: Use strlcpy instead of custom code 2014-09-21 20:27:08 -03:00
media-devnode.c [media] media-devnode: just return 0 instead of using a var 2014-09-03 17:59:28 -03:00
media-entity.c [media] media: Fix a compiler warning in media_entity_pipeline_start() 2014-11-03 19:09:13 -02:00