digiKam
de265_image Struct Reference

Public Member Functions

void add_slice_segment_header (slice_segment_header *shdr)
 
de265_error alloc_image (int w, int h, enum de265_chroma c, std::shared_ptr< const seq_parameter_set > sps, bool allocMetadata, decoder_context *dctx, de265_PTS pts, void *user_data, bool useCustomAllocFunctions)
 
bool available_pred_blk (int xC, int yC, int nCbS, int xP, int yP, int nPbW, int nPbH, int partIdx, int xN, int yN) const
 
bool available_zscan (int xCurr, int yCurr, int xN, int yN) const
 
bool can_be_released () const
 
void clear_metadata ()
 
void clear_split_transform_flags (int x0, int y0, int log2CbSize)
 
de265_error copy_image (const de265_image *src)
 
void copy_lines_from (const de265_image *src, int first, int end)
 
 de265_image ()
 
bool debug_is_completed () const
 
void exchange_pixel_data_with (de265_image &)
 
void fill_image (int y, int u, int v)
 
void fill_pred_mode (enum PredMode mode)
 
int get_bit_depth (int cIdx) const
 
int get_bytes_per_pixel (int cIdx) const
 
enum de265_chroma get_chroma_format () const
 
int get_chroma_stride () const
 
bool get_CTB_has_pcm_or_cu_transquant_bypass (int ctbX, int ctbY) const
 
bool get_CtbDeblockFlag (int ctbX, int ctbY) const
 
int get_ctDepth (int x, int y) const
 
uint8_t get_cu_skip_flag (int x, int y) const
 
int get_cu_transquant_bypass (int x, int y) const
 
uint8_t get_deblk_bS (int x0, int y0) const
 
uint8_t get_deblk_flags (int x0, int y0) const
 
int get_deblk_height () const
 
int get_deblk_width () const
 
int get_height (int cIdx=0) const
 
uint32_t get_ID () const
 
uint8_t * get_image_plane (int cIdx)
 
const uint8_t * get_image_plane (int cIdx) const
 
uint8_t * get_image_plane_at_pos (int cIdx, int xpos, int ypos)
 
const uint8_t * get_image_plane_at_pos (int cIdx, int xpos, int ypos) const
 
void * get_image_plane_at_pos_any_depth (int cIdx, int xpos, int ypos)
 
const void * get_image_plane_at_pos_any_depth (int cIdx, int xpos, int ypos) const
 
template<class pixel_t >
pixel_t * get_image_plane_at_pos_NEW (int cIdx, int xpos, int ypos)
 xpos;ypos in actual plane resolution More...
 
int get_image_stride (int cIdx) const
 
enum IntraPredMode get_IntraPredMode (int x, int y) const
 
enum IntraPredMode get_IntraPredMode_atIndex (int idx) const
 
enum IntraPredMode get_IntraPredModeC (int x, int y) const
 
int get_log2CbSize (int x0, int y0) const
 
int get_log2CbSize_cbUnits (int xCb, int yCb) const
 
int get_luma_stride () const
 
const PBMotionget_mv_info (int x, int y) const
 
int get_nonzero_coefficient (int x, int y) const
 
enum PartMode get_PartMode (int x, int y) const
 
int get_pcm_flag (int x, int y) const
 
const pic_parameter_setget_pps () const
 
enum PredMode get_pred_mode (int x, int y) const
 
int get_QPY (int x0, int y0) const
 
const sao_infoget_sao_info (int ctbX, int ctbY) const
 
std::shared_ptr< const seq_parameter_setget_shared_sps ()
 
int get_SliceAddrRS (int ctbX, int ctbY) const
 
int get_SliceAddrRS_atCtbRS (int ctbRS) const
 
slice_segment_headerget_SliceHeader (int x, int y)
 
slice_segment_headerget_SliceHeaderCtb (int ctbX, int ctbY)
 
const slice_segment_headerget_SliceHeaderCtb (int ctbX, int ctbY) const
 
int get_SliceHeaderIndex (int x, int y) const
 
int get_SliceHeaderIndex_atIndex (int ctb) const
 
int get_SliceHeaderIndexCtb (int ctbX, int ctbY) const
 
int get_split_transform_flag (int x0, int y0, int trafoDepth) const
 
const seq_parameter_setget_sps () const
 
const video_parameter_setget_vps () const
 
int get_width (int cIdx=0) const
 
bool has_pps () const
 
bool has_sps () const
 
bool has_vps () const
 
bool high_bit_depth (int cIdx) const
 
bool is_allocated () const
 
bool is_IntraPredModeC_Mode4 (int x, int y) const
 
bool is_SliceHeader_available (int x, int y) const
 
void mark_all_CTB_progress (int progress)
 
int num_threads_active () const
 
int number_of_ctbs () const
 
void printBlk (const char *title, int x0, int y0, int blkSize, int cIdx) const
 
void printBlk (int x0, int y0, int cIdx, int log2BlkSize)
 
void release ()
 
void set_CtbDeblockFlag (int ctbX, int ctbY, bool flag)
 
void set_ctDepth (int x, int y, int log2BlkWidth, int depth)
 
void set_cu_transquant_bypass (int x, int y, int log2BlkWidth, uint8_t value=1)
 
void set_deblk_bS (int x0, int y0, uint8_t bS)
 
void set_deblk_flags (int x0, int y0, uint8_t flags)
 
void set_headers (std::shared_ptr< video_parameter_set > _vps, std::shared_ptr< seq_parameter_set > _sps, std::shared_ptr< pic_parameter_set > _pps)
 
void set_image_plane (int cIdx, uint8_t *mem, int stride, void *userdata)
 
void set_IntraPredMode (int PUidx, int log2blkSize, enum IntraPredMode mode)
 
void set_IntraPredMode (int x0, int y0, int log2blkSize, enum IntraPredMode mode)
 
void set_IntraPredModeC (int x0, int y0, int log2blkSize, enum IntraPredMode mode, bool is_mode4)
 
void set_log2CbSize (int x0, int y0, int log2CbSize, bool fill)
 
void set_mv_info (int x, int y, int nPbW, int nPbH, const PBMotion &mv)
 
void set_nonzero_coefficient (int x, int y, int log2TrafoSize)
 
void set_PartMode (int x, int y, enum PartMode mode)
 
void set_pcm_flag (int x, int y, int log2BlkWidth, uint8_t value=1)
 
void set_pred_mode (int x, int y, int log2BlkWidth, enum PredMode mode)
 
void set_QPY (int x, int y, int log2BlkWidth, int QP_Y)
 
void set_sao_info (int ctbX, int ctbY, const sao_info *saoinfo)
 
void set_SliceAddrRS (int ctbX, int ctbY, int SliceAddrRS)
 
void set_SliceHeaderIndex (int x, int y, int SliceHeaderIndex)
 
void set_split_transform_flag (int x0, int y0, int trafoDepth)
 
void thread_blocks ()
 
void thread_finishes (const thread_task *)
 
void thread_run (const thread_task *)
 
void thread_start (int nThreads)
 
void thread_unblocks ()
 
void wait_for_completion ()
 
void wait_for_progress (thread_task *task, int ctbAddrRS, int progress)
 
void wait_for_progress (thread_task *task, int ctbx, int ctby, int progress)
 
 ~de265_image ()
 

Public Attributes

uint8_t BitDepth_C
 
uint8_t BitDepth_Y
 
int chroma_height_confwin
 
int chroma_width_confwin
 
de265_progress_lockctb_progress
 
decoder_contextdecctx
 
de265_cond finished_cond
 
int height_confwin
 
de265_image_allocation image_allocation_functions
 
uint8_t integrity
 
de265_mutex mutex
 
nal_header nal_hdr
 
int nThreadsBlocked
 
int nThreadsFinished
 
int nThreadsQueued
 
int nThreadsRunning
 
int nThreadsTotal
 
int PicOrderCntVal
 
bool PicOutputFlag
 
enum PictureState PicState
 
int picture_order_cnt_lsb
 
uint8_t * pixels_confwin [3]
 
void * plane_user_data [3]
 
de265_PTS pts
 
int32_t removed_at_picture_id
 
bool sei_hash_check_result
 
std::vector< slice_segment_header * > slices
 
uint8_t SubHeightC
 
uint8_t SubWidthC
 
void * user_data
 
int width_confwin
 

Static Public Attributes

