RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
BitStreamerJPEG Class Referencefinal

#include "bitstreams/BitStreamerJPEG.h"

Inheritance diagram for BitStreamerJPEG:
[legend]
Collaboration diagram for BitStreamerJPEG:
[legend]

Public Types

using size_type
using Traits
using StreamTraits
using Cache

Public Member Functions

size_type getStreamPosition () const
void establishClassInvariants () const noexcept
void reload ()
void fill (int nbits=Cache::MaxGetBits)
size_type RAWSPEED_READONLY getInputPosition () const
size_type getRemainingSize () const
size_type RAWSPEED_READONLY getFillLevel () const
uint32_t RAWSPEED_READONLY peekBitsNoFill (int nbits)
void skipBitsNoFill (int nbits)
uint32_t getBitsNoFill (int nbits)
uint32_t peekBits (int nbits)
void skipBits (int nbits)
uint32_t getBits (int nbits)
void skipManyBits (int nbits)
void skipBytes (int nbytes)

Protected Attributes

Cache cache

Private Types

using Base = BitStreamer<BitStreamerJPEG>

Private Member Functions

size_type fillCache (std::array< std::byte, BitStreamerTraits< BitStreamerJPEG >::MaxProcessBytes > input)

Private Attributes

PosOrUnknown< size_typeendOfStreamPos
Replenisher replenisher

Friends

void Base::fill (int nbits)

Detailed Description

Definition at line 84 of file BitStreamerJPEG.h.

Member Typedef Documentation

◆ Base

Definition at line 85 of file BitStreamerJPEG.h.

◆ Cache

using rawspeed::BitStreamer< BitStreamerJPEG >::Cache
inherited

Definition at line 144 of file BitStreamer.h.

◆ size_type

using rawspeed::BitStreamer< BitStreamerJPEG >::size_type
inherited

Definition at line 140 of file BitStreamer.h.

◆ StreamTraits

using rawspeed::BitStreamer< BitStreamerJPEG >::StreamTraits
inherited

Definition at line 142 of file BitStreamer.h.

◆ Traits

using rawspeed::BitStreamer< BitStreamerJPEG >::Traits
inherited

Definition at line 141 of file BitStreamer.h.

Member Function Documentation

◆ establishClassInvariants()

void rawspeed::BitStreamer< BitStreamerJPEG >::establishClassInvariants ( ) const
inlinenoexceptinherited

Definition at line 185 of file BitStreamer.h.

References cache, and replenisher.

Referenced by rawspeed::BitStreamerJPEG::fillCache().

Here is the caller graph for this function:

◆ fill()

void rawspeed::BitStreamer< BitStreamerJPEG >::fill ( int nbits = Cache::MaxGetBits)
inlineinherited

Definition at line 216 of file BitStreamer.h.

References cache, rawspeed::BitStreamer< Tag >::establishClassInvariants(), rawspeed::BitStreamer< Tag >::fillCache(), invariant, and replenisher.

Here is the call graph for this function:

◆ fillCache()

BitStreamerJPEG::size_type rawspeed::BitStreamerJPEG::fillCache ( std::array< std::byte, BitStreamerTraits< BitStreamerJPEG >::MaxProcessBytes > input)
inlineprivate

Definition at line 106 of file BitStreamerJPEG.h.

◆ getBits()

uint32_t rawspeed::BitStreamer< BitStreamerJPEG >::getBits ( int nbits)
inlineinherited

Definition at line 294 of file BitStreamer.h.

References rawspeed::BitStreamer< Tag >::establishClassInvariants(), rawspeed::BitStreamer< Tag >::fill(), rawspeed::BitStreamer< Tag >::getBitsNoFill(), and invariant.

Here is the call graph for this function:

◆ getBitsNoFill()

uint32_t rawspeed::BitStreamer< BitStreamerJPEG >::getBitsNoFill ( int nbits)
inlineinherited

Definition at line 269 of file BitStreamer.h.

References rawspeed::BitStreamer< Tag >::establishClassInvariants(), invariant, rawspeed::BitStreamer< Tag >::peekBitsNoFill(), and rawspeed::BitStreamer< Tag >::skipBitsNoFill().

