Home | History | Annotate | Download | only in videoencoder
      1 /*
      2 * Copyright (c) 2009-2011 Intel Corporation.  All rights reserved.
      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 VIDEO_ENCODER_INTERFACE_H_
     18 #define VIDEO_ENCODER_INTERFACE_H_
     19 
     20 #include "VideoEncoderDef.h"
     21 
     22 class IVideoEncoder {
     23 public:
     24     virtual ~IVideoEncoder() {};
     25     virtual Encode_Status start(void) = 0;
     26     virtual Encode_Status stop(void) = 0;
     27     virtual void flush(void) = 0;
     28     virtual Encode_Status encode(VideoEncRawBuffer *inBuffer, uint32_t timeout = FUNC_BLOCK) = 0;
     29     virtual Encode_Status getOutput(VideoEncOutputBuffer *outBuffer, uint32_t timeout = FUNC_BLOCK) = 0;
     30     virtual Encode_Status getParameters(VideoParamConfigSet *videoEncParams) = 0;
     31     virtual Encode_Status setParameters(VideoParamConfigSet *videoEncParams) = 0;
     32     virtual Encode_Status getConfig(VideoParamConfigSet *videoEncConfig) = 0;
     33     virtual Encode_Status setConfig(VideoParamConfigSet *videoEncConfig) = 0;
     34     virtual Encode_Status getMaxOutSize(uint32_t *maxSize) = 0;
     35 };
     36 
     37 #endif /* VIDEO_ENCODER_INTERFACE_H_ */
     38