Home Units Hierarchy Routines All identifiers

Class unaMsAcmCodecHeader

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaMsAcmCodecHeader = class(unaMsAcmDeviceHeader)

Description

This class stores the data used by MS ACM codec.

Hierarchy

Overview

Methods

Public constructor create(codec: unaMsAcmCodec; srcSize: unsigned; dstSize: unsigned);
Public destructor Destroy(); override;
Protected function getStatus(index: integer): bool; override;
Protected function isDoneHeader(): bool; override;
Protected function isInQueue(): bool; override;
Public procedure grow(newsize: unsigned);
Public procedure write(data: pointer; size: unsigned; offset: unsigned = 0);
Protected procedure rePrepare(); override;
Protected procedure setStatus(index: integer; value: bool); override;

Properties

Public property inQueue: bool index ACMSTREAMHEADER_STATUSF_INQUEUE read getStatus write setStatus;
Public property isDone: bool index ACMSTREAMHEADER_STATUSF_DONE read getStatus write setStatus;
Public property isPrepared: bool index ACMSTREAMHEADER_STATUSF_PREPARED read getStatus write setStatus;

Description

Methods

Public constructor create(codec: unaMsAcmCodec; srcSize: unsigned; dstSize: unsigned);

Creates ACM codec header and allocates required buffers.

Public destructor Destroy(); override;
 
Protected function getStatus(index: integer): bool; override;

Used to return different statuses of header.

Protected function isDoneHeader(): bool; override;
 
Protected function isInQueue(): bool; override;
 
Public procedure grow(newsize: unsigned);

Reallocate source buffer.

Public procedure write(data: pointer; size: unsigned; offset: unsigned = 0);

Writes data to the source codec buffer.

Protected procedure rePrepare(); override;
 
Protected procedure setStatus(index: integer; value: bool); override;

Used to set different statuses of header.

Properties

Public property inQueue: bool index ACMSTREAMHEADER_STATUSF_INQUEUE read getStatus write setStatus;

Returns true if header is still in codec queue.

Public property isDone: bool index ACMSTREAMHEADER_STATUSF_DONE read getStatus write setStatus;

Returns true if header is released by codec.

Public property isPrepared: bool index ACMSTREAMHEADER_STATUSF_PREPARED read getStatus write setStatus;

Returns true if header was prepared.

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09