In the navy the expression ‘the quarter deck’, in this context, means the officers, as distinct from the crew, who were ‘before the mast’.

This scene is in the hold.