7#ifndef CORE_FXCRT_CFX_BITSTREAM_H_
8#define CORE_FXCRT_CFX_BITSTREAM_H_
13#include "third_party/base/containers/span.h"
22 bool IsEOF()
const {
return m_BitPos >= m_BitSize; }
24 uint32_t
GetBits(uint32_t nBits);
26 void SkipBits(size_t nBits) { m_BitPos += nBits; }
30 return m_BitSize >= m_BitPos ? m_BitSize - m_BitPos : 0;
35 const size_t m_BitSize;
36 pdfium::span<
const uint8_t>
const m_pData;
size_t BitsRemaining() const
void SkipBits(size_t nBits)
uint32_t GetBits(uint32_t nBits)
CFX_BitStream(pdfium::span< const uint8_t > pData)
uint32_t ComponentBits() const
uint32_t Components() const
bool CanReadCoords() const
bool ReadVertex(const CFX_Matrix &pObject2Bitmap, CPDF_MeshVertex *vertex, uint32_t *flag)
void SkipBits(uint32_t nbits)
bool CanReadColor() const
CPDF_MeshStream(ShadingType type, const std::vector< std::unique_ptr< CPDF_Function > > &funcs, RetainPtr< const CPDF_Stream > pShadingStream, RetainPtr< CPDF_ColorSpace > pCS)
std::vector< CPDF_MeshVertex > ReadVertexRow(const CFX_Matrix &pObject2Bitmap, int count)
std::tuple< float, float, float > ReadColor()
CPDF_MeshVertex(const CPDF_MeshVertex &)
@ kTensorProductPatchMeshShading
@ kLatticeFormGouraudTriangleMeshShading
@ kFreeFormGouraudTriangleMeshShading