ffmpeg - coordinate system
Top left.

Pixels in a raw video stream are stored left to right, top to bottom. And all filters work on uncompressed frames, so that's the easiest way to setup the co-ordinate system as well.