pmeerw's blog

May 2012

Wed, 30 May 2012

Watermarking of Scalable Video, Citations

I just became aware of a book chapter authored by Dan Grois and Ofer Hadar, Recent Advances in Watermarking for Scalable Video Coding, Watermarking - Volume 2, Intech Open Access, ISBN: 978-953-51-0619-7, edited by Mithun Das Gupta (DOI 10.5772/37543).

The chapter summarizes large parts of my work: nice, thanks. On the other hand, three figures from my papers are redrawn and reproduced and several sentences are restated in full (and cited).

posted at: 21:21 | path: /academic | permanent link

ActionScript with Linux

Some ActionScript code (triangle.as) which displays a triangle and a rotating rectangle:

_root.createEmptyMovieClip('triangle', 1);

with (_root.triangle) {
  lineStyle(10, 0xff0000, 100);
  moveTo(200, 200);
  lineTo(300, 300);
  lineTo(100, 300);
  lineTo(200, 200);
};
          
var r:MovieClip = createEmptyMovieClip('rectangle', 2);
          
r.beginFill(0xcc00cc, 100);
r.moveTo(20, 20);
r.lineTo(140, 20);
r.lineTo(140, 140);
r.lineTo(20, 140);
r.endFill();
          
r._x = 230;
r._y = 190;
          
r.onEnterFrame = function() {
  this._rotation += 5;
};

Compile it using ming (a library for generating Macromedia Flash files, .swf):

makeswf -r 12 -v 9 -o triangle.swf triangle.as
where -r specifies the frames-per-second and -v gives the Flash format/version to create (up to 9 is supported).

Finally, embed the scary Flash thing:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="home" align="">
<param name="movie" value='/as/triangle.swf'>
<param name="quality" value="high">
<param name="bgcolor" value="#ffffff">
<embed src='/as/triangle.swf' quality="high" bgcolor="#ffffff" width="550" height="400" name="home" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</object>

Here's the code and html.

posted at: 09:57 | path: /programming | permanent link

Tue, 01 May 2012

Playing with I2C sensors

I have a couple of sensors here, I'd like to try out:
SensorI2C addressLinux driverDescription
mcp47250x60iio (TODO)digital-to-analog converter (DAC)
vcnl40000x13input, iioproximity and ambient light
lsm303dlh0x18, 0x1ehwmon3-axis accelerometer and 3-axis magnetometer
hmc5883l0x1eiio (DONE)magnetometer, compass
l3g4200d0x68hwmon3-axis gyro
bmp0850x77miscpressure
tsl25610x39iiolight
adxl345input, miscaccelerometer
sht15hwmontemperature, humidity
adjd-s311color light sensor
tca65070x45ledsLED driver
bma180accelerometer
bma250accelerometer

All are hooked up via the beagleboard-xm expansion header (I2C-2) and most require a level-shifter and 3.3 V supply.

posted at: 20:42 | path: /projects | permanent link

Made with PyBlosxom