static de265_image_allocation default_image_allocation
 

Constructor & Destructor Documentation

◆ de265_image()

de265_image::de265_image ( )

◆ ~de265_image()

de265_image::~de265_image ( )

Member Function Documentation

◆ add_slice_segment_header()

void de265_image::add_slice_segment_header ( slice_segment_header shdr)
inline

◆ alloc_image()

de265_error de265_image::alloc_image ( int  w,
int  h,
enum de265_chroma  c,
std::shared_ptr< const seq_parameter_set sps,
bool  allocMetadata,
decoder_context dctx,
de265_PTS  pts,
void *  user_data,
bool  useCustomAllocFunctions 
)

◆ available_pred_blk()

bool de265_image::available_pred_blk ( int  xC,
int  yC,
int  nCbS,
int  xP,
int  yP,
int  nPbW,
int  nPbH,
int  partIdx,
int  xN,
int  yN 
) const

◆ available_zscan()

bool de265_image::available_zscan ( int  xCurr,
int  yCurr,
int  xN,
int  yN 
) const

◆ can_be_released()

bool de265_image::can_be_released ( ) const
inline

◆ clear_metadata()

void de265_image::clear_metadata ( )

◆ clear_split_transform_flags()

void de265_image::clear_split_transform_flags ( int  x0,
int  y0,
int  log2CbSize 
)
inline

References CLEAR_TB_BLK.

◆ copy_image()

de265_error de265_image::copy_image ( const de265_image src)

◆ copy_lines_from()

void de265_image::copy_lines_from ( const de265_image src,
int  first,
int  end 
)

◆ debug_is_completed()

bool de265_image::debug_is_completed ( ) const

◆ exchange_pixel_data_with()

void de265_image::exchange_pixel_data_with ( de265_image )

◆ fill_image()

void de265_image::fill_image ( int  y,
int  u,
int  v 
)

◆ fill_pred_mode()

void de265_image::fill_pred_mode ( enum PredMode  mode)
inline

◆ get_bit_depth()

int de265_image::get_bit_depth ( int  cIdx) const
inline

◆ get_bytes_per_pixel()

int de265_image::get_bytes_per_pixel ( int  cIdx) const
inline

References get_bit_depth().

◆ get_chroma_format()

enum de265_chroma de265_image::get_chroma_format ( ) const
inline

◆ get_chroma_stride()

int de265_image::get_chroma_stride ( ) const
inline

◆ get_CTB_has_pcm_or_cu_transquant_bypass()

bool de265_image::get_CTB_has_pcm_or_cu_transquant_bypass ( int  ctbX,
int  ctbY 
) const
inline

◆ get_CtbDeblockFlag()

bool de265_image::get_CtbDeblockFlag ( int  ctbX,
int  ctbY 
) const
inline

◆ get_ctDepth()

int de265_image::get_ctDepth ( int  x,
int  y 
) const
inline

◆ get_cu_skip_flag()

uint8_t de265_image::get_cu_skip_flag ( int  x,
int  y 
) const
inline

References get_pred_mode(), and MODE_SKIP.

◆ get_cu_transquant_bypass()

int de265_image::get_cu_transquant_bypass ( int  x,
int  y 
) const
inline

◆ get_deblk_bS()

uint8_t de265_image::get_deblk_bS ( int  x0,
int  y0 
) const
inline

◆ get_deblk_flags()

uint8_t de265_image::get_deblk_flags ( int  x0,
int  y0 
) const
inline

◆ get_deblk_height()

int de265_image::get_deblk_height ( ) const
inline

◆ get_deblk_width()

int de265_image::get_deblk_width ( ) const
inline

◆ get_height()

int de265_image::get_height ( int  cIdx = 0) const
inline

◆ get_ID()

uint32_t de265_image::get_ID ( ) const
inline

◆ get_image_plane() [1/2]

uint8_t* de265_image::get_image_plane ( int  cIdx)
inline

◆ get_image_plane() [2/2]

const uint8_t* de265_image::get_image_plane ( int  cIdx) const
inline

◆ get_image_plane_at_pos() [1/2]

uint8_t* de265_image::get_image_plane_at_pos ( int  cIdx,
int  xpos,
int  ypos 
)
inline

References get_image_stride().

Referenced by printBlk().

◆ get_image_plane_at_pos() [2/2]

const uint8_t* de265_image::get_image_plane_at_pos ( int  cIdx,
int  xpos,
int  ypos 
) const
inline

References get_image_stride().

◆ get_image_plane_at_pos_any_depth() [1/2]

void* de265_image::get_image_plane_at_pos_any_depth ( int  cIdx,
int  xpos,
int  ypos 
)
inline

References get_image_stride().

◆ get_image_plane_at_pos_any_depth() [2/2]

const void* de265_image::get_image_plane_at_pos_any_depth ( int  cIdx,
int  xpos,
int  ypos 
) const
inline

References get_image_stride().

◆ get_image_plane_at_pos_NEW()

template<class pixel_t >
pixel_t* de265_image::get_image_plane_at_pos_NEW ( int  cIdx,
int  xpos,
int  ypos 
)
inline

xpos;ypos in actual plane resolution

References get_image_stride().

◆ get_image_stride()

int de265_image::get_image_stride ( int  cIdx) const
inline

◆ get_IntraPredMode()

enum IntraPredMode de265_image::get_IntraPredMode ( int  x,
int  y 
) const
inline

◆ get_IntraPredMode_atIndex()

enum IntraPredMode de265_image::get_IntraPredMode_atIndex ( int  idx) const
inline

◆ get_IntraPredModeC()

enum IntraPredMode de265_image::get_IntraPredModeC ( int  x,
int  y 
) const
inline

◆ get_log2CbSize()

int de265_image::get_log2CbSize ( int  x0,
int  y0 
) const
inline

◆ get_log2CbSize_cbUnits()

int de265_image::get_log2CbSize_cbUnits ( int  xCb,
int  yCb 
) const
inline

◆ get_luma_stride()

int de265_image::get_luma_stride ( ) const
inline

◆ get_mv_info()

const PBMotion& de265_image::get_mv_info ( int  x,
int  y 
) const
inline

◆ get_nonzero_coefficient()

int de265_image::get_nonzero_coefficient ( int  x,
int  y 
) const
inline

◆ get_PartMode()

enum PartMode de265_image::get_PartMode ( int  x,
int  y 
) const
inline

◆ get_pcm_flag()

int de265_image::get_pcm_flag ( int  x,
int  y 
) const
inline

◆ get_pps()

const pic_parameter_set& de265_image::get_pps ( ) const
inline

◆ get_pred_mode()

enum PredMode de265_image::get_pred_mode ( int  x,
int  y 
) const
inline

Referenced by get_cu_skip_flag().

◆ get_QPY()

int de265_image::get_QPY ( int  x0,
int  y0 
) const
inline

◆ get_sao_info()

const sao_info* de265_image::get_sao_info ( int  ctbX,
int  ctbY 
) const
inline

◆ get_shared_sps()

std::shared_ptr<const seq_parameter_set> de265_image::get_shared_sps ( )
inline

◆ get_SliceAddrRS()

int de265_image::get_SliceAddrRS ( int  ctbX,
int  ctbY 
) const
inline

◆ get_SliceAddrRS_atCtbRS()

int de265_image::get_SliceAddrRS_atCtbRS ( int  ctbRS) const
inline

◆ get_SliceHeader()

slice_segment_header* de265_image::get_SliceHeader ( int  x,
int  y 
)
inline

References get_SliceHeaderIndex(), and slices.

◆ get_SliceHeaderCtb() [1/2]

slice_segment_header* de265_image::get_SliceHeaderCtb ( int  ctbX,
int  ctbY 
)
inline

◆ get_SliceHeaderCtb() [2/2]

const slice_segment_header* de265_image::get_SliceHeaderCtb ( int  ctbX,
int  ctbY 
) const
inline

◆ get_SliceHeaderIndex()

int de265_image::get_SliceHeaderIndex ( int  x,
int  y 
) const
inline

◆ get_SliceHeaderIndex_atIndex()

int de265_image::get_SliceHeaderIndex_atIndex ( int  ctb) const
inline

◆ get_SliceHeaderIndexCtb()

int de265_image::get_SliceHeaderIndexCtb ( int  ctbX,
int  ctbY 
) const
inline

◆ get_split_transform_flag()

