writeBits and readBits are used only by the Jpeg codec: no need to check for jpegTags flag in writeByte and readByte

Issue #133 new
Paolo Brandoli repo owner created an issue

At the moment the streamReader and streamWriter take care of checking/adding the jpeg tag prefix 0xff in readByte and writeByte: this is done when the flag m_bJpegTags is true.

There is no need to check the flag since the bit operations are used only by the jpeg codec.

Reorganize the functions so it is clear that bit operations are used only by the jpeg codec and remove the m_bJpegTags flag.

Comments (2)

  1. Log in to comment