Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

YUVGOPVector Class Reference

#include <YUVGOPVector.hpp>

List of all members.

Public Types

enum  SortOrder {
  COMPR_BYTE_SIZE, PSNR, PSNR_DESC, PERFORMANCE,
  PERFORMANCE_DESC
}

Public Methods

void setSortOrder (SortOrder s)
virtual int compareItems (QPtrCollection::Item x, QPtrCollection::Item y)

Private Attributes

SortOrder sortOrder


Member Enumeration Documentation

enum YUVGOPVector::SortOrder
 

Type definition for sort order. If the value ends with _DESC the sort order is descending otherwise ascending.

Parameters:
COMPR_BYTE_SIZE  Sorts by compressed byte size of the GOP.
PSNR  Sorts by the PSNR value of the GOP.
PSNR_DESC  Sorts by the PSNR value of the GOP in descending order.
PERFORMANCE  Sorts by the performance value of the GOP.
PERFORMANCE_DESC  Sorts by the performance value of the GOP in descending order.
Enumeration values:
COMPR_BYTE_SIZE 
PSNR 
PSNR_DESC 
PERFORMANCE 
PERFORMANCE_DESC 

Definition at line 35 of file YUVGOPVector.hpp.


Member Function Documentation

int YUVGOPVector::compareItems QPtrCollection::Item    x,
QPtrCollection::Item    y
[virtual]
 

Compares two items according to SortOrder that has been set with setSortOrder.

Returns :
0 if x == y, 1 if x > y, -1 if x < y

Definition at line 4 of file YUVGOPVector.cpp.

References COMPR_BYTE_SIZE, YUVGOP::getCompressedByteSize(), YUVGOP::getPSNR(), PSNR, PSNR_DESC, and sortOrder.

void YUVGOPVector::setSortOrder SortOrder    s
 

Sets the sort order.

Parameters:
s  typedef enum SortOrder

Definition at line 36 of file YUVGOPVector.cpp.

References sortOrder.


Member Data Documentation

SortOrder YUVGOPVector::sortOrder [private]
 

Definition at line 56 of file YUVGOPVector.hpp.

Referenced by compareItems(), and setSortOrder().


The documentation for this class was generated from the following files:
Generated on Wed Mar 19 11:57:45 2003 for qctva4lv by doxygen1.2.17