int de265_image::get_split_transform_flag ( int  x0,
int  y0,
int  trafoDepth 
) const
inline

◆ get_sps()

const seq_parameter_set& de265_image::get_sps ( ) const
inline

◆ get_vps()

const video_parameter_set& de265_image::get_vps ( ) const
inline

◆ get_width()

int de265_image::get_width ( int  cIdx = 0) const
inline

◆ has_pps()

bool de265_image::has_pps ( ) const
inline

◆ has_sps()

bool de265_image::has_sps ( ) const
inline

◆ has_vps()

bool de265_image::has_vps ( ) const
inline

◆ high_bit_depth()

bool de265_image::high_bit_depth ( int  cIdx) const
inline

References get_bit_depth().

◆ is_allocated()

bool de265_image::is_allocated ( ) const
inline

◆ is_IntraPredModeC_Mode4()

bool de265_image::is_IntraPredModeC_Mode4 ( int  x,
int  y 
) const
inline

◆ is_SliceHeader_available()

bool de265_image::is_SliceHeader_available ( int  x,
int  y 
) const
inline

◆ mark_all_CTB_progress()

void de265_image::mark_all_CTB_progress ( int  progress)
inline

◆ num_threads_active()

int de265_image::num_threads_active ( ) const
inline

References nThreadsBlocked, and nThreadsRunning.

◆ number_of_ctbs()

int de265_image::number_of_ctbs ( ) const
inline

◆ printBlk() [1/2]

void de265_image::printBlk ( const char *  title,
int  x0,
int  y0,
int  blkSize,
int  cIdx 
) const
inline

◆ printBlk() [2/2]

void de265_image::printBlk ( int  x0,
int  y0,
int  cIdx,
int  log2BlkSize 
)

◆ release()

void de265_image::release ( )

◆ set_CtbDeblockFlag()

void de265_image::set_CtbDeblockFlag ( int  ctbX,
int  ctbY,
bool  flag 
)
inline

◆ set_ctDepth()

void de265_image::set_ctDepth ( int  x,
int  y,
int  log2BlkWidth,
int  depth 
)
inline

References SET_CB_BLK.

◆ set_cu_transquant_bypass()

void de265_image::set_cu_transquant_bypass ( int  x,
int  y,
int  log2BlkWidth,
uint8_t  value = 1 
)
inline

◆ set_deblk_bS()

void de265_image::set_deblk_bS ( int  x0,
int  y0,
uint8_t  bS 
)
inline

◆ set_deblk_flags()

void de265_image::set_deblk_flags ( int  x0,
int  y0,
uint8_t  flags 
)
inline

◆ set_headers()

void de265_image::set_headers ( std::shared_ptr< video_parameter_set _vps,
std::shared_ptr< seq_parameter_set _sps,
std::shared_ptr< pic_parameter_set _pps 
)
inline

◆ set_image_plane()

void de265_image::set_image_plane ( int  cIdx,
uint8_t *  mem,
int  stride,
void *  userdata 
)

◆ set_IntraPredMode() [1/2]

void de265_image::set_IntraPredMode ( int  PUidx,
int  log2blkSize,
enum IntraPredMode  mode 
)
inline

◆ set_IntraPredMode() [2/2]

void de265_image::set_IntraPredMode ( int  x0,
int  y0,
int  log2blkSize,
enum IntraPredMode  mode 
)
inline

◆ set_IntraPredModeC()

void de265_image::set_IntraPredModeC ( int  x0,
int  y0,
int  log2blkSize,
enum IntraPredMode  mode,
bool  is_mode4 
)
inline

◆ set_log2CbSize()

void de265_image::set_log2CbSize ( int  x0,
int  y0,
int  log2CbSize,
bool  fill 
)
inline

◆ set_mv_info()

void de265_image::set_mv_info ( int  x,
int  y,
int  nPbW,
int  nPbH,
const PBMotion mv 
)

◆ set_nonzero_coefficient()

void de265_image::set_nonzero_coefficient ( int  x,
int  y,
int  log2TrafoSize 
)
inline

◆ set_PartMode()

void de265_image::set_PartMode ( int  x,
int  y,
enum PartMode  mode 
)
inline

◆ set_pcm_flag()

