Created by the British Broadcasting Corporation.
#include <enc_queue.h>
dirac::EncQueue::EncQueue | ( | ) |
dirac::EncQueue::EncQueue | ( | ChromaFormat | cf, | |
const int | xlen, | |||
const int | ylen, | |||
const unsigned int | luma_depth, | |||
const unsigned int | chroma_depth, | |||
bool | using_ac | |||
) |
Creates a EncQueue using the chroma format. Suitable for compressing when there are no L2 pictures, or when the temporal prediction structure is to be determined on the fly.
cf | the Chroma format of pictures in the buffer | |
xlen | the luma width of pictures in the buffer | |
ylen | the luma height of pictures in the buffer | |
luma_depth | the video depth of the luma comp in the buffer | |
chroma_depth | the video depth of the chroma comp in the buffer | |
using_ac | True if using Arithmetic coding to code coefficient data |
dirac::EncQueue::EncQueue | ( | ChromaFormat | cf, | |
const int | numL1, | |||
const int | L1sep, | |||
const int | xlen, | |||
const int | ylen, | |||
const unsigned int | luma_depth, | |||
const unsigned int | chroma_depth, | |||
bool | interlace, | |||
bool | using_ac | |||
) |
Creates a EncQueue using the chroma format, the number of L1 pictures between I pictures and the separation in pictures between L1 pictures. Suitable for compressing when there is a full GOP structure or when the temporal prediction structure is to be determined on the fly.
cf | the Chroma format of pictures in the buffer | |
numL1 | the number of Layer 1 pictures before the next I picture. 0 means that there is only one I picture. | |
L1sep | the number of Layer 2 pictures between Layer 1 pictures | |
xlen | the luma width of pictures in the buffer | |
ylen | the luma height of pictures in the buffer | |
luma_depth | the video depth of the luma comp in the buffer | |
chroma_depth | the video depth of the chroma comp in the buffer | |
interlace | Set true if material is being coded in interlaced mode | |
using_ac | True if using Arithmetic coding to code coefficient data |
dirac::EncQueue::EncQueue | ( | const EncQueue & | cpy | ) |
Copy constructor. Removes the current contents of the pictureture buffer and copies in the contents of the initialising buffer.
dirac::EncQueue::~EncQueue | ( | ) |
Operator=. Assigns all elements of the rhs to the lhs.
EncPicture& dirac::EncQueue::GetPicture | ( | const unsigned int | pnum | ) |
const EncPicture& dirac::EncQueue::GetPicture | ( | const unsigned int | pnum | ) | const |
EncPicture& dirac::EncQueue::GetPicture | ( | const unsigned int | pnum, | |
bool & | is_present | |||
) |
const EncPicture& dirac::EncQueue::GetPicture | ( | const unsigned int | pnum, | |
bool & | is_present | |||
) | const |
bool dirac::EncQueue::IsPictureAvail | ( | const unsigned int | pnum | ) | const |
std::vector<int> dirac::EncQueue::Members | ( | ) | const |
int dirac::EncQueue::Size | ( | ) | const [inline] |
void dirac::EncQueue::PushPicture | ( | const PictureParams & | pp | ) |
Put a new picture into the top of the buffer. EncPicture parameters associated with the picture will be as given by the picture parameter object.
void dirac::EncQueue::CopyPicture | ( | const EncPicture & | picture | ) |
Put a copy of a new picture into the buffer.
void dirac::EncQueue::SetRetiredPictureNum | ( | const int | show_pnum, | |
const int | current_coded_pnum | |||
) |
Indicate which picture which has been output and which is no longer required for reference. Expiry times are set in each picture's picture parameters.
show_pnum | picture number in display order that can be output | |
current_coded_pnum | picture number in display order of picture currently being coded |
void dirac::EncQueue::CleanAll | ( | const int | show_pnum, | |
const int | current_coded_pnum | |||
) |
Delete pictures which have been output and which are no longer required for reference. Expiry times are set in each picture's picture parameters.
show_pnum | picture number in display order that can be output | |
current_coded_pnum | picture number in display order of picture currently being coded |
void dirac::EncQueue::CleanRetired | ( | const int | show_pnum, | |
const int | current_coded_pnum | |||
) |
Delete pictures which have been output and retired reference pictures. Expiry times are set in each picture's picture parameters.
show_pnum | picture number in display order that can be output | |
current_coded_pnum | picture number in display order of picture currently being coded |
void dirac::EncQueue::Remove | ( | int | pnum | ) |
Delete picture.
pnum | picture number in display order to be deleted from picture buffer |
void dirac::EncQueue::ClearSlot | ( | const unsigned int | pos | ) | [private] |
Clear internal data slot number pos
std::vector<EncPicture*> dirac::EncQueue::m_pic_data [private] |
std::map<unsigned int,unsigned int> dirac::EncQueue::m_pnum_map [private] |
© 2004 British Broadcasting Corporation.
Dirac code licensed under the Mozilla Public License (MPL) Version 1.1.
HTML documentation generated by Dimitri van Heesch's
excellent Doxygen tool.