Primitive video processing