iokyouok 发表于 2014-2-27 17:32:07

CB2硬解码图像怎么旋转?

CB2硬解码出来的图像,设置了几个旋转参数,但是效果是没有旋转的。

iokyouok 发表于 2014-2-27 17:32:49

有谁做过着方面的呢。

jacky 发表于 2014-4-17 00:39:09

android42/frameworks/av/media/CedarX-Projects/CedarXAndroid/IceCreamSandwich/CedarXPlayer.cpp:
//0: no rotate, 1: 90 degree (clock wise), 2: 180, 3: 270, 4: horizon flip, 5: vertical flig;
mPlayer->control(mPlayer, CDX_CMD_SET_VIDEO_ROTATION, mInitRotation, 0);
知道怎么改了吧?

iokyouok 发表于 2014-7-17 14:50:40

jacky 发表于 2014-4-17 00:39 static/image/common/back.gif
android42/frameworks/av/media/CedarX-Projects/CedarXAndroid/IceCreamSandwich/CedarXPlayer.cpp:
//0 ...

感谢回复,你这个是什么库?我用的是http://linux-sunxi.org/CedarX上https://github.com/linux-sunxi/cedarx-libs地址的 cedarx-libs/old/a10_video_decode/libvecoredemo_android_A10_with_display的代码,是交叉编译后在cubieboard板子的安卓底层linux上运行的。现在是能正常播放了,但是我想把它旋转90度。在render_init()调用之前用了hcedarv->ioctrl(hcedarv, CEDARV_COMMAND_ROTATE, 1); ,在vdecoder中加了decoder->config_info.rotate_enable = 1;
    decoder->config_info.rotate_angle = 1;
    decoder->ve = libve_open(&decoder->config_info, &decoder->stream_info);
按道理接口有,也应该是设置进去了,可是却没有旋转效果,不清楚有没有了解情况的。
页: [1]
查看完整版本: CB2硬解码图像怎么旋转?