Commit a688d669 authored by Jean-Paul Saman's avatar Jean-Paul Saman

davinci: resizer.c: cleanup

- remove hackish code for direct framebuffer output
parent 3d7b2498
This diff is collapsed.
...@@ -42,15 +42,6 @@ ...@@ -42,15 +42,6 @@
#define PI 3.1415926535897932384626 #define PI 3.1415926535897932384626
typedef struct
{
int i_fd;
struct fb_var_screeninfo var_info;
struct fb_fix_screeninfo fix_info;
uint8_t *p_map;
UInt32 p_physbufs[NUM_BUFFERS];
} davinci_fb_t;
typedef struct typedef struct
{ {
int i_fd; int i_fd;
...@@ -67,9 +58,18 @@ typedef struct ...@@ -67,9 +58,18 @@ typedef struct
bool b_direct; bool b_direct;
} davinci_resizer_t; } davinci_resizer_t;
void Resize( decoder_t *, bool, davinci_resizer_t *, davinci_fb_t *, /* Resize: resize and/or enhance input picture
XDM_BufDesc ); * \param p_dec : pointer to decoder_t structure
int DavinciInit( decoder_t *, davinci_fb_t *, davinci_resizer_t * ); * \param rsz : pointer to davinci_resizer_t structure
void DavinciClose( davinci_fb_t *, davinci_resizer_t * ); * \param b_scale : rescale to output size
* \param in : input buffer as XDM_BufDesc
* \param out : output buffer as XDM_BufDesc
* \return VLC_SUCCESS on success and VLC_EGENERIC on failure
*/
int Resize( decoder_t *p_dec, davinci_resizer_t *rsz, bool b_scale,
XDM_BufDesc in, XDM_BufDesc out );
int ResizerOpen( vlc_object_t *p_this, davinci_resizer_t *rsz );
void ResizerClose( davinci_resizer_t *rsz );
#endif /* RESIZER_H */ #endif /* RESIZER_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment