Questions tagged [direct2]

DIRECT2 is an encoding algorithm in which data appears unchanged in the compressed representation, and metadata is encoded in the same output stream, and in line with the data.

The basic notion of the DIRECT2 Encoding Algorithm is that data appears unchanged in the compressed representation, and metadata is encoded in the same output stream, and in line with the data.

The key to decoding the compressed data is recognizing what bytes are metadata and what bytes are data. The decoder MUST be able to identify the presence of metadata in the compressed and encoded data stream. Bitmasks are inserted periodically in the byte stream to provide this information to the decoder.

See:

4 questions
3
votes
1 answer

Direct2D Only Partially Linking in C++ Builder

I've got a C++ Builder (Rad Studio Berlin) project setup to use Direct2d. Canvas drawing works just fine with the TDirect2DCanvas which would indicate Direct2D is linking properly. Everything renders smoothly. However, I need to use a matrix. I get…
user5454506
1
vote
0 answers

MS-XCA decompression metadata points outside of the compressed byte array

I need to decompress a data model file embedded in xlsx file. The file is supposed to use the MS-XLDM file format and should consist of 3 sections (Spreadsheet Data Model Header, Files and Virtual Directory) and only the middle one is compressed.…
dnk
  • 11
  • 2
1
vote
1 answer

Strange CBitmapRenderTarget::GetBitmap API - Direct2D MFC

I am completely confused by MFC wrapper for directd2d intefaces. Take a look at the following for example:- BOOL CreateCompatibleRenderTarget( CBitmapRenderTarget& bitmapTarget, CD2DSizeF sizeDesired = CD2DSizeF(0., 0.), CD2DSizeU…
Boris
  • 1,311
  • 13
  • 39
0
votes
1 answer

IDXGISurface::Map: This object was not created with CPUAccess flags that allow CPU access

I try to create new ID3D11Texture2D for map it to DXGI_MAPPED_RECT further. I receive some ID3D11Texture2D that I have no power on (can not change way of creation of). Here is the part of the code: CComPtr
Olga Pshenichnikova
  • 1,509
  • 4
  • 22
  • 47