1 /* 2 * Copyright (C) 2014 Amlogic Corporation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef PLAYER_THUMBNAIL_H 18 #define PLAYER_THUMBNAIL_H 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 void * thumbnail_res_alloc(void); 25 int thumbnail_find_stream_info(void *handle, const char* filename); 26 int thumbnail_find_stream_info_end(void *handle); 27 int thumbnail_decoder_open(void *handle, const char* filename); 28 int thumbnail_extract_video_frame(void * handle, int64_t time, int flag); 29 int thumbnail_read_frame(void *handle, char* buffer); 30 void thumbnail_get_video_size(void *handle, int* width, int* height); 31 float thumbnail_get_aspect_ratio(void *handle); 32 void thumbnail_get_duration(void *handle, int64_t *duration); 33 int thumbnail_get_key_metadata(void* handle, char* key, const char** value); 34 int thumbnail_get_key_data(void* handle, char* key, const void** data, int* data_size); 35 void thumbnail_get_video_rotation(void *handle, int* rotation); 36 int thumbnail_decoder_close(void *handle); 37 void thumbnail_res_free(void* handle); 38 int thumbnail_get_tracks_info(void *handle, int *vtracks, int *atracks, int *stracks); 39 40 #ifdef __cplusplus 41 } 42 #endif 43 44 #endif 45