Here is the call graph for this function:

◆ getFillLevel()

size_type RAWSPEED_READONLY rawspeed::BitStreamer< BitStreamerJPEG >::getFillLevel ( ) const
inlinenodiscardinherited

Definition at line 248 of file BitStreamer.h.

References cache, and rawspeed::BitStreamer< Tag >::establishClassInvariants().

Here is the call graph for this function:

◆ getInputPosition()

size_type RAWSPEED_READONLY rawspeed::BitStreamer< BitStreamerJPEG >::getInputPosition ( ) const
inlinenodiscardinherited

Definition at line 232 of file BitStreamer.h.

References rawspeed::BitStreamer< Tag >::establishClassInvariants(), and replenisher.

Referenced by rawspeed::BitStreamerJPEG::fillCache(), and rawspeed::BitStreamerJPEG::getStreamPosition().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRemainingSize()

size_type rawspeed::BitStreamer< BitStreamerJPEG >::getRemainingSize ( ) const
inlinenodiscardinherited

Definition at line 243 of file BitStreamer.h.

References rawspeed::BitStreamer< Tag >::establishClassInvariants(), and replenisher.

Referenced by rawspeed::BitStreamerJPEG::fillCache().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStreamPosition()

◆ peekBits()

uint32_t rawspeed::BitStreamer< BitStreamerJPEG >::peekBits ( int nbits)
inlineinherited

Definition at line 279 of file BitStreamer.h.

References rawspeed::BitStreamer< Tag >::establishClassInvariants(), rawspeed::BitStreamer< Tag >::fill(), invariant, and rawspeed::BitStreamer< Tag >::peekBitsNoFill().

Here is the call graph for this function:

◆ peekBitsNoFill()

uint32_t RAWSPEED_READONLY rawspeed::BitStreamer< BitStreamerJPEG >::peekBitsNoFill ( int nbits)
inlineinherited

Definition at line 253 of file BitStreamer.h.

References cache, rawspeed::BitStreamer< Tag >::establishClassInvariants(), and invariant.

Here is the call graph for this function:

◆ reload()

◆ skipBits()

void rawspeed::BitStreamer< BitStreamerJPEG >::skipBits ( int nbits)
inlineinherited

Definition at line 288 of file BitStreamer.h.

References rawspeed::BitStreamer< Tag >::establishClassInvariants(), rawspeed::BitStreamer< Tag >::fill(), and rawspeed::BitStreamer< Tag >::skipBitsNoFill().

Here is the call graph for this function:

◆ skipBitsNoFill()

void rawspeed::BitStreamer< BitStreamerJPEG >::skipBitsNoFill ( int nbits)
inlineinherited

Definition at line 261 of file BitStreamer.h.

References cache, rawspeed::BitStreamer< Tag >::establishClassInvariants(), and invariant.

Here is the call graph for this function:

◆ skipBytes()

void rawspeed::BitStreamer< BitStreamerJPEG >::skipBytes ( int nbytes)
inlineinherited

Definition at line 321 of file BitStreamer.h.

References rawspeed::BitStreamer< Tag >::establishClassInvariants(), and rawspeed::BitStreamer< Tag >::skipManyBits().

Here is the call graph for this function:

◆ skipManyBits()

void rawspeed::BitStreamer< BitStreamerJPEG >::skipManyBits ( int nbits)
inlineinherited

Definition at line 305 of file BitStreamer.h.

References rawspeed::BitStreamer< Tag >::establishClassInvariants(), rawspeed::BitStreamer< Tag >::fill(), and rawspeed::BitStreamer< Tag >::skipBitsNoFill().

Here is the call graph for this function:

◆ Base::fill

void Base::fill ( int nbits)
friend

Member Data Documentation

◆ cache

◆ endOfStreamPos

Definition at line 87 of file BitStreamerJPEG.h.

◆ replenisher

Replenisher rawspeed::BitStreamer< BitStreamerJPEG >::replenisher
privateinherited

The documentation for this class was generated from the following file: