4 |
* - Native API implementation - |
* - Native API implementation - |
5 |
* |
* |
6 |
* Copyright(C) 2001-2004 Peter Ross <pross@xvid.org> |
* Copyright(C) 2001-2004 Peter Ross <pross@xvid.org> |
7 |
|
* 2002-2010 Michael Militzer <isibaar@xvid.org> |
8 |
* |
* |
9 |
* This program is free software ; you can redistribute it and/or modify |
* This program is free software ; you can redistribute it and/or modify |
10 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
181 |
|
|
182 |
|
|
183 |
/***************************************************************************** |
/***************************************************************************** |
184 |
* XviD Init Entry point |
* Xvid Init Entry point |
185 |
* |
* |
186 |
* Well this function initialize all internal function pointers according |
* Well this function initialize all internal function pointers according |
187 |
* to the CPU features forced by the library client or autodetected (depending |
* to the CPU features forced by the library client or autodetected (depending |
767 |
convert->output.csp, convert->interlacing); |
convert->output.csp, convert->interlacing); |
768 |
break; |
break; |
769 |
|
|
770 |
|
case XVID_CSP_INTERNAL : |
771 |
|
img.y = (uint8_t*)convert->input.plane[0]; |
772 |
|
img.u = (uint8_t*)convert->input.plane[1]; |
773 |
|
img.v = (uint8_t*)convert->input.plane[2]; |
774 |
|
image_output(&img, width, height, convert->input.stride[0], |
775 |
|
(uint8_t**)convert->output.plane, convert->output.stride, |
776 |
|
convert->output.csp, convert->interlacing); |
777 |
|
break; |
778 |
|
|
779 |
default : |
default : |
780 |
return XVID_ERR_FORMAT; |
return XVID_ERR_FORMAT; |
781 |
} |
} |
786 |
} |
} |
787 |
|
|
788 |
/***************************************************************************** |
/***************************************************************************** |
789 |
* XviD Global Entry point |
* Xvid Global Entry point |
790 |
* |
* |
791 |
* Well this function initialize all internal function pointers according |
* Well this function initialize all internal function pointers according |
792 |
* to the CPU features forced by the library client or autodetected (depending |
* to the CPU features forced by the library client or autodetected (depending |
819 |
} |
} |
820 |
|
|
821 |
/***************************************************************************** |
/***************************************************************************** |
822 |
* XviD Native decoder entry point |
* Xvid Native decoder entry point |
823 |
* |
* |
824 |
* This function is just a wrapper to all the option cases. |
* This function is just a wrapper to all the option cases. |
825 |
* |
* |
851 |
|
|
852 |
|
|
853 |
/***************************************************************************** |
/***************************************************************************** |
854 |
* XviD Native encoder entry point |
* Xvid Native encoder entry point |
855 |
* |
* |
856 |
* This function is just a wrapper to all the option cases. |
* This function is just a wrapper to all the option cases. |
857 |
* |
* |