48 m_pDecoderDevice = NULL;
49 m_pVideoDecoder = NULL;
75 Display* vdp_xdisplay;
81 VdpDecoderProfile vdp_decoder_profile;
86 vdp_get_proc_address = NULL;
92 vdp_decoder_profile = VDP_DECODER_PROFILE_H264_HIGH;
94 vdp_xdisplay = glXGetCurrentDisplay();
97 screen = DefaultScreen(vdp_xdisplay);
101 vdp_st = vdp_device_create_x11( vdp_xdisplay, screen, &vdp_device, &vdp_get_proc_address );
102 if (vdp_st==VDP_STATUS_OK) {
104 vdp_st = vdp_get_proc_address(vdp_device, VDP_FUNC_ID_DECODER_CREATE, (
void **)&vdp_decoder_create);
105 vdp_st = vdp_get_proc_address(vdp_device, VDP_FUNC_ID_GET_ERROR_STRING, (
void **)&vdp_get_error_string);
109 vdp_st = vdp_decoder_create( vdp_device, vdp_decoder_profile, width, height, 2, &vdp_decoder );
110 if (vdp_st==VDP_STATUS_OK) {
156 MODebug2->
Message(
"moDecoderManager::OpenVideo > filename: " + filename );
159 avcodec_register_all();
163 const char *pfilename=
"test.avi";
166 if(av_open_input_file(&pFormatCtx, pfilename, NULL, 0, NULL)!=0) {
void SetName(const moText &p_name)
void SetResourceType(moResourceType p_restype)
clase de para manejar textos
moResourceManager * m_pResourceManager
Puntero al administrador de recursos.
Dispositivo de entrada/salida, típicamente, interfaces humanas de IO y datos ( teclado, mouse, tableta, tcp, udp, serial )
virtual MOboolean Finish()
virtual ~moDecoderManager()
void SetLabelName(const moText &p_labelname)
static moDebug * MODebug2
Clase de impresión de errores para depuración
LIBMOLDEO_API moText0 IntToStr(int a)
void Message(moText p_text)
Anuncia un mensaje al usuario además de guardarlo en el log de texto.
void SetType(moMoldeoObjectType p_type)
MOboolean OpenVideo(moText filename)