I know the NvVideoDecoder outputs the decoded stream in block-linear format (requires buffer transform after decoding), but the NvVideoEncoder seems to output in pitch-linear format, as there is no buffer transform done in the sample code (it directly dumps the result from the encoder to disk). But I haven’t found a definitive answer anywhere.
Block linear and pitch linear are formats for YUV, not encoded H264/H265 stream. If you use software decoder, the stream is decoded to pitch linear. Block linear is specific to using hardware decoder in Jetson SoC.