add videoframe api for gpu. fix compile error