OpenCore PVAuthor give a framework for mediarecorder. But for still
Image Capture is another framework in Android.
Now
1. Voice Recorder (use PVAuthor)
2. Still Image Capture (use Android Camera framework)
3. Video Recorder (There isn't in android)
What is the plan about Camera and MediaRecorder?
Does still image capture will be integrated in PVAuthor ?
They are much same point , such as the preview funtion.
Video recorder is now in the cupcake branch and will be merged to main
in the next few weeks. The mediarecorder takes a Camera object, or
creates one if the application doesn't supply one. The media recorder
service and the camera service are in the same process, so there is no
IPC overhead.
On Dec 17, 7:37 pm, hanchao3c <hancha...@gmail.com> wrote:
I don't think you are looking at cupcake branch. MediaRecorder has a
binder interface. It is not based on PVAuthor. Instead, like
MediaPlayer it is an abstraction layer so that another media framework
can be used if desired.
On Dec 17, 10:32 pm, hanchao3c <hancha...@gmail.com> wrote:
> There is a small problem.
> Current the SoundRecorder is base on MediaRecorder , MediaRecorder is
> base on Open PVAuthor.
> packages/apps/SoundRecorder/
> But there is NOT a binder service (BpXXX -> BnXXX) now . MediaRecorder
> service call PVAuthor directly , and Using AudioRecorder as it input.
> Can VideoRecorder / Camera / VideoRecorder all use using One
> BnService and base on PVAuthor ?
> I think it will change more for Current Camera framework (Now they are
> in libui.so)
I know MediaRecorder is abstraction layer .
Whar is the final Implementation ,
Are they like this :
1. SoundRecorder is based on PVAuthor
2. Camera is not based PVAuthor
3. VideoRecorer will not be based on PVAuthor.
Do we have plan to using unify Implementation such as PVAuthor,
But it seem both PVAuthor and MediaRecorder abstraction layer are not
defined the still image capture intercace.
> oh............................
> I find it in cupcake branch,
> Add this files in frameworks/base/ include / media /
> IMediaRecorder.h
> PVMediaRecorder.h
> According to the interface :
> mediarecorder = audio recoder + video recoder + preview.
> And the still image capture interface in base/ include / ui /
> Camera.h
> This Camera (Jpeg) = Jpeg capture + preview.
> At least the preview part (viewfinder ) of them are same. Both using
> Suface as interface.
Thanks .
I think the Widget for Camera and VideoView may need consider more
for using HW overlay Surface.
For Preview case , It need do more consider than MediaPlayer. Ex, Add
UI emelent on the top of privew, so the WIdget Class need take
consider the layers management and color key.
Just like we discussed before.
On 12月19日, 上午12时39分, Dave Sparks <davidspa...@android.com> wrote:
> I don't see the benefit of integrating them together. It would just
> add one more layer over the Camera interface.
> We will probably write a widget similar to VideoView to make image and
> motion capture easier for app developer.
> On Dec 18, 4:50 am, hanchao3c <hancha...@gmail.com> wrote:
> > oh............................
> > I find it in cupcake branch,
> > Add this files in frameworks/base/ include / media /
> > IMediaRecorder.h
> > PVMediaRecorder.h
> > According to the interface :
> > mediarecorder = audio recoder + video recoder + preview.
> > And the still image capture interface in base/ include / ui /
> > Camera.h
> > This Camera (Jpeg) = Jpeg capture + preview.
> > At least the preview part (viewfinder ) of them are same. Both using
> > Suface as interface.
> > Do we have plan integrate them together ?- 隐藏被引用文字 -
> Thanks .
> I think the Widget for Camera and VideoView may need consider more
> for using HW overlay Surface.
> For Preview case , It need do more consider than MediaPlayer. Ex, Add
> UI emelent on the top of privew, so the WIdget Class need take
> consider the layers management and color key.
> Just like we discussed before.
> On 12月19日, 上午12时39分, Dave Sparks <davidspa...@android.com> wrote:
> > I don't see the benefit of integrating them together. It would just
> > add one more layer over the Camera interface.
> > We will probably write a widget similar to VideoView to make image and
> > motion capture easier for app developer.
> > On Dec 18, 4:50 am, hanchao3c <hancha...@gmail.com> wrote:
> > > oh............................
> > > I find it in cupcake branch,
> > > Add this files in frameworks/base/ include / media /
> > > IMediaRecorder.h
> > > PVMediaRecorder.h
> > > According to the interface :
> > > mediarecorder = audio recoder + video recoder + preview.
> > > And the still image capture interface in base/ include / ui /
> > > Camera.h
> > > This Camera (Jpeg) = Jpeg capture + preview.
> > > At least the preview part (viewfinder ) of them are same. Both using
> > > Suface as interface.
> > > Do we have plan integrate them together ?- 隐藏被引用文字 -