void de265_image::set_pcm_flag ( int  x,
int  y,
int  log2BlkWidth,
uint8_t  value = 1 
)
inline

◆ set_pred_mode()

void de265_image::set_pred_mode ( int  x,
int  y,
int  log2BlkWidth,
enum PredMode  mode 
)
inline

References SET_CB_BLK.

◆ set_QPY()

void de265_image::set_QPY ( int  x,
int  y,
int  log2BlkWidth,
int  QP_Y 
)
inline

References SET_CB_BLK.

◆ set_sao_info()

void de265_image::set_sao_info ( int  ctbX,
int  ctbY,
const sao_info saoinfo 
)
inline

◆ set_SliceAddrRS()

void de265_image::set_SliceAddrRS ( int  ctbX,
int  ctbY,
int  SliceAddrRS 
)
inline

◆ set_SliceHeaderIndex()

void de265_image::set_SliceHeaderIndex ( int  x,
int  y,
int  SliceHeaderIndex 
)
inline

◆ set_split_transform_flag()

void de265_image::set_split_transform_flag ( int  x0,
int  y0,
int  trafoDepth 
)
inline

◆ thread_blocks()

void de265_image::thread_blocks ( )

◆ thread_finishes()

void de265_image::thread_finishes ( const thread_task )

◆ thread_run()

void de265_image::thread_run ( const thread_task )

◆ thread_start()

void de265_image::thread_start ( int  nThreads)

◆ thread_unblocks()

void de265_image::thread_unblocks ( )

◆ wait_for_completion()

void de265_image::wait_for_completion ( )

◆ wait_for_progress() [1/2]

void de265_image::wait_for_progress ( thread_task task,
int  ctbAddrRS,
int  progress 
)

◆ wait_for_progress() [2/2]

void de265_image::wait_for_progress ( thread_task task,
int  ctbx,
int  ctby,
int  progress 
)

Member Data Documentation

◆ BitDepth_C

uint8_t de265_image::BitDepth_C

◆ BitDepth_Y

uint8_t de265_image::BitDepth_Y

◆ chroma_height_confwin

int de265_image::chroma_height_confwin

◆ chroma_width_confwin

int de265_image::chroma_width_confwin

◆ ctb_progress

de265_progress_lock* de265_image::ctb_progress

Referenced by mark_all_CTB_progress().

◆ decctx

decoder_context* de265_image::decctx

◆ default_image_allocation

de265_image_allocation de265_image::default_image_allocation
static

◆ finished_cond

de265_cond de265_image::finished_cond

◆ height_confwin

int de265_image::height_confwin

◆ image_allocation_functions

de265_image_allocation de265_image::image_allocation_functions

◆ integrity

uint8_t de265_image::integrity

◆ mutex

de265_mutex de265_image::mutex

◆ nal_hdr

nal_header de265_image::nal_hdr

◆ nThreadsBlocked

int de265_image::nThreadsBlocked

Referenced by num_threads_active().

◆ nThreadsFinished

int de265_image::nThreadsFinished

◆ nThreadsQueued

int de265_image::nThreadsQueued

◆ nThreadsRunning

int de265_image::nThreadsRunning

Referenced by num_threads_active().

◆ nThreadsTotal

int de265_image::nThreadsTotal

◆ PicOrderCntVal

int de265_image::PicOrderCntVal

◆ PicOutputFlag

bool de265_image::PicOutputFlag

Referenced by can_be_released().

◆ PicState

enum PictureState de265_image::PicState

Referenced by can_be_released().

◆ picture_order_cnt_lsb

int de265_image::picture_order_cnt_lsb

◆ pixels_confwin

uint8_t* de265_image::pixels_confwin[3]

◆ plane_user_data

void* de265_image::plane_user_data[3]

◆ pts

de265_PTS de265_image::pts

◆ removed_at_picture_id

int32_t de265_image::removed_at_picture_id

◆ sei_hash_check_result

bool de265_image::sei_hash_check_result

◆ slices

◆ SubHeightC

uint8_t de265_image::SubHeightC

◆ SubWidthC

uint8_t de265_image::SubWidthC

◆ user_data

void* de265_image::user_data

◆ width_confwin

int de265_image::width_confwin

The documentation for this struct was generated from the following file: