Flutter Engine
The Flutter Engine
Functions | Variables
SkJpegMultiPicture.cpp File Reference
#include "src/codec/SkJpegMultiPicture.h"
#include "include/core/SkData.h"
#include "include/core/SkStream.h"
#include "src/base/SkEndian.h"
#include "src/codec/SkCodecPriv.h"
#include "src/codec/SkJpegConstants.h"
#include "src/codec/SkJpegSegmentScan.h"
#include "src/codec/SkTiffUtility.h"
#include "src/core/SkStreamPriv.h"
#include <cstring>

Go to the source code of this file.

Functions

static size_t mp_header_absolute_offset (size_t mpSegmentOffset)
 

Variables

constexpr uint16_t kVersionTag = 0xB000
 
constexpr uint32_t kVersionCount = 4
 
constexpr size_t kVersionSize = 4
 
constexpr uint8_t kVersionExpected [kVersionSize] = {'0', '1', '0', '0'}
 
constexpr uint16_t kNumberOfImagesTag = 0xB001
 
constexpr uint32_t kNumberOfImagesCount = 1
 
constexpr uint16_t kMPEntryTag = 0xB002
 
constexpr uint32_t kMPEntrySize = 16
 
constexpr uint32_t kMPEntryAttributeFormatMask = 0x7000000
 
constexpr uint32_t kMPEntryAttributeFormatJpeg = 0x0000000
 
constexpr uint32_t kMPEntryAttributeTypeMask = 0xFFFFFF
 
constexpr uint32_t kMPEntryAttributeTypePrimary = 0x030000
 
constexpr uint16_t kIndividualImageUniqueIDTag = 0xB003
 
constexpr uint32_t kIndividualImageUniqueIDSize = 33
 
constexpr uint16_t kTotalNumberCapturedFramesTag = 0xB004
 

Function Documentation

◆ mp_header_absolute_offset()

static size_t mp_header_absolute_offset ( size_t  mpSegmentOffset)
static

Definition at line 298 of file SkJpegMultiPicture.cpp.

298 {
299 return mpSegmentOffset + // The offset to the segment's marker
300 kJpegMarkerCodeSize + // The marker itself
301 kJpegSegmentParameterLengthSize + // The segment parameter length
302 sizeof(kMpfSig); // The {'M','P','F',0} signature
303}
static constexpr uint8_t kMpfSig[]
static constexpr size_t kJpegSegmentParameterLengthSize
static constexpr size_t kJpegMarkerCodeSize

Variable Documentation

◆ kIndividualImageUniqueIDSize

constexpr uint32_t kIndividualImageUniqueIDSize = 33
constexpr

Definition at line 39 of file SkJpegMultiPicture.cpp.

◆ kIndividualImageUniqueIDTag

constexpr uint16_t kIndividualImageUniqueIDTag = 0xB003
constexpr

Definition at line 38 of file SkJpegMultiPicture.cpp.

◆ kMPEntryAttributeFormatJpeg

constexpr uint32_t kMPEntryAttributeFormatJpeg = 0x0000000
constexpr

Definition at line 33 of file SkJpegMultiPicture.cpp.

◆ kMPEntryAttributeFormatMask

constexpr uint32_t kMPEntryAttributeFormatMask = 0x7000000
constexpr

Definition at line 32 of file SkJpegMultiPicture.cpp.

◆ kMPEntryAttributeTypeMask

constexpr uint32_t kMPEntryAttributeTypeMask = 0xFFFFFF
constexpr

Definition at line 35 of file SkJpegMultiPicture.cpp.

◆ kMPEntryAttributeTypePrimary

constexpr uint32_t kMPEntryAttributeTypePrimary = 0x030000
constexpr

Definition at line 36 of file SkJpegMultiPicture.cpp.

◆ kMPEntrySize

constexpr uint32_t kMPEntrySize = 16
constexpr

Definition at line 30 of file SkJpegMultiPicture.cpp.

◆ kMPEntryTag

constexpr uint16_t kMPEntryTag = 0xB002
constexpr

Definition at line 29 of file SkJpegMultiPicture.cpp.

◆ kNumberOfImagesCount

constexpr uint32_t kNumberOfImagesCount = 1
constexpr

Definition at line 27 of file SkJpegMultiPicture.cpp.

◆ kNumberOfImagesTag

constexpr uint16_t kNumberOfImagesTag = 0xB001
constexpr

Definition at line 26 of file SkJpegMultiPicture.cpp.

◆ kTotalNumberCapturedFramesTag

constexpr uint16_t kTotalNumberCapturedFramesTag = 0xB004
constexpr

Definition at line 41 of file SkJpegMultiPicture.cpp.

◆ kVersionCount

constexpr uint32_t kVersionCount = 4
constexpr

Definition at line 22 of file SkJpegMultiPicture.cpp.

◆ kVersionExpected

constexpr uint8_t kVersionExpected[kVersionSize] = {'0', '1', '0', '0'}
constexpr

Definition at line 24 of file SkJpegMultiPicture.cpp.

◆ kVersionSize

constexpr size_t kVersionSize = 4
constexpr

Definition at line 23 of file SkJpegMultiPicture.cpp.

◆ kVersionTag

constexpr uint16_t kVersionTag = 0xB000
constexpr

Definition at line 21 of file SkJpegMultiPicture.cpp.