vitasdk
Documentation of the vitasdk
videodec.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2/types.h>

Go to the source code of this file.

Data Structures

struct  SceVideodecQueryInitInfoHwAvcdec
 
union  SceVideodecQueryInitInfo
 
struct  SceVideodecTimeStamp
 
struct  SceAvcdecQueryDecoderInfo
 
struct  SceAvcdecDecoderInfo
 
struct  SceAvcdecBuf
 
struct  SceAvcdecCtrl
 
struct  SceAvcdecAu
 
struct  SceAvcdecInfo
 
struct  SceAvcdecFrameOptionRGBA
 
union  SceAvcdecFrameOption
 
struct  SceAvcdecFrame
 
struct  SceAvcdecPicture
 
struct  SceAvcdecArrayPicture
 

Enumerations

enum  SceVideodecErrorCode {
  SCE_VIDEODEC_ERROR_INVALID_TYPE = 0x80620801 , SCE_VIDEODEC_ERROR_INVALID_PARAM = 0x80620802 , SCE_VIDEODEC_ERROR_OUT_OF_MEMORY = 0x80620803 , SCE_VIDEODEC_ERROR_INVALID_STATE = 0x80620804 ,
  SCE_VIDEODEC_ERROR_UNSUPPORT_IMAGE_SIZE = 0x80620805 , SCE_VIDEODEC_ERROR_INVALID_COLOR_FORMAT = 0x80620806 , SCE_VIDEODEC_ERROR_NOT_PHY_CONTINUOUS_MEMORY = 0x80620807 , SCE_VIDEODEC_ERROR_ALREADY_USED = 0x80620808 ,
  SCE_VIDEODEC_ERROR_INVALID_POINTER = 0x80620809 , SCE_VIDEODEC_ERROR_ES_BUFFER_FULL = 0x8062080A , SCE_VIDEODEC_ERROR_INITIALIZE = 0x8062080B , SCE_VIDEODEC_ERROR_NOT_INITIALIZE = 0x8062080C ,
  SCE_VIDEODEC_ERROR_INVALID_STREAM = 0x8062080D , SCE_VIDEODEC_ERROR_INVALID_ARGUMENT_SIZE = 0x8062080E
}
 
enum  SceVideodecType { SCE_VIDEODEC_TYPE_HW_AVCDEC = 0x1001 }
 
enum  SceAvcdecErrorCode {
  SCE_AVCDEC_ERROR_INVALID_TYPE = 0x80620001 , SCE_AVCDEC_ERROR_INVALID_PARAM = 0x80620002 , SCE_AVCDEC_ERROR_OUT_OF_MEMORY = 0x80620003 , SCE_AVCDEC_ERROR_INVALID_STATE = 0x80620004 ,
  SCE_AVCDEC_ERROR_UNSUPPORT_IMAGE_SIZE = 0x80620005 , SCE_AVCDEC_ERROR_INVALID_COLOR_FORMAT = 0x80620006 , SCE_AVCDEC_ERROR_NOT_PHY_CONTINUOUS_MEMORY = 0x80620007 , SCE_AVCDEC_ERROR_ALREADY_USED = 0x80620008 ,
  SCE_AVCDEC_ERROR_INVALID_POINTER = 0x80620009 , SCE_AVCDEC_ERROR_ES_BUFFER_FULL = 0x8062000A , SCE_AVCDEC_ERROR_INITIALIZE = 0x8062000B , SCE_AVCDEC_ERROR_NOT_INITIALIZE = 0x8062000C ,
  SCE_AVCDEC_ERROR_INVALID_STREAM = 0x8062000D , SCE_AVCDEC_ERROR_INVALID_ARGUMENT_SIZE = 0x8062000E
}
 
enum  SceAvcdecPixelFormat {
  SCE_AVCDEC_PIXELFORMAT_RGBA8888 = 0x00 , SCE_AVCDEC_PIXELFORMAT_RGBA565 = 0x01 , SCE_AVCDEC_PIXELFORMAT_RGBA5551 = 0x02 , SCE_AVCDEC_PIXELFORMAT_YUV420_RASTER = 0x10 ,
  SCE_AVCDEC_PIXELFORMAT_YUV420_PACKED_RASTER = 0x20
}
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x14, SceVideodecQueryInitInfoHwAvcdec)
 
 VITASDK_BUILD_ASSERT_EQ (0x20, SceVideodecQueryInitInfo)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceVideodecTimeStamp)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceAvcdecQueryDecoderInfo)
 
 VITASDK_BUILD_ASSERT_EQ (4, SceAvcdecDecoderInfo)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceAvcdecBuf)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceAvcdecCtrl)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceAvcdecAu)
 
 VITASDK_BUILD_ASSERT_EQ (0x20, SceAvcdecInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceAvcdecFrameOptionRGBA)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceAvcdecFrameOption)
 
 VITASDK_BUILD_ASSERT_EQ (0x40, SceAvcdecFrame)
 
 VITASDK_BUILD_ASSERT_EQ (0x64, SceAvcdecPicture)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceAvcdecArrayPicture)
 
int sceVideodecInitLibrary (SceVideodecType codec, const SceVideodecQueryInitInfoHwAvcdec *initInfo)
 
int sceVideodecTermLibrary (SceVideodecType codec)
 
int sceAvcdecQueryDecoderMemSize (SceVideodecType codec, const SceAvcdecQueryDecoderInfo *query, SceAvcdecDecoderInfo *decoderInfo)
 
int sceAvcdecCreateDecoder (SceVideodecType codec, SceAvcdecCtrl *decoder, const SceAvcdecQueryDecoderInfo *query)
 
int sceAvcdecDeleteDecoder (SceAvcdecCtrl *decoder)
 
int sceAvcdecDecode (const SceAvcdecCtrl *decoder, const SceAvcdecAu *au, SceAvcdecArrayPicture *array_picture)