Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Is any one have any idea about how can we do video streaming??

i have some image frames on server and for streaming m fetching only the difference between two frames from server. and drawing that difference with following API

IBITMAP_SetPixels(pVS->pImageBitmap[i],1,&pt,IBITMAP_RGBToNative(pVS->pImageBitmap[i],MAKE_RGB(R,G,B)),AEE_RO_COPY);
but this approach cause an overhead to my application as it will draw each pixel one by one for RGB values which leads to a distorted video.

is there any other way i can show my video??
Or any other API??

any help will be appreciated.

Thanks in Advance.

Do you have video file in your server? if so you can use IMedia interface. Or, are you trying to simulate video effect using bitmaps?

Do you have video file in your server? if so you can use IMedia interface. Or, are you trying to simulate video effect using bitmaps?

ruben wrote:Do you have video file in your server? if so you can use IMedia interface. Or, are you trying to simulate video effect using bitmaps?
Thanks for repling ruben,
no i don't have video files on server coz most of my target devices does not support any video format.
m tring to simulate video effect using png/jpeg images.
is there any solution???

ruben wrote:Do you have video file in your server? if so you can use IMedia interface. Or, are you trying to simulate video effect using bitmaps?
Thanks for repling ruben,
no i don't have video files on server coz most of my target devices does not support any video format.
m tring to simulate video effect using png/jpeg images.
is there any solution???

Hi ,
As You explained you got image Diff. and display it Pixel by pixel.
One other way is that you create a masking Matrix which has 0 if this pixel is diff. from previous.
| 0 x x 0 |
| 0 0 0 x |
| x 0 x 0 |
| 0 0 0 0 |
apply ‘AND’ Operator on this matrix and Previous Image Matrix so you got 0 on that place on which image is changed this is called result matrix now create one more matrix which have changed pixel values in place of 0 and 0 in place of x. now apply “OR” Operator with this new matrix and result matrix this matrix is image which you may Display. All this pixel values are in native form.
x-> for 1 bit depth images x= 1 [1]
-> for 2 bit depth images x=3 [11]
-> for 4 bit depth images x=15[1111]
-> for 8 = 255 [11111111] etc.
:)

Hi ,
As You explained you got image Diff. and display it Pixel by pixel.
One other way is that you create a masking Matrix which has 0 if this pixel is diff. from previous.
| 0 x x 0 |
| 0 0 0 x |
| x 0 x 0 |
| 0 0 0 0 |
apply ‘AND’ Operator on this matrix and Previous Image Matrix so you got 0 on that place on which image is changed this is called result matrix now create one more matrix which have changed pixel values in place of 0 and 0 in place of x. now apply “OR” Operator with this new matrix and result matrix this matrix is image which you may Display. All this pixel values are in native form.
x-> for 1 bit depth images x= 1 [1]
-> for 2 bit depth images x=3 [11]
-> for 4 bit depth images x=15[1111]
-> for 8 = 255 [11111111] etc.
:)