ipnc rdk版本 3.9
硬件dm385
一帧1920 x 1080的图像数据进来以后,我只想编码四分之一的图像,然后输出,该如何设置呢?
我在enclink_h264.c里面没找到在什么地方改。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
ipnc rdk版本 3.9
硬件dm385
一帧1920 x 1080的图像数据进来以后,我只想编码四分之一的图像,然后输出,该如何设置呢?
我在enclink_h264.c里面没找到在什么地方改。
user6370357 说:编码偏移是什么意思啊?
captureWidth
XDAS_Int32
Input
If the field is set to:
0 - Encoded image width is used as pitch.
If encoded image width is non multiple of 16 then it is rounded to next multiple of 16 and then assigned to pitch.
When an inputWidth is non-multiple of 16, then the encoder assumes captureWidth as inputWidth’s next multiple of 16
Any non-zero value, capture width is used as pitch (if capture width is greater than image width).
user6370357 说:长宽都需要更改吗?一帧1920 x 1080的数据分为1/4 ,编码的长不变,宽度变为1/4就可以了吧。
可以。
user6370357 说:更改编码长度后的数据,解码后显示在屏幕上也是只有1/4吗?
取决于你解码显示的代码是否有做缩放。
你好,我想再请问一下数据分片的问题。
一帧数据的结构体是FVID2_Frame
我采用的是YUV420SP的数据格式,按照FVID2_Frame 结构体的描述,Y变量的起始地址放在放在addr[0][0]中,UV变量的起始地址放在addr[0][1]中。
我想只编码1/4的数据,就把addr[0][0]的地址加了 1920 * 1080 / 4 addr[0][1]的地址加了1920 * 1080 / 8,按理说显示出来的图像应该就只有3/4但是目前出现了其他的失真现象,比如说颜色不对,还有出来一帧图像就卡住的现象。
是我的四路不对吗?还是说有其他要改的。
我是在vpss驱动里面改的,vpsdrv_captureList.c